json-p3 0.1.0 → 0.2.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.
@@ -100,6 +100,10 @@ export declare class JSONPatch {
100
100
  * @param ops -
101
101
  */
102
102
  constructor(ops?: OpObject[]);
103
+ /**
104
+ * @returns an iterator over ops in this patch.
105
+ */
106
+ [Symbol.iterator](): Iterator<OpObject>;
103
107
  /**
104
108
  *
105
109
  * @param path -
@@ -1,36 +1,72 @@
1
1
  import { FilterExpression } from "./expression";
2
2
  import { FilterFunction } from "./functions/function";
3
- import { JSONPathNodeList } from "./node";
3
+ import { JSONPathNode, JSONPathNodeList } from "./node";
4
4
  import { JSONPath } from "./path";
5
5
  import { Token } from "./token";
6
6
  import { JSONValue } from "../types";
7
7
  /**
8
- *
8
+ * JSONPath environment options. The defaults are in compliance with JSONPath
9
+ * standards.
9
10
  */
10
11
  export type JSONPathEnvironmentOptions = {
11
12
  /**
13
+ * Indicates if the environment should to be strict about its compliance with
14
+ * JSONPath standards.
12
15
  *
16
+ * Defaults to `true`. Setting `strict` to `false` currently has no effect.
17
+ * If/when we add non-standard features, the environment's strictness will
18
+ * control their availability.
13
19
  */
14
- strict: boolean;
20
+ strict?: boolean;
15
21
  /**
16
- *
22
+ * The maximum number allowed when indexing or slicing an array. Defaults to
23
+ * 2**53 -1.
17
24
  */
18
- maxIntIndex: number;
25
+ maxIntIndex?: number;
19
26
  /**
20
- *
27
+ * The minimum number allowed when indexing or slicing an array. Defaults to
28
+ * -(2**53) -1.
29
+ */
30
+ minIntIndex?: number;
31
+ /**
32
+ * The maximum number of objects and/or arrays the recursive descent selector
33
+ * can visit before a `JSONPathRecursionLimitError` is thrown.
21
34
  */
22
- minIntIndex: number;
35
+ maxRecursionDepth?: number;
23
36
  };
24
- export declare const defaultOptions: JSONPathEnvironmentOptions;
25
37
  /**
26
38
  *
27
39
  */
28
40
  export declare class JSONPathEnvironment {
29
- readonly options: JSONPathEnvironmentOptions;
30
41
  /**
42
+ * Indicates if the environment should to be strict about its compliance with
43
+ * JSONPath standards.
31
44
  *
45
+ * Defaults to `true`. Setting `strict` to `false` currently has no effect.
46
+ * If/when we add non-standard features, the environment's strictness will
47
+ * control their availability.
48
+ */
49
+ readonly strict: boolean;
50
+ /**
51
+ * The maximum number allowed when indexing or slicing an array. Defaults to
52
+ * 2**53 -1.
53
+ */
54
+ readonly maxIntIndex: number;
55
+ /**
56
+ * The minimum number allowed when indexing or slicing an array. Defaults to
57
+ * -(2**53) -1.
58
+ */
59
+ readonly minIntIndex: number;
60
+ /**
61
+ * The maximum number of objects and/or arrays the recursive descent selector
62
+ * can visit before a `JSONPathRecursionLimitError` is thrown.
63
+ */
64
+ readonly maxRecursionDepth: number;
65
+ /**
66
+ * A map of function names to objects implementing the {@link FilterFunction}
67
+ * interface. You are free to set or delete custom filter functions directly.
32
68
  */
33
- filterRegister: Map<string, FilterFunction>;
69
+ functionRegister: Map<string, FilterFunction>;
34
70
  private parser;
35
71
  /**
36
72
  *
@@ -50,6 +86,16 @@ export declare class JSONPathEnvironment {
50
86
  * @returns
51
87
  */
52
88
  query(path: string, value: JSONValue): JSONPathNodeList;
89
+ /**
90
+ * Return a {@link JSONPathNode} instance for the first object found in
91
+ * _value_ matching _path_.
92
+ *
93
+ * @param path - A JSONPath query.
94
+ * @param value - JSON-like data to which the query _path_ will be applied.
95
+ * @returns The first node in _value_ matching _path_, or `undefined` if
96
+ * there are no matches.
97
+ */
98
+ match(path: string, value: JSONValue): JSONPathNode | undefined;
53
99
  protected setupFilterFunctions(): void;
54
100
  /**
55
101
  *
@@ -48,3 +48,11 @@ export declare class JSONPathSyntaxError extends JSONPathError {
48
48
  readonly token: Token;
49
49
  constructor(message: string, token: Token);
50
50
  }
51
+ /**
52
+ * Error thrown when the maximum recursion depth is reached.
53
+ */
54
+ export declare class JSONPathRecursionLimitError extends JSONPathError {
55
+ readonly message: string;
56
+ readonly token: Token;
57
+ constructor(message: string, token: Token);
58
+ }
@@ -96,3 +96,4 @@ export declare class FunctionExtension extends FilterExpression {
96
96
  evaluate(context: FilterContext): unknown;
97
97
  toString(): string;
98
98
  }
99
+ export declare function compare(left: unknown, operator: string, right: unknown): boolean;
@@ -1,6 +1,6 @@
1
1
  import { JSONValue } from "../types";
2
2
  import { JSONPathEnvironment } from "./environment";
3
- import { JSONPathNodeList } from "./node";
3
+ import { JSONPathNode, JSONPathNodeList } from "./node";
4
4
  import { JSONPath } from "./path";
5
5
  export { JSONPathEnvironment } from "./environment";
6
6
  export type { JSONPathEnvironmentOptions } from "./environment";
@@ -12,7 +12,7 @@ export * as expressions from "./expression";
12
12
  export * as functions from "./functions";
13
13
  export { FunctionExpressionType } from "./functions";
14
14
  export type { FilterFunction } from "./functions";
15
- export { JSONPathError, JSONPathIndexError, JSONPathLexerError, JSONPathSyntaxError, JSONPathTypeError, } from "./errors";
15
+ export { JSONPathError, JSONPathIndexError, JSONPathLexerError, JSONPathSyntaxError, JSONPathTypeError, JSONPathRecursionLimitError, } from "./errors";
16
16
  export { Nothing } from "./types";
17
17
  export type { JSONPathValue, FilterContext } from "./types";
18
18
  export declare const DEFAULT_ENVIRONMENT: JSONPathEnvironment;
@@ -44,3 +44,13 @@ export declare function query(path: string, value: JSONValue): JSONPathNodeList;
44
44
  * used in an invalid way.
45
45
  */
46
46
  export declare function compile(path: string): JSONPath;
47
+ /**
48
+ * Return a {@link JSONPathNode} instance for the first object found in
49
+ * _value_ matching _path_.
50
+ *
51
+ * @param path - A JSONPath query.
52
+ * @param value - JSON-like data to which the query _path_ will be applied.
53
+ * @returns The first node in _value_ matching _path_, or `undefined` if
54
+ * there are no matches.
55
+ */
56
+ export declare function match(path: string, value: JSONValue): JSONPathNode | undefined;
@@ -1,5 +1,5 @@
1
1
  import { JSONPathEnvironment } from "./environment";
2
- import { JSONPathNodeList } from "./node";
2
+ import { JSONPathNode, JSONPathNodeList } from "./node";
3
3
  import { JSONPathSelector } from "./selectors";
4
4
  import { JSONValue } from "../types";
5
5
  /**
@@ -20,6 +20,15 @@ export declare class JSONPath {
20
20
  * @returns
21
21
  */
22
22
  query(value: JSONValue): JSONPathNodeList;
23
+ /**
24
+ * Return a {@link JSONPathNode} instance for the first object found in
25
+ * _value_ matching this query.
26
+ *
27
+ * @param value - JSON-like data to which this query will be applied.
28
+ * @returns The first node in _value_ matching this query, or `undefined` if
29
+ * there are no matches.
30
+ */
31
+ match(value: JSONValue): JSONPathNode | undefined;
23
32
  /**
24
33
  *
25
34
  */
@@ -55,7 +55,6 @@ export declare class SliceSelector extends JSONPathSelector {
55
55
  resolve(nodes: JSONPathNodeList): JSONPathNodeList;
56
56
  toString(): string;
57
57
  private checkRange;
58
- private normalizedIndex;
59
58
  private slice;
60
59
  }
61
60
  export declare class WildcardSelector extends JSONPathSelector {
@@ -5,22 +5,37 @@ export declare class JSONPointerError extends Error {
5
5
  readonly message: string;
6
6
  constructor(message: string);
7
7
  }
8
+ /**
9
+ * Base class for JSON Pointer resolution errors.
10
+ */
8
11
  export declare class JSONPointerResolutionError extends JSONPointerError {
9
12
  readonly message: string;
10
13
  constructor(message: string);
11
14
  }
15
+ /**
16
+ * Error thrown due to an out of range index when resolving a JSON Pointer.
17
+ */
12
18
  export declare class JSONPointerIndexError extends JSONPointerResolutionError {
13
19
  readonly message: string;
14
20
  constructor(message: string);
15
21
  }
22
+ /**
23
+ * Error thrown due to a missing property when resolving a JSON Pointer.
24
+ */
16
25
  export declare class JSONPointerKeyError extends JSONPointerResolutionError {
17
26
  readonly message: string;
18
27
  constructor(message: string);
19
28
  }
29
+ /**
30
+ * Error thrown due to invalid JSON Pointer syntax.
31
+ */
20
32
  export declare class JSONPointerSyntaxError extends JSONPointerError {
21
33
  readonly message: string;
22
34
  constructor(message: string);
23
35
  }
36
+ /**
37
+ * Error thrown when trying to resolve a property or index against a primitive value.
38
+ */
24
39
  export declare class JSONPointerTypeError extends JSONPointerResolutionError {
25
40
  readonly message: string;
26
41
  constructor(message: string);
@@ -1,6 +1,6 @@
1
1
  import { JSONValue } from "../types";
2
2
  import { MaybeJSONValue } from "./pointer";
3
- export { JSONPointer, UNDEFINED } from "./pointer";
3
+ export { JSONPointer, RelativeJSONPointer, UNDEFINED } from "./pointer";
4
4
  export type { MaybeJSONValue } from "./pointer";
5
5
  export { JSONPointerError, JSONPointerResolutionError, JSONPointerIndexError, JSONPointerKeyError, JSONPointerSyntaxError, JSONPointerTypeError, } from "./errors";
6
6
  /**
@@ -50,10 +50,12 @@ export declare class JSONPointer {
50
50
  private _join;
51
51
  /**
52
52
  * Join this pointer with _tokens_.
53
+ *
53
54
  * @param tokens - JSON Pointer strings, possibly without leading slashes.
54
55
  * If a token or "part" does have a leading slash, the previous pointer is
55
56
  * ignored and a new `JSONPointer` is created, then processing of the
56
57
  * remaining tokens continues.
58
+ *
57
59
  * @returns A new JSON Pointer that is the concatenation of all tokens or
58
60
  * "parts".
59
61
  */
@@ -72,4 +74,33 @@ export declare class JSONPointer {
72
74
  * If this pointer points to the document root, _this_ is returned.
73
75
  */
74
76
  parent(): JSONPointer;
77
+ to(rel: string | RelativeJSONPointer): JSONPointer;
78
+ }
79
+ /**
80
+ * A relative JSON Pointer.
81
+ *
82
+ * See https://www.ietf.org/id/draft-hha-relative-json-pointer-00.html
83
+ */
84
+ export declare class RelativeJSONPointer {
85
+ readonly origin: number;
86
+ readonly index: number;
87
+ readonly pointer: string | JSONPointer;
88
+ /**
89
+ *
90
+ * @param rel -
91
+ */
92
+ constructor(rel: string);
93
+ /**
94
+ *
95
+ * @returns
96
+ */
97
+ toString(): string;
98
+ /**
99
+ *
100
+ * @param pointer -
101
+ */
102
+ to(pointer: string | JSONPointer): JSONPointer;
103
+ protected parse(rel: string): [number, number, string | JSONPointer];
104
+ protected parseInt(s: string): number;
105
+ protected isIntLike(value: string | number | undefined): boolean;
75
106
  }
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2022.full.d.ts","../node_modules/tslib/tslib.d.ts","../src/types.ts","../src/deep_equals.ts","../src/path/token.ts","../src/path/errors.ts","../src/path/functions/function.ts","../src/pointer/errors.ts","../src/pointer/pointer.ts","../src/pointer/index.ts","../src/path/node.ts","../src/path/types.ts","../src/path/selectors.ts","../src/path/path.ts","../src/path/expression.ts","../src/path/functions/count.ts","../src/path/functions/length.ts","../src/path/lru_cache.ts","../src/path/functions/match.ts","../src/path/functions/search.ts","../src/path/functions/value.ts","../src/path/lex.ts","../src/path/parse.ts","../src/path/environment.ts","../src/path/functions/index.ts","../src/path/index.ts","../src/patch/errors.ts","../src/patch/patch.ts","../src/patch/index.ts","../src/index.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"1df2366de6650547b3dc1d7c4147355c0f6b4729c964e3839636fa418982d131","7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900",{"version":"e7090a8c9c744185adedc42bfbf2d44ecde699a41bda994df0e0bdf50f1887a3","signature":"8fb971e14ee748882eb39f19c049541c3a5944978f9bfde6b9b6a59cb4e7d03e"},{"version":"4678ace15cff1f5b0d70165cedf9a583c6f5a16a268a63045b4fe9817cfce084","signature":"2513d5bb1f4f9bc86ab56519a27b41445a9f5f060e5d5abe8f8d4b623e7194c0"},{"version":"a1dc8e874322f03d906d42d47ca8643b86cce6622e93edfd37e0c587f4dc2b0b","signature":"0485a2a81426be0d208698398a224e16e895f662f022e308fe39bfcc7d31128e"},{"version":"2ebc841fa819765d0b8aa352563a2fa46c36dc5e8741d90c92d53b190827607a","signature":"ce7208594ea996a770b1d39e2734a8b9b2989ace005077e236236272531e10ea"},{"version":"1656d694529d020456610597d43498686fe3a11e986dc33f1f9457e846e411ff","signature":"96397fcc8549ae1cc26e5380314a772ef519caed2dffd5bb7f670512868d7014"},{"version":"de4620aaea562e0a9eaedf6f1e9a46c67d56ff01791f348fccc3a33dea3baea7","signature":"4081e1bc81bd45021d34ce9d7de258defdde5de3b36f60fb482f14371158a45c"},{"version":"18be2c1b00e8c152bf232f48e4dae92def9396a6baca69ba93b8abe73cf18fdf","signature":"99848e539417643d9c6673baac80d0afcd673943624ba25b5693c3fd08430698"},{"version":"0d1cc6cabb1f59a7e2dfb89576f30536178b3d7ff179bc3fd351cd0265d4098d","signature":"eee0037270aa03773aba075af5afb5a5eead9ed1353062599f5949e7bfe540f9"},{"version":"7498d4fff2ff8951dc04fddf643612313282bdc8c85ba5ab14943a7762e34ec9","signature":"abe9c61138dffc34859df9859caf99fb8e68998907f56c9163dad024df79504d"},{"version":"b63f539330d9c30391b486a6be410e72d6b74c3bc7672fb59c99f34729bf339e","signature":"edbce83912ae8d0bca1dfe4840004b61d68987cc91efcf4dae132559ab6afc18"},{"version":"0d9b951097afe59238fa9a629385125bb03563f4cec0d6de6adbd48aeb9bdee4","signature":"4cde04624571d603d8c2316bd9fc4e80db681828f8433fa65c58c4b3ccf0a072"},{"version":"b7169bcece527e059167f319ea193b0007290c8c404a87efad5d56a58021b353","signature":"0621fedcc635962a2e15e17518c5b35b2c56aff3a32ae89574c8353253ef51c7"},{"version":"0dbe3e0e25a4cb0cda44e78c5d34003a9fe6ae9d13ba3c72d8d8321e1e4abf42","signature":"be61c0eaf607c108530fecb92b4934fed65524a717cff043972e3659e7eeb763"},{"version":"387bcfd3dfe23ce2a90da091e614f34215a2f649195722974cb5f475d9e4d293","signature":"7d049ebd3d8b13384ed983fb766bab9e8f4233223899cf1b47d7bbba308cbc8e"},{"version":"e3af45db67cf30e8891f29fbfb24839da0f0041d8ff2be9a01d367bb72e810f1","signature":"2dee7a558d8833901919cb779f0276f0e3bec45f49b8af10410cd4f4d89b53ed"},{"version":"d07dfddbd00e64ae9f775398c1a2625c515b74ded91c0c4e0bbe461abb5152a3","signature":"e72666ab28f3e60e79c0c7fe4a735dfd9d1dd8a5e494aca59095e1d48afb5329"},{"version":"012c789415f07ead73a95f2f52dd246786773df5fd4d9c24df1d77f722060047","signature":"2bf1ae2d19910febdc6f2ab43dd27613e0295dc82c171338392e9902985a93c7"},{"version":"65be835667a6bd146bf60cd238f1148fc1c5841174e7135d75a4f59a7de3b8fc","signature":"00d01c466ba665becd5848937521885fb00420b4861cd42675b65e29efc9bd0e"},{"version":"6db1a41bb47bede4105120bdd88e7b70d7883e978f19b653e1acdc113d5a0074","signature":"fb9839adb715ca2d59c9bf02229e4430d758bc29d26a83ca5323d3e03b8b9ef7"},{"version":"d353ad801d831218d51593a65d501295f9a10f0536216954596974348525c686","signature":"d4256277876cde4925d92ba74eff45117237d810b85647f1b3382d752ecd0af2"},{"version":"755ff02c8d274c7b7c4d9de62ed4bcbadb27502e56695571747b7ef43a1e5a2f","signature":"4286adfbe91b2459d53040aef6be45137f3e77ff26f45400db39ef500c899011"},{"version":"8e348ec169d68ffc3569f048594ca8d6d30a906a240a30e34439c27e65556cae","signature":"953fa16fc3fc8632b9c75ed73203fd8ea2e6ae586e51f086141c963b8bfc75bd"},"3f80ab14a6fa145abc3560184eb4823522f938f6b7e5eb49a84b34c333633499",{"version":"2c158aff4e57de882029ae5b2fab27f61feadc4b0dd42147380831cadcda9063","signature":"8953a66989ba76d53d7a070588e918e34f03c425a49afd42f1cab1d77fd99c45"},{"version":"67ca17abe3cabfac13df8e108344f54755ecf85e900c71dfd277f7b484d96eff","signature":"e3d508e6cbf8abaf1aee6c0cfda75d1475845a76f1a70f95636e838d3af44895"},{"version":"3936183d360c8fc3e08977104e1866d7947a18a98bd22817a60c71469b8209dc","signature":"ff05986af935e4c0091fdf9e75a8dccde0176dbe4c4b065cfd3ae698d87c1bf1"},{"version":"1b9a44d773153d5e38c5c1a683990694b13a7ca68195ab1b01424f92e7cd62cf","signature":"4a01d0c781217f94ad852ce1cefc50e78202de4be411780edb7a8cae8de4815a"},{"version":"4fce64396f549026894ba4dd5b201f26c00aa6edd9695199d54a5f5cab322a7c","signature":"d7ce18429f2630df0a193e9202501400cfb325309997d47785b14617f30a331a"},"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"b2fdcc3836d425833af10e536ae5491c34e218bc71870f12a401720f874b6ce4","affectsGlobalScope":true}],"root":[[62,89]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"downlevelIteration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"importHelpers":true,"module":1,"noImplicitAny":true,"outDir":"./","removeComments":false,"sourceMap":true,"strict":true,"target":9},"fileIdsList":[[92],[94,97],[90,96],[94],[91,95],[93],[61,62],[61,62,69,85,88],[61],[61,62,86,87],[61,62,63,67,69,86],[61,62,64,65,66,70,73,74,75,76,78,79,80,81,82],[61,64],[61,62,63,64,65,66,70,71,73],[61,66,70],[61,66,75,76,78,79,80],[61,62,66,71],[61,66,77],[61,66,70,71],[61,62,64,65,70,71,72,73,74,83,84],[61,64,65],[61,62,69],[61,64,65,66,72,73,74,83],[61,62,70,72,83],[61,62,64,65,70,71,74,83],[61,65],[61,62,83],[61,62,67,68],[61,62,67],[62,69,85,88],[62,86,87],[62,69],[62,64,66,70,73,74],[64],[64,70,71,73],[66,70],[66,71],[66],[62,64,65,70,71,72,73,74,83,84],[64,72,74,83],[62,70,72,83],[64,70,74,83],[62,83],[62,67,68],[62]],"referencedMap":[[93,1],[98,2],[97,3],[95,4],[96,5],[94,6],[63,7],[89,8],[86,9],[88,10],[87,11],[83,12],[65,13],[74,14],[75,15],[66,9],[84,16],[76,17],[78,18],[79,18],[80,19],[85,20],[81,21],[77,9],[70,22],[82,23],[73,24],[72,25],[64,26],[71,27],[67,9],[69,28],[68,29],[62,9]],"exportedModulesMap":[[93,1],[98,2],[97,3],[95,4],[96,5],[94,6],[89,30],[88,31],[87,32],[83,33],[65,34],[74,35],[75,36],[84,16],[76,37],[78,38],[79,38],[80,36],[85,39],[81,34],[70,32],[82,40],[73,41],[72,42],[71,43],[69,44],[68,45]],"semanticDiagnosticsPerFile":[90,93,92,98,91,97,95,96,94,61,58,59,10,11,15,14,2,16,17,18,19,20,21,22,23,3,4,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,60,53,54,57,55,56,1,13,12,63,89,86,88,87,83,65,74,75,66,84,76,78,79,80,85,81,77,70,82,73,72,64,71,67,69,68,62]},"version":"5.1.6"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2022.full.d.ts","../node_modules/tslib/tslib.d.ts","../src/types.ts","../src/deep_equals.ts","../src/path/token.ts","../src/path/errors.ts","../src/path/functions/function.ts","../src/pointer/errors.ts","../src/pointer/pointer.ts","../src/pointer/index.ts","../src/path/node.ts","../src/path/types.ts","../src/path/selectors.ts","../src/path/path.ts","../src/path/expression.ts","../src/path/functions/count.ts","../src/path/functions/length.ts","../src/path/lru_cache.ts","../src/path/functions/match.ts","../src/path/functions/search.ts","../src/path/functions/value.ts","../src/path/lex.ts","../src/path/parse.ts","../src/path/environment.ts","../src/path/functions/index.ts","../src/path/index.ts","../src/patch/errors.ts","../src/patch/patch.ts","../src/patch/index.ts","../src/index.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"c5c5565225fce2ede835725a92a28ece149f83542aa4866cfb10290bff7b8996","affectsGlobalScope":true},{"version":"7d2dbc2a0250400af0809b0ad5f84686e84c73526de931f84560e483eb16b03c","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"1df2366de6650547b3dc1d7c4147355c0f6b4729c964e3839636fa418982d131","7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900",{"version":"33284ec0f15a0155435b2ed597c4f33933487cbe754c656176f3e11a1cc1be9c","signature":"79b6784fd76df7cd11de1c79d468964032e484a46572770c6e8f085543054b04"},{"version":"4678ace15cff1f5b0d70165cedf9a583c6f5a16a268a63045b4fe9817cfce084","signature":"2513d5bb1f4f9bc86ab56519a27b41445a9f5f060e5d5abe8f8d4b623e7194c0"},{"version":"a1dc8e874322f03d906d42d47ca8643b86cce6622e93edfd37e0c587f4dc2b0b","signature":"0485a2a81426be0d208698398a224e16e895f662f022e308fe39bfcc7d31128e"},{"version":"a8eebb3b9a3473196eace37ebc460cbbf9d5dcf2ce9efff018eeab0afce266b2","signature":"b6d013de74067a30e0a9b9efd9e73b2adb0345ec26ffb2b059dc54f6c2f58d34"},{"version":"1656d694529d020456610597d43498686fe3a11e986dc33f1f9457e846e411ff","signature":"96397fcc8549ae1cc26e5380314a772ef519caed2dffd5bb7f670512868d7014"},{"version":"cee423a49db96ed018ecc3c0ce1f715c39c6d7b111bd9298154eab20cfc3ce71","signature":"68614b45b0599d1d5f250f6f3659b4eba0066298a171944e3b6111bdbb3f85e2"},{"version":"0e73b7863209d417c3a24f4e4ea33565fbc933dc8534bb27ce8a0f24306ca3a6","signature":"c7d6a1ef7dd2dd9ccd00f352184c55ccf7aead988b8ab72ed4502385aa8c1faa"},{"version":"f46b0482ac5cb9f65d936371575fec5c5cd5cf72e69f92cb193e9e884b32cf51","signature":"d3d4304cdfee7ddd8e4c5edf9a2274ea6c206101bdd541be77bd8f33a7e795fb"},{"version":"7498d4fff2ff8951dc04fddf643612313282bdc8c85ba5ab14943a7762e34ec9","signature":"abe9c61138dffc34859df9859caf99fb8e68998907f56c9163dad024df79504d"},{"version":"b63f539330d9c30391b486a6be410e72d6b74c3bc7672fb59c99f34729bf339e","signature":"edbce83912ae8d0bca1dfe4840004b61d68987cc91efcf4dae132559ab6afc18"},{"version":"072c5db1761cbbcf05c40654d4a52651de1671dbdf01c6f90a71fe044a1d128e","signature":"863a152e2eb71af8f6b5e2aa5147076a3446d40455e1183aa6922e4e15d7d219"},{"version":"5944c6f50a586f5974d22e678e134c309590a3a765dc3e610554c19de4077228","signature":"ebb482d72c08b9ee8ca42640e688deef943b89935125d23c0bdc300e03094f87"},{"version":"97074ffe7075cc7178f9a3157349f38f9e31bebddcbfc105cec3def2e5b95f0e","signature":"c7f64d0c25bcc724e4d037317f5f5ed29d5e1fe1682380eb7855f2704dff4aeb"},{"version":"387bcfd3dfe23ce2a90da091e614f34215a2f649195722974cb5f475d9e4d293","signature":"7d049ebd3d8b13384ed983fb766bab9e8f4233223899cf1b47d7bbba308cbc8e"},{"version":"e3af45db67cf30e8891f29fbfb24839da0f0041d8ff2be9a01d367bb72e810f1","signature":"2dee7a558d8833901919cb779f0276f0e3bec45f49b8af10410cd4f4d89b53ed"},{"version":"d07dfddbd00e64ae9f775398c1a2625c515b74ded91c0c4e0bbe461abb5152a3","signature":"e72666ab28f3e60e79c0c7fe4a735dfd9d1dd8a5e494aca59095e1d48afb5329"},{"version":"012c789415f07ead73a95f2f52dd246786773df5fd4d9c24df1d77f722060047","signature":"2bf1ae2d19910febdc6f2ab43dd27613e0295dc82c171338392e9902985a93c7"},{"version":"65be835667a6bd146bf60cd238f1148fc1c5841174e7135d75a4f59a7de3b8fc","signature":"00d01c466ba665becd5848937521885fb00420b4861cd42675b65e29efc9bd0e"},{"version":"6db1a41bb47bede4105120bdd88e7b70d7883e978f19b653e1acdc113d5a0074","signature":"fb9839adb715ca2d59c9bf02229e4430d758bc29d26a83ca5323d3e03b8b9ef7"},{"version":"c57ed0a2a6b1d08056c2d9e043f0fcc5379a1a84e834454f27a3ac80c3d11533","signature":"d4256277876cde4925d92ba74eff45117237d810b85647f1b3382d752ecd0af2"},{"version":"dad3f137f6829803a95db18db8e975aa60f1e87f78ef03b1e38cda4b626a91ce","signature":"4286adfbe91b2459d53040aef6be45137f3e77ff26f45400db39ef500c899011"},{"version":"811bc345fcb08a11e7f4e5dc783603c034fde5a8e41cd955ff60b6cbe0790dd3","signature":"5ac9d3d03bcd263b8a219afbd3b3ef7b7c628f02ec75e62530465b843d43f5f4"},"3f80ab14a6fa145abc3560184eb4823522f938f6b7e5eb49a84b34c333633499",{"version":"0972759f3184732aa400555d1afeea82d21aeb0c61ec665b33f7539e3fbedad3","signature":"050c4d59fd7916730893f867d0bbfb4e7e7c917cc3881bae18500b1c8f61b0e2"},{"version":"67ca17abe3cabfac13df8e108344f54755ecf85e900c71dfd277f7b484d96eff","signature":"e3d508e6cbf8abaf1aee6c0cfda75d1475845a76f1a70f95636e838d3af44895"},{"version":"e3d5b0648a7efd2a4a1407084245b467cfcd54b0de4dd1b7da972dd3fad6ace8","signature":"643c93cfe91a7df799ae343b715216c842c6e6af7d2e3429b95f517e4ef14bf6"},{"version":"1b9a44d773153d5e38c5c1a683990694b13a7ca68195ab1b01424f92e7cd62cf","signature":"4a01d0c781217f94ad852ce1cefc50e78202de4be411780edb7a8cae8de4815a"},{"version":"1b6bbee635102f30a7a797e34cd4d72a96f679f6704f37241b742f5173b62668","signature":"c546ec50520eb9107d90866554ba603d2893bb50cabf5114d7f7ac2f6288cb28"},"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec",{"version":"b2fdcc3836d425833af10e536ae5491c34e218bc71870f12a401720f874b6ce4","affectsGlobalScope":true}],"root":[[62,89]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"downlevelIteration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"importHelpers":true,"module":1,"noImplicitAny":true,"outDir":"./","removeComments":false,"sourceMap":true,"strict":true,"target":9},"fileIdsList":[[92],[94,97],[90,96],[94],[91,95],[93],[61,62],[61,62,69,85,88],[61],[61,62,86,87],[61,62,63,67,69,86],[61,62,64,65,66,70,73,74,75,76,78,79,80,81,82],[61,64],[61,62,63,64,65,66,70,71,73],[61,66,70],[61,66,75,76,78,79,80],[61,62,66,71],[61,66,77],[61,66,70,71],[61,62,64,65,70,71,72,73,74,83,84],[61,64,65],[61,62,69],[61,64,65,66,72,73,74,83],[61,62,70,72,83],[61,62,64,65,70,71,74,83],[61,65],[61,62,83],[61,62,67,68],[61,62,67],[62,69,85,88],[62,86,87],[62,69],[62,64,66,70,73,74],[64],[64,70,71,73],[66,70],[66,71],[66],[62,64,65,70,71,72,73,74,83,84],[64,72,74,83],[62,70,72,83],[64,70,74,83],[62,83],[62,67,68],[62]],"referencedMap":[[93,1],[98,2],[97,3],[95,4],[96,5],[94,6],[63,7],[89,8],[86,9],[88,10],[87,11],[83,12],[65,13],[74,14],[75,15],[66,9],[84,16],[76,17],[78,18],[79,18],[80,19],[85,20],[81,21],[77,9],[70,22],[82,23],[73,24],[72,25],[64,26],[71,27],[67,9],[69,28],[68,29],[62,9]],"exportedModulesMap":[[93,1],[98,2],[97,3],[95,4],[96,5],[94,6],[89,30],[88,31],[87,32],[83,33],[65,34],[74,35],[75,36],[84,16],[76,37],[78,38],[79,38],[80,36],[85,39],[81,34],[70,32],[82,40],[73,41],[72,42],[71,43],[69,44],[68,45]],"semanticDiagnosticsPerFile":[90,93,92,98,91,97,95,96,94,61,58,59,10,11,15,14,2,16,17,18,19,20,21,22,23,3,4,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,60,53,54,57,55,56,1,13,12,63,89,86,88,87,83,65,74,75,66,84,76,78,79,80,85,81,77,70,82,73,72,64,71,67,69,68,62]},"version":"5.1.6"}
package/dist/types.d.ts CHANGED
@@ -22,4 +22,4 @@ export declare function isString(value: unknown): value is string;
22
22
  /**
23
23
  * A type predicate for a number primitive.
24
24
  */
25
- export declare function isNumber(value: unknown): value is string;
25
+ export declare function isNumber(value: unknown): value is number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-p3",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "author": "James Prior",
5
5
  "license": "MIT",
6
6
  "description": "JSONPath, JSON Pointer and JSON Patch",
@@ -19,7 +19,7 @@
19
19
  "build": "npm run build:types && npm run build:js",
20
20
  "type-check": "tsc --noEmit",
21
21
  "coverage": "jest --collectCoverage",
22
- "clean": "rm -rf ./lib ./dist ./coverage",
22
+ "clean": "rm -rf ./lib ./dist ./coverage ./docs/docs/api",
23
23
  "lint": "eslint src tests --ext .js,.jsx,.ts,.tsx"
24
24
  },
25
25
  "browserslist": [