cdk-ecr-deployment 0.0.80 → 0.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +20 -21
- package/.jsii +8 -8
- package/lambda/Makefile +1 -1
- package/lambda/go.mod +2 -1
- package/lambda/go.sum +231 -66
- package/lib/index.js +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +11 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +44 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +3 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +5 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +24 -1
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +11 -0
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +44 -8
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +3 -2
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +5 -1
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +24 -1
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +11 -0
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +44 -8
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +3 -2
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +5 -1
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +385 -0
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +24 -1
- package/node_modules/got/dist/source/as-promise/parse-body.d.ts +1 -1
- package/node_modules/got/dist/source/as-promise/types.js +2 -0
- package/node_modules/got/dist/source/core/index.d.ts +1 -1
- package/node_modules/got/dist/source/core/index.js +9 -3
- package/node_modules/got/dist/source/types.d.ts +14 -12
- package/node_modules/got/package.json +2 -2
- package/node_modules/got/readme.md +11 -10
- package/node_modules/keyv/LICENSE +1 -1
- package/node_modules/keyv/README.md +12 -10
- package/node_modules/keyv/package.json +17 -12
- package/node_modules/keyv/src/index.js +14 -16
- package/package.json +37 -37
|
@@ -226,49 +226,51 @@ export interface Got extends Record<HTTPAlias, GotRequestFunction>, GotRequestFu
|
|
|
226
226
|
*/
|
|
227
227
|
defaults: InstanceDefaults;
|
|
228
228
|
/**
|
|
229
|
-
An error to be thrown when a cache method fails.
|
|
230
|
-
|
|
229
|
+
An error to be thrown when a cache method fails. For example, if the database goes down or there's a filesystem error.
|
|
230
|
+
Contains a `code` property with `ERR_CACHE_ACCESS` or a more specific failure code.
|
|
231
231
|
*/
|
|
232
232
|
CacheError: typeof CacheError;
|
|
233
233
|
/**
|
|
234
|
-
An error to be thrown when a request fails.
|
|
235
|
-
|
|
234
|
+
An error to be thrown when a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`.
|
|
235
|
+
If there is no specific code supplied, `code` defaults to `ERR_GOT_REQUEST_ERROR`.
|
|
236
236
|
*/
|
|
237
237
|
RequestError: typeof RequestError;
|
|
238
238
|
/**
|
|
239
|
-
An error to be thrown when reading from response stream fails.
|
|
239
|
+
An error to be thrown when reading from response stream fails. Contains a `code` property with
|
|
240
|
+
`ERR_READING_RESPONSE_STREAM` or a more specific failure code.
|
|
240
241
|
*/
|
|
241
242
|
ReadError: typeof ReadError;
|
|
242
243
|
/**
|
|
243
|
-
An error to be thrown when server response code is 2xx, and parsing body fails.
|
|
244
|
-
|
|
244
|
+
An error to be thrown when server response code is 2xx, and parsing body fails. Includes a
|
|
245
|
+
`response` property. Contains a `code` property with `ERR_BODY_PARSE_FAILURE` or a more specific failure code.
|
|
245
246
|
*/
|
|
246
247
|
ParseError: typeof ParseError;
|
|
247
248
|
/**
|
|
248
249
|
An error to be thrown when the server response code is not 2xx nor 3xx if `options.followRedirect` is `true`, but always except for 304.
|
|
249
|
-
Includes a `response` property.
|
|
250
|
+
Includes a `response` property. Contains a `code` property with `ERR_NON_2XX_3XX_RESPONSE` or a more specific failure code.
|
|
250
251
|
*/
|
|
251
252
|
HTTPError: typeof HTTPError;
|
|
252
253
|
/**
|
|
253
254
|
An error to be thrown when the server redirects you more than ten times.
|
|
254
|
-
Includes a `response` property.
|
|
255
|
+
Includes a `response` property. Contains a `code` property with `ERR_TOO_MANY_REDIRECTS`.
|
|
255
256
|
*/
|
|
256
257
|
MaxRedirectsError: typeof MaxRedirectsError;
|
|
257
258
|
/**
|
|
258
|
-
An error to be thrown when given an unsupported protocol.
|
|
259
|
+
An error to be thrown when given an unsupported protocol. Contains a `code` property with `ERR_UNSUPPORTED_PROTOCOL`.
|
|
259
260
|
*/
|
|
260
261
|
UnsupportedProtocolError: typeof UnsupportedProtocolError;
|
|
261
262
|
/**
|
|
262
263
|
An error to be thrown when the request is aborted due to a timeout.
|
|
263
|
-
Includes an `event` and `timings` property.
|
|
264
|
+
Includes an `event` and `timings` property. Contains a `code` property with `ETIMEDOUT`.
|
|
264
265
|
*/
|
|
265
266
|
TimeoutError: typeof TimeoutError;
|
|
266
267
|
/**
|
|
267
268
|
An error to be thrown when the request body is a stream and an error occurs while reading from that stream.
|
|
269
|
+
Contains a `code` property with `ERR_UPLOAD` or a more specific failure code.
|
|
268
270
|
*/
|
|
269
271
|
UploadError: typeof UploadError;
|
|
270
272
|
/**
|
|
271
|
-
An error to be thrown when the request is aborted with `.cancel()`.
|
|
273
|
+
An error to be thrown when the request is aborted with `.cancel()`. Contains a `code` property with `ERR_CANCELED`.
|
|
272
274
|
*/
|
|
273
275
|
CancelError: typeof CancelError;
|
|
274
276
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "got",
|
|
3
|
-
"version": "11.8.
|
|
3
|
+
"version": "11.8.3",
|
|
4
4
|
"description": "Human-friendly and powerful HTTP request library for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "sindresorhus/got",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/cacheable-request": "^6.0.1",
|
|
49
49
|
"@types/responselike": "^1.0.0",
|
|
50
50
|
"cacheable-lookup": "^5.0.3",
|
|
51
|
-
"cacheable-request": "^7.0.
|
|
51
|
+
"cacheable-request": "^7.0.2",
|
|
52
52
|
"decompress-response": "^6.0.0",
|
|
53
53
|
"http2-wrapper": "^1.0.0-beta.5.2",
|
|
54
54
|
"lowercase-keys": "^2.0.0",
|
|
@@ -1705,43 +1705,44 @@ Additionaly, the errors may have `request` (Got Stream) and `response` (Got Resp
|
|
|
1705
1705
|
|
|
1706
1706
|
#### got.RequestError
|
|
1707
1707
|
|
|
1708
|
-
When a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`. All the errors below inherit this one.
|
|
1708
|
+
When a request fails. Contains a `code` property with error class code, like `ECONNREFUSED`. If there is no specific code supplied, `code` defaults to `ERR_GOT_REQUEST_ERROR`. All the errors below inherit this one.
|
|
1709
1709
|
|
|
1710
1710
|
#### got.CacheError
|
|
1711
1711
|
|
|
1712
|
-
When a cache method fails, for example, if the database goes down or there's a filesystem error.
|
|
1712
|
+
When a cache method fails, for example, if the database goes down or there's a filesystem error. Contains a `code` property with `ERR_CACHE_ACCESS` or a more specific failure code.
|
|
1713
1713
|
|
|
1714
1714
|
#### got.ReadError
|
|
1715
1715
|
|
|
1716
|
-
When reading from response stream fails.
|
|
1716
|
+
When reading from response stream fails. Contains a `code` property with `ERR_READING_RESPONSE_STREAM` or a more specific failure code.
|
|
1717
1717
|
|
|
1718
1718
|
#### got.ParseError
|
|
1719
1719
|
|
|
1720
|
-
When server response code is 2xx, and parsing body fails. Includes a `response` property.
|
|
1720
|
+
When server response code is 2xx, and parsing body fails. Includes a `response` property. Contains a `code` property with `ERR_BODY_PARSE_FAILURE` or a more specific failure code.
|
|
1721
1721
|
|
|
1722
1722
|
#### got.UploadError
|
|
1723
1723
|
|
|
1724
|
-
When the request body is a stream and an error occurs while reading from that stream.
|
|
1724
|
+
When the request body is a stream and an error occurs while reading from that stream. Contains a `code` property with `ERR_UPLOAD` or a more specific failure code.
|
|
1725
1725
|
|
|
1726
1726
|
#### got.HTTPError
|
|
1727
1727
|
|
|
1728
|
-
When the server response code is not 2xx nor 3xx if `options.followRedirect` is `true`, but always except for 304. Includes a `response` property.
|
|
1728
|
+
When the server response code is not 2xx nor 3xx if `options.followRedirect` is `true`, but always except for 304. Includes a `response` property. Contains a `code` property with `ERR_NON_2XX_3XX_RESPONSE` or a more specific failure code.
|
|
1729
|
+
|
|
1729
1730
|
|
|
1730
1731
|
#### got.MaxRedirectsError
|
|
1731
1732
|
|
|
1732
|
-
When the server redirects you more than ten times. Includes a `response` property.
|
|
1733
|
+
When the server redirects you more than ten times. Includes a `response` property. Contains a `code` property with `ERR_TOO_MANY_REDIRECTS`.
|
|
1733
1734
|
|
|
1734
1735
|
#### got.UnsupportedProtocolError
|
|
1735
1736
|
|
|
1736
|
-
When given an unsupported protocol.
|
|
1737
|
+
When given an unsupported protocol. Contains a `code` property with `ERR_UNSUPPORTED_PROTOCOL`.
|
|
1737
1738
|
|
|
1738
1739
|
#### got.TimeoutError
|
|
1739
1740
|
|
|
1740
|
-
When the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property.
|
|
1741
|
+
When the request is aborted due to a [timeout](#timeout). Includes an `event` and `timings` property. Contains a `code` property with `ETIMEDOUT`.
|
|
1741
1742
|
|
|
1742
1743
|
#### got.CancelError
|
|
1743
1744
|
|
|
1744
|
-
When the request is aborted with `.cancel()`.
|
|
1745
|
+
When the request is aborted with `.cancel()`. Contains a `code` property with `ERR_CANCELED`.
|
|
1745
1746
|
|
|
1746
1747
|
## Aborting the request
|
|
1747
1748
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<h1 align="center">
|
|
2
|
-
<img width="250" src="https://
|
|
2
|
+
<img width="250" src="https://jaredwray.com/images/keyv.svg" alt="keyv">
|
|
3
3
|
<br>
|
|
4
4
|
<br>
|
|
5
5
|
</h1>
|
|
6
6
|
|
|
7
7
|
> Simple key-value storage with support for multiple backends
|
|
8
8
|
|
|
9
|
-
[](https://github.com/jaredwray/keyv/actions/workflows/build.yaml)
|
|
10
|
+
[](https://codecov.io/gh/jaredwray/keyv)
|
|
11
11
|
[](https://www.npmjs.com/package/keyv)
|
|
12
12
|
[](https://www.npmjs.com/package/keyv)
|
|
13
13
|
|
|
@@ -100,15 +100,15 @@ const keyv = new Keyv({ serialize: JSON.stringify, deserialize: JSON.parse });
|
|
|
100
100
|
|
|
101
101
|
## Official Storage Adapters
|
|
102
102
|
|
|
103
|
-
The official storage adapters are covered by [over 150 integration tests](https://
|
|
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
105
|
Database | Adapter | Native TTL | Status
|
|
106
106
|
---|---|---|---
|
|
107
|
-
Redis | [@keyv/redis](https://github.com/lukechilds/keyv-redis) | Yes | [ | Yes | [ | No | [ | No | [ | No | [ | Yes | [](https://github.com/lukechilds/keyv-redis/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-redis?branch=master)
|
|
108
|
+
MongoDB | [@keyv/mongo](https://github.com/lukechilds/keyv-mongo) | Yes | [](https://github.com/lukechilds/keyv-mongo/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-mongo?branch=master)
|
|
109
|
+
SQLite | [@keyv/sqlite](https://github.com/lukechilds/keyv-sqlite) | No | [](https://github.com/lukechilds/keyv-sqlite/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-sqlite?branch=master)
|
|
110
|
+
PostgreSQL | [@keyv/postgres](https://github.com/lukechilds/keyv-postgres) | No | [](https://github.com/lukechilds/keyv-postgres/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-postgres?branch=master)
|
|
111
|
+
MySQL | [@keyv/mysql](https://github.com/lukechilds/keyv-mysql) | No | [](https://github.com/jaredwray/keyv-mysql/actions/workflows/build.yaml) [](https://coveralls.io/github/lukechilds/keyv-mysql?branch=master)
|
|
112
112
|
|
|
113
113
|
## Third-party Storage Adapters
|
|
114
114
|
|
|
@@ -142,6 +142,8 @@ The following are third-party storage adapters compatible with Keyv:
|
|
|
142
142
|
- [quick-lru](https://github.com/sindresorhus/quick-lru) - Simple "Least Recently Used" (LRU) cache
|
|
143
143
|
- [keyv-file](https://github.com/zaaack/keyv-file) - File system storage adapter for Keyv
|
|
144
144
|
- [keyv-dynamodb](https://www.npmjs.com/package/keyv-dynamodb) - DynamoDB storage adapter for Keyv
|
|
145
|
+
- [keyv-lru](https://www.npmjs.com/package/keyv-lru) - LRU storage adapter for Keyv
|
|
146
|
+
- [keyv-null](https://www.npmjs.com/package/keyv-null) - Null storage adapter for Keyv
|
|
145
147
|
- [keyv-firestore ](https://github.com/goto-bus-stop/keyv-firestore) – Firebase Cloud Firestore adapter for Keyv
|
|
146
148
|
- [keyv-mssql](https://github.com/pmorgan3/keyv-mssql) - Microsoft Sql Server adapter for Keyv
|
|
147
149
|
- [keyv-memcache](https://github.com/jaredwray/keyv-memcache) - Memcache storage adapter for Keyv
|
|
@@ -285,4 +287,4 @@ Returns a promise which is resolved when the entries have been cleared.
|
|
|
285
287
|
|
|
286
288
|
## License
|
|
287
289
|
|
|
288
|
-
MIT © Luke Childs
|
|
290
|
+
MIT © Jared Wray & Luke Childs
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keyv",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"description": "Simple key-value storage with support for multiple backends",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "xo && nyc ava test/keyv.js",
|
|
8
8
|
"test:full": "xo && nyc ava --serial",
|
|
9
|
-
"
|
|
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"
|
|
10
12
|
},
|
|
11
13
|
"xo": {
|
|
12
|
-
"extends": "xo-lukechilds"
|
|
14
|
+
"extends": "xo-lukechilds",
|
|
15
|
+
"rules": {
|
|
16
|
+
"unicorn/prefer-module": 0
|
|
17
|
+
}
|
|
13
18
|
},
|
|
14
19
|
"repository": {
|
|
15
20
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/
|
|
21
|
+
"url": "git+https://github.com/jaredwray/keyv.git"
|
|
17
22
|
},
|
|
18
23
|
"keywords": [
|
|
19
24
|
"key",
|
|
@@ -22,28 +27,28 @@
|
|
|
22
27
|
"cache",
|
|
23
28
|
"ttl"
|
|
24
29
|
],
|
|
25
|
-
"author": "
|
|
30
|
+
"author": "Jared Wray <me@jaredwray.com> (http://jaredwray.com)",
|
|
26
31
|
"license": "MIT",
|
|
27
32
|
"bugs": {
|
|
28
|
-
"url": "https://github.com/
|
|
33
|
+
"url": "https://github.com/jaredwray/keyv/issues"
|
|
29
34
|
},
|
|
30
|
-
"homepage": "https://github.com/
|
|
35
|
+
"homepage": "https://github.com/jaredwray/keyv",
|
|
31
36
|
"dependencies": {
|
|
32
37
|
"json-buffer": "3.0.1"
|
|
33
38
|
},
|
|
34
39
|
"devDependencies": {
|
|
35
|
-
"ava": "^2.2.0",
|
|
36
|
-
"coveralls": "^3.0.0",
|
|
37
|
-
"eslint-config-xo-lukechilds": "^1.0.0",
|
|
38
40
|
"@keyv/mongo": "*",
|
|
39
41
|
"@keyv/mysql": "*",
|
|
40
42
|
"@keyv/postgres": "*",
|
|
41
43
|
"@keyv/redis": "*",
|
|
42
44
|
"@keyv/sqlite": "*",
|
|
43
45
|
"@keyv/test-suite": "*",
|
|
44
|
-
"
|
|
46
|
+
"ava": "^3.15.0",
|
|
47
|
+
"codecov": "^3.8.3",
|
|
48
|
+
"eslint-config-xo-lukechilds": "^1.0.0",
|
|
49
|
+
"nyc": "^15.1.0",
|
|
45
50
|
"this": "^1.0.2",
|
|
46
51
|
"timekeeper": "^2.0.0",
|
|
47
|
-
"xo": "^0.
|
|
52
|
+
"xo": "^0.46.3"
|
|
48
53
|
}
|
|
49
54
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const EventEmitter = require('events');
|
|
4
4
|
const JSONB = require('json-buffer');
|
|
5
5
|
|
|
6
|
-
const loadStore =
|
|
6
|
+
const loadStore = options => {
|
|
7
7
|
const adapters = {
|
|
8
8
|
redis: '@keyv/redis',
|
|
9
9
|
mongodb: '@keyv/mongo',
|
|
@@ -11,36 +11,36 @@ const loadStore = opts => {
|
|
|
11
11
|
sqlite: '@keyv/sqlite',
|
|
12
12
|
postgresql: '@keyv/postgres',
|
|
13
13
|
postgres: '@keyv/postgres',
|
|
14
|
-
mysql: '@keyv/mysql'
|
|
14
|
+
mysql: '@keyv/mysql',
|
|
15
15
|
};
|
|
16
|
-
if (
|
|
17
|
-
const adapter =
|
|
18
|
-
return new (require(adapters[adapter]))(
|
|
16
|
+
if (options.adapter || options.uri) {
|
|
17
|
+
const adapter = options.adapter || /^[^:]*/.exec(options.uri)[0];
|
|
18
|
+
return new (require(adapters[adapter]))(options);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
return new Map();
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
class Keyv extends EventEmitter {
|
|
25
|
-
constructor(uri,
|
|
25
|
+
constructor(uri, options) {
|
|
26
26
|
super();
|
|
27
27
|
this.opts = Object.assign(
|
|
28
28
|
{
|
|
29
29
|
namespace: 'keyv',
|
|
30
30
|
serialize: JSONB.stringify,
|
|
31
|
-
deserialize: JSONB.parse
|
|
31
|
+
deserialize: JSONB.parse,
|
|
32
32
|
},
|
|
33
33
|
(typeof uri === 'string') ? { uri } : uri,
|
|
34
|
-
|
|
34
|
+
options,
|
|
35
35
|
);
|
|
36
36
|
|
|
37
37
|
if (!this.opts.store) {
|
|
38
|
-
const
|
|
39
|
-
this.opts.store = loadStore(
|
|
38
|
+
const adapterOptions = Object.assign({}, this.opts);
|
|
39
|
+
this.opts.store = loadStore(adapterOptions);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
if (typeof this.opts.store.on === 'function') {
|
|
43
|
-
this.opts.store.on('error',
|
|
43
|
+
this.opts.store.on('error', error => this.emit('error', error));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
this.opts.store.namespace = this.opts.namespace;
|
|
@@ -50,14 +50,12 @@ class Keyv extends EventEmitter {
|
|
|
50
50
|
return `${this.opts.namespace}:${key}`;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
get(key,
|
|
53
|
+
get(key, options) {
|
|
54
54
|
const keyPrefixed = this._getKeyPrefix(key);
|
|
55
55
|
const { store } = this.opts;
|
|
56
56
|
return Promise.resolve()
|
|
57
57
|
.then(() => store.get(keyPrefixed))
|
|
58
|
-
.then(data =>
|
|
59
|
-
return (typeof data === 'string') ? this.opts.deserialize(data) : data;
|
|
60
|
-
})
|
|
58
|
+
.then(data => (typeof data === 'string') ? this.opts.deserialize(data) : data)
|
|
61
59
|
.then(data => {
|
|
62
60
|
if (data === undefined) {
|
|
63
61
|
return undefined;
|
|
@@ -68,7 +66,7 @@ class Keyv extends EventEmitter {
|
|
|
68
66
|
return undefined;
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
return (
|
|
69
|
+
return (options && options.raw) ? data : data.value;
|
|
72
70
|
});
|
|
73
71
|
}
|
|
74
72
|
|
package/package.json
CHANGED
|
@@ -6,27 +6,27 @@
|
|
|
6
6
|
"url": "https://github.com/cdklabs/cdk-ecr-deployment"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
|
-
"clobber": "npx projen clobber",
|
|
10
|
-
"compile": "npx projen compile",
|
|
11
|
-
"test:compile": "npx projen test:compile",
|
|
12
|
-
"test": "npx projen test",
|
|
13
9
|
"build": "npx projen build",
|
|
14
|
-
"test:watch": "npx projen test:watch",
|
|
15
|
-
"test:update": "npx projen test:update",
|
|
16
10
|
"bump": "npx projen bump",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"upgrade-projen": "npx projen upgrade-projen",
|
|
11
|
+
"clobber": "npx projen clobber",
|
|
12
|
+
"compat": "npx projen compat",
|
|
13
|
+
"compile": "npx projen compile",
|
|
21
14
|
"default": "npx projen default",
|
|
22
|
-
"
|
|
23
|
-
"package": "npx projen package",
|
|
15
|
+
"docgen": "npx projen docgen",
|
|
24
16
|
"eslint": "npx projen eslint",
|
|
25
|
-
"
|
|
17
|
+
"package": "npx projen package",
|
|
18
|
+
"post-compile": "npx projen post-compile",
|
|
19
|
+
"pre-compile": "npx projen pre-compile",
|
|
20
|
+
"publish:github": "npx projen publish:github",
|
|
26
21
|
"publish:npm": "npx projen publish:npm",
|
|
27
22
|
"publish:pypi": "npx projen publish:pypi",
|
|
28
|
-
"docgen": "npx projen docgen",
|
|
29
23
|
"release": "npx projen release",
|
|
24
|
+
"test": "npx projen test",
|
|
25
|
+
"test:update": "npx projen test:update",
|
|
26
|
+
"test:watch": "npx projen test:watch",
|
|
27
|
+
"unbump": "npx projen unbump",
|
|
28
|
+
"upgrade": "npx projen upgrade",
|
|
29
|
+
"watch": "npx projen watch",
|
|
30
30
|
"projen": "npx projen"
|
|
31
31
|
},
|
|
32
32
|
"author": {
|
|
@@ -35,42 +35,42 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@aws-cdk/assert": "^1.95.2",
|
|
38
|
-
"@aws-cdk/aws-ecr": "^1.
|
|
39
|
-
"@aws-cdk/aws-ecr-assets": "^1.
|
|
40
|
-
"@types/jest": "^27.0.
|
|
38
|
+
"@aws-cdk/aws-ecr": "^1.134.0",
|
|
39
|
+
"@aws-cdk/aws-ecr-assets": "^1.134.0",
|
|
40
|
+
"@types/jest": "^27.0.3",
|
|
41
41
|
"@types/node": "^14.17.0",
|
|
42
42
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
43
43
|
"@typescript-eslint/parser": "^4.33.0",
|
|
44
44
|
"eslint": "^7.32.0",
|
|
45
45
|
"eslint-import-resolver-node": "^0.3.6",
|
|
46
46
|
"eslint-import-resolver-typescript": "^2.5.0",
|
|
47
|
-
"eslint-plugin-import": "^2.25.
|
|
48
|
-
"jest": "^27.
|
|
49
|
-
"jest-junit": "^
|
|
50
|
-
"jsii": "^1.
|
|
51
|
-
"jsii-diff": "^1.
|
|
47
|
+
"eslint-plugin-import": "^2.25.3",
|
|
48
|
+
"jest": "^27.4.3",
|
|
49
|
+
"jest-junit": "^13",
|
|
50
|
+
"jsii": "^1.46.0",
|
|
51
|
+
"jsii-diff": "^1.46.0",
|
|
52
52
|
"jsii-docgen": "^1.8.110",
|
|
53
|
-
"jsii-pacmak": "^1.
|
|
54
|
-
"json-schema": "^0.
|
|
53
|
+
"jsii-pacmak": "^1.46.0",
|
|
54
|
+
"json-schema": "^0.4.0",
|
|
55
55
|
"npm-check-updates": "^11",
|
|
56
|
-
"projen": "^0.
|
|
56
|
+
"projen": "^0.36.3",
|
|
57
57
|
"standard-version": "^9",
|
|
58
58
|
"ts-jest": "^27.0.7",
|
|
59
|
-
"typescript": "^4.
|
|
59
|
+
"typescript": "^4.5.2"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"@aws-cdk/aws-ec2": "^1.
|
|
63
|
-
"@aws-cdk/aws-iam": "^1.
|
|
64
|
-
"@aws-cdk/aws-lambda": "^1.
|
|
65
|
-
"@aws-cdk/core": "^1.
|
|
62
|
+
"@aws-cdk/aws-ec2": "^1.134.0",
|
|
63
|
+
"@aws-cdk/aws-iam": "^1.134.0",
|
|
64
|
+
"@aws-cdk/aws-lambda": "^1.134.0",
|
|
65
|
+
"@aws-cdk/core": "^1.134.0",
|
|
66
66
|
"constructs": "^3.2.27"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@aws-cdk/aws-ec2": "^1.
|
|
70
|
-
"@aws-cdk/aws-iam": "^1.
|
|
71
|
-
"@aws-cdk/aws-lambda": "^1.
|
|
72
|
-
"@aws-cdk/core": "^1.
|
|
73
|
-
"got": "^11.8.
|
|
69
|
+
"@aws-cdk/aws-ec2": "^1.134.0",
|
|
70
|
+
"@aws-cdk/aws-iam": "^1.134.0",
|
|
71
|
+
"@aws-cdk/aws-lambda": "^1.134.0",
|
|
72
|
+
"@aws-cdk/core": "^1.134.0",
|
|
73
|
+
"got": "^11.8.3"
|
|
74
74
|
},
|
|
75
75
|
"bundledDependencies": [
|
|
76
76
|
"got"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
],
|
|
81
81
|
"main": "lib/index.js",
|
|
82
82
|
"license": "Apache-2.0",
|
|
83
|
-
"version": "0.0.
|
|
83
|
+
"version": "0.0.84",
|
|
84
84
|
"jest": {
|
|
85
85
|
"testMatch": [
|
|
86
86
|
"**/__tests__/**/*.ts?(x)",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"preset": "ts-jest",
|
|
117
117
|
"globals": {
|
|
118
118
|
"ts-jest": {
|
|
119
|
-
"tsconfig": "tsconfig.
|
|
119
|
+
"tsconfig": "tsconfig.dev.json"
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
},
|