diff --git a/lib/resolvers/http.js b/lib/resolvers/http.js index dc8bb9a2..ee6d02bb 100644 --- a/lib/resolvers/http.js +++ b/lib/resolvers/http.js @@ -1,5 +1,5 @@ -const http = require('http'); -const https = require('https'); +const http = require('node:http'); +const https = require('node:https'); const { ono } = require('@jsdevtools/ono'); diff --git a/lib/util/url.js b/lib/util/url.js index c5bf0be8..f12105df 100644 --- a/lib/util/url.js +++ b/lib/util/url.js @@ -22,8 +22,8 @@ const urlDecodePatterns = [ ]; /* eslint-enable prettier/prettier */ -exports.parse = require('url').parse; -exports.resolve = require('url').resolve; +exports.parse = require('node:url').parse; +exports.resolve = require('node:url').resolve; /** * Returns the current working directory (in Node) or the current page URL (in browsers). diff --git a/package.json b/package.json index cc2abbb6..a1e66c22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@readme/json-schema-ref-parser", - "version": "1.2.1", + "version": "1.2.2", "description": "Parse, Resolve, and Dereference JSON Schema $ref pointers", "keywords": [ "json", @@ -70,7 +70,7 @@ "typescript": "^5.1.6" }, "dependencies": { - "@jsdevtools/ono": "^7.1.3", + "@jsdevtools/ono": "https://github.com/jannisch/ono", "@types/json-schema": "^7.0.12", "call-me-maybe": "^1.0.1", "js-yaml": "^4.1.0" diff --git a/test/utils/path.js b/test/utils/path.js index 10c14922..1faa6596 100644 --- a/test/utils/path.js +++ b/test/utils/path.js @@ -11,8 +11,8 @@ if (host.node) { * Helper functions for getting local filesystem paths in various formats */ function filesystemPathHelpers() { - const nodePath = require('path'); - const nodeUrl = require('url'); + const nodePath = require('node:path'); + const nodeUrl = require('node:url'); const testsDir = nodePath.resolve(__dirname, '..'); // Run all tests from the "test" directory