@openaddresses/batch-schema 3.0.0 → 3.1.2
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/CHANGELOG.md +12 -0
- package/lib/schema.js +1 -1
- package/package.json +2 -1
- package/package-lock.json +0 -5491
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,18 @@
|
|
|
10
10
|
|
|
11
11
|
## Version History
|
|
12
12
|
|
|
13
|
+
### v3.1.2
|
|
14
|
+
|
|
15
|
+
- :bug: Internal schema path
|
|
16
|
+
|
|
17
|
+
### v3.1.1
|
|
18
|
+
|
|
19
|
+
- :bug: Internal schema path
|
|
20
|
+
|
|
21
|
+
### v3.0.1
|
|
22
|
+
|
|
23
|
+
- :rocket: Add `.main` property to package.json
|
|
24
|
+
|
|
13
25
|
### v3.0.0
|
|
14
26
|
|
|
15
27
|
- :rocket: Update to ES Module System
|
package/lib/schema.js
CHANGED
|
@@ -119,7 +119,7 @@ export default class Schemas {
|
|
|
119
119
|
if (!schemas[type]) continue;
|
|
120
120
|
|
|
121
121
|
try {
|
|
122
|
-
schemas[type] = await $RefParser.dereference(`../schema/${schemas[type]}
|
|
122
|
+
schemas[type] = await $RefParser.dereference((new URL(`../schema/${schemas[type]}`, import.meta.url)).pathname);
|
|
123
123
|
} catch (err) {
|
|
124
124
|
schemas[type] = await $RefParser.dereference(`${this.schemas_path}/${schemas[type]}`);
|
|
125
125
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"name": "@openaddresses/batch-schema",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"root": true,
|
|
5
|
-
"
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"version": "3.1.2",
|
|
6
7
|
"description": "Strongly Validated JSON Schema support for address",
|
|
7
8
|
"repository": "git@github.com:openaddresses/batch-schema",
|
|
8
9
|
"author": "ingalls <nick@ingalls.ca>",
|