@redocly/respect-core 2.1.0 → 2.1.2

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,2 +1,3 @@
1
1
  export * from './evaluate.js';
2
+ export declare const parseRuntimeExpression: any;
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/runtime-expressions/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/runtime-expressions/index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,eAAO,MAAM,sBAAsB,KAAQ,CAAC"}
@@ -1,2 +1,5 @@
1
+ // @ts-expect-error - Generated PEG.js parser has no TypeScript definitions
2
+ import { parse } from './abnf-parser.js';
1
3
  export * from './evaluate.js';
4
+ export const parseRuntimeExpression = parse;
2
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/runtime-expressions/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/runtime-expressions/index.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,cAAc,eAAe,CAAC;AAC9B,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/modules/runtime-expressions/lint.ts"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,OAMhD"}
1
+ {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/modules/runtime-expressions/lint.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,OAMhD"}
@@ -1,9 +1,7 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- // @ts-ignore
3
- import { default as parser } from './abnf-parser.cjs';
1
+ import { parseRuntimeExpression } from './index.js';
4
2
  export function lintExpression(expression) {
5
3
  try {
6
- return parser.parse(expression);
4
+ return parseRuntimeExpression(expression);
7
5
  }
8
6
  catch (_error) {
9
7
  throw new Error(`Runtime expression is not valid: ${expression}`);
@@ -1 +1 @@
1
- {"version":3,"file":"lint.js","sourceRoot":"","sources":["../../../src/modules/runtime-expressions/lint.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,aAAa;AACb,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,UAAU,cAAc,CAAC,UAAkB;IAC/C,IAAI,CAAC;QACH,OAAO,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAClC,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,oCAAoC,UAAU,EAAE,CAAC,CAAC;IACpE,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"lint.js","sourceRoot":"","sources":["../../../src/modules/runtime-expressions/lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD,MAAM,UAAU,cAAc,CAAC,UAAkB;IAC/C,IAAI,CAAC;QACH,OAAO,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAC5C,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QAChB,MAAM,IAAI,KAAK,CAAC,oCAAoC,UAAU,EAAE,CAAC,CAAC;IACpE,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/respect-core",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "API testing framework core",
5
5
  "type": "module",
6
6
  "types": "lib/index.d.ts",
@@ -39,7 +39,7 @@
39
39
  "@faker-js/faker": "^7.6.0",
40
40
  "@noble/hashes": "^1.8.0",
41
41
  "@redocly/ajv": "8.11.2",
42
- "@redocly/openapi-core": "2.1.0",
42
+ "@redocly/openapi-core": "2.1.2",
43
43
  "better-ajv-errors": "^1.2.0",
44
44
  "colorette": "^2.0.20",
45
45
  "jest-diff": "^29.3.1",