cloudstructs 0.4.13 → 0.4.17

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 (73) hide show
  1. package/.gitattributes +1 -0
  2. package/.jsii +31 -8
  3. package/API.md +2 -0
  4. package/assets/slack-app/provider.lambda/index.js +9 -2
  5. package/assets/slack-textract/detect.lambda/index.js +9 -2
  6. package/assets/toolkit-cleaner/extract-template-hashes.lambda/index.js +45 -0
  7. package/changelog.md +6 -1
  8. package/lib/codecommit-mirror/index.js +2 -2
  9. package/lib/ecs-service-roller/index.js +2 -2
  10. package/lib/email-receiver/receiver.js +1 -1
  11. package/lib/saml-identity-provider/index.js +2 -2
  12. package/lib/slack-app/manifest.js +1 -1
  13. package/lib/slack-app/slack-app.js +2 -2
  14. package/lib/slack-events/index.js +1 -1
  15. package/lib/slack-textract/index.js +1 -1
  16. package/lib/state-machine-cr-provider/index.js +1 -1
  17. package/lib/static-website/index.js +1 -1
  18. package/lib/toolkit-cleaner/extract-template-hashes-function.d.ts +13 -0
  19. package/lib/toolkit-cleaner/extract-template-hashes-function.js +23 -0
  20. package/lib/toolkit-cleaner/extract-template-hashes.lambda.d.ts +1 -0
  21. package/lib/toolkit-cleaner/extract-template-hashes.lambda.js +17 -0
  22. package/lib/toolkit-cleaner/index.d.ts +10 -0
  23. package/lib/toolkit-cleaner/index.js +18 -16
  24. package/lib/url-shortener/index.js +1 -1
  25. package/node_modules/@sindresorhus/is/dist/index.d.ts +3 -3
  26. package/node_modules/@sindresorhus/is/dist/index.js +0 -1
  27. package/node_modules/@sindresorhus/is/dist/types.d.ts +1 -0
  28. package/node_modules/@sindresorhus/is/package.json +1 -1
  29. package/node_modules/@sindresorhus/is/readme.md +1 -3
  30. package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
  31. package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +1 -1
  32. package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +31 -3
  33. package/node_modules/@slack/logger/node_modules/@types/node/index.d.ts +0 -1
  34. package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -7
  35. package/node_modules/@slack/logger/node_modules/@types/node/url.d.ts +27 -1
  36. package/node_modules/@slack/logger/node_modules/@types/node/util.d.ts +1 -1
  37. package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
  38. package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +1 -1
  39. package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +31 -3
  40. package/node_modules/@slack/web-api/node_modules/@types/node/index.d.ts +0 -1
  41. package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -7
  42. package/node_modules/@slack/web-api/node_modules/@types/node/url.d.ts +27 -1
  43. package/node_modules/@slack/web-api/node_modules/@types/node/util.d.ts +1 -1
  44. package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
  45. package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +0 -1
  46. package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -7
  47. package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
  48. package/node_modules/@types/is-stream/node_modules/@types/node/index.d.ts +0 -1
  49. package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -7
  50. package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
  51. package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +0 -1
  52. package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -7
  53. package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
  54. package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +0 -1
  55. package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -7
  56. package/node_modules/keyv/.nyc_output/{37411020-4142-4b08-b825-343ba2427bf7.json → 17c338d1-cd21-4d2f-9d97-398f18a945cf.json} +0 -0
  57. package/node_modules/keyv/.nyc_output/67b1f344-0eec-41a3-a665-c824c346e898.json +1 -0
  58. package/node_modules/keyv/.nyc_output/adb04494-7d0a-443f-9130-94b19c3fa19c.json +1 -0
  59. package/node_modules/keyv/.nyc_output/processinfo/17c338d1-cd21-4d2f-9d97-398f18a945cf.json +1 -0
  60. package/node_modules/keyv/.nyc_output/processinfo/67b1f344-0eec-41a3-a665-c824c346e898.json +1 -0
  61. package/node_modules/keyv/.nyc_output/processinfo/adb04494-7d0a-443f-9130-94b19c3fa19c.json +1 -0
  62. package/node_modules/keyv/.nyc_output/processinfo/index.json +1 -1
  63. package/node_modules/keyv/README.md +83 -2
  64. package/node_modules/keyv/package.json +2 -6
  65. package/node_modules/keyv/src/index.js +11 -1
  66. package/node_modules/keyv/test/test.js +1 -3
  67. package/node_modules/keyv/test/testdb.sqlite +0 -0
  68. package/package.json +15 -7
  69. package/releasetag.txt +1 -1
  70. package/version.txt +1 -1
  71. package/node_modules/keyv/.nyc_output/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +0 -1
  72. package/node_modules/keyv/.nyc_output/processinfo/37411020-4142-4b08-b825-343ba2427bf7.json +0 -1
  73. package/node_modules/keyv/.nyc_output/processinfo/cd79f2de-c8b8-4493-bc15-b2bde28efa4b.json +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.14",
3
+ "version": "17.0.15",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -110,11 +110,6 @@
110
110
  "url": "https://github.com/eps1lon",
111
111
  "githubUsername": "eps1lon"
112
112
  },
