cdk-ecr-deployment 2.0.8 → 2.1.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.
Files changed (54) hide show
  1. package/.jsii +3 -3
  2. package/changelog.md +7 -0
  3. package/lambda/Dockerfile +2 -2
  4. package/lib/index.js +3 -3
  5. package/node_modules/@sindresorhus/is/dist/index.d.ts +2 -2
  6. package/node_modules/@sindresorhus/is/dist/index.js +1 -1
  7. package/node_modules/@sindresorhus/is/package.json +1 -1
  8. package/node_modules/@sindresorhus/is/readme.md +4 -0
  9. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
  10. package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +3 -3
  11. package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1 -1
  12. package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +3 -3
  13. package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +4 -3
  14. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
  15. package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +8 -0
  16. package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +2 -0
  17. package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
  18. package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +8 -8
  19. package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +2 -1
  20. package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
  21. package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +3 -3
  22. package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1 -1
  23. package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +3 -3
  24. package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +4 -3
  25. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
  26. package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +8 -0
  27. package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +2 -0
  28. package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1 -1
  29. package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +8 -8
  30. package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +2 -1
  31. package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
  32. package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +3 -3
  33. package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1 -1
  34. package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +3 -3
  35. package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +4 -3
  36. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
  37. package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +8 -0
  38. package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +2 -0
  39. package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
  40. package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +8 -8
  41. package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +2 -1
  42. package/node_modules/keyv/.nyc_output/37411020-4142-4b08-b825-343ba2427bf7.json +1 -0
  43. package/node_modules/keyv/.nyc_output/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +1 -0
  44. package/node_modules/keyv/.nyc_output/processinfo/37411020-4142-4b08-b825-343ba2427bf7.json +1 -0
  45. package/node_modules/keyv/.nyc_output/processinfo/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +1 -0
  46. package/node_modules/keyv/.nyc_output/processinfo/index.json +1 -0
  47. package/node_modules/keyv/README.md +9 -8
  48. package/node_modules/keyv/package.json +5 -7
  49. package/node_modules/keyv/test/test.js +132 -0
  50. package/node_modules/keyv/test/testdb.sqlite +0 -0
  51. package/package.json +13 -10
  52. package/releasetag.txt +1 -0
  53. package/version.txt +1 -0
  54. package/node_modules/keyv/LICENSE +0 -21
package/.jsii CHANGED
@@ -2856,7 +2856,7 @@
2856
2856
  "stability": "stable"
2857
2857
  },
2858
2858
  "homepage": "https://github.com/cdklabs/cdk-ecr-deployment",
2859
- "jsiiVersion": "1.49.0 (build e322d87)",
2859
+ "jsiiVersion": "1.52.1 (build 5ccc8f6)",
2860
2860
  "keywords": [
2861
2861
  "cdk"
2862
2862
  ],
@@ -3285,6 +3285,6 @@
3285
3285
  "symbolId": "src/index:S3ArchiveName"
3286
3286
  }
3287
3287
  },
3288
- "version": "2.0.8",
3289
- "fingerprint": "jhesIEVFAxC8KDqp5qAfz5gfZPRTzrEp17DKjZ07d5M="
3288
+ "version": "2.1.0",
3289
+ "fingerprint": "B5BEcUZun/gjNP/8yI8enJbuFt/c7a+YZeBuLEgL5Sc="
3290
3290
  }
