@amritk/resolve-refs 0.4.4 → 0.4.5
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/README.md +5 -3
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -91,9 +91,11 @@ full spec:
|
|
|
91
91
|
|
|
92
92
|
## Documents
|
|
93
93
|
|
|
94
|
-
Every document — local file or remote — is parsed as **JSON
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
Every document — local file or remote — is parsed as **JSON** by default, so the
|
|
95
|
+
resolver stays dependency-free. Other formats plug in through the `parse` option:
|
|
96
|
+
`mjst lint` passes a YAML-aware parser there, which is how a `.lint.yaml`
|
|
97
|
+
document's cross-file `$ref`s resolve without this package depending on a YAML
|
|
98
|
+
parser.
|
|
97
99
|
|
|
98
100
|
## Benchmarks
|
|
99
101
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amritk/resolve-refs",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Resolve and inline JSON Schema / OpenAPI $refs — internal, cross-file, and remote — with session caching and a default-deny SSRF guard.",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=20"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "amritk",
|
|
9
13
|
"keywords": [
|