@cfworker/json-schema 1.12.4 → 1.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dereference.js +3 -1
- package/package.json +4 -4
- package/src/dereference.ts +3 -1
package/dist/dereference.js
CHANGED
|
@@ -54,7 +54,9 @@ export const ignoredKeyword = {
|
|
|
54
54
|
maxProperties: true,
|
|
55
55
|
minProperties: true
|
|
56
56
|
};
|
|
57
|
-
export let initialBaseURI = typeof self !== 'undefined' &&
|
|
57
|
+
export let initialBaseURI = typeof self !== 'undefined' &&
|
|
58
|
+
self.location &&
|
|
59
|
+
self.location.origin !== 'null'
|
|
58
60
|
?
|
|
59
61
|
new URL(self.location.origin + self.location.pathname + location.search)
|
|
60
62
|
: new URL('https://github.com/cfworker');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cfworker/json-schema",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.12.
|
|
4
|
+
"version": "1.12.6",
|
|
5
5
|
"description": "A JSON schema validator that will run on Cloudflare workers. Supports drafts 4, 7, 2019-09, and 2020-12.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"json-schema",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"test": "cfworker test test/**/*.spec.ts --nocheck"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@cfworker/dev": "^1.14.
|
|
41
|
+
"@cfworker/dev": "^1.14.2",
|
|
42
42
|
"@types/chai": "^4.3.3",
|
|
43
|
-
"@types/mocha": "^
|
|
43
|
+
"@types/mocha": "^10.0.0",
|
|
44
44
|
"chai": "^4.3.6",
|
|
45
45
|
"json-schema-test-suite": "git+https://github.com/json-schema-org/JSON-Schema-Test-Suite#76b529f",
|
|
46
46
|
"mocha": "^10.0.0",
|
|
47
|
-
"typescript": "^4.
|
|
47
|
+
"typescript": "^4.8.4"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/src/dereference.ts
CHANGED
|
@@ -67,7 +67,9 @@ export const ignoredKeyword: Record<string, boolean> = {
|
|
|
67
67
|
*/
|
|
68
68
|
export let initialBaseURI =
|
|
69
69
|
// @ts-ignore
|
|
70
|
-
typeof self !== 'undefined' &&
|
|
70
|
+
typeof self !== 'undefined' &&
|
|
71
|
+
self.location &&
|
|
72
|
+
self.location.origin !== 'null'
|
|
71
73
|
? //@ts-ignore
|
|
72
74
|
new URL(self.location.origin + self.location.pathname + location.search)
|
|
73
75
|
: new URL('https://github.com/cfworker');
|