113
- {
114
- "name": "Seth Westphal",
115
- "url": "https://github.com/westy92",
116
- "githubUsername": "westy92"
117
- },
118
113
  {
119
114
  "name": "Simon Schick",
120
115
  "url": "https://github.com/SimonSchick",
@@ -220,6 +215,6 @@
220
215
  },
221
216
  "scripts": {},
222
217
  "dependencies": {},
223
- "typesPublisherContentHash": "6e8e93afce4fec9d11be4e66edf9445da476955206bcb7287f6832ff443d5f7c",
218
+ "typesPublisherContentHash": "a329ddcd97ab6a1c8b625aef355a454352556c1cebd7fca4e3eda4f0cc1eb54e",
224
219
  "typeScriptVersion": "3.8"
225
220
  }
@@ -8,9 +8,9 @@ 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: Tue, 01 Feb 2022 08:31:29 GMT
11
+ * Last updated: Fri, 04 Feb 2022 23:01:26 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
@@ -21,7 +21,6 @@
21
21
  // Nikita Galkin <https://github.com/galkin>
22
22
  // Parambir Singh <https://github.com/parambirs>
23
23
  // Sebastian Silbermann <https://github.com/eps1lon>
24
- // Seth Westphal <https://github.com/westy92>
25
24
  // Simon Schick <https://github.com/SimonSchick>
26
25
  // Thomas den Hollander <https://github.com/ThomasdenH>
27
26
  // Wilco Bakker <https://github.com/WilcoBakker>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.14",
3
+ "version": "17.0.15",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -110,11 +110,6 @@
110
110
  "url": "https://github.com/eps1lon",
111
111
  "githubUsername": "eps1lon"
112
112
  },
113
- {
114
- "name": "Seth Westphal",
115
- "url": "https://github.com/westy92",
116
- "githubUsername": "westy92"
117
- },
118
113
  {
119
114
  "name": "Simon Schick",
120
115
  "url": "https://github.com/SimonSchick",
@@ -220,6 +215,6 @@
220
215
  },
221
216
  "scripts": {},
222
217
  "dependencies": {},
223
- "typesPublisherContentHash": "6e8e93afce4fec9d11be4e66edf9445da476955206bcb7287f6832ff443d5f7c",
218
+ "typesPublisherContentHash": "a329ddcd97ab6a1c8b625aef355a454352556c1cebd7fca4e3eda4f0cc1eb54e",
224
219
  "typeScriptVersion": "3.8"
225
220
  }
@@ -8,9 +8,9 @@ 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: Tue, 01 Feb 2022 08:31:29 GMT
11
+ * Last updated: Fri, 04 Feb 2022 23:01:26 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
@@ -21,7 +21,6 @@
21
21
  // Nikita Galkin <https://github.com/galkin>
22
22
  // Parambir Singh <https://github.com/parambirs>
23
23
  // Sebastian Silbermann <https://github.com/eps1lon>
24
- // Seth Westphal <https://github.com/westy92>
25
24
  // Simon Schick <https://github.com/SimonSchick>
26
25
  // Thomas den Hollander <https://github.com/ThomasdenH>
27
26
  // Wilco Bakker <https://github.com/WilcoBakker>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.14",
3
+ "version": "17.0.15",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -110,11 +110,6 @@
110
110
  "url": "https://github.com/eps1lon",
111
111
  "githubUsername": "eps1lon"
112
112
  },
113
- {
114
- "name": "Seth Westphal",
115
- "url": "https://github.com/westy92",
116
- "githubUsername": "westy92"
117
- },
118
113
  {
119
114
  "name": "Simon Schick",
120
115
  "url": "https://github.com/SimonSchick",
@@ -220,6 +215,6 @@
220
215
  },
221
216
  "scripts": {},
222
217
  "dependencies": {},
223
- "typesPublisherContentHash": "6e8e93afce4fec9d11be4e66edf9445da476955206bcb7287f6832ff443d5f7c",
218
+ "typesPublisherContentHash": "a329ddcd97ab6a1c8b625aef355a454352556c1cebd7fca4e3eda4f0cc1eb54e",
224
219
  "typeScriptVersion": "3.8"
225
220
  }
@@ -8,9 +8,9 @@ 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: Tue, 01 Feb 2022 08:31:29 GMT
11
+ * Last updated: Fri, 04 Feb 2022 23:01:26 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Seth Westphal](https://github.com/westy92), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
@@ -21,7 +21,6 @@
21
21
  // Nikita Galkin <https://github.com/galkin>
22
22
  // Parambir Singh <https://github.com/parambirs>
23
23
  // Sebastian Silbermann <https://github.com/eps1lon>
24
- // Seth Westphal <https://github.com/westy92>
25
24
  // Simon Schick <https://github.com/SimonSchick>
26
25
  // Thomas den Hollander <https://github.com/ThomasdenH>
27
26
  // Wilco Bakker <https://github.com/WilcoBakker>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.14",
3
+ "version": "17.0.15",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -110,11 +110,6 @@
110
110
  "url": "https://github.com/eps1lon",
111
111
  "githubUsername": "eps1lon"
112
112
  },
113
- {
114
- "name": "Seth Westphal",
115
- "url": "https://github.com/westy92",
116
- "githubUsername": "westy92"
117
- },
118
113
  {
119
114
  "name": "Simon Schick",
120
115
  "url": "https://github.com/SimonSchick",
@@ -220,6 +215,6 @@
220
215
  },
