@swagger-api/apidom-json-path 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 +10 -0
- package/cjs/errors/EvaluationJsonPathError.cjs +2 -3
- package/cjs/errors/JsonPathError.cjs +1 -2
- package/cjs/errors/MultiEvaluationJsonPathError.cjs +2 -3
- package/cjs/evaluate-multi.cjs +2 -3
- package/cjs/evaluate.cjs +2 -3
- package/cjs/index.cjs +1 -1
- package/dist/apidom-json-path.browser.js +14986 -18908
- package/dist/apidom-json-path.browser.min.js +1 -1
- package/es/errors/{EvaluationJsonPathError.js → EvaluationJsonPathError.mjs} +1 -5
- package/es/errors/{MultiEvaluationJsonPathError.js → MultiEvaluationJsonPathError.mjs} +1 -5
- package/es/{evaluate-multi.js → evaluate-multi.mjs} +1 -1
- package/es/{evaluate.js → evaluate.mjs} +1 -1
- package/es/index.mjs +4 -0
- package/package.json +8 -8
- package/es/index.js +0 -4
- /package/es/errors/{JsonPathError.js → JsonPathError.mjs} +0 -0
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
2
1
|
import { hasElementSourceMap, toValue } from '@swagger-api/apidom-core';
|
|
3
|
-
import JsonPathError from "./JsonPathError.
|
|
2
|
+
import JsonPathError from "./JsonPathError.mjs";
|
|
4
3
|
class EvaluationJsonPathError extends JsonPathError {
|
|
5
4
|
constructor(message, structuredOptions) {
|
|
6
5
|
super(message, structuredOptions);
|
|
7
|
-
_defineProperty(this, "path", void 0);
|
|
8
|
-
_defineProperty(this, "element", void 0);
|
|
9
|
-
_defineProperty(this, "elementSourceMap", void 0);
|
|
10
6
|
if (typeof structuredOptions !== 'undefined') {
|
|
11
7
|
this.path = structuredOptions.path;
|
|
12
8
|
this.element = structuredOptions.element.element;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
2
1
|
import { hasElementSourceMap, toValue } from '@swagger-api/apidom-core';
|
|
3
|
-
import JsonPathError from "./JsonPathError.
|
|
2
|
+
import JsonPathError from "./JsonPathError.mjs";
|
|
4
3
|
class MultiEvaluationJsonPathError extends JsonPathError {
|
|
5
4
|
constructor(message, structuredOptions) {
|
|
6
5
|
super(message, structuredOptions);
|
|
7
|
-
_defineProperty(this, "paths", void 0);
|
|
8
|
-
_defineProperty(this, "element", void 0);
|
|
9
|
-
_defineProperty(this, "elementSourceMap", void 0);
|
|
10
6
|
if (typeof structuredOptions !== 'undefined') {
|
|
11
7
|
this.paths = structuredOptions.paths;
|
|
12
8
|
this.element = structuredOptions.element.element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSONPath } from 'jsonpath-plus';
|
|
2
2
|
import { toValue } from '@swagger-api/apidom-core';
|
|
3
3
|
import { evaluate as jsonPointerEvaluate } from '@swagger-api/apidom-json-pointer';
|
|
4
|
-
import MultiEvaluationJsonPathError from "./errors/MultiEvaluationJsonPathError.
|
|
4
|
+
import MultiEvaluationJsonPathError from "./errors/MultiEvaluationJsonPathError.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Evaluates multiple JSONPaths on ApiDOM element.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSONPath } from 'jsonpath-plus';
|
|
2
2
|
import { toValue } from '@swagger-api/apidom-core';
|
|
3
3
|
import { evaluate as jsonPointerEvaluate } from '@swagger-api/apidom-json-pointer';
|
|
4
|
-
import EvaluationJsonPathError from "./errors/EvaluationJsonPathError.
|
|
4
|
+
import EvaluationJsonPathError from "./errors/EvaluationJsonPathError.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Evaluates single JSONPath on ApiDOM element.
|
|
7
7
|
*/
|
package/es/index.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as EvaluationJsonPathError } from "./errors/EvaluationJsonPathError.mjs";
|
|
2
|
+
export { default as MultiEvaluationJsonPathError } from "./errors/MultiEvaluationJsonPathError.mjs";
|
|
3
|
+
export { default as evaluate } from "./evaluate.mjs";
|
|
4
|
+
export { default as evaluateMulti } from "./evaluate-multi.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-json-path",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.77.0",
|
|
4
4
|
"description": "Evaluate JSONPath expressions against ApiDOM.",
|
|
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",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"license": "Apache-2.0",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime-corejs3": "^7.20.7",
|
|
41
|
-
"@swagger-api/apidom-core": "^0.
|
|
42
|
-
"@swagger-api/apidom-error": "^0.
|
|
43
|
-
"@swagger-api/apidom-json-pointer": "^0.
|
|
41
|
+
"@swagger-api/apidom-core": "^0.77.0",
|
|
42
|
+
"@swagger-api/apidom-error": "^0.77.0",
|
|
43
|
+
"@swagger-api/apidom-json-pointer": "^0.77.0",
|
|
44
44
|
"jsonpath-plus": "^7.2.0"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"README.md",
|
|
54
54
|
"CHANGELOG.md"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "cd8a9d7d2ea8bb8c335c23cd4632830a79c426c9"
|
|
57
57
|
}
|
package/es/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { default as EvaluationJsonPathError } from "./errors/EvaluationJsonPathError.js";
|
|
2
|
-
export { default as MultiEvaluationJsonPathError } from "./errors/MultiEvaluationJsonPathError.js";
|
|
3
|
-
export { default as evaluate } from "./evaluate.js";
|
|
4
|
-
export { default as evaluateMulti } from "./evaluate-multi.js";
|
|
File without changes
|