@swagger-api/apidom-json-path 1.0.0-alpha.0 → 1.0.0-alpha.10
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 +36 -0
- package/cjs/index.cjs +1 -0
- package/cjs/polyfills.cjs +25 -0
- package/dist/apidom-json-path.browser.js +1753 -652
- package/dist/apidom-json-path.browser.min.js +1 -1
- package/es/index.mjs +1 -0
- package/es/polyfills.mjs +21 -0
- package/package.json +6 -6
package/es/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./polyfills.mjs";
|
|
1
2
|
export { default as EvaluationJsonPathError } from "./errors/EvaluationJsonPathError.mjs";
|
|
2
3
|
export { default as MultiEvaluationJsonPathError } from "./errors/MultiEvaluationJsonPathError.mjs";
|
|
3
4
|
export { default as evaluate } from "./evaluate.mjs";
|
package/es/polyfills.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _replaceAllInstanceProperty from "@babel/runtime-corejs3/core-js/instance/replace-all";
|
|
2
|
+
/* eslint-disable import/extensions */
|
|
3
|
+
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import hasOwnPonyfill from 'core-js-pure/actual/object/has-own.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import replaceAllPonyfill from 'core-js-pure/actual/string/replace-all.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* These polyfills do maintain compatibility with Node.js >= 12.20.0
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
if (!Object.hasOwn) {
|
|
14
|
+
Object.hasOwn = hasOwnPonyfill;
|
|
15
|
+
}
|
|
16
|
+
if (!_replaceAllInstanceProperty(String.prototype)) {
|
|
17
|
+
// eslint-disable-next-line no-extend-native
|
|
18
|
+
String.prototype.replaceAll = function replaceAll(search, replacement) {
|
|
19
|
+
return replaceAllPonyfill(this, search, replacement);
|
|
20
|
+
};
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-json-path",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.10",
|
|
4
4
|
"description": "Evaluate JSONPath expressions against ApiDOM.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"license": "Apache-2.0",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime-corejs3": "^7.20.7",
|
|
41
|
-
"@swagger-api/apidom-core": "^1.0.0-alpha.
|
|
42
|
-
"@swagger-api/apidom-error": "^0.
|
|
43
|
-
"@swagger-api/apidom-json-pointer": "^1.0.0-alpha.
|
|
44
|
-
"jsonpath-plus": "^
|
|
41
|
+
"@swagger-api/apidom-core": "^1.0.0-alpha.10",
|
|
42
|
+
"@swagger-api/apidom-error": "^1.0.0-alpha.10",
|
|
43
|
+
"@swagger-api/apidom-json-pointer": "^1.0.0-alpha.10",
|
|
44
|
+
"jsonpath-plus": "^10.0.6"
|
|
45
45
|
},
|
|
46
46
|
"files": [
|
|
47
47
|
"cjs/",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"README.md",
|
|
54
54
|
"CHANGELOG.md"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "0fbbdb5d453d7a4661f62ce5e4b690d279e50b74"
|
|
57
57
|
}
|