@swagger-api/apidom-json-pointer 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.
@@ -1,15 +1,8 @@
1
- import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
2
1
  import { hasElementSourceMap, toValue } from '@swagger-api/apidom-core';
3
- import JsonPointerError from "./JsonPointerError.js";
2
+ import JsonPointerError from "./JsonPointerError.mjs";
4
3
  class EvaluationJsonPointerError extends JsonPointerError {
5
4
  constructor(message, structuredOptions) {
6
5
  super(message, structuredOptions);
7
- _defineProperty(this, "pointer", void 0);
8
- _defineProperty(this, "tokens", void 0);
9
- _defineProperty(this, "failedToken", void 0);
10
- _defineProperty(this, "failedTokenPosition", void 0);
11
- _defineProperty(this, "element", void 0);
12
- _defineProperty(this, "elementSourceMap", void 0);
13
6
  if (typeof structuredOptions !== 'undefined') {
14
7
  this.pointer = structuredOptions.pointer;
15
8
  if (Array.isArray(structuredOptions.tokens)) {
@@ -1,9 +1,7 @@
1
- import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
2
- import JsonPointerError from "./JsonPointerError.js";
1
+ import JsonPointerError from "./JsonPointerError.mjs";
3
2
  class InvalidJsonPointerError extends JsonPointerError {
4
3
  constructor(message, structuredOptions) {
5
4
  super(message, structuredOptions);
6
- _defineProperty(this, "pointer", void 0);
7
5
  if (typeof structuredOptions !== 'undefined') {
8
6
  this.pointer = structuredOptions.pointer;
9
7
  }
@@ -1,7 +1,7 @@
1
1
  import { isInteger } from 'ramda-adjunct';
2
2
  import { isObjectElement, isArrayElement } from '@swagger-api/apidom-core';
3
- import parse from "./parse.js";
4
- import EvaluationJsonPointerError from "./errors/EvaluationJsonPointerError.js"; // evaluates JSON Pointer against ApiDOM fragment
3
+ import parse from "./parse.mjs";
4
+ import EvaluationJsonPointerError from "./errors/EvaluationJsonPointerError.mjs"; // evaluates JSON Pointer against ApiDOM fragment
5
5
  const evaluate = (pointer, element) => {
6
6
  let tokens;
7
7
  try {
package/es/index.mjs ADDED
@@ -0,0 +1,9 @@
1
+ export { default as JsonPointerError } from "./errors/JsonPointerError.mjs";
2
+ export { default as InvalidJsonPointerError } from "./errors/InvalidJsonPointerError.mjs";
3
+ export { default as CompilationJsonPointerError } from "./errors/CompilationJsonPointerError.mjs";
4
+ export { default as EvaluationJsonPointerError } from "./errors/EvaluationJsonPointerError.mjs";
5
+ export { default as escape } from "./escape.mjs";
6
+ export { default as unescape } from "./unescape.mjs";
7
+ export { default as parse, uriToPointer } from "./parse.mjs";
8
+ export { default as compile } from "./compile.mjs";
9
+ export { default as evaluate } from "./evaluate.mjs";
@@ -1,7 +1,7 @@
1
1
  import { map, pipe, split, startsWith, tail } from 'ramda';
2
2
  import { isEmptyString, trimCharsStart } from 'ramda-adjunct';
3
- import unescape from "./unescape.js";
4
- import InvalidJsonPointerError from "./errors/InvalidJsonPointerError.js"; // parse :: String -> String[]
3
+ import unescape from "./unescape.mjs";
4
+ import InvalidJsonPointerError from "./errors/InvalidJsonPointerError.mjs"; // parse :: String -> String[]
5
5
  const parse = pointer => {
6
6
  if (isEmptyString(pointer)) {
7
7
  return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swagger-api/apidom-json-pointer",
3
- "version": "0.76.1",
3
+ "version": "0.77.0",
4
4
  "description": "Evaluate JSON Pointer 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.js",
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 BROWSERSLIST_ENV=production webpack --config config/webpack/browser.config.js --progress",
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,8 +38,8 @@
38
38
  "license": "Apache-2.0",
39
39
  "dependencies": {
40
40
  "@babel/runtime-corejs3": "^7.20.7",
41
- "@swagger-api/apidom-core": "^0.76.1",
42
- "@swagger-api/apidom-error": "^0.76.1",
41
+ "@swagger-api/apidom-core": "^0.77.0",
42
+ "@swagger-api/apidom-error": "^0.77.0",
43
43
  "@types/ramda": "~0.29.3",
44
44
  "ramda": "~0.29.0",
45
45
  "ramda-adjunct": "^4.0.0"
@@ -54,5 +54,5 @@
54
54
  "README.md",
55
55
  "CHANGELOG.md"
56
56
  ],
57
- "gitHead": "33290820a04e212ffb88da36abaa8cc1fb06892f"
57
+ "gitHead": "cd8a9d7d2ea8bb8c335c23cd4632830a79c426c9"
58
58
  }
package/es/index.js DELETED
@@ -1,9 +0,0 @@
1
- export { default as JsonPointerError } from "./errors/JsonPointerError.js";
2
- export { default as InvalidJsonPointerError } from "./errors/InvalidJsonPointerError.js";
3
- export { default as CompilationJsonPointerError } from "./errors/CompilationJsonPointerError.js";
4
- export { default as EvaluationJsonPointerError } from "./errors/EvaluationJsonPointerError.js";
5
- export { default as escape } from "./escape.js";
6
- export { default as unescape } from "./unescape.js";
7
- export { default as parse, uriToPointer } from "./parse.js";
8
- export { default as compile } from "./compile.js";
9
- export { default as evaluate } from "./evaluate.js";
File without changes
File without changes