221
216
  "scripts": {},
222
217
  "dependencies": {},
223
- "typesPublisherContentHash": "6e8e93afce4fec9d11be4e66edf9445da476955206bcb7287f6832ff443d5f7c",
218
+ "typesPublisherContentHash": "a329ddcd97ab6a1c8b625aef355a454352556c1cebd7fca4e3eda4f0cc1eb54e",
224
219
  "typeScriptVersion": "3.8"
225
220
  }
@@ -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":7,"column":0},"end":{"line":9,"column":2}},"3":{"start":{"line":8,"column":1},"end":{"line":8,"column":24}},"4":{"start":{"line":11,"column":18},"end":{"line":28,"column":1}},"5":{"start":{"line":12,"column":18},"end":{"line":21,"column":2}},"6":{"start":{"line":22,"column":1},"end":{"line":25,"column":2}},"7":{"start":{"line":23,"column":18},"end":{"line":23,"column":66}},"8":{"start":{"line":24,"column":2},"end":{"line":24,"column":51}},"9":{"start":{"line":27,"column":1},"end":{"line":27,"column":18}},"10":{"start":{"line":32,"column":2},"end":{"line":32,"column":10}},"11":{"start":{"line":33,"column":2},"end":{"line":41,"column":4}},"12":{"start":{"line":43,"column":2},"end":{"line":46,"column":3}},"13":{"start":{"line":44,"column":26},"end":{"line":44,"column":54}},"14":{"start":{"line":45,"column":3},"end":{"line":45,"column":47}},"15":{"start":{"line":48,"column":2},"end":{"line":50,"column":3}},"16":{"start":{"line":49,"column":3},"end":{"line":49,"column":67}},"17":{"start":{"line":49,"column":40},"end":{"line":49,"column":65}},"18":{"start":{"line":52,"column":2},"end":{"line":52,"column":50}},"19":{"start":{"line":56,"column":2},"end":{"line":56,"column":41}},"20":{"start":{"line":60,"column":22},"end":{"line":60,"column":45}},"21":{"start":{"line":61,"column":20},"end":{"line":61,"column":29}},"22":{"start":{"line":62,"column":2},"end":{"line":76,"column":6}},"23":{"start":{"line":63,"column":15},"end":{"line":63,"column":37}},"24":{"start":{"line":64,"column":17},"end":{"line":64,"column":80}},"25":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"26":{"start":{"line":67,"column":5},"end":{"line":67,"column":22}},"27":{"start":{"line":70,"column":4},"end":{"line":73,"column":5}},"28":{"start":{"line":71,"column":5},"end":{"line":71,"column":22}},"29":{"start":{"line":72,"column":5},"end":{"line":72,"column":22}},"30":{"start":{"line":75,"column":4},"end":{"line":75,"column":56}},"31":{"start":{"line":80,"column":22},"end":{"line":80,"column":45}},"32":{"start":{"line":81,"column":2},"end":{"line":83,"column":3}},"33":{"start":{"line":82,"column":3},"end":{"line":82,"column":23}},"34":{"start":{"line":85,"column":2},"end":{"line":87,"column":3}},"35":{"start":{"line":86,"column":3},"end":{"line":86,"column":19}},"36":{"start":{"line":89,"column":20},"end":{"line":89,"column":29}},"37":{"start":{"line":91,"column":2},"end":{"line":102,"column":21}},"38":{"start":{"line":93,"column":20},"end":{"line":93,"column":73}},"39":{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},"40":{"start":{"line":95,"column":5},"end":{"line":95,"column":55}},"41":{"start":{"line":98,"column":4},"end":{"line":98,"column":31}},"42":{"start":{"line":99,"column":4},"end":{"line":99,"column":38}},"43":{"start":{"line":101,"column":18},"end":{"line":101,"column":52}},"44":{"start":{"line":102,"column":15},"end":{"line":102,"column":19}},"45":{"start":{"line":106,"column":22},"end":{"line":106,"column":45}},"46":{"start":{"line":107,"column":20},"end":{"line":107,"column":29}},"47":{"start":{"line":108,"column":2},"end":{"line":109,"column":42}},"48":{"start":{"line":109,"column":15},"end":{"line":109,"column":40}},"49":{"start":{"line":113,"column":20},"end":{"line":113,"column":29}},"50":{"start":{"line":114,"column":2},"end":{"line":115,"column":30}},"51":{"start":{"line":115,"column":15},"end":{"line":115,"column":28}},"52":{"start":{"line":119,"column":0},"end":{"line":119,"column":22}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":7,"column":26},"end":{"line":7,"column":27}},"loc":{"start":{"line":7,"column":38},"end":{"line":9,"column":1}},"line":7},"1":{"name":"(anonymous_1)","decl":{"start":{"line":11,"column":18},"end":{"line":11,"column":19}},"loc":{"start":{"line":11,"column":29},"end":{"line":28,"column":1}},"line":11},"2":{"name":"(anonymous_2)","decl":{"start":{"line":31,"column":1},"end":{"line":31,"column":2}},"loc":{"start":{"line":31,"column":27},"end":{"line":53,"column":2}},"line":31},"3":{"name":"(anonymous_3)","decl":{"start":{"line":49,"column":31},"end":{"line":49,"column":32}},"loc":{"start":{"line":49,"column":40},"end":{"line":49,"column":65}},"line":49},"4":{"name":"(anonymous_4)","decl":{"start":{"line":55,"column":1},"end":{"line":55,"column":2}},"loc":{"start":{"line":55,"column":20},"end":{"line":57,"column":2}},"line":55},"5":{"name":"(anonymous_5)","decl":{"start":{"line":59,"column":1},"end":{"line":59,"column":2}},"loc":{"start":{"line":59,"column":19},"end":{"line":77,"column":2}},"line":59},"6":{"name":"(anonymous_6)","decl":{"start":{"line":63,"column":9},"end":{"line":63,"column":10}},"loc":{"start":{"line":63,"column":15},"end":{"line":63,"column":37}},"line":63},"7":{"name":"(anonymous_7)","decl":{"start":{"line":64,"column":9},"end":{"line":64,"column":10}},"loc":{"start":{"line":64,"column":17},"end":{"line":64,"column":80}},"line":64},"8":{"name":"(anonymous_8)","decl":{"start":{"line":65,"column":9},"end":{"line":65,"column":10}},"loc":{"start":{"line":65,"column":17},"end":{"line":76,"column":4}},"line":65},"9":{"name":"(anonymous_9)","decl":{"start":{"line":79,"column":1},"end":{"line":79,"column":2}},"loc":{"start":{"line":79,"column":22},"end":{"line":103,"column":2}},"line":79},"10":{"name":"(anonymous_10)","decl":{"start":{"line":92,"column":9},"end":{"line":92,"column":10}},"loc":{"start":{"line":92,"column":15},"end":{"line":100,"column":4}},"line":92},"11":{"name":"(anonymous_11)","decl":{"start":{"line":101,"column":9},"end":{"line":101,"column":10}},"loc":{"start":{"line":101,"column":18},"end":{"line":101,"column":52}},"line":101},"12":{"name":"(anonymous_12)","decl":{"start":{"line":102,"column":9},"end":{"line":102,"column":10}},"loc":{"start":{"line":102,"column":15},"end":{"line":102,"column":19}},"line":102},"13":{"name":"(anonymous_13)","decl":{"start":{"line":105,"column":1},"end":{"line":105,"column":2}},"loc":{"start":{"line":105,"column":13},"end":{"line":110,"column":2}},"line":105},"14":{"name":"(anonymous_14)","decl":{"start":{"line":109,"column":9},"end":{"line":109,"column":10}},"loc":{"start":{"line":109,"column":15},"end":{"line":109,"column":40}},"line":109},"15":{"name":"(anonymous_15)","decl":{"start":{"line":112,"column":1},"end":{"line":112,"column":2}},"loc":{"start":{"line":112,"column":9},"end":{"line":116,"column":2}},"line":112},"16":{"name":"(anonymous_16)","decl":{"start":{"line":115,"column":9},"end":{"line":115,"column":10}},"loc":{"start":{"line":115,"column":15},"end":{"line":115,"column":28}},"line":115}},"branchMap":{"0":{"loc":{"start":{"line":22,"column":1},"end":{"line":25,"column":2}},"type":"if","locations":[{"start":{"line":22,"column":1},"end":{"line":25,"column":2}},{"start":{"line":22,"column":1},"end":{"line":25,"column":2}}],"line":22},"1":{"loc":{"start":{"line":22,"column":5},"end":{"line":22,"column":35}},"type":"binary-expr","locations":[{"start":{"line":22,"column":5},"end":{"line":22,"column":20}},{"start":{"line":22,"column":24},"end":{"line":22,"column":35}}],"line":22},"2":{"loc":{"start":{"line":23,"column":18},"end":{"line":23,"column":66}},"type":"binary-expr","locations":[{"start":{"line":23,"column":18},"end":{"line":23,"column":33}},{"start":{"line":23,"column":37},"end":{"line":23,"column":66}}],"line":23},"3":{"loc":{"start":{"line":39,"column":3},"end":{"line":39,"column":44}},"type":"cond-expr","locations":[{"start":{"line":39,"column":31},"end":{"line":39,"column":38}},{"start":{"line":39,"column":41},"end":{"line":39,"column":44}}],"line":39},"4":{"loc":{"start":{"line":43,"column":2},"end":{"line":46,"column":3}},"type":"if","locations":[{"start":{"line":43,"column":2},"end":{"line":46,"column":3}},{"start":{"line":43,"column":2},"end":{"line":46,"column":3}}],"line":43},"5":{"loc":{"start":{"line":48,"column":2},"end":{"line":50,"column":3}},"type":"if","locations":[{"start":{"line":48,"column":2},"end":{"line":50,"column":3}},{"start":{"line":48,"column":2},"end":{"line":50,"column":3}}],"line":48},"6":{"loc":{"start":{"line":64,"column":17},"end":{"line":64,"column":80}},"type":"cond-expr","locations":[{"start":{"line":64,"column":46},"end":{"line":64,"column":73}},{"start":{"line":64,"column":76},"end":{"line":64,"column":80}}],"line":64},"7":{"loc":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},{"start":{"line":66,"column":4},"end":{"line":68,"column":5}}],"line":66},"8":{"loc":{"start":{"line":66,"column":8},"end":{"line":66,"column":43}},"type":"binary-expr","locations":[{"start":{"line":66,"column":8},"end":{"line":66,"column":26}},{"start":{"line":66,"column":30},"end":{"line":66,"column":43}}],"line":66},"9":{"loc":{"start":{"line":70,"column":4},"end":{"line":73,"column":5}},"type":"if","locations":[{"start":{"line":70,"column":4},"end":{"line":73,"column":5}},{"start":{"line":70,"column":4},"end":{"line":73,"column":5}}],"line":70},"10":{"loc":{"start":{"line":70,"column":8},"end":{"line":70,"column":69}},"type":"binary-expr","locations":[{"start":{"line":70,"column":8},"end":{"line":70,"column":40}},{"start":{"line":70,"column":44},"end":{"line":70,"column":69}}],"line":70},"11":{"loc":{"start":{"line":75,"column":11},"end":{"line":75,"column":55}},"type":"cond-expr","locations":[{"start":{"line":75,"column":38},"end":{"line":75,"column":42}},{"start":{"line":75,"column":45},"end":{"line":75,"column":55}}],"line":75},"12":{"loc":{"start":{"line":75,"column":12},"end":{"line":75,"column":34}},"type":"binary-expr","locations":[{"start":{"line":75,"column":12},"end":{"line":75,"column":19}},{"start":{"line":75,"column":23},"end":{"line":75,"column":34}}],"line":75},"13":{"loc":{"start":{"line":81,"column":2},"end":{"line":83,"column":3}},"type":"if","locations":[{"start":{"line":81,"column":2},"end":{"line":83,"column":3}},{"start":{"line":81,"column":2},"end":{"line":83,"column":3}}],"line":81},"14":{"loc":{"start":{"line":85,"column":2},"end":{"line":87,"column":3}},"type":"if","locations":[{"start":{"line":85,"column":2},"end":{"line":87,"column":3}},{"start":{"line":85,"column":2},"end":{"line":87,"column":3}}],"line":85},"15":{"loc":{"start":{"line":93,"column":20},"end":{"line":93,"column":73}},"type":"cond-expr","locations":[{"start":{"line":93,"column":49},"end":{"line":93,"column":65}},{"start":{"line":93,"column":69},"end":{"line":93,"column":73}}],"line":93},"16":{"loc":{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},"type":"if","locations":[{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},{"start":{"line":94,"column":4},"end":{"line":96,"column":5}}],"line":94}},"s":{"0":1,"1":1,"2":1,"3":0,"4":1,"5":3,"6":3,"7":2,"8":2,"9":1,"10":197,"11":197,"12":197,"13":3,"14":3,"15":197,"16":188,"17":1,"18":197,"19":95,"20":46,"21":46,"22":46,"23":46,"24":46,"25":46,"26":9,"27":37,"28":5,"29":5,"30":32,"31":39,"32":39,"33":34,"34":39,"35":1,"36":39,"37":39,"38":39,"39":39,"40":1,"41":38,"42":38,"43":38,"44":38,"45":10,"46":10,"47":10,"48":10,"49":163,"50":163,"51":163,"52":1},"f":{"0":0,"1":3,"2":197,"3":1,"4":95,"5":46,"6":46,"7":46,"8":46,"9":39,"10":39,"11":38,"12":38,"13":10,"14":10,"15":163,"16":163},"b":{"0":[2,1],"1":[3,3],"2":[2,2],"3":[2,195],"4":[3,194],"5":[188,9],"6":[37,9],"7":[9,37],"8":[46,37],"9":[5,32],"10":[37,13],"11":[1,31],"12":[32,1],"13":[34,5],"14":[1,38],"15":[6,33],"16":[1,38]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"a1f9f50840413fbf8dec11cc75e741387da8a6d0","contentHash":"0ecb4ae8fe157ca1a77008538c0b536709aa7c13d364d4266adea5319bee04f1"}}
@@ -0,0 +1 @@
1
+ {"parent":"67b1f344-0eec-41a3-a665-c824c346e898","pid":4476,"argv":["/Users/jaredwray/.nvm/versions/node/v16.13.1/bin/node","/Users/jaredwray/src/github.com/jaredwray/keyv/node_modules/update-notifier/check.js","{\"pkg\":{\"name\":\"ava\",\"version\":\"3.15.0\"},\"distTag\":\"latest\"}"],"execArgv":[],"cwd":"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv","time":1643754172416,"ppid":4475,"coverageFilename":"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/.nyc_output/17c338d1-cd21-4d2f-9d97-398f18a945cf.json","externalId":"","uuid":"17c338d1-cd21-4d2f-9d97-398f18a945cf","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":4475,"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":1643754172273,"ppid":4474,"coverageFilename":"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/.nyc_output/67b1f344-0eec-41a3-a665-c824c346e898.json","externalId":"","uuid":"67b1f344-0eec-41a3-a665-c824c346e898","files":[]}
@@ -0,0 +1 @@
1
+ {"parent":"67b1f344-0eec-41a3-a665-c824c346e898","pid":4477,"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":1643754172556,"ppid":4475,"coverageFilename":"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/.nyc_output/adb04494-7d0a-443f-9130-94b19c3fa19c.json","externalId":"","uuid":"adb04494-7d0a-443f-9130-94b19c3fa19c","files":["/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/src/index.js"]}
@@ -1 +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":{}}
1
+ {"processes":{"17c338d1-cd21-4d2f-9d97-398f18a945cf":{"parent":"67b1f344-0eec-41a3-a665-c824c346e898","children":[]},"67b1f344-0eec-41a3-a665-c824c346e898":{"parent":null,"children":["17c338d1-cd21-4d2f-9d97-398f18a945cf","adb04494-7d0a-443f-9130-94b19c3fa19c"]},"adb04494-7d0a-443f-9130-94b19c3fa19c":{"parent":"67b1f344-0eec-41a3-a665-c824c346e898","children":[]}},"files":{"/Users/jaredwray/src/github.com/jaredwray/keyv/packages/keyv/src/index.js":["adb04494-7d0a-443f-9130-94b19c3fa19c"]},"externalIds":{}}
@@ -6,7 +6,7 @@
6
6
 
