Commit 3b1d99c 1 parent c6c3eea commit 3b1d99c Copy full SHA for 3b1d99c
File tree 7 files changed +38
-1
lines changed
7 files changed +38
-1
lines changed Original file line number Diff line number Diff line change
1
+ #define BASE64_VERSION "0.5.0" // NOLINT(build/header_guard)
Original file line number Diff line number Diff line change
1
+ #define CJS_MODULE_LEXER_VERSION "1.2.2" // NOLINT(build/header_guard)
Original file line number Diff line number Diff line change 1
1
#include " node_metadata.h"
2
2
#include " ares.h"
3
+ #include " base64_version.h"
3
4
#include " brotli/encode.h"
5
+ #include " cjs_module_lexer_version.h"
4
6
#include " llhttp.h"
5
7
#include " nghttp2/nghttp2ver.h"
6
8
#include " node.h"
@@ -90,6 +92,8 @@ Metadata::Versions::Versions() {
90
92
std::to_string ((BrotliEncoderVersion () & 0xFFF000 ) >> 12 ) +
91
93
" ." +
92
94
std::to_string (BrotliEncoderVersion () & 0xFFF );
95
+ cjs_module_lexer = CJS_MODULE_LEXER_VERSION;
96
+ base64 = BASE64_VERSION;
93
97
94
98
uvwasi = UVWASI_VERSION_STRING;
95
99
Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ namespace node {
38
38
V (nghttp2) \
39
39
V (napi) \
40
40
V (llhttp) \
41
- V (uvwasi)
41
+ V (uvwasi) \
42
+ V (cjs_module_lexer) \
43
+ V (base64)
42
44
43
45
#if HAVE_OPENSSL
44
46
#define NODE_VERSIONS_KEY_CRYPTO (V ) V(openssl)
Original file line number Diff line number Diff line change 2
2
const common = require ( '../common' ) ;
3
3
const assert = require ( 'assert' ) ;
4
4
5
+ const cjs_module_lexer = require ( '../../deps/cjs-module-lexer/package.json' ) ;
6
+
5
7
const expected_keys = [
6
8
'ares' ,
7
9
'brotli' ,
@@ -14,6 +16,8 @@ const expected_keys = [
14
16
'napi' ,
15
17
'llhttp' ,
16
18
'uvwasi' ,
19
+ 'cjs_module_lexer' ,
20
+ 'base64' ,
17
21
] ;
18
22
19
23
if ( common . hasCrypto ) {
@@ -51,6 +55,7 @@ assert.match(
51
55
/ ^ \d + \. \d + \. \d + (?: \. \d + ) ? - n o d e \. \d + (?: \( c a n d i d a t e \) ) ? $ /
52
56
) ;
53
57
assert . match ( process . versions . modules , / ^ \d + $ / ) ;
58
+ assert . match ( process . versions . cjs_module_lexer , commonTemplate ) ;
54
59
55
60
if ( common . hasCrypto ) {
56
61
const versionRegex = common . hasOpenSSL3 ?
@@ -70,3 +75,6 @@ for (let i = 0; i < expected_keys.length; i++) {
70
75
71
76
assert . strictEqual ( process . config . variables . napi_build_version ,
72
77
process . versions . napi ) ;
78
+
79
+ const expectedCjsModuleLexerVersion = cjs_module_lexer . version ;
80
+ assert . strictEqual ( process . versions . cjs_module_lexer , expectedCjsModuleLexerVersion ) ;
Original file line number Diff line number Diff line change @@ -45,3 +45,5 @@ echo ""
45
45
echo " $ git add -A deps/base64/base64"
46
46
echo " $ git commit -m \" deps: update base64 to $BASE64_VERSION \" "
47
47
echo " "
48
+
49
+ echo " #define BASE64_VERSION \" $BASE64_VERSION \" // NOLINT(build/header_guard)" > " $BASE_DIR /src/base64_version.h"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # Shell script to update version file of the deps in the source tree.
4
+ # This script could be used to update the version file for deps that do not have their
5
+ # own update scripts
6
+
7
+ # update cjs_module_lexer_version.h
8
+ {
9
+ ROOT=" $PWD /"
10
+ [ -z " $NODE " ] && NODE=" $ROOT /out/Release/node"
11
+ [ -x " $NODE " ] || NODE=$( command -v node)
12
+
13
+ # cjs-module-lexer
14
+ cd deps/cjs-module-lexer || exit
15
+ # get cjs-module-lexer version
16
+ CJS_MODULE_LEXER_VERSION=$( " $NODE " -p " require('./package.json').version" )
17
+ # update this version information in src/cjs_module_lexer_version.h
18
+ echo " #define CJS_MODULE_LEXER_VERSION \" $CJS_MODULE_LEXER_VERSION \" // NOLINT(build/header_guard)" > " $ROOT /src/cjs_module_lexer_version.h"
19
+ }
You can’t perform that action at this time.
0 commit comments