package/changelog.md ADDED
@@ -0,0 +1,7 @@
1
+
2
+ ## [2.1.0](https://github.com/cdklabs/cdk-ecr-deployment/compare/v2.0.11...v2.1.0) (2022-01-18)
3
+
4
+
5
+ ### Features
6
+
7
+ * Pull from ECR repo ([#165](https://github.com/cdklabs/cdk-ecr-deployment/issues/165)) ([0fc1f18](https://github.com/cdklabs/cdk-ecr-deployment/commit/0fc1f181a5ebae047c51d4d58544d1f3feb34dd7))
package/lambda/Dockerfile CHANGED
@@ -2,7 +2,7 @@
2
2
  # SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
 
5
- FROM lambci/lambda:build-go1.x
5
+ FROM public.ecr.aws/sam/build-go1.x:latest
6
6
 
7
7
  USER root
8
8
 
@@ -29,4 +29,4 @@ COPY . /ws
29
29
  RUN mkdir -p /asset/ && \
30
30
  make OUTPUT=/asset/main && \
31
31
  file /asset/main && \
32
- ls -lh /asset/main
32
+ ls -lh /asset/main
package/lib/index.js CHANGED
@@ -47,7 +47,7 @@ class DockerImageName {
47
47
  }
48
48
  exports.DockerImageName = DockerImageName;
49
49
  _a = JSII_RTTI_SYMBOL_1;
50
- DockerImageName[_a] = { fqn: "cdk-ecr-deployment.DockerImageName", version: "2.0.8" };
50
+ DockerImageName[_a] = { fqn: "cdk-ecr-deployment.DockerImageName", version: "2.1.0" };
51
51
  /**
52
52
  * @stability stable
53
53
  */
@@ -73,7 +73,7 @@ class S3ArchiveName {
73
73
  }
74
74
  exports.S3ArchiveName = S3ArchiveName;
75
75
  _b = JSII_RTTI_SYMBOL_1;
76
- S3ArchiveName[_b] = { fqn: "cdk-ecr-deployment.S3ArchiveName", version: "2.0.8" };
76
+ S3ArchiveName[_b] = { fqn: "cdk-ecr-deployment.S3ArchiveName", version: "2.1.0" };
77
77
  /**
78
78
  * @stability stable
79
79
  */
@@ -156,5 +156,5 @@ class ECRDeployment extends constructs_1.Construct {
156
156
  }
157
157
  exports.ECRDeployment = ECRDeployment;
158
158
  _c = JSII_RTTI_SYMBOL_1;
159
- ECRDeployment[_c] = { fqn: "cdk-ecr-deployment.ECRDeployment", version: "2.0.8" };
159
+ ECRDeployment[_c] = { fqn: "cdk-ecr-deployment.ECRDeployment", version: "2.1.0" };
160
160
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxxRUFBcUU7QUFDckUsc0NBQXNDO0FBR3RDLCtDQUErQztBQUMvQyw2QkFBNkI7QUFDN0IsNkNBQW9IO0FBQ3BILDJDQUF1QztBQWlDdkMsU0FBUyxPQUFPO0lBQ2QsSUFBSSxDQUFDLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFLElBQUksT0FBTyxDQUFDLEdBQUcsQ0FBQyxrQkFBa0IsQ0FBQyxFQUFFO1FBQ3ZELElBQUk7WUFDRixPQUFPLENBQUMsR0FBRyxDQUFDLDRCQUE0QixDQUFDLENBQUM7WUFFMUMsTUFBTSxhQUFhLEdBQU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XRpb24sIEN1c3RvbVJlc291cmNlLCBUb2tlbiB9IGZyb20gJ2F3cy1jZGstbGliJztcbmltcG9ydCB7IENvbnN0cnVjdCB9IGZyb20gJ2NvbnN0cnVjdHMnO1xuXG5leHBvcnQgaW50ZXJmYWNlIEVDUkRlcGxveW1lbnRQcm9wcyB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgc3JjOiBJSW1hZ2VOYW1lO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBkZXN0OiBJSW1hZ2VOYW1lO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBtZW1vcnlMaW1pdD86IG51bWJlcjtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHJvbGU/OiBpYW0uSVJvbGU7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSB2cGM/OiBlYzIuSVZwYztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgdnBjU3VibmV0cz86IGVjMi5TdWJuZXRTZWxlY3Rpb247XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSBlbnZpcm9ubWVudD86IHsgW2tleTogc3RyaW5nXTogc3RyaW5nIH07XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgSUltYWdlTmFtZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHVyaTogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgY3JlZHM/OiBzdHJpbmc7XG59XG5cbmZ1bmN0aW9uIGdldENvZGUoKTogbGFtYmRhLkFzc2V0Q29kZSB7XG4gIGlmICghKHByb2Nlc3MuZW52LkNJIHx8IHByb2Nlc3MuZW52Lk5PX1BSRUJVSUxUX0xBTUJEQSkpIHtcbiAgICB0cnkge1xuICAgICAgY29uc29sZS5sb2coJ1RyeSB0byBnZXQgcHJlYnVpbHQgbGFtYmRhJyk7XG5cbiAgICAgIGNvbnN0IGluc3RhbGxTY3JpcHQgPSBwYXRoLmpvaW4oX19kaXJuYW1lLCAnLi4vbGFtYmRhL2luc3RhbGwuanMnKTtcbiAgICAgIGNvbnN0IHByZWJ1aWx0UGF0aCA9IHBhdGguam9pbihfX2Rpcm5hbWUsICcuLi9sYW1iZGEvb3V0Jyk7XG4gICAgICBjaGlsZF9w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CdDYW5cXCd0IHVzZSB0b2tlbnMgd2hlbiBzcGVjaWZ5aW5nIFwibWVtb3J5TGltaXRcIiBzaW5jZSB3ZSB1c2UgaXQgdG8gaWRlbnRpZnkgdGhlIHNpbmdsZXRvbiBjdXN0b20gcmVzb3VyY2UgaGFuZGxlcicpO1xuICAgICAgfVxuXG4gICAgICB1dWlkICs9IGAtJHttZW1vcnlMaW1pdC50b1N0cmluZygpfU1pQmA7XG4gICAgfVxuXG4gICAgcmV0dXJuIHV1aWQ7XG4gIH1cbn1cbiJdfQ==
@@ -23,8 +23,8 @@ declare namespace is {
23
23
  var buffer: (value: unknown) => value is Buffer;
24
24
  var nullOrUndefined: (value: unknown) => value is null | undefined;
25
25
  var object: (value: unknown) => value is object;
26
- var iterable: <T = unknown>(value: unknown) => value is IterableIterator<T>;
27
- var asyncIterable: <T = unknown>(value: unknown) => value is AsyncIterableIterator<T>;
26
+ var iterable: <T = unknown>(value: unknown) => value is Iterable<T>;
27
+ var asyncIterable: <T = unknown>(value: unknown) => value is AsyncIterable<T>;
28
28
  var generator: (value: unknown) => value is Generator<unknown, any, unknown>;
29
29
  var asyncGenerator: (value: unknown) => value is AsyncGenerator<unknown, any, unknown>;
30
30
  var nativePromise: <T = unknown>(value: unknown) => value is Promise<T>;
@@ -143,7 +143,7 @@ is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value);
143
143
  is.object = (value) => !is.null_(value) && (typeof value === 'object' || is.function_(value));
144
144
  is.iterable = (value) => { var _a; return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a[Symbol.iterator]); };
145
145
  is.asyncIterable = (value) => { var _a; return is.function_((_a = value) === null || _a === void 0 ? void 0 : _a[Symbol.asyncIterator]); };
146
- is.generator = (value) => is.iterable(value) && is.function_(value.next) && is.function_(value.throw);
146
+ is.generator = (value) => { var _a, _b; return is.iterable(value) && is.function_((_a = value) === null || _a === void 0 ? void 0 : _a.next) && is.function_((_b = value) === null || _b === void 0 ? void 0 : _b.throw); };
147
147
  is.asyncGenerator = (value) => is.asyncIterable(value) && is.function_(value.next) && is.function_(value.throw);
148
148
  is.nativePromise = (value) => isObjectOfType('Promise')(value);
149
149
  const hasPromiseAPI = (value) => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sindresorhus/is",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Type check values",
5
5
  "license": "MIT",
6
6
  "repository": "sindresorhus/is",
@@ -602,6 +602,10 @@ For the ones I found, pick 3 of these.
602
602
 
603
603
  The most common mistakes I noticed in these modules was using `instanceof` for type checking, forgetting that functions are objects, and omitting `symbol` as a primitive.
604
604
 
605
+ ### Why not just use `instanceof` instead of this package?
606
+
607
+ `instanceof` does not work correctly for all types and it does not work across [realms](https://stackoverflow.com/a/49832343/64949). Examples of realms are iframes, windows, web workers, and the `vm` module in Node.js.
608
+
605
609
  ## For enterprise
606
610
 
607
611
  Available as part of the Tidelift Subscription.
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 20 Dec 2021 23:01:20 GMT
11
+ * Last updated: Tue, 04 Jan 2022 18:31:31 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -205,9 +205,9 @@ declare namespace NodeJS {
205
205
  writable: boolean;
206
206
  write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
207
207
  write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
208
- end(cb?: () => void): void;
209
- end(data: string | Uint8Array, cb?: () => void): void;
210
- end(str: string, encoding?: BufferEncoding, cb?: () => void): void;
208
+ end(cb?: () => void): this;
209
+ end(data: string | Uint8Array, cb?: () => void): this;
210
+ end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
211
211
  }
212
212
 
213
213
  interface ReadWriteStream extends ReadableStream, WritableStream { }
@@ -966,7 +966,7 @@ declare module 'http' {
966
966
  * as an argument to any listeners on the event.
967
967
  * @since v0.3.0
968
968
  */
969
- destroy(error?: Error): void;
969
+ destroy(error?: Error): this;
970
970
  }
971
971
  interface AgentOptions extends Partial<TcpSocketConnectOpts> {
972
972
  /**
@@ -1516,9 +1516,9 @@ declare module 'http2' {
1516
1516
  * is finished.
1517
1517
  * @since v8.4.0
1518
1518
  */
1519
- end(callback?: () => void): void;
1520
- end(data: string | Uint8Array, callback?: () => void): void;
1521
- end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): void;
1519
+ end(callback?: () => void): this;
1520
+ end(data: string | Uint8Array, callback?: () => void): this;
1521
+ end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
1522
1522
  /**
1523
1523
  * Reads out a header that has already been queued but not sent to the client.
1524
1524
  * The name is case-insensitive.
@@ -27,6 +27,7 @@ declare module 'net' {
27
27
  allowHalfOpen?: boolean | undefined;
28
28
  readable?: boolean | undefined;
29
29
  writable?: boolean | undefined;
30
+ signal?: AbortSignal;
30
31
  }
31
32
  interface OnReadOpts {
32
33
  buffer: Uint8Array | (() => Uint8Array);
@@ -287,9 +288,9 @@ declare module 'net' {
287
288
  * @param callback Optional callback for when the socket is finished.
288
289
  * @return The socket itself.
289
290
  */
290
- end(callback?: () => void): void;
291
- end(buffer: Uint8Array | string, callback?: () => void): void;
292
- end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): void;
291
+ end(callback?: () => void): this;
292
+ end(buffer: Uint8Array | string, callback?: () => void): this;
293
+ end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
293
294
  /**
294
295
  * events.EventEmitter
295
296
  * 1. close
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.2",
3
+ "version": "17.0.8",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -225,6 +225,6 @@
225
225
  },
226
226
  "scripts": {},
227
227
  "dependencies": {},
228
- "typesPublisherContentHash": "f682c1e74631e5d2b576b504a97a862521ab1154681acc21f2eebef0315ff659",
228
+ "typesPublisherContentHash": "133a958e0122898f222d66bf1e776d90a38ee878a694bbe229cf5e02db71deef",
229
229
  "typeScriptVersion": "3.8"
230
230
  }
@@ -170,3 +170,11 @@ declare module 'node:path' {
170
170
  import path = require('path');
171
171
  export = path;
172
172
  }
173
+ declare module 'node:path/posix' {
174
+ import path = require('path/posix');
175
+ export = path;
176
+ }
177
+ declare module 'node:path/win32' {
178
+ import path = require('path/win32');
179
+ export = path;
180
+ }
@@ -397,9 +397,11 @@ declare module 'perf_hooks' {
397
397
  options:
398
398
  | {
399
399
  entryTypes: ReadonlyArray<EntryType>;
400
+ buffered?: boolean | undefined;
400
401
  }
401
402
  | {
402
403
  type: EntryType;
404
+ buffered?: boolean | undefined;
403
405
  }
404
406
  ): void;
405
407
  }
@@ -146,7 +146,7 @@ declare module 'process' {
146
146
  /**
147
147
  * If true, a diagnostic report is generated when the process
148
148
  * receives the signal specified by process.report.signal.
149
- * @defaul false
149
+ * @default false
150
150
  */
151
151
  reportOnSignal: boolean;
152
152
  /**
@@ -408,7 +408,7 @@ declare module 'stream' {
408
408
  * @since v8.0.0
409
409
  * @param error Error which will be passed as payload in `'error'` event
410
410
  */
411
- destroy(error?: Error): void;
411
+ destroy(error?: Error): this;
412
412
  /**
413
413
  * Event emitter
414
414
  * The defined events on documents including:
@@ -639,9 +639,9 @@ declare module 'stream' {
639
639
  * @param encoding The encoding if `chunk` is a string
640
640
  * @param callback Callback for when the stream is finished.
641
641
  */
642
- end(cb?: () => void): void;
643
- end(chunk: any, cb?: () => void): void;
644
- end(chunk: any, encoding: BufferEncoding, cb?: () => void): void;
642
+ end(cb?: () => void): this;
643
+ end(chunk: any, cb?: () => void): this;
644
+ end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
645
645
  /**
646
646
  * The `writable.cork()` method forces all written data to be buffered in memory.
647
647
  * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called.
@@ -707,7 +707,7 @@ declare module 'stream' {
707
707
  * @since v8.0.0
708
708
  * @param error Optional, an error to emit with `'error'` event.
709
709
  */
710
- destroy(error?: Error): void;
710
+ destroy(error?: Error): this;
711
711
  /**
712
712
  * Event emitter
713
713
  * The defined events on documents including:
@@ -853,9 +853,9 @@ declare module 'stream' {
853
853
  write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
854
854
  write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
855
855
  setDefaultEncoding(encoding: BufferEncoding): this;
856
- end(cb?: () => void): void;
857
- end(chunk: any, cb?: () => void): void;
858
- end(chunk: any, encoding?: BufferEncoding, cb?: () => void): void;
856
+ end(cb?: () => void): this;
857
+ end(chunk: any, cb?: () => void): this;
858
+ end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
859
859
  cork(): void;
860
860
  uncork(): void;
861
861
  }
@@ -11,6 +11,7 @@
11
11
  declare module 'tls' {
12
12
  import { X509Certificate } from 'node:crypto';
13
13
  import * as net from 'node:net';
14
+ import * as stream from 'stream';
14
15
  const CLIENT_RENEG_LIMIT: number;
15
16
  const CLIENT_RENEG_WINDOW: number;
16
17
  interface Certificate {
@@ -516,7 +517,7 @@ declare module 'tls' {
516
517
  host?: string | undefined;
517
518
  port?: number | undefined;
518
519
  path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
519
- socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
520
+ socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
520
521
  checkServerIdentity?: typeof checkServerIdentity | undefined;
521
522
  servername?: string | undefined; // SNI TLS Extension
522
523
  session?: Buffer | undefined;
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 20 Dec 2021 23:01:20 GMT
11
+ * Last updated: Tue, 04 Jan 2022 18:31:31 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -205,9 +205,9 @@ declare namespace NodeJS {
205
205
  writable: boolean;
206
206
  write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
207
207
  write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
208
- end(cb?: () => void): void;
209
- end(data: string | Uint8Array, cb?: () => void): void;
210
- end(str: string, encoding?: BufferEncoding, cb?: () => void): void;
208
+ end(cb?: () => void): this;
209
+ end(data: string | Uint8Array, cb?: () => void): this;
210
+ end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
211
211
  }
212
212
 
213
213
  interface ReadWriteStream extends ReadableStream, WritableStream { }
@@ -966,7 +966,7 @@ declare module 'http' {
966
966
  * as an argument to any listeners on the event.
967
967
  * @since v0.3.0
968
968
  */
969
- destroy(error?: Error): void;
969
+ destroy(error?: Error): this;
970
970
  }
