@swagger-api/apidom-ast 0.76.1 → 0.77.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 +17 -0
- package/cjs/Error.cjs +2 -3
- package/cjs/Literal.cjs +2 -3
- package/cjs/Node.cjs +2 -3
- package/cjs/ParseResult.cjs +2 -3
- package/cjs/Position.cjs +3 -5
- package/cjs/index.cjs +4 -4
- package/cjs/json/nodes/JsonArray.cjs +2 -3
- package/cjs/json/nodes/JsonDocument.cjs +2 -3
- package/cjs/json/nodes/JsonEscapeSequence.cjs +2 -3
- package/cjs/json/nodes/JsonFalse.cjs +2 -3
- package/cjs/json/nodes/JsonKey.cjs +2 -3
- package/cjs/json/nodes/JsonNode.cjs +2 -3
- package/cjs/json/nodes/JsonNull.cjs +2 -3
- package/cjs/json/nodes/JsonNumber.cjs +2 -3
- package/cjs/json/nodes/JsonObject.cjs +2 -3
- package/cjs/json/nodes/JsonProperty.cjs +2 -3
- package/cjs/json/nodes/JsonString.cjs +2 -3
- package/cjs/json/nodes/JsonStringContent.cjs +2 -3
- package/cjs/json/nodes/JsonTrue.cjs +2 -3
- package/cjs/json/nodes/JsonValue.cjs +2 -3
- package/cjs/json/nodes/predicates.cjs +12 -24
- package/cjs/predicates.cjs +4 -8
- package/cjs/traversal/visitor.cjs +92 -89
- package/cjs/yaml/errors/YamlSchemaError.cjs +1 -2
- package/cjs/yaml/errors/YamlTagError.cjs +2 -3
- package/cjs/yaml/nodes/YamlAlias.cjs +2 -3
- package/cjs/yaml/nodes/YamlAnchor.cjs +2 -3
- package/cjs/yaml/nodes/YamlCollection.cjs +2 -3
- package/cjs/yaml/nodes/YamlComment.cjs +2 -3
- package/cjs/yaml/nodes/YamlDirective.cjs +2 -3
- package/cjs/yaml/nodes/YamlDocument.cjs +2 -3
- package/cjs/yaml/nodes/YamlKeyValuePair.cjs +2 -3
- package/cjs/yaml/nodes/YamlMapping.cjs +2 -3
- package/cjs/yaml/nodes/YamlNode.cjs +2 -3
- package/cjs/yaml/nodes/YamlScalar.cjs +2 -3
- package/cjs/yaml/nodes/YamlSequence.cjs +2 -3
- package/cjs/yaml/nodes/YamlStream.cjs +2 -3
- package/cjs/yaml/nodes/YamlStyle.cjs +4 -7
- package/cjs/yaml/nodes/YamlTag.cjs +3 -5
- package/cjs/yaml/nodes/predicates.cjs +10 -20
- package/cjs/yaml/schemas/ScalarTag.cjs +2 -3
- package/cjs/yaml/schemas/Tag.cjs +2 -3
- package/cjs/yaml/schemas/canonical-format.cjs +4 -6
- package/cjs/yaml/schemas/failsafe/GenericMapping.cjs +2 -3
- package/cjs/yaml/schemas/failsafe/GenericSequence.cjs +2 -3
- package/cjs/yaml/schemas/failsafe/GenericString.cjs +2 -3
- package/cjs/yaml/schemas/failsafe/index.cjs +2 -3
- package/cjs/yaml/schemas/json/Boolean.cjs +2 -3
- package/cjs/yaml/schemas/json/FloatingPoint.cjs +2 -3
- package/cjs/yaml/schemas/json/Integer.cjs +2 -3
- package/cjs/yaml/schemas/json/Null.cjs +2 -3
- package/cjs/yaml/schemas/json/index.cjs +2 -3
- package/dist/apidom-ast.browser.js +371 -2118
- package/dist/apidom-ast.browser.min.js +1 -1
- package/es/{Error.js → Error.mjs} +1 -1
- package/es/{Literal.js → Literal.mjs} +1 -1
- package/es/{ParseResult.js → ParseResult.mjs} +1 -1
- package/es/{index.js → index.mjs} +40 -40
- package/es/json/nodes/{JsonArray.js → JsonArray.mjs} +2 -2
- package/es/json/nodes/{JsonDocument.js → JsonDocument.mjs} +1 -1
- package/es/json/nodes/{JsonEscapeSequence.js → JsonEscapeSequence.mjs} +1 -1
- package/es/json/nodes/{JsonFalse.js → JsonFalse.mjs} +1 -1
- package/es/json/nodes/{JsonKey.js → JsonKey.mjs} +1 -1
- package/es/json/nodes/{JsonNode.js → JsonNode.mjs} +1 -1
- package/es/json/nodes/{JsonNull.js → JsonNull.mjs} +1 -1
- package/es/json/nodes/{JsonNumber.js → JsonNumber.mjs} +1 -1
- package/es/json/nodes/{JsonObject.js → JsonObject.mjs} +2 -2
- package/es/json/nodes/{JsonProperty.js → JsonProperty.mjs} +2 -2
- package/es/json/nodes/{JsonString.js → JsonString.mjs} +2 -2
- package/es/json/nodes/{JsonStringContent.js → JsonStringContent.mjs} +1 -1
- package/es/json/nodes/{JsonTrue.js → JsonTrue.mjs} +1 -1
- package/es/json/nodes/{JsonValue.js → JsonValue.mjs} +1 -1
- package/es/json/nodes/{predicates.js → predicates.mjs} +1 -1
- package/es/traversal/{visitor.js → visitor.mjs} +88 -85
- package/es/yaml/errors/{YamlTagError.js → YamlTagError.mjs} +1 -7
- package/es/yaml/nodes/{YamlAlias.js → YamlAlias.mjs} +1 -1
- package/es/yaml/nodes/{YamlAnchor.js → YamlAnchor.mjs} +1 -1
- package/es/yaml/nodes/{YamlCollection.js → YamlCollection.mjs} +1 -1
- package/es/yaml/nodes/{YamlComment.js → YamlComment.mjs} +1 -1
- package/es/yaml/nodes/{YamlDirective.js → YamlDirective.mjs} +1 -1
- package/es/yaml/nodes/{YamlDocument.js → YamlDocument.mjs} +1 -1
- package/es/yaml/nodes/{YamlKeyValuePair.js → YamlKeyValuePair.mjs} +3 -3
- package/es/yaml/nodes/{YamlMapping.js → YamlMapping.mjs} +2 -2
- package/es/yaml/nodes/{YamlNode.js → YamlNode.mjs} +1 -1
- package/es/yaml/nodes/{YamlScalar.js → YamlScalar.mjs} +1 -1
- package/es/yaml/nodes/{YamlSequence.js → YamlSequence.mjs} +2 -2
- package/es/yaml/nodes/{YamlStream.js → YamlStream.mjs} +2 -2
- package/es/yaml/nodes/{YamlTag.js → YamlTag.mjs} +1 -1
- package/es/yaml/nodes/{predicates.js → predicates.mjs} +1 -1
- package/es/yaml/schemas/{ScalarTag.js → ScalarTag.mjs} +3 -3
- package/es/yaml/schemas/{Tag.js → Tag.mjs} +1 -1
- package/es/yaml/schemas/failsafe/{GenericMapping.js → GenericMapping.mjs} +2 -2
- package/es/yaml/schemas/failsafe/{GenericSequence.js → GenericSequence.mjs} +2 -2
- package/es/yaml/schemas/failsafe/{GenericString.js → GenericString.mjs} +1 -1
- package/es/yaml/schemas/failsafe/{index.js → index.mjs} +6 -6
- package/es/yaml/schemas/json/{Boolean.js → Boolean.mjs} +1 -1
- package/es/yaml/schemas/json/{FloatingPoint.js → FloatingPoint.mjs} +1 -1
- package/es/yaml/schemas/json/{Integer.js → Integer.mjs} +1 -1
- package/es/yaml/schemas/json/{Null.js → Null.mjs} +1 -1
- package/es/yaml/schemas/json/{index.js → index.mjs} +8 -8
- package/package.json +6 -6
- package/types/dist.d.ts +4 -2
- /package/es/{Node.js → Node.mjs} +0 -0
- /package/es/{Position.js → Position.mjs} +0 -0
- /package/es/{predicates.js → predicates.mjs} +0 -0
- /package/es/yaml/errors/{YamlSchemaError.js → YamlSchemaError.mjs} +0 -0
- /package/es/yaml/nodes/{YamlStyle.js → YamlStyle.mjs} +0 -0
- /package/es/yaml/schemas/{canonical-format.js → canonical-format.mjs} +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@swagger-api/apidom-ast",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.77.0",
|
4
4
|
"description": "Tools necessary for parsing stage of ApiDOM, specifically for syntactic analysis.",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public",
|
@@ -12,15 +12,15 @@
|
|
12
12
|
"main": "./cjs/index.cjs",
|
13
13
|
"exports": {
|
14
14
|
"types": "./types/dist.d.ts",
|
15
|
-
"import": "./es/index.
|
15
|
+
"import": "./es/index.mjs",
|
16
16
|
"require": "./cjs/index.cjs"
|
17
17
|
},
|
18
18
|
"types": "./types/dist.d.ts",
|
19
19
|
"scripts": {
|
20
20
|
"build": "npm run clean && run-p --max-parallel ${CPU_CORES:-2} typescript:declaration build:es build:cjs build:umd:browser",
|
21
|
-
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es --extensions '.ts' --root-mode 'upward'",
|
21
|
+
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward'",
|
22
22
|
"build:cjs": "cross-env BABEL_ENV=cjs babel src --out-dir cjs --extensions '.ts' --out-file-extension '.cjs' --root-mode 'upward'",
|
23
|
-
"build:umd:browser": "cross-env BABEL_ENV=browser
|
23
|
+
"build:umd:browser": "cross-env BABEL_ENV=browser webpack --config config/webpack/browser.config.js --progress",
|
24
24
|
"lint": "eslint ./",
|
25
25
|
"lint:fix": "eslint ./ --fix",
|
26
26
|
"clean": "rimraf ./es ./cjs ./dist ./types",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"homepage": "https://github.com/swagger-api/apidom#readme",
|
43
43
|
"dependencies": {
|
44
44
|
"@babel/runtime-corejs3": "^7.20.7",
|
45
|
-
"@swagger-api/apidom-error": "^0.
|
45
|
+
"@swagger-api/apidom-error": "^0.77.0",
|
46
46
|
"@types/ramda": "~0.29.3",
|
47
47
|
"ramda": "~0.29.0",
|
48
48
|
"ramda-adjunct": "^4.1.1",
|
@@ -59,5 +59,5 @@
|
|
59
59
|
"README.md",
|
60
60
|
"CHANGELOG.md"
|
61
61
|
],
|
62
|
-
"gitHead": "
|
62
|
+
"gitHead": "cd8a9d7d2ea8bb8c335c23cd4632830a79c426c9"
|
63
63
|
}
|
package/types/dist.d.ts
CHANGED
@@ -265,6 +265,7 @@ declare const getVisitFn: (visitor: any, type: string, isLeaving: boolean) => an
|
|
265
265
|
declare const BREAK: {};
|
266
266
|
declare const getNodeType: (node: any) => any;
|
267
267
|
declare const isNode: (node: any) => boolean;
|
268
|
+
declare const cloneNode: (node: any) => any;
|
268
269
|
/**
|
269
270
|
* Creates a new visitor instance which delegates to many visitors to run in
|
270
271
|
* parallel. Each visitor will be visited for each node before moving on.
|
@@ -367,7 +368,7 @@ declare const mergeAll: (visitors: any[], { visitFnGetter, nodeTypeGetter }?: {
|
|
367
368
|
* @sig visit :: (Node, Visitor, Options)
|
368
369
|
* @sig Options = { keyMap: Object, state: Object }
|
369
370
|
*/
|
370
|
-
declare const visit: (root: any, visitor: any, { keyMap, state, breakSymbol, deleteNodeSymbol, skipVisitingNodeSymbol, visitFnGetter, nodeTypeGetter, nodePredicate, detectCycles, }?: {
|
371
|
+
declare const visit: (root: any, visitor: any, { keyMap, state, breakSymbol, deleteNodeSymbol, skipVisitingNodeSymbol, visitFnGetter, nodeTypeGetter, nodePredicate, nodeCloneFn, detectCycles, }?: {
|
371
372
|
keyMap?: null | undefined;
|
372
373
|
state?: {} | undefined;
|
373
374
|
breakSymbol?: {} | undefined;
|
@@ -376,7 +377,8 @@ declare const visit: (root: any, visitor: any, { keyMap, state, breakSymbol, del
|
|
376
377
|
visitFnGetter?: ((visitor: any, type: string, isLeaving: boolean) => any) | undefined;
|
377
378
|
nodeTypeGetter?: ((node: any) => any) | undefined;
|
378
379
|
nodePredicate?: ((node: any) => boolean) | undefined;
|
380
|
+
nodeCloneFn?: ((node: any) => any) | undefined;
|
379
381
|
detectCycles?: boolean | undefined;
|
380
382
|
}) => any;
|
381
383
|
|
382
|
-
export { BREAK, Error, JsonArray, JsonDocument, JsonEscapeSequence, JsonFalse, JsonKey, JsonNode, JsonNull, JsonNumber, JsonObject, JsonProperty, JsonString, JsonStringContent, JsonTrue, JsonValue, Literal, ParseResult, Point, Position, YamlAlias, YamlAnchor, YamlCollection, YamlComment, YamlDirective, YamlDocument, FailsafeSchema as YamlFailsafeSchema, JsonSchema as YamlJsonSchema, YamlKeyValuePair, YamlMapping, YamlNode, YamlNodeKind, YamlScalar, YamlSchemaError, YamlSequence, YamlStream, YamlStyle, YamlStyleGroup, YamlTag, YamlTagError, YamlTagErrorOptions, getNodeType, getVisitFn, isArray as isJsonArray, isDocument$1 as isJsonDocument, isEscapeSequence as isJsonEscapeSequence, isFalse as isJsonFalse, isKey as isJsonKey, isNull as isJsonNull, isNumber as isJsonNumber, isObject as isJsonObject, isProperty as isJsonProperty, isString as isJsonString, isStringContent as isJsonStringContent, isTrue as isJsonTrue, isLiteral, isNode, isParseResult, isPoint, isPosition, isAlias as isYamlAlias, isDirective as isYamlDirective, isDocument as isYamlDocument, isKeyValuePair as isYamlKeyValuePair, isMapping as isYamlMapping, isScalar as isYamlScalar, isSequence as isYamlSequence, isStream as isYamlStream, isTag as isYamlTag, mergeAll as mergeAllVisitors, visit };
|
384
|
+
export { BREAK, Error, JsonArray, JsonDocument, JsonEscapeSequence, JsonFalse, JsonKey, JsonNode, JsonNull, JsonNumber, JsonObject, JsonProperty, JsonString, JsonStringContent, JsonTrue, JsonValue, Literal, ParseResult, Point, Position, YamlAlias, YamlAnchor, YamlCollection, YamlComment, YamlDirective, YamlDocument, FailsafeSchema as YamlFailsafeSchema, JsonSchema as YamlJsonSchema, YamlKeyValuePair, YamlMapping, YamlNode, YamlNodeKind, YamlScalar, YamlSchemaError, YamlSequence, YamlStream, YamlStyle, YamlStyleGroup, YamlTag, YamlTagError, YamlTagErrorOptions, cloneNode, getNodeType, getVisitFn, isArray as isJsonArray, isDocument$1 as isJsonDocument, isEscapeSequence as isJsonEscapeSequence, isFalse as isJsonFalse, isKey as isJsonKey, isNull as isJsonNull, isNumber as isJsonNumber, isObject as isJsonObject, isProperty as isJsonProperty, isString as isJsonString, isStringContent as isJsonStringContent, isTrue as isJsonTrue, isLiteral, isNode, isParseResult, isPoint, isPosition, isAlias as isYamlAlias, isDirective as isYamlDirective, isDocument as isYamlDocument, isKeyValuePair as isYamlKeyValuePair, isMapping as isYamlMapping, isScalar as isYamlScalar, isSequence as isYamlSequence, isStream as isYamlStream, isTag as isYamlTag, mergeAll as mergeAllVisitors, visit };
|
/package/es/{Node.js → Node.mjs}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|