@swagger-api/apidom-parser-adapter-api-design-systems-yaml 0.68.1
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 +199 -0
- package/LICENSES/Apache-2.0.txt +202 -0
- package/LICENSES/MIT.txt +9 -0
- package/NOTICE +57 -0
- package/README.md +92 -0
- package/cjs/adapter.cjs +35 -0
- package/cjs/media-types.cjs +8 -0
- package/dist/apidom-parser-adapter-api-design-systems-yaml.browser.js +34609 -0
- package/dist/apidom-parser-adapter-api-design-systems-yaml.browser.min.js +2 -0
- package/dist/apidom-parser-adapter-api-design-systems-yaml.browser.min.js.LICENSE.txt +6 -0
- package/dist/d396281e11774e0afa7a40d620779b6d.wasm +0 -0
- package/dist/fba0b3cc0d7ee926ea482deee298a5fe.wasm +0 -0
- package/es/adapter.js +23 -0
- package/es/media-types.js +3 -0
- package/package.json +59 -0
- package/types/dist.d.ts +12 -0
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@swagger-api/apidom-parser-adapter-api-design-systems-yaml",
|
|
3
|
+
"version": "0.68.1",
|
|
4
|
+
"description": "Parser adapter for parsing YAML documents into API Design Systems namespace.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"registry": "https://registry.npmjs.org"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"unpkg": "./dist/apidom-parser-adapter-api-design-systems-yaml.browser.min.js",
|
|
12
|
+
"main": "./cjs/adapter.cjs",
|
|
13
|
+
"exports": {
|
|
14
|
+
"types": "./types/dist.d.ts",
|
|
15
|
+
"import": "./es/adapter.js",
|
|
16
|
+
"require": "./cjs/adapter.cjs"
|
|
17
|
+
},
|
|
18
|
+
"types": "./types/dist.d.ts",
|
|
19
|
+
"scripts": {
|
|
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'",
|
|
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 BROWSERSLIST_ENV=production webpack --config config/webpack/browser.config.js --progress",
|
|
24
|
+
"lint": "eslint ./",
|
|
25
|
+
"lint:fix": "eslint ./ --fix",
|
|
26
|
+
"clean": "rimraf ./es ./cjs ./dist ./types",
|
|
27
|
+
"typescript:check-types": "tsc --noEmit",
|
|
28
|
+
"typescript:declaration": "tsc -p declaration.tsconfig.json && rollup -c config/rollup/types.dist.js",
|
|
29
|
+
"test": "cross-env NODE_ENV=test BABEL_ENV=cjs mocha",
|
|
30
|
+
"prepack": "copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .",
|
|
31
|
+
"postpack": "rimraf NOTICE LICENSES"
|
|
32
|
+
},
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/swagger-api/apidom.git"
|
|
36
|
+
},
|
|
37
|
+
"author": "Vladimir Gorej",
|
|
38
|
+
"license": "Apache-2.0",
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@babel/runtime-corejs3": "^7.20.7",
|
|
41
|
+
"@swagger-api/apidom-core": "^0.68.1",
|
|
42
|
+
"@swagger-api/apidom-ns-api-design-systems": "^0.68.1",
|
|
43
|
+
"@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.68.1",
|
|
44
|
+
"@types/ramda": "=0.28.23",
|
|
45
|
+
"ramda": "=0.28.0",
|
|
46
|
+
"ramda-adjunct": "=3.4.0"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"cjs/",
|
|
50
|
+
"dist/",
|
|
51
|
+
"es/",
|
|
52
|
+
"types/dist.d.ts",
|
|
53
|
+
"LICENSES",
|
|
54
|
+
"NOTICE",
|
|
55
|
+
"README.md",
|
|
56
|
+
"CHANGELOG.md"
|
|
57
|
+
],
|
|
58
|
+
"gitHead": "d2bc706671f1b9a593b8f0c5bca8c501ad0e4cff"
|
|
59
|
+
}
|
package/types/dist.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _swagger_api_apidom_core from '@swagger-api/apidom-core';
|
|
2
|
+
import { ParseResultElement } from '@swagger-api/apidom-core';
|
|
3
|
+
import { ApiDesignSystemsMediaTypes } from '@swagger-api/apidom-ns-api-design-systems';
|
|
4
|
+
|
|
5
|
+
declare const yamlMediaTypes: ApiDesignSystemsMediaTypes;
|
|
6
|
+
|
|
7
|
+
declare const detectionRegExp: RegExp;
|
|
8
|
+
declare const detect: (source: string) => Promise<boolean>;
|
|
9
|
+
declare const parse: (source: string, options?: Record<string, unknown>) => Promise<ParseResultElement>;
|
|
10
|
+
declare const namespace: _swagger_api_apidom_core.Namespace;
|
|
11
|
+
|
|
12
|
+
export { detect, detectionRegExp, yamlMediaTypes as mediaTypes, namespace, parse };
|