File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -115,13 +115,15 @@ describe('bson entrypoint', () => {
115115 } ;
116116 }
117117
118- for ( const test of [
119- it (
120- 'browser bundle does not use top-level await' ,
121- testSyncESMImport ( 'browser' , './lib/bson.mjs' )
122- ) ,
123- it ( 'node bundle does not use top-level await' , testSyncESMImport ( 'node' , './lib/bson.node.mjs' ) )
124- ] ) {
125- if ( NODE_MAJOR < 22 ) test . skip ( ) ;
126- }
118+ const itFn = NODE_MAJOR < 22 ? it : it . skip ;
119+
120+ itFn (
121+ 'browser bundle does not use top-level await' ,
122+ testSyncESMImport ( 'browser' , './lib/bson.mjs' )
123+ ) ;
124+
125+ itFn (
126+ 'node bundle does not use top-level await' ,
127+ testSyncESMImport ( 'node' , './lib/bson.node.mjs' )
128+ ) ;
127129} ) ;
Original file line number Diff line number Diff line change @@ -11,14 +11,16 @@ const REQUIRED_FILES = [
1111 'README.md' ,
1212 'bson.d.ts' ,
1313 'etc/prepare.js' ,
14- 'lib/bson.bundle.js' ,
1514 'lib/bson.bundle.js.map' ,
16- 'lib/bson.cjs ' ,
15+ 'lib/bson.bundle.js ' ,
1716 'lib/bson.cjs.map' ,
18- 'lib/bson.mjs ' ,
17+ 'lib/bson.cjs ' ,
1918 'lib/bson.mjs.map' ,
20- 'lib/bson.rn.cjs' ,
19+ 'lib/bson.mjs' ,
20+ 'lib/bson.node.mjs.map' ,
21+ 'lib/bson.node.mjs' ,
2122 'lib/bson.rn.cjs.map' ,
23+ 'lib/bson.rn.cjs' ,
2224 'package.json' ,
2325 'src/binary.ts' ,
2426 'src/bson_value.ts' ,
You can’t perform that action at this time.
0 commit comments