Skip to content

Commit dd3d5fb

Browse files
committed
feat: prefix native module imports with node:
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 658e69c commit dd3d5fb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

tests/_data/normalize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20-
const fs = require('fs')
21-
const path = require('path')
20+
const fs = require('node:fs')
21+
const path = require('node:path')
2222

2323
/* eslint-disable jsdoc/valid-types */
2424

tests/_data/serialize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20-
const fs = require('fs')
21-
const path = require('path')
20+
const fs = require('node:fs')
21+
const path = require('node:path')
2222

2323
/* eslint-disable jsdoc/valid-types */
2424

tests/_data/spdx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20-
const fs = require('fs')
21-
const assert = require('assert')
20+
const fs = require('node:fs')
21+
const assert = require('node:assert')
2222

2323
const { _Resources: { FILES: { SPDX: { JSON_SCHEMA: SPDX_JSON_SCHEMA } } } } = require('../../')
2424

tests/_data/specLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20-
const fs = require('fs')
21-
const path = require('path')
20+
const fs = require('nodeLfs')
21+
const path = require('node:path')
2222

2323
const resPath = path.resolve(__dirname, '..', '..', 'res', 'schema')
2424

0 commit comments

Comments
 (0)