971
971
  interface AgentOptions extends Partial<TcpSocketConnectOpts> {
972
972
  /**
@@ -1516,9 +1516,9 @@ declare module 'http2' {
1516
1516
  * is finished.
1517
1517
  * @since v8.4.0
1518
1518
  */
1519
- end(callback?: () => void): void;
1520
- end(data: string | Uint8Array, callback?: () => void): void;
1521
- end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): void;
1519
+ end(callback?: () => void): this;
1520
+ end(data: string | Uint8Array, callback?: () => void): this;
1521
+ end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
1522
1522
  /**
1523
1523
  * Reads out a header that has already been queued but not sent to the client.
1524
1524
  * The name is case-insensitive.
@@ -27,6 +27,7 @@ declare module 'net' {
27
27
  allowHalfOpen?: boolean | undefined;
28
28
  readable?: boolean | undefined;
29
29
  writable?: boolean | undefined;
30
+ signal?: AbortSignal;
30
31
  }
31
32
  interface OnReadOpts {
32
33
  buffer: Uint8Array | (() => Uint8Array);
@@ -287,9 +288,9 @@ declare module 'net' {
287
288
  * @param callback Optional callback for when the socket is finished.
288
289
  * @return The socket itself.
289
290
  */
290
- end(callback?: () => void): void;
291
- end(buffer: Uint8Array | string, callback?: () => void): void;
292
- end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): void;
291
+ end(callback?: () => void): this;
292
+ end(buffer: Uint8Array | string, callback?: () => void): this;
293
+ end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
293
294
  /**
294
295
  * events.EventEmitter
295
296
  * 1. close
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.2",
3
+ "version": "17.0.8",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -225,6 +225,6 @@
225
225
  },
226
226
  "scripts": {},
227
227
  "dependencies": {},
228
- "typesPublisherContentHash": "f682c1e74631e5d2b576b504a97a862521ab1154681acc21f2eebef0315ff659",
228
+ "typesPublisherContentHash": "133a958e0122898f222d66bf1e776d90a38ee878a694bbe229cf5e02db71deef",
229
229
  "typeScriptVersion": "3.8"
230
230
  }
@@ -170,3 +170,11 @@ declare module 'node:path' {
170
170
  import path = require('path');
171
171
  export = path;
172
172
  }
173
+ declare module 'node:path/posix' {
174
+ import path = require('path/posix');
175
+ export = path;
176
+ }
177
+ declare module 'node:path/win32' {
178
+ import path = require('path/win32');
179
+ export = path;
180
+ }
@@ -397,9 +397,11 @@ declare module 'perf_hooks' {
397
397
  options:
398
398
  | {
399
399
  entryTypes: ReadonlyArray<EntryType>;
400
+ buffered?: boolean | undefined;
400
401
  }
401
402
  | {
402
403
  type: EntryType;
404
+ buffered?: boolean | undefined;
403
405
  }
404
406
  ): void;
405
407
  }
@@ -146,7 +146,7 @@ declare module 'process' {
146
146
  /**
147
147
  * If true, a diagnostic report is generated when the process
148
148
  * receives the signal specified by process.report.signal.
149
- * @defaul false
149
+ * @default false
150
150
  */
151
151
  reportOnSignal: boolean;
