@openaddresses/batch-schema 5.0.0 → 5.1.0
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 +4 -0
- package/lib/schema.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/schema.js
CHANGED
|
@@ -89,6 +89,9 @@ export default class Schemas {
|
|
|
89
89
|
* @param {boolean} opts.silent Squelch StdOut
|
|
90
90
|
*/
|
|
91
91
|
async load(dirpath, config, opts = {}) {
|
|
92
|
+
if (dirpath instanceof URL) dirpath = dirpath.pathname;
|
|
93
|
+
else dirpath = String(dirpath);
|
|
94
|
+
|
|
92
95
|
// Load dynamic routes directory
|
|
93
96
|
for (const r of fs.readdirSync(dirpath)) {
|
|
94
97
|
if (!opts.silent) console.error(`ok - loaded routes/${r}`);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"type": "module",
|
|
4
4
|
"root": true,
|
|
5
5
|
"main": "index.js",
|
|
6
|
-
"version": "5.
|
|
6
|
+
"version": "5.1.0",
|
|
7
7
|
"description": "Strongly Validated JSON Schema support for address",
|
|
8
8
|
"repository": "git@github.com:openaddresses/batch-schema",
|
|
9
9
|
"author": "ingalls <nick@ingalls.ca>",
|