7
7
  > Simple key-value storage with support for multiple backends
8
8
 
9
- [![build](https://github.com/jaredwray/keyv/actions/workflows/build.yaml/badge.svg)](https://github.com/jaredwray/keyv/actions/workflows/build.yaml)
9
+ [![build](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml/badge.svg)](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml)
10
10
  [![codecov](https://codecov.io/gh/jaredwray/keyv/branch/master/graph/badge.svg?token=bRzR3RyOXZ)](https://codecov.io/gh/jaredwray/keyv)
11
11
  [![npm](https://img.shields.io/npm/dm/keyv.svg)](https://www.npmjs.com/package/keyv)
12
12
  [![npm](https://img.shields.io/npm/v/keyv.svg)](https://www.npmjs.com/package/keyv)
@@ -44,6 +44,7 @@ npm install --save @keyv/mongo
44
44
  npm install --save @keyv/sqlite
45
45
  npm install --save @keyv/postgres
46
46
  npm install --save @keyv/mysql
47
+ npm install --save @keyv/etcd
47
48
  ```
48
49
 
49
50
  Create a new Keyv instance, passing your connection string if applicable. Keyv will automatically load the correct storage adapter.
@@ -58,6 +59,7 @@ const keyv = new Keyv('mongodb://user:pass@localhost:27017/dbname');
58
59
  const keyv = new Keyv('sqlite://path/to/database.sqlite');
59
60
  const keyv = new Keyv('postgresql://user:pass@localhost:5432/dbname');
60
61
  const keyv = new Keyv('mysql://user:pass@localhost:3306/dbname');
62
+ const keyv = new Keyv('etcd://localhost:2379');
61
63
 
62
64
  // Handle DB connection errors
63
65
  keyv.on('error', err => console.log('Connection Error', err));
@@ -100,7 +102,7 @@ const keyv = new Keyv({ serialize: JSON.stringify, deserialize: JSON.parse });
100
102
 
101
103
  ## Official Storage Adapters
102
104
 
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.
105
+ The official storage adapters are covered by [over 150 integration tests](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml) to guarantee consistent behaviour. They are lightweight, efficient wrappers over the DB clients making use of indexes and native TTLs where available.
104
106
 
105
107
  Database | Adapter | Native TTL
106
108
  ---|---|---
@@ -109,6 +111,7 @@ MongoDB | [@keyv/mongo](https://github.com/jaredwray/keyv/tree/master/packages/m
109
111
  SQLite | [@keyv/sqlite](https://github.com/jaredwray/keyv/tree/master/packages/sqlite) | No
110
112
  PostgreSQL | [@keyv/postgres](https://github.com/jaredwray/keyv/tree/master/packages/postgres) | No
111
113
  MySQL | [@keyv/mysql](https://github.com/jaredwray/keyv/tree/master/packages/mysql) | No
114
+ Etcd | [@keyv/etcd](https://github.com/jaredwray/keyv/tree/master/packages/etcd) | Yes
112
115
 
113
116
  ## Third-party Storage Adapters
114
117
 
@@ -286,6 +289,84 @@ Delete all entries in the current namespace.
286
289
 
287
290
  Returns a promise which is resolved when the entries have been cleared.
288
291
 
292
+ # How to Contribute
293
+
294
+ In this section of the documentation we will cover:
295
+
296
+ 1) How to set up this repository locally
297
+ 2) How to get started with running commands
298
+ 3) How to contribute changes using Pull Requests
299
+
300
+ ## Dependencies
301
+
302
+ This package requires the following dependencies to run:
303
+
304
+ 1) [Yarn V1](https://yarnpkg.com/getting-started/install)
305
+ 2) [Lerna](https://lerna.js.org/)
306
+ 3) [Docker](https://docs.docker.com/get-docker/)
307
+
308
+ ## Setting up your workspace
309
+
310
+ To contribute to this repository, start by setting up this project locally:
311
+
312
+ 1) Fork this repository into your Git account
313
+ 2) Clone the forked repository to your local directory using `git clone`
314
+ 3) Install any of the above missing dependencies
315
+
316
+ ## Launching the project
317
+
318
+ Once the project is installed locally, you are ready to start up its services:
319
+
320
+ 1) Ensure that your Docker service is running.
321
+ 2) From the root directory of your project, run the `yarn` command in the command prompt to install yarn.
322
+ 3) Run the `yarn bootstrap` command to install any necessary dependencies.
323
+ 4) Run `yarn test:services:start` to start up this project's Docker container. The container will launch all services within your workspace.
324
+
325
+ ## Available Commands
326
+
327
+ Once the project is running, you can execute a variety of commands. The root workspace and each subpackage contain a `package.json` file with a `scripts` field listing all the commands that can be executed from that directory. This project also supports native `yarn`, `lerna`, and `docker` commands.
328
+
329
+ Here, we'll cover the primary commands that can be executed from the root directory. Unless otherwise noted, these commands can also be executed from a subpackage. If executed from a subpackage, they will only affect that subpackage, rather than the entire workspace.
330
+
331
+ ### `yarn`
332
+
333
+ The `yarn` command installs yarn in the workspace.
334
+
335
+ ### `yarn bootstrap`
336
+
337
+ The `yarn bootstrap` command installs all dependencies in the workspace.
338
+
339
+ ### `yarn test:services:start`
340
+
341
+ The `yarn test:services:start` command starts up the project's Docker container, launching all services in the workspace. This command must be executed from the root directory.
342
+
343
+ ### `yarn test:services:stop`
344
+
345
+ The `yarn test:services:stop` command brings down the project's Docker container, halting all services. This command must be executed from the root directory.
346
+
347
+ ### `yarn test`
348
+
349
+ The `yarn test` command runs all tests in the workspace.
350
+
351
+ ### `yarn clean`
352
+
353
+ The `yarn clean` command removes yarn and all dependencies installed by yarn. After executing this command, you must repeat the steps in *Setting up your workspace* to rebuild your workspace.
354
+
355
+ ## Contributing Changes
356
+
357
+ Now that you've set up your workspace, you're ready to contribute changes to the `keyv` repository.
358
+
359
+ 1) Make any changes that you would like to contribute in your local workspace.
360
+ 2) After making these changes, ensure that the project's tests still pass by executing the `yarn test` command in the root directory.
361
+ 3) Commit your changes and push them to your forked repository.
362
+ 4) Navigate to the original `keyv` repository and go the *Pull Requests* tab.
363
+ 5) Click the *New pull request* button, and open a pull request for the branch in your repository that contains your changes.
364
+ 6) Once your pull request is created, ensure that all checks have passed and that your branch has no conflicts with the base branch. If there are any issues, resolve these changes in your local repository, and then commit and push them to git.
365
+ 7) Similarly, respond to any reviewer comments or requests for changes by making edits to your local repository and pushing them to Git.
366
+ 8) Once the pull request has been reviewed, those with write access to the branch will be able to merge your changes into the `keyv` repository.
367
+
368
+ If you need more information on the steps to create a pull request, you can find a detailed walkthrough in the [Github documentation](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork)
369
+
289
370
  ## License
290
371
 
291
372
  MIT © Jared Wray & Luke Childs
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keyv",
3
- "version": "4.0.5",
3
+ "version": "4.1.0",
4
4
  "description": "Simple key-value storage with support for multiple backends",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -35,16 +35,12 @@
35
35
  "json-buffer": "3.0.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@keyv/mongo": "*",
39
- "@keyv/mysql": "*",
40
- "@keyv/postgres": "*",
41
- "@keyv/redis": "*",
42
- "@keyv/sqlite": "*",
43
38
  "@keyv/test-suite": "*",
44
39
  "ava": "^3.15.0",
45
40
  "eslint-config-xo-lukechilds": "^1.0.0",
46
41
  "eslint-plugin-promise": "^5.1.1",
47
42
  "nyc": "^15.1.0",
43
+ "pify": "5.0.0",
48
44
  "this": "^1.0.2",
49
45
  "timekeeper": "^2.0.0",
50
46
  "xo": "^0.46.3"
@@ -3,6 +3,11 @@
3
3
  const EventEmitter = require('events');
4
4
  const JSONB = require('json-buffer');
5
5
 
6
+ // eslint-disable-next-line no-extend-native
7
+ BigInt.prototype.toJSON = function () {
8
+ return this.toString();
9
+ };
10
+
6
11
  const loadStore = options => {
7
12
  const adapters = {
8
13
  redis: '@keyv/redis',
@@ -12,6 +17,7 @@ const loadStore = options => {
12
17
  postgresql: '@keyv/postgres',
13
18
  postgres: '@keyv/postgres',
14
19
  mysql: '@keyv/mysql',
20
+ etcd: '@keyv/etcd',
15
21
  };
16
22
  if (options.adapter || options.uri) {
17
23
  const adapter = options.adapter || /^[^:]*/.exec(options.uri)[0];
@@ -57,7 +63,7 @@ class Keyv extends EventEmitter {
57
63
  .then(() => store.get(keyPrefixed))
58
64
  .then(data => (typeof data === 'string') ? this.opts.deserialize(data) : data)
59
65
  .then(data => {
60
- if (data === undefined) {
66
+ if (data === undefined || data === null) {
61
67
  return undefined;
62
68
  }
63
69
 
@@ -85,6 +91,10 @@ class Keyv extends EventEmitter {
85
91
  return Promise.resolve()
86
92
  .then(() => {
87
93
  const expires = (typeof ttl === 'number') ? (Date.now() + ttl) : null;
94
+ if (typeof value === 'symbol') {
95
+ this.emit('error', 'symbol cannot be serialized');
96
+ }
97
+
88
98
  value = { value, expires };
89
99
  return this.opts.serialize(value);
90
100
  })
@@ -1,12 +1,10 @@
1
1
  const test = require('ava');
2
- const keyvTestSuite = require('@keyv/test-suite').default;
3
- const { keyvOfficialTests } = require('@keyv/test-suite');
2
+ const { default: keyvTestSuite, keyvOfficialTests } = require('@keyv/test-suite');
4
3
  const Keyv = require('this');
5
4
  const tk = require('timekeeper');
6
5
  const KeyvSqlite = require('@keyv/sqlite');
7
6
 
8
7
  keyvOfficialTests(test, Keyv, 'sqlite://test/testdb.sqlite', 'sqlite://non/existent/database.sqlite');
9
-
10
8
  const store = () => new KeyvSqlite({ uri: 'sqlite://test/testdb.sqlite', busyTimeout: 3000 });
11
9
  keyvTestSuite(test, Keyv, store);
12
10
 
package/package.json CHANGED
@@ -23,6 +23,8 @@
23
23
  "bundle:toolkit-cleaner/clean-images.lambda:watch": "npx projen bundle:toolkit-cleaner/clean-images.lambda:watch",
24
24
  "bundle:toolkit-cleaner/clean-objects.lambda": "npx projen bundle:toolkit-cleaner/clean-objects.lambda",
25
25
  "bundle:toolkit-cleaner/clean-objects.lambda:watch": "npx projen bundle:toolkit-cleaner/clean-objects.lambda:watch",
26
+ "bundle:toolkit-cleaner/extract-template-hashes.lambda": "npx projen bundle:toolkit-cleaner/extract-template-hashes.lambda",
27
+ "bundle:toolkit-cleaner/extract-template-hashes.lambda:watch": "npx projen bundle:toolkit-cleaner/extract-template-hashes.lambda:watch",
26
28
  "bundle:toolkit-cleaner/get-stack-names.lambda": "npx projen bundle:toolkit-cleaner/get-stack-names.lambda",
27
29
  "bundle:toolkit-cleaner/get-stack-names.lambda:watch": "npx projen bundle:toolkit-cleaner/get-stack-names.lambda:watch",
28
30
  "bundle:url-shortener/shortener.lambda": "npx projen bundle:url-shortener/shortener.lambda",
@@ -48,6 +50,7 @@
48
50
  "package": "npx projen package",
49
51
  "package-all": "npx projen package-all",
50
52
  "package:js": "npx projen package:js",
53
+ "package:python": "npx projen package:python",
51
54
  "post-compile": "npx projen post-compile",
52
55
  "post-upgrade": "npx projen post-upgrade",
53
56
  "pre-compile": "npx projen pre-compile",
@@ -69,7 +72,7 @@
69
72
  "devDependencies": {
70
73
  "@aws-cdk/aws-apigatewayv2-alpha": "2.1.0-alpha.0",
71
74
  "@aws-cdk/aws-apigatewayv2-integrations-alpha": "2.1.0-alpha.0",
72
- "@types/aws-lambda": "^8.10.90",
75
+ "@types/aws-lambda": "^8.10.92",
73
76
  "@types/jest": "^26.0.24",
74
77
  "@types/node": "^12",
75
78
  "@types/tsscmp": "^1.0.0",
@@ -77,10 +80,10 @@
77
80
  "@typescript-eslint/parser": "^5",
78
81
  "aws-cdk": "^2",
79
82
  "aws-cdk-lib": "2.1.0",
80
- "aws-sdk": "^2.1059.0",
81
- "aws-sdk-mock": "^5.5.1",
83
+ "aws-sdk": "^2.1069.0",
84
+ "aws-sdk-mock": "^5.6.2",
82
85
  "constructs": "10.0.5",
83
- "esbuild": "^0.14.11",
86
+ "esbuild": "^0.14.19",
84
87
  "eslint": "^8",
85
88
  "eslint-import-resolver-node": "^0.3.6",
86
89
  "eslint-import-resolver-typescript": "^2.5.0",
@@ -91,7 +94,7 @@
91
94
  "jsii-diff": "^1.52.1",
92
95
  "jsii-docgen": "^1.8.110",
93
96
  "json-schema": "^0.4.0",
94
- "nock": "^13.2.2",
97
+ "nock": "^13.2.4",
95
98
  "npm-check-updates": "^12",
96
99
  "projen": "^0.52.14",
97
100
  "standard-version": "^9",
@@ -118,7 +121,7 @@
118
121
  ],
119
122
  "main": "lib/index.js",
120
123
  "license": "Apache-2.0",
121
- "version": "0.4.13",
124
+ "version": "0.4.17",
122
125
  "jest": {
123
126
  "testMatch": [
124
127
  "<rootDir>/src/**/__tests__/**/*.ts?(x)",
@@ -163,7 +166,12 @@
163
166
  "stability": "stable",
164
167
  "jsii": {
165
168
  "outdir": "dist",
166
- "targets": {},
169
+ "targets": {
170
+ "python": {
171
+ "distName": "cloudstructs",
172
+ "module": "cloudstructs"
173
+ }
174
+ },
167
175
  "tsc": {
168
176
  "outDir": "lib",
169
177
  "rootDir": "src"
package/releasetag.txt CHANGED
@@ -1 +1 @@
1
- v0.4.13
1
+ v0.4.17
package/version.txt CHANGED
@@ -1 +1 @@
1
- 0.4.13
1
+ 0.4.17