@redocly/openapi-core 0.0.0-snapshot.1784277149 → 0.0.0-snapshot.1784280563
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/js-yaml/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/js-yaml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,SAAS,CAAC;AAUjB,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,OAAO,WAAW,KAAG,OAS3D,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,KAAK,GAAG,EAAE,OAAO,WAAW,KAAG,MAAyB,CAAC"}
|
package/lib/js-yaml/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { CORE_SCHEMA, mergeTag, binaryTag, omapTag, pairsTag, setTag, loadAll, dump, YAMLException, } from 'js-yaml';
|
|
2
|
+
const DEFAULT_SCHEMA_WITHOUT_TIMESTAMP = CORE_SCHEMA.withTags(mergeTag, binaryTag, omapTag, pairsTag, setTag);
|
|
3
|
+
export const parseYaml = (str, opts) => {
|
|
4
|
+
const documents = loadAll(str, { schema: DEFAULT_SCHEMA_WITHOUT_TIMESTAMP, ...opts });
|
|
5
|
+
if (documents.length === 0) {
|
|
6
|
+
return str.trim() === '' ? undefined : null;
|
|
7
|
+
}
|
|
8
|
+
if (documents.length > 1) {
|
|
9
|
+
throw new YAMLException('expected a single document in the stream, but found more');
|
|
10
|
+
}
|
|
11
|
+
return documents[0];
|
|
12
|
+
};
|
|
10
13
|
export const stringifyYaml = (obj, opts) => dump(obj, opts);
|
|
11
14
|
//# sourceMappingURL=index.js.map
|
package/lib/js-yaml/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/js-yaml/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/js-yaml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,IAAI,EACJ,aAAa,GAGd,MAAM,SAAS,CAAC;AAEjB,MAAM,gCAAgC,GAAG,WAAW,CAAC,QAAQ,CAC3D,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,CACP,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,GAAW,EAAE,IAAkB,EAAW,EAAE;IACpE,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,gCAAgC,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;IACtF,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC;IAC9C,CAAC;IACD,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,aAAa,CAAC,0DAA0D,CAAC,CAAC;IACtF,CAAC;IACD,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAQ,EAAE,IAAkB,EAAU,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-core",
|
|
3
|
-
"version": "0.0.0-snapshot.
|
|
3
|
+
"version": "0.0.0-snapshot.1784280563",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -53,20 +53,19 @@
|
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@redocly/ajv": "^8.18.1",
|
|
56
|
-
"@redocly/config": "^0.
|
|
56
|
+
"@redocly/config": "^0.51.0",
|
|
57
57
|
"ajv": "npm:@redocly/ajv@8.18.1",
|
|
58
58
|
"ajv-formats": "^3.0.1",
|
|
59
59
|
"colorette": "^1.2.0",
|
|
60
60
|
"graphql": "^16.14.1",
|
|
61
61
|
"js-levenshtein": "^1.1.6",
|
|
62
|
-
"js-yaml": "^
|
|
62
|
+
"js-yaml": "^5.2.1",
|
|
63
63
|
"picomatch": "^4.0.4",
|
|
64
64
|
"pluralize": "^8.0.0",
|
|
65
65
|
"yaml-ast-parser": "0.0.43"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/js-levenshtein": "^1.1.0",
|
|
69
|
-
"@types/js-yaml": "^4.0.3",
|
|
70
69
|
"@types/picomatch": "^4.0.2",
|
|
71
70
|
"@types/pluralize": "^0.0.29",
|
|
72
71
|
"json-schema-to-ts": "^3.1.0",
|