@swagger-api/apidom-ast 0.76.0 → 0.76.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 +10 -0
- package/cjs/Error.cjs +1 -1
- package/cjs/Literal.cjs +1 -1
- package/cjs/Node.cjs +1 -1
- package/cjs/ParseResult.cjs +1 -1
- package/cjs/Position.cjs +1 -1
- package/cjs/index.cjs +3 -4
- package/cjs/json/nodes/JsonArray.cjs +1 -1
- package/cjs/json/nodes/JsonDocument.cjs +1 -1
- package/cjs/json/nodes/JsonEscapeSequence.cjs +1 -1
- package/cjs/json/nodes/JsonFalse.cjs +1 -1
- package/cjs/json/nodes/JsonKey.cjs +1 -1
- package/cjs/json/nodes/JsonNode.cjs +1 -1
- package/cjs/json/nodes/JsonNull.cjs +1 -1
- package/cjs/json/nodes/JsonNumber.cjs +1 -1
- package/cjs/json/nodes/JsonObject.cjs +1 -1
- package/cjs/json/nodes/JsonProperty.cjs +1 -1
- package/cjs/json/nodes/JsonString.cjs +1 -1
- package/cjs/json/nodes/JsonStringContent.cjs +1 -1
- package/cjs/json/nodes/JsonTrue.cjs +1 -1
- package/cjs/json/nodes/JsonValue.cjs +1 -1
- package/cjs/predicates.cjs +1 -1
- package/cjs/traversal/visitor.cjs +1 -1
- package/cjs/yaml/errors/YamlTagError.cjs +1 -1
- package/cjs/yaml/nodes/YamlAlias.cjs +1 -1
- package/cjs/yaml/nodes/YamlAnchor.cjs +1 -1
- package/cjs/yaml/nodes/YamlCollection.cjs +1 -1
- package/cjs/yaml/nodes/YamlComment.cjs +1 -1
- package/cjs/yaml/nodes/YamlDirective.cjs +1 -1
- package/cjs/yaml/nodes/YamlDocument.cjs +1 -1
- package/cjs/yaml/nodes/YamlKeyValuePair.cjs +1 -1
- package/cjs/yaml/nodes/YamlMapping.cjs +1 -1
- package/cjs/yaml/nodes/YamlNode.cjs +1 -1
- package/cjs/yaml/nodes/YamlScalar.cjs +1 -1
- package/cjs/yaml/nodes/YamlSequence.cjs +1 -1
- package/cjs/yaml/nodes/YamlStream.cjs +1 -1
- package/cjs/yaml/nodes/YamlStyle.cjs +1 -1
- package/cjs/yaml/nodes/YamlTag.cjs +1 -1
- package/cjs/yaml/schemas/ScalarTag.cjs +1 -1
- package/cjs/yaml/schemas/Tag.cjs +1 -1
- package/cjs/yaml/schemas/failsafe/GenericMapping.cjs +1 -1
- package/cjs/yaml/schemas/failsafe/GenericSequence.cjs +1 -1
- package/cjs/yaml/schemas/failsafe/GenericString.cjs +1 -1
- package/cjs/yaml/schemas/failsafe/index.cjs +2 -2
- package/cjs/yaml/schemas/json/Boolean.cjs +1 -1
- package/cjs/yaml/schemas/json/FloatingPoint.cjs +1 -1
- package/cjs/yaml/schemas/json/Integer.cjs +1 -1
- package/cjs/yaml/schemas/json/Null.cjs +1 -1
- package/cjs/yaml/schemas/json/index.cjs +2 -2
- package/dist/apidom-ast.browser.js +798 -1896
- 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/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/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/traversal/{visitor.js → visitor.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
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isNodeType } from "../../predicates.
|
1
|
+
import { isNodeType } from "../../predicates.mjs";
|
2
2
|
export const isDocument = isNodeType.bind(undefined, 'document');
|
3
3
|
export const isString = isNodeType.bind(undefined, 'string');
|
4
4
|
export const isFalse = isNodeType.bind(undefined, 'false');
|
@@ -1,13 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import YamlSchemaError from "./YamlSchemaError.js";
|
1
|
+
import YamlSchemaError from "./YamlSchemaError.mjs";
|
3
2
|
class YamlTagError extends YamlSchemaError {
|
4
3
|
constructor(message, structuredOptions) {
|
5
4
|
super(message, structuredOptions);
|
6
|
-
_defineProperty(this, "specificTagName", void 0);
|
7
|
-
_defineProperty(this, "explicitTagName", void 0);
|
8
|
-
_defineProperty(this, "tagKind", void 0);
|
9
|
-
_defineProperty(this, "tagPosition", void 0);
|
10
|
-
_defineProperty(this, "nodeCanonicalContent", void 0);
|
11
5
|
if (typeof structuredOptions !== 'undefined') {
|
12
6
|
this.specificTagName = structuredOptions.specificTagName;
|
13
7
|
this.explicitTagName = structuredOptions.explicitTagName;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import stampit from 'stampit';
|
2
|
-
import Node from "../../Node.
|
3
|
-
import YamlStyleModel from "./YamlStyle.
|
4
|
-
import { isScalar, isMapping, isSequence, isAlias } from "./predicates.
|
2
|
+
import Node from "../../Node.mjs";
|
3
|
+
import YamlStyleModel from "./YamlStyle.mjs";
|
4
|
+
import { isScalar, isMapping, isSequence, isAlias } from "./predicates.mjs";
|
5
5
|
const YamlKeyValuePair = stampit(Node, YamlStyleModel, {
|
6
6
|
statics: {
|
7
7
|
type: 'keyValuePair'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import stampit from 'stampit';
|
2
|
-
import YamlCollection from "./YamlCollection.
|
3
|
-
import { isKeyValuePair } from "./predicates.
|
2
|
+
import YamlCollection from "./YamlCollection.mjs";
|
3
|
+
import { isKeyValuePair } from "./predicates.mjs";
|
4
4
|
const YamlMapping = stampit(YamlCollection, {
|
5
5
|
statics: {
|
6
6
|
type: 'mapping'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import stampit from 'stampit';
|
2
|
-
import YamlCollection from "./YamlCollection.
|
3
|
-
import { isMapping, isScalar, isSequence, isAlias } from "./predicates.
|
2
|
+
import YamlCollection from "./YamlCollection.mjs";
|
3
|
+
import { isMapping, isScalar, isSequence, isAlias } from "./predicates.mjs";
|
4
4
|
const YamlSequence = stampit(YamlCollection, {
|
5
5
|
statics: {
|
6
6
|
type: 'sequence'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import stampit from 'stampit';
|
2
|
-
import Node from "../../Node.
|
3
|
-
import { isComment, isDocument } from "./predicates.
|
2
|
+
import Node from "../../Node.mjs";
|
3
|
+
import { isComment, isDocument } from "./predicates.mjs";
|
4
4
|
const YamlStream = stampit(Node, {
|
5
5
|
statics: {
|
6
6
|
type: 'stream'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { isNodeType } from "../../predicates.
|
1
|
+
import { isNodeType } from "../../predicates.mjs";
|
2
2
|
export const isStream = isNodeType.bind(undefined, 'stream');
|
3
3
|
export const isDocument = isNodeType.bind(undefined, 'document');
|
4
4
|
export const isMapping = isNodeType.bind(undefined, 'mapping');
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import stampit from 'stampit';
|
2
|
-
import { formatFlowPlain, formatFlowSingleQuoted, formatFlowDoubleQuoted, formatBlockLiteral, formatBlockFolded } from "./canonical-format.
|
3
|
-
import { YamlStyle } from "../nodes/YamlStyle.
|
4
|
-
import { YamlNodeKind } from "../nodes/YamlTag.
|
2
|
+
import { formatFlowPlain, formatFlowSingleQuoted, formatFlowDoubleQuoted, formatBlockLiteral, formatBlockFolded } from "./canonical-format.mjs";
|
3
|
+
import { YamlStyle } from "../nodes/YamlStyle.mjs";
|
4
|
+
import { YamlNodeKind } from "../nodes/YamlTag.mjs";
|
5
5
|
const ScalarTag = stampit({
|
6
6
|
methods: {
|
7
7
|
test(node) {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import stampit from 'stampit';
|
2
|
-
import Tag from "../Tag.
|
3
|
-
import { YamlNodeKind } from "../../nodes/YamlTag.
|
2
|
+
import Tag from "../Tag.mjs";
|
3
|
+
import { YamlNodeKind } from "../../nodes/YamlTag.mjs";
|
4
4
|
const GenericMapping = stampit(Tag, {
|
5
5
|
statics: {
|
6
6
|
uri: 'tag:yaml.org,2002:map'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import stampit from 'stampit';
|
2
|
-
import Tag from "../Tag.
|
3
|
-
import { YamlNodeKind } from "../../nodes/YamlTag.
|
2
|
+
import Tag from "../Tag.mjs";
|
3
|
+
import { YamlNodeKind } from "../../nodes/YamlTag.mjs";
|
4
4
|
const GenericSequence = stampit(Tag, {
|
5
5
|
statics: {
|
6
6
|
uri: 'tag:yaml.org,2002:seq'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { clone } from 'ramda';
|
2
2
|
import stampit from 'stampit';
|
3
|
-
import YamlTagError from "../../errors/YamlTagError.
|
4
|
-
import { YamlNodeKind } from "../../nodes/YamlTag.
|
5
|
-
import GenericMapping from "./GenericMapping.
|
6
|
-
import GenericSequence from "./GenericSequence.
|
7
|
-
import GenericString from "./GenericString.
|
8
|
-
import ScalarTag from "../ScalarTag.
|
3
|
+
import YamlTagError from "../../errors/YamlTagError.mjs";
|
4
|
+
import { YamlNodeKind } from "../../nodes/YamlTag.mjs";
|
5
|
+
import GenericMapping from "./GenericMapping.mjs";
|
6
|
+
import GenericSequence from "./GenericSequence.mjs";
|
7
|
+
import GenericString from "./GenericString.mjs";
|
8
|
+
import ScalarTag from "../ScalarTag.mjs";
|
9
9
|
const FailsafeSchema = stampit({
|
10
10
|
props: {
|
11
11
|
tags: [],
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import stampit from 'stampit';
|
2
|
-
import FailsafeSchema from "../failsafe/index.
|
3
|
-
import Boolean from "./Boolean.
|
4
|
-
import FloatingPoint from "./FloatingPoint.
|
5
|
-
import Integer from "./Integer.
|
6
|
-
import Null from "./Null.
|
7
|
-
import { YamlNodeKind } from "../../nodes/YamlTag.
|
8
|
-
import GenericSequence from "../failsafe/GenericSequence.
|
9
|
-
import GenericMapping from "../failsafe/GenericMapping.
|
2
|
+
import FailsafeSchema from "../failsafe/index.mjs";
|
3
|
+
import Boolean from "./Boolean.mjs";
|
4
|
+
import FloatingPoint from "./FloatingPoint.mjs";
|
5
|
+
import Integer from "./Integer.mjs";
|
6
|
+
import Null from "./Null.mjs";
|
7
|
+
import { YamlNodeKind } from "../../nodes/YamlTag.mjs";
|
8
|
+
import GenericSequence from "../failsafe/GenericSequence.mjs";
|
9
|
+
import GenericMapping from "../failsafe/GenericMapping.mjs";
|
10
10
|
const JsonSchema = stampit(FailsafeSchema, {
|
11
11
|
init() {
|
12
12
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@swagger-api/apidom-ast",
|
3
|
-
"version": "0.76.
|
3
|
+
"version": "0.76.2",
|
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.76.
|
45
|
+
"@swagger-api/apidom-error": "^0.76.2",
|
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": "8c6c02f813a663cfaf0ac0963f2b4fd25b8dffe8"
|
63
63
|
}
|
/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
|
File without changes
|