152
152
  /**
@@ -408,7 +408,7 @@ declare module 'stream' {
408
408
  * @since v8.0.0
409
409
  * @param error Error which will be passed as payload in `'error'` event
410
410
  */
411
- destroy(error?: Error): void;
411
+ destroy(error?: Error): this;
412
412
  /**
413
413
  * Event emitter
414
414
  * The defined events on documents including:
@@ -639,9 +639,9 @@ declare module 'stream' {
639
639
  * @param encoding The encoding if `chunk` is a string
640
640
  * @param callback Callback for when the stream is finished.
641
641
  */
642
- end(cb?: () => void): void;
643
- end(chunk: any, cb?: () => void): void;
644
- end(chunk: any, encoding: BufferEncoding, cb?: () => void): void;
642
+ end(cb?: () => void): this;
643
+ end(chunk: any, cb?: () => void): this;
644
+ end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
645
645
  /**
646
646
  * The `writable.cork()` method forces all written data to be buffered in memory.
647
647
  * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called.
@@ -707,7 +707,7 @@ declare module 'stream' {
707
707
  * @since v8.0.0
708
708
  * @param error Optional, an error to emit with `'error'` event.
709
709
  */
710
- destroy(error?: Error): void;
710
+ destroy(error?: Error): this;
711
711
  /**
712
712
  * Event emitter
713
713
  * The defined events on documents including:
@@ -853,9 +853,9 @@ declare module 'stream' {
853
853
  write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
854
854
  write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
855
855
  setDefaultEncoding(encoding: BufferEncoding): this;
856
- end(cb?: () => void): void;
857
- end(chunk: any, cb?: () => void): void;
858
- end(chunk: any, encoding?: BufferEncoding, cb?: () => void): void;
856
+ end(cb?: () => void): this;
857
+ end(chunk: any, cb?: () => void): this;
858
+ end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
859
859
  cork(): void;
860
860
  uncork(): void;
861
861
  }
@@ -11,6 +11,7 @@
11
11
  declare module 'tls' {
12
12
  import { X509Certificate } from 'node:crypto';
13
13
  import * as net from 'node:net';
14
+ import * as stream from 'stream';
14
15
  const CLIENT_RENEG_LIMIT: number;
15
16
  const CLIENT_RENEG_WINDOW: number;
16
17
  interface Certificate {
@@ -516,7 +517,7 @@ declare module 'tls' {
516
517
  host?: string | undefined;
517
518
  port?: number | undefined;
518
519
  path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
519
- socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
520
+ socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
520
521
  checkServerIdentity?: typeof checkServerIdentity | undefined;
521
522
  servername?: string | undefined; // SNI TLS Extension
522
523
  session?: Buffer | undefined;
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 20 Dec 2021 23:01:20 GMT
11
+ * Last updated: Tue, 04 Jan 2022 18:31:31 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -205,9 +205,9 @@ declare namespace NodeJS {
205
205
  writable: boolean;
206
206
  write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
207
207
  write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
208
- end(cb?: () => void): void;
209
- end(data: string | Uint8Array, cb?: () => void): void;
210
- end(str: string, encoding?: BufferEncoding, cb?: () => void): void;
208
+ end(cb?: () => void): this;
209
+ end(data: string | Uint8Array, cb?: () => void): this;
210
+ end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
211
211
  }
212
212
 
213
213
  interface ReadWriteStream extends ReadableStream, WritableStream { }
@@ -966,7 +966,7 @@ declare module 'http' {
966
966
  * as an argument to any listeners on the event.
967
967
  * @since v0.3.0
968
968
  */
969
- destroy(error?: Error): void;
969
+ destroy(error?: Error): this;
970
970
  }
971
971
  interface AgentOptions extends Partial<TcpSocketConnectOpts> {
972
972
  /**
@@ -1516,9 +1516,9 @@ declare module 'http2' {
1516
1516
  * is finished.
1517
1517
  * @since v8.4.0
1518
1518
  */
1519
- end(callback?: () => void): void;
1520
- end(data: string | Uint8Array, callback?: () => void): void;
1521
- end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): void;
1519
+ end(callback?: () => void): this;
1520
+ end(data: string | Uint8Array, callback?: () => void): this;
1521
+ end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
1522
1522
  /**
1523
1523
  * Reads out a header that has already been queued but not sent to the client.
1524
1524
  * The name is case-insensitive.
@@ -27,6 +27,7 @@ declare module 'net' {
27
27
  allowHalfOpen?: boolean | undefined;
28
28
  readable?: boolean | undefined;
29
29
  writable?: boolean | undefined;
30
+ signal?: AbortSignal;
30
31
  }
31
32
  interface OnReadOpts {
32
33
  buffer: Uint8Array | (() => Uint8Array);
@@ -287,9 +288,9 @@ declare module 'net' {
287
288
  * @param callback Optional callback for when the socket is finished.
288
289
  * @return The socket itself.
289
290
  */
290
- end(callback?: () => void): void;
291
- end(buffer: Uint8Array | string, callback?: () => void): void;
292
- end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): void;
291
+ end(callback?: () => void): this;
292
+ end(buffer: Uint8Array | string, callback?: () => void): this;
293
+ end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
293
294
  /**
294
295
  * events.EventEmitter
295
296
  * 1. close
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.2",
3
+ "version": "17.0.8",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -225,6 +225,6 @@
225
225
  },
226
226
  "scripts": {},
227
227
  "dependencies": {},
228
- "typesPublisherContentHash": "f682c1e74631e5d2b576b504a97a862521ab1154681acc21f2eebef0315ff659",
228
+ "typesPublisherContentHash": "133a958e0122898f222d66bf1e776d90a38ee878a694bbe229cf5e02db71deef",
229
229
  "typeScriptVersion": "3.8"
230
230
  }
@@ -170,3 +170,11 @@ declare module 'node:path' {
170
170
  import path = require('path');
171
171
  export = path;
172
172
  }
173
+ declare module 'node:path/posix' {
174
+ import path = require('path/posix');
175
+ export = path;
176
+ }
177
+ declare module 'node:path/win32' {
178
+ import path = require('path/win32');
179
+ export = path;
180
+ }
@@ -397,9 +397,11 @@ declare module 'perf_hooks' {
397
397
  options:
398
398
  | {
399
399
  entryTypes: ReadonlyArray<EntryType>;
400
+ buffered?: boolean | undefined;
400
401
  }
401
402
  | {
402
403
  type: EntryType;
404
+ buffered?: boolean | undefined;
403
405
  }
404
406
  ): void;
405
407
  }
@@ -146,7 +146,7 @@ declare module 'process' {
146
146
  /**
147
147
  * If true, a diagnostic report is generated when the process
148
148
  * receives the signal specified by process.report.signal.
149
- * @defaul false
149
+ * @default false
150
150
  */
151
151
  reportOnSignal: boolean;
152
152
  /**
@@ -408,7 +408,7 @@ declare module 'stream' {
408
408
  * @since v8.0.0
409
409
  * @param error Error which will be passed as payload in `'error'` event
410
410
  */
411
- destroy(error?: Error): void;
411
+ destroy(error?: Error): this;
412
412
  /**
413
413
  * Event emitter
414
414
  * The defined events on documents including:
@@ -639,9 +639,9 @@ declare module 'stream' {
639
639
  * @param encoding The encoding if `chunk` is a string
640
640
  * @param callback Callback for when the stream is finished.
641
641
  */
642
- end(cb?: () => void): void;
643
- end(chunk: any, cb?: () => void): void;
644
- end(chunk: any, encoding: BufferEncoding, cb?: () => void): void;
642
+ end(cb?: () => void): this;
643
+ end(chunk: any, cb?: () => void): this;
644
+ end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
645
645
  /**
646
646
  * The `writable.cork()` method forces all written data to be buffered in memory.
647
647
  * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called.
@@ -707,7 +707,7 @@ declare module 'stream' {
707
707
  * @since v8.0.0
708
708
  * @param error Optional, an error to emit with `'error'` event.
709
709
  */
