toolcraft-openapi 0.0.551 → 0.0.552
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/composition.json
CHANGED
|
@@ -11,7 +11,7 @@ export function isJsonValue(value, options = {}) {
|
|
|
11
11
|
if (maxNodes !== Infinity && (!Number.isSafeInteger(maxNodes) || maxNodes < 1))
|
|
12
12
|
throw new Error("maxNodes must be a positive safe integer");
|
|
13
13
|
if (maxDepth !== Infinity && (!Number.isSafeInteger(maxDepth) || maxDepth < 0))
|
|
14
|
-
throw new Error("maxDepth must be a nonnegative safe integer");
|
|
14
|
+
throw new Error("maxDepth must be a nonnegative safe integer or Infinity");
|
|
15
15
|
const ancestors = new Set();
|
|
16
16
|
const stack = [];
|
|
17
17
|
function* properties(item) {
|
|
@@ -55,7 +55,7 @@ export function isJsonValue(value, options = {}) {
|
|
|
55
55
|
}
|
|
56
56
|
hookOwner = Object.getPrototypeOf(hookOwner);
|
|
57
57
|
}
|
|
58
|
-
if (Array.isArray(item) && item.length > maxNodes)
|
|
58
|
+
if (Array.isArray(item) && item.length > maxNodes - nodes)
|
|
59
59
|
return false;
|
|
60
60
|
ancestors.add(item);
|
|
61
61
|
stack.push({ owner: item, children: properties(item), depth });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcraft-openapi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.552",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"toolcraft-openapi-generate": "dist/bin/generate.js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"toolcraft": "0.0.
|
|
33
|
+
"toolcraft": "0.0.552",
|
|
34
34
|
"fast-string-width": "^3.0.2",
|
|
35
35
|
"fast-wrap-ansi": "^0.2.0",
|
|
36
36
|
"sisteransi": "^1.0.5",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"directory": "packages/toolcraft-openapi"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"toolcraft-schema": "0.0.
|
|
48
|
+
"toolcraft-schema": "0.0.552",
|
|
49
49
|
"toolcraft-design": "*",
|
|
50
50
|
"@poe-code/frontmatter": "*"
|
|
51
51
|
},
|