Skip to content

Commit 966f3cf

Browse files
authoredFeb 14, 2025
refactor: prefix native module imports with node: (#1210)
fixes #1198 --------- Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent da54363 commit 966f3cf

File tree

69 files changed

+234
-158
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+234
-158
lines changed
 

‎src/_optPlug.node/__jsonValidators/ajv.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20+
import { readFile } from 'node:fs/promises'
21+
2022
import Ajv, { type Options as AjvOptions } from 'ajv'
2123
import addFormats from 'ajv-formats'
2224
/* @ts-expect-error TS7016 */
2325
import addFormats2019 from 'ajv-formats-draft2019'
24-
import { readFile } from 'fs/promises'
2526

2627
import type { ValidationError } from '../../validation/types'
2728
import type { Functionality, Validator } from '../jsonValidator'

‎src/_optPlug.node/__xmlValidators/libxmljs2.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20-
import { readFile } from 'fs/promises'
20+
import { readFile } from 'node:fs/promises'
21+
import { pathToFileURL } from 'node:url'
22+
2123
import { type ParserOptions, parseXml } from 'libxmljs2'
22-
import { pathToFileURL } from 'url'
2324

2425
import type { ValidationError } from '../../validation/types'
2526
import type { Functionality, Validator } from '../xmlValidator'

0 commit comments

Comments
 (0)