710
- destroy(error?: Error): void;
710
+ destroy(error?: Error): this;
711
711
  /**
712
712
  * Event emitter
713
713
  * The defined events on documents including:
@@ -853,9 +853,9 @@ declare module 'stream' {
853
853
  write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
854
854
  write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
855
855
  setDefaultEncoding(encoding: BufferEncoding): this;
856
- end(cb?: () => void): void;
857
- end(chunk: any, cb?: () => void): void;
858
- end(chunk: any, encoding?: BufferEncoding, cb?: () => void): void;
856
+ end(cb?: () => void): this;
857
+ end(chunk: any, cb?: () => void): this;
858
+ end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
859
859
  cork(): void;
860
860
  uncork(): void;
861
861
  }
@@ -11,6 +11,7 @@
11
11
  declare module 'tls' {
12
12
  import { X509Certificate } from 'node:crypto';
13
13
  import * as net from 'node:net';
14
+ import * as stream from 'stream';
14
15
  const CLIENT_RENEG_LIMIT: number;
15
16
  const CLIENT_RENEG_WINDOW: number;
16
17
  interface Certificate {
@@ -516,7 +517,7 @@ declare module 'tls' {
516
517
  host?: string | undefined;
517
518
  port?: number | undefined;
518
519
  path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
519
- socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
520
+ socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
520
521
  checkServerIdentity?: typeof checkServerIdentity | undefined;
521
522
  servername?: string | undefined; // SNI TLS Extension
522
523
  session?: Buffer | undefined;
@@ -0,0 +1 @@
1
+ {"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/src/index.js":{"path":"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/src/index.js","statementMap":{"0":{"start":{"line":3,"column":21},"end":{"line":3,"column":38}},"1":{"start":{"line":4,"column":14},"end":{"line":4,"column":36}},"2":{"start":{"line":6,"column":18},"end":{"line":22,"column":1}},"3":{"start":{"line":7,"column":18},"end":{"line":15,"column":2}},"4":{"start":{"line":16,"column":1},"end":{"line":19,"column":2}},"5":{"start":{"line":17,"column":18},"end":{"line":17,"column":66}},"6":{"start":{"line":18,"column":2},"end":{"line":18,"column":51}},"7":{"start":{"line":21,"column":1},"end":{"line":21,"column":18}},"8":{"start":{"line":26,"column":2},"end":{"line":26,"column":10}},"9":{"start":{"line":27,"column":2},"end":{"line":35,"column":4}},"10":{"start":{"line":37,"column":2},"end":{"line":40,"column":3}},"11":{"start":{"line":38,"column":26},"end":{"line":38,"column":54}},"12":{"start":{"line":39,"column":3},"end":{"line":39,"column":47}},"13":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"14":{"start":{"line":43,"column":3},"end":{"line":43,"column":67}},"15":{"start":{"line":43,"column":40},"end":{"line":43,"column":65}},"16":{"start":{"line":46,"column":2},"end":{"line":46,"column":50}},"17":{"start":{"line":50,"column":2},"end":{"line":50,"column":41}},"18":{"start":{"line":54,"column":22},"end":{"line":54,"column":45}},"19":{"start":{"line":55,"column":20},"end":{"line":55,"column":29}},"20":{"start":{"line":56,"column":2},"end":{"line":70,"column":6}},"21":{"start":{"line":57,"column":15},"end":{"line":57,"column":37}},"22":{"start":{"line":58,"column":17},"end":{"line":58,"column":80}},"23":{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},"24":{"start":{"line":61,"column":5},"end":{"line":61,"column":22}},"25":{"start":{"line":64,"column":4},"end":{"line":67,"column":5}},"26":{"start":{"line":65,"column":5},"end":{"line":65,"column":22}},"27":{"start":{"line":66,"column":5},"end":{"line":66,"column":22}},"28":{"start":{"line":69,"column":4},"end":{"line":69,"column":56}},"29":{"start":{"line":74,"column":22},"end":{"line":74,"column":45}},"30":{"start":{"line":75,"column":2},"end":{"line":77,"column":3}},"31":{"start":{"line":76,"column":3},"end":{"line":76,"column":23}},"32":{"start":{"line":79,"column":2},"end":{"line":81,"column":3}},"33":{"start":{"line":80,"column":3},"end":{"line":80,"column":19}},"34":{"start":{"line":83,"column":20},"end":{"line":83,"column":29}},"35":{"start":{"line":85,"column":2},"end":{"line":92,"column":21}},"36":{"start":{"line":87,"column":20},"end":{"line":87,"column":73}},"37":{"start":{"line":88,"column":4},"end":{"line":88,"column":31}},"38":{"start":{"line":89,"column":4},"end":{"line":89,"column":38}},"39":{"start":{"line":91,"column":18},"end":{"line":91,"column":52}},"40":{"start":{"line":92,"column":15},"end":{"line":92,"column":19}},"41":{"start":{"line":96,"column":22},"end":{"line":96,"column":45}},"42":{"start":{"line":97,"column":20},"end":{"line":97,"column":29}},"43":{"start":{"line":98,"column":2},"end":{"line":99,"column":42}},"44":{"start":{"line":99,"column":15},"end":{"line":99,"column":40}},"45":{"start":{"line":103,"column":20},"end":{"line":103,"column":29}},"46":{"start":{"line":104,"column":2},"end":{"line":105,"column":30}},"47":{"start":{"line":105,"column":15},"end":{"line":105,"column":28}},"48":{"start":{"line":109,"column":0},"end":{"line":109,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":18},"end":{"line":6,"column":19}},"loc":{"start":{"line":6,"column":29},"end":{"line":22,"column":1}},"line":6},"1":{"name":"(anonymous_1)","decl":{"start":{"line":25,"column":1},"end":{"line":25,"column":2}},"loc":{"start":{"line":25,"column":27},"end":{"line":47,"column":2}},"line":25},"2":{"name":"(anonymous_2)","decl":{"start":{"line":43,"column":31},"end":{"line":43,"column":32}},"loc":{"start":{"line":43,"column":40},"end":{"line":43,"column":65}},"line":43},"3":{"name":"(anonymous_3)","decl":{"start":{"line":49,"column":1},"end":{"line":49,"column":2}},"loc":{"start":{"line":49,"column":20},"end":{"line":51,"column":2}},"line":49},"4":{"name":"(anonymous_4)","decl":{"start":{"line":53,"column":1},"end":{"line":53,"column":2}},"loc":{"start":{"line":53,"column":19},"end":{"line":71,"column":2}},"line":53},"5":{"name":"(anonymous_5)","decl":{"start":{"line":57,"column":9},"end":{"line":57,"column":10}},"loc":{"start":{"line":57,"column":15},"end":{"line":57,"column":37}},"line":57},"6":{"name":"(anonymous_6)","decl":{"start":{"line":58,"column":9},"end":{"line":58,"column":10}},"loc":{"start":{"line":58,"column":17},"end":{"line":58,"column":80}},"line":58},"7":{"name":"(anonymous_7)","decl":{"start":{"line":59,"column":9},"end":{"line":59,"column":10}},"loc":{"start":{"line":59,"column":17},"end":{"line":70,"column":4}},"line":59},"8":{"name":"(anonymous_8)","decl":{"start":{"line":73,"column":1},"end":{"line":73,"column":2}},"loc":{"start":{"line":73,"column":22},"end":{"line":93,"column":2}},"line":73},"9":{"name":"(anonymous_9)","decl":{"start":{"line":86,"column":9},"end":{"line":86,"column":10}},"loc":{"start":{"line":86,"column":15},"end":{"line":90,"column":4}},"line":86},"10":{"name":"(anonymous_10)","decl":{"start":{"line":91,"column":9},"end":{"line":91,"column":10}},"loc":{"start":{"line":91,"column":18},"end":{"line":91,"column":52}},"line":91},"11":{"name":"(anonymous_11)","decl":{"start":{"line":92,"column":9},"end":{"line":92,"column":10}},"loc":{"start":{"line":92,"column":15},"end":{"line":92,"column":19}},"line":92},"12":{"name":"(anonymous_12)","decl":{"start":{"line":95,"column":1},"end":{"line":95,"column":2}},"loc":{"start":{"line":95,"column":13},"end":{"line":100,"column":2}},"line":95},"13":{"name":"(anonymous_13)","decl":{"start":{"line":99,"column":9},"end":{"line":99,"column":10}},"loc":{"start":{"line":99,"column":15},"end":{"line":99,"column":40}},"line":99},"14":{"name":"(anonymous_14)","decl":{"start":{"line":102,"column":1},"end":{"line":102,"column":2}},"loc":{"start":{"line":102,"column":9},"end":{"line":106,"column":2}},"line":102},"15":{"name":"(anonymous_15)","decl":{"start":{"line":105,"column":9},"end":{"line":105,"column":10}},"loc":{"start":{"line":105,"column":15},"end":{"line":105,"column":28}},"line":105}},"branchMap":{"0":{"loc":{"start":{"line":16,"column":1},"end":{"line":19,"column":2}},"type":"if","locations":[{"start":{"line":16,"column":1},"end":{"line":19,"column":2}},{"start":{"line":16,"column":1},"end":{"line":19,"column":2}}],"line":16},"1":{"loc":{"start":{"line":16,"column":5},"end":{"line":16,"column":35}},"type":"binary-expr","locations":[{"start":{"line":16,"column":5},"end":{"line":16,"column":20}},{"start":{"line":16,"column":24},"end":{"line":16,"column":35}}],"line":16},"2":{"loc":{"start":{"line":17,"column":18},"end":{"line":17,"column":66}},"type":"binary-expr","locations":[{"start":{"line":17,"column":18},"end":{"line":17,"column":33}},{"start":{"line":17,"column":37},"end":{"line":17,"column":66}}],"line":17},"3":{"loc":{"start":{"line":33,"column":3},"end":{"line":33,"column":44}},"type":"cond-expr","locations":[{"start":{"line":33,"column":31},"end":{"line":33,"column":38}},{"start":{"line":33,"column":41},"end":{"line":33,"column":44}}],"line":33},"4":{"loc":{"start":{"line":37,"column":2},"end":{"line":40,"column":3}},"type":"if","locations":[{"start":{"line":37,"column":2},"end":{"line":40,"column":3}},{"start":{"line":37,"column":2},"end":{"line":40,"column":3}}],"line":37},"5":{"loc":{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},"type":"if","locations":[{"start":{"line":42,"column":2},"end":{"line":44,"column":3}},{"start":{"line":42,"column":2},"end":{"line":44,"column":3}}],"line":42},"6":{"loc":{"start":{"line":58,"column":17},"end":{"line":58,"column":80}},"type":"cond-expr","locations":[{"start":{"line":58,"column":46},"end":{"line":58,"column":73}},{"start":{"line":58,"column":76},"end":{"line":58,"column":80}}],"line":58},"7":{"loc":{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},{"start":{"line":60,"column":4},"end":{"line":62,"column":5}}],"line":60},"8":{"loc":{"start":{"line":64,"column":4},"end":{"line":67,"column":5}},"type":"if","locations":[{"start":{"line":64,"column":4},"end":{"line":67,"column":5}},{"start":{"line":64,"column":4},"end":{"line":67,"column":5}}],"line":64},"9":{"loc":{"start":{"line":64,"column":8},"end":{"line":64,"column":69}},"type":"binary-expr","locations":[{"start":{"line":64,"column":8},"end":{"line":64,"column":40}},{"start":{"line":64,"column":44},"end":{"line":64,"column":69}}],"line":64},"10":{"loc":{"start":{"line":69,"column":11},"end":{"line":69,"column":55}},"type":"cond-expr","locations":[{"start":{"line":69,"column":38},"end":{"line":69,"column":42}},{"start":{"line":69,"column":45},"end":{"line":69,"column":55}}],"line":69},"11":{"loc":{"start":{"line":69,"column":12},"end":{"line":69,"column":34}},"type":"binary-expr","locations":[{"start":{"line":69,"column":12},"end":{"line":69,"column":19}},{"start":{"line":69,"column":23},"end":{"line":69,"column":34}}],"line":69},"12":{"loc":{"start":{"line":75,"column":2},"end":{"line":77,"column":3}},"type":"if","locations":[{"start":{"line":75,"column":2},"end":{"line":77,"column":3}},{"start":{"line":75,"column":2},"end":{"line":77,"column":3}}],"line":75},"13":{"loc":{"start":{"line":79,"column":2},"end":{"line":81,"column":3}},"type":"if","locations":[{"start":{"line":79,"column":2},"end":{"line":81,"column":3}},{"start":{"line":79,"column":2},"end":{"line":81,"column":3}}],"line":79},"14":{"loc":{"start":{"line":87,"column":20},"end":{"line":87,"column":73}},"type":"cond-expr","locations":[{"start":{"line":87,"column":49},"end":{"line":87,"column":65}},{"start":{"line":87,"column":69},"end":{"line":87,"column":73}}],"line":87}},"s":{"0":1,"1":1,"2":1,"3":3,"4":3,"5":2,"6":2,"7":1,"8":187,"9":187,"10":187,"11":3,"12":3,"13":187,"14":178,"15":1,"16":187,"17":92,"18":45,"19":45,"20":45,"21":45,"22":45,"23":45,"24":9,"25":36,"26":5,"27":5,"28":31,"29":37,"30":37,"31":32,"32":37,"33":1,"34":37,"35":37,"36":37,"37":37,"38":37,"39":37,"40":37,"41":10,"42":10,"43":10,"44":10,"45":155,"46":155,"47":155,"48":1},"f":{"0":3,"1":187,"2":1,"3":92,"4":45,"5":45,"6":45,"7":45,"8":37,"9":37,"10":37,"11":37,"12":10,"13":10,"14":155,"15":155},"b":{"0":[2,1],"1":[3,3],"2":[2,2],"3":[2,185],"4":[3,184],"5":[178,9],"6":[36,9],"7":[9,36],"8":[5,31],"9":[36,13],"10":[1,30],"11":[31,1],"12":[32,5],"13":[1,36],"14":[6,31]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"68d63c1da21bdd17ca5b4661ccb46d430a48aa3d","contentHash":"600469b33bfd3413852cfb4a0f6eb2248472b9c0ecd031c4b7ee54f59a8c8e2c"}}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":74271,"argv":["/Users/jaredwray/.nvm/versions/node/v16.13.1/bin/node","/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/node_modules/.bin/ava","--serial"],"execArgv":[],"cwd":"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv","time":1641659048071,"ppid":74270,"coverageFilename":"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/.nyc_output/37411020-4142-4b08-b825-343ba2427bf7.json","externalId":"","uuid":"37411020-4142-4b08-b825-343ba2427bf7","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":"37411020-4142-4b08-b825-343ba2427bf7","pid":74274,"argv":["/Users/jaredwray/.nvm/versions/node/v16.13.1/bin/node","/Users/jaredwray/src/github.com/jaredwray/keyv/node_modules/ava/lib/worker/subprocess.js"],"execArgv":[],"cwd":"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv","time":1641659048289,"ppid":74271,"coverageFilename":"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/.nyc_output/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json","externalId":"","uuid":"cd79f2de-c8b8-4493-bc15-b2bde28efa4b","files":["/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/src/index.js"]}
@@ -0,0 +1 @@
1
+ {"processes":{"37411020-4142-4b08-b825-343ba2427bf7":{"parent":null,"children":["cd79f2de-c8b8-4493-bc15-b2bde28efa4b"]},"cd79f2de-c8b8-4493-bc15-b2bde28efa4b":{"parent":"37411020-4142-4b08-b825-343ba2427bf7","children":[]}},"files":{"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/src/index.js":["cd79f2de-c8b8-4493-bc15-b2bde28efa4b"]},"externalIds":{}}
@@ -102,13 +102,13 @@ const keyv = new Keyv({ serialize: JSON.stringify, deserialize: JSON.parse });
102
102
 
103
103
  The official storage adapters are covered by [over 150 integration tests](https://github.com/jaredwray/keyv/actions/workflows/build.yaml) to guarantee consistent behaviour. They are lightweight, efficient wrappers over the DB clients making use of indexes and native TTLs where available.
104
104
 
105
- Database | Adapter | Native TTL | Status
106
- ---|---|---|---
107
- Redis | [@keyv/redis](https://github.com/lukechilds/keyv-redis) | Yes | [![build](https://github.com/lukechilds/keyv-redis/actions/workflows/build.yaml/badge.svg)](https://github.com/lukechilds/keyv-redis/actions/workflows/build.yaml) [![Coverage Status](https://coveralls.io/repos/github/lukechilds/keyv-redis/badge.svg?branch=master)](https://coveralls.io/github/lukechilds/keyv-redis?branch=master)
108
- MongoDB | [@keyv/mongo](https://github.com/lukechilds/keyv-mongo) | Yes | [![build](https://github.com/lukechilds/keyv-mongo/actions/workflows/build.yaml/badge.svg)](https://github.com/lukechilds/keyv-mongo/actions/workflows/build.yaml) [![Coverage Status](https://coveralls.io/repos/github/lukechilds/keyv-mongo/badge.svg?branch=master)](https://coveralls.io/github/lukechilds/keyv-mongo?branch=master)
109
- SQLite | [@keyv/sqlite](https://github.com/lukechilds/keyv-sqlite) | No | [![build](https://github.com/lukechilds/keyv-sqlite/actions/workflows/build.yaml/badge.svg)](https://github.com/lukechilds/keyv-sqlite/actions/workflows/build.yaml) [![Coverage Status](https://coveralls.io/repos/github/lukechilds/keyv-sqlite/badge.svg?branch=master)](https://coveralls.io/github/lukechilds/keyv-sqlite?branch=master)
110
- PostgreSQL | [@keyv/postgres](https://github.com/lukechilds/keyv-postgres) | No | [![build](https://github.com/lukechilds/keyv-postgres/actions/workflows/build.yaml/badge.svg)](https://github.com/lukechilds/keyv-postgres/actions/workflows/build.yaml) [![Coverage Status](https://coveralls.io/repos/github/lukechilds/keyv-postgres/badge.svg?branch=master)](https://coveralls.io/github/lukechilds/keyv-postgres?branch=master)
111
- MySQL | [@keyv/mysql](https://github.com/lukechilds/keyv-mysql) | No | [![build](https://github.com/jaredwray/keyv-mysql/actions/workflows/build.yaml/badge.svg)](https://github.com/jaredwray/keyv-mysql/actions/workflows/build.yaml) [![Coverage Status](https://coveralls.io/repos/github/lukechilds/keyv-mysql/badge.svg?branch=master)](https://coveralls.io/github/lukechilds/keyv-mysql?branch=master)
105
+ Database | Adapter | Native TTL
106
+ ---|---|---
107
+ Redis | [@keyv/redis](https://github.com/jaredwray/keyv/tree/master/packages/redis) | Yes
108
+ MongoDB | [@keyv/mongo](https://github.com/jaredwray/keyv/tree/master/packages/mongo) | Yes
109
+ SQLite | [@keyv/sqlite](https://github.com/jaredwray/keyv/tree/master/packages/sqlite) | No
110
+ PostgreSQL | [@keyv/postgres](https://github.com/jaredwray/keyv/tree/master/packages/postgres) | No
111
+ MySQL | [@keyv/mysql](https://github.com/jaredwray/keyv/tree/master/packages/mysql) | No
112
112
 
113
113
  ## Third-party Storage Adapters
114
114
 
@@ -146,7 +146,8 @@ The following are third-party storage adapters compatible with Keyv:
146
146
  - [keyv-null](https://www.npmjs.com/package/keyv-null) - Null storage adapter for Keyv
147
147
  - [keyv-firestore ](https://github.com/goto-bus-stop/keyv-firestore) – Firebase Cloud Firestore adapter for Keyv
148
148
  - [keyv-mssql](https://github.com/pmorgan3/keyv-mssql) - Microsoft Sql Server adapter for Keyv
149
- - [keyv-memcache](https://github.com/jaredwray/keyv-memcache) - Memcache storage adapter for Keyv
149
+ - [keyv-memcache](https://github.com/jaredwray/keyv/tree/master/packages/memcache) - Memcache storage adapter for Keyv
150
+ - [keyv-azuretable](https://github.com/howlowck/keyv-azuretable) - Azure Table Storage/API adapter for Keyv
150
151
 
151
152
  ## Add Cache Support to your Module
152
153
 
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "keyv",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "Simple key-value storage with support for multiple backends",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
- "test": "xo && nyc ava test/keyv.js",
8
- "test:full": "xo && nyc ava --serial",
9
- "test:services:start": "docker-compose -f ./test/storage-adapters/services-compose.yaml up -d",
10
- "test:services:stop": "docker-compose -f ./test/storage-adapters/services-compose.yaml down -v",
11
- "coverage": "nyc report --reporter=text-lcov > coverage.lcov"
7
+ "test": "xo && nyc ava --serial",
8
+ "coverage": "nyc report --reporter=text-lcov > coverage.lcov",
9
+ "clean": "rm -rf node_modules && rm -rf .nyc_output && rm -rf coverage.lcov && rm -rf ./test/testdb.sqlite"
12
10
  },
13
11
  "xo": {
14
12
  "extends": "xo-lukechilds",
@@ -44,8 +42,8 @@
44
42
  "@keyv/sqlite": "*",
45
43
  "@keyv/test-suite": "*",
46
44
  "ava": "^3.15.0",
47
- "codecov": "^3.8.3",
48
45
  "eslint-config-xo-lukechilds": "^1.0.0",
46
+ "eslint-plugin-promise": "^5.1.1",
49
47
  "nyc": "^15.1.0",
50
48
  "this": "^1.0.2",
51
49
  "timekeeper": "^2.0.0",
@@ -0,0 +1,132 @@
1
+ const test = require('ava');
2
+ const keyvTestSuite = require('@keyv/test-suite').default;
3
+ const { keyvOfficialTests } = require('@keyv/test-suite');
4
+ const Keyv = require('this');
5
+ const tk = require('timekeeper');
6
+ const KeyvSqlite = require('@keyv/sqlite');
7
+
8
+ keyvOfficialTests(test, Keyv, 'sqlite://test/testdb.sqlite', 'sqlite://non/existent/database.sqlite');
9
+
10
+ const store = () => new KeyvSqlite({ uri: 'sqlite://test/testdb.sqlite', busyTimeout: 3000 });
11
+ keyvTestSuite(test, Keyv, store);
12
+
13
+ test.serial('Keyv is a class', t => {
14
+ t.is(typeof Keyv, 'function');
15
+ t.throws(() => Keyv()); // eslint-disable-line new-cap
16
+ t.notThrows(() => new Keyv());
17
+ });
18
+
19
+ test.serial('Keyv accepts storage adapters', async t => {
20
+ const store = new Map();
21
+ const keyv = new Keyv({ store });
22
+ t.is(store.size, 0);
23
+ await keyv.set('foo', 'bar');
24
+ t.is(await keyv.get('foo'), 'bar');
25
+ t.is(store.size, 1);
26
+ });
27
+
28
+ test.serial('Keyv passes tll info to stores', async t => {
29
+ t.plan(1);
30
+ const store = new Map();
31
+ const storeSet = store.set;
32
+ store.set = (key, value, ttl) => {
33
+ t.is(ttl, 100);
34
+ storeSet.call(store, key, value, ttl);
35
+ };
36
+
37
+ const keyv = new Keyv({ store });
38
+ await keyv.set('foo', 'bar', 100);
39
+ });
40
+
41
+ test.serial('Keyv respects default tll option', async t => {
42
+ const store = new Map();
43
+ const keyv = new Keyv({ store, ttl: 100 });
44
+ await keyv.set('foo', 'bar');
45
+ t.is(await keyv.get('foo'), 'bar');
46
+ tk.freeze(Date.now() + 150);
47
+ t.is(await keyv.get('foo'), undefined);
48
+ t.is(store.size, 0);
49
+ tk.reset();
50
+ });
51
+
52
+ test.serial('.set(key, val, ttl) overwrites default tll option', async t => {
53
+ const startTime = Date.now();
54
+ tk.freeze(startTime);
55
+ const store = new Map();
56
+ const keyv = new Keyv({ store, ttl: 200 });
57
+ await keyv.set('foo', 'bar');
58
+ await keyv.set('fizz', 'buzz', 100);
59
+ await keyv.set('ping', 'pong', 300);
60
+ t.is(await keyv.get('foo'), 'bar');
61
+ t.is(await keyv.get('fizz'), 'buzz');
62
+ t.is(await keyv.get('ping'), 'pong');
63
+ tk.freeze(startTime + 150);
64
+ t.is(await keyv.get('foo'), 'bar');
65
+ t.is(await keyv.get('fizz'), undefined);
66
+ t.is(await keyv.get('ping'), 'pong');
67
+ tk.freeze(startTime + 250);
68
+ t.is(await keyv.get('foo'), undefined);
69
+ t.is(await keyv.get('ping'), 'pong');
70
+ tk.freeze(startTime + 350);
71
+ t.is(await keyv.get('ping'), undefined);
72
+ tk.reset();
73
+ });
74
+
75
+ test.serial('.set(key, val, ttl) where ttl is "0" overwrites default tll option and sets key to never expire', async t => {
76
+ const startTime = Date.now();
77
+ tk.freeze(startTime);
78
+ const store = new Map();
79
+ const keyv = new Keyv({ store, ttl: 200 });
80
+ await keyv.set('foo', 'bar', 0);
81
+ t.is(await keyv.get('foo'), 'bar');
82
+ tk.freeze(startTime + 250);
83
+ t.is(await keyv.get('foo'), 'bar');
84
+ tk.reset();
85
+ });
86
+
87
+ test.serial('.get(key, {raw: true}) returns the raw object instead of the value', async t => {
88
+ const store = new Map();
89
+ const keyv = new Keyv({ store });
90
+ await keyv.set('foo', 'bar');
91
+ const value = await keyv.get('foo');
92
+ const rawObject = await keyv.get('foo', { raw: true });
93
+ t.is(value, 'bar');
94
+ t.is(rawObject.value, 'bar');
95
+ });
96
+
97
+ test.serial('Keyv uses custom serializer when provided instead of json-buffer', async t => {
98
+ t.plan(3);
99
+ const store = new Map();
100
+ const serialize = data => {
101
+ t.pass();
102
+ return JSON.stringify(data);
103
+ };
104
+
105
+ const deserialize = data => {
106
+ t.pass();
107
+ return JSON.parse(data);
108
+ };
109
+
110
+ const keyv = new Keyv({ store, serialize, deserialize });
111
+ await keyv.set('foo', 'bar');
112
+ t.is(await keyv.get('foo'), 'bar');
113
+ });
114
+
115
+ test.serial('Keyv supports async serializer/deserializer', async t => {
116
+ t.plan(3);
117
+ const store = new Map();
118
+
119
+ const serialize = async data => {
120
+ t.pass();
121
+ return JSON.stringify(data);
122
+ };
123
+
124
+ const deserialize = async data => {
125
+ t.pass();
126
+ return JSON.parse(data);
127
+ };
128
+
129
+ const keyv = new Keyv({ store, serialize, deserialize });
130
+ await keyv.set('foo', 'bar');
131
+ t.is(await keyv.get('foo'), 'bar');
132
+ });
package/package.json CHANGED
@@ -15,6 +15,9 @@
15
15
  "docgen": "npx projen docgen",
16
16
  "eslint": "npx projen eslint",
17
17
  "package": "npx projen package",
18
+ "package-all": "npx projen package-all",
19
+ "package:js": "npx projen package:js",
20
+ "package:python": "npx projen package:python",
18
21
  "post-compile": "npx projen post-compile",
19
22
  "pre-compile": "npx projen pre-compile",
20
23
  "release": "npx projen release",
@@ -24,6 +27,7 @@
24
27
  "test:watch": "npx projen test:watch",
25
28
  "unbump": "npx projen unbump",
26
29
  "upgrade": "npx projen upgrade",
30
+ "upgrade-projen": "npx projen upgrade-projen",
27
31
  "watch": "npx projen watch",
28
32
  "projen": "npx projen"
29
33
  },
@@ -32,23 +36,22 @@
32
36
  "organization": false
33
37
  },
34
38
  "devDependencies": {
35
- "@types/jest": "^27.0.3",
39
+ "@types/jest": "^27.4.0",
36
40
  "@types/node": "^12",
37
41
  "@typescript-eslint/eslint-plugin": "^5",
38
42
  "@typescript-eslint/parser": "^5",
39
43
  "eslint": "^8",
40
44
  "eslint-import-resolver-node": "^0.3.6",
41
45
  "eslint-import-resolver-typescript": "^2.5.0",
42
- "eslint-plugin-import": "^2.25.3",
43
- "jest": "^27.4.5",
46
+ "eslint-plugin-import": "^2.25.4",
47
+ "jest": "^27.4.7",
44
48
  "jest-junit": "^13",
45
- "jsii": "^1.49.0",
46
- "jsii-diff": "^1.49.0",
49
+ "jsii": "^1.52.1",
50
+ "jsii-diff": "^1.52.1",
47
51
  "jsii-docgen": "^1.8.110",
48
- "jsii-pacmak": "^1.49.0",
49
52
  "json-schema": "^0.4.0",
50
53
  "npm-check-updates": "^12",
51
- "projen": "^0.45.3",
54
+ "projen": "^0.50.18",
52
55
  "standard-version": "^9",
53
56
  "ts-jest": "^27.1.2",
54
57
  "typescript": "^4.5.4"
@@ -70,11 +73,11 @@
70
73
  ],
71
74
  "main": "lib/index.js",
72
75
  "license": "Apache-2.0",
73
- "version": "2.0.8",
76
+ "version": "2.1.0",
74
77
  "jest": {
75
78
  "testMatch": [
76
- "**/__tests__/**/*.ts?(x)",
77
- "**/?(*.)+(spec|test).ts?(x)"
79
+ "<rootDir>/src/**/__tests__/**/*.ts?(x)",
80
+ "<rootDir>/(test|src)/**/?(*.)+(spec|test).ts?(x)"
78
81
  ],
79
82
  "clearMocks": true,
80
83
  "collectCoverage": true,
package/releasetag.txt ADDED
@@ -0,0 +1 @@
1
+ v2.1.0
package/version.txt ADDED
@@ -0,0 +1 @@
1
+ 2.1.0
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2017-2021 Jared Wray & Luke Childs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.