cloudstructs 0.4.20 → 0.4.23
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/.jsii +3 -3
- package/assets/email-receiver/s3.lambda/index.js +8 -13
- package/assets/email-receiver/whitelist.lambda/index.js +8 -13
- package/assets/slack-app/provider.lambda/index.js +203 -35
- package/assets/slack-events/events.lambda/index.js +9 -16
- package/assets/slack-textract/detect.lambda/index.js +323 -93
- package/assets/toolkit-cleaner/clean-images.lambda/index.js +8 -13
- package/assets/toolkit-cleaner/clean-objects.lambda/index.js +9 -16
- package/assets/toolkit-cleaner/extract-template-hashes.lambda/index.js +8 -13
- package/assets/toolkit-cleaner/get-stack-names.lambda/index.js +8 -13
- package/assets/url-shortener/shortener.lambda/index.js +8 -13
- package/changelog.md +1 -1
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +14 -3
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@sindresorhus/is/dist/index.d.ts +9 -4
- package/node_modules/@sindresorhus/is/dist/index.js +9 -3
- package/node_modules/@sindresorhus/is/package.json +1 -1
- package/node_modules/@sindresorhus/is/readme.md +24 -4
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@slack/logger/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@slack/logger/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@slack/logger/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@slack/web-api/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@types/is-stream/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/json-buffer/LICENSE +21 -0
- package/node_modules/@types/json-buffer/README.md +16 -0
- package/node_modules/@types/json-buffer/index.d.ts +19 -0
- package/node_modules/@types/json-buffer/package.json +24 -0
- package/node_modules/@types/keyv/README.md +1 -1
- package/node_modules/@types/keyv/index.d.ts +16 -3
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/keyv/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +41 -10
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +19 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +48 -14
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +12 -2
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +7 -0
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +2 -1
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +1 -1
- package/node_modules/@types/retry/LICENSE +21 -21
- package/node_modules/@types/retry/README.md +4 -4
- package/node_modules/@types/retry/index.d.ts +9 -9
- package/node_modules/@types/retry/package.json +5 -7
- package/node_modules/compress-brotli/LICENSE.md +21 -0
- package/node_modules/compress-brotli/README.md +125 -0
- package/node_modules/compress-brotli/package.json +97 -0
- package/node_modules/compress-brotli/src/index.d.ts +36 -0
- package/node_modules/compress-brotli/src/index.js +45 -0
- package/node_modules/compress-brotli/src/merge-options.js +18 -0
- package/node_modules/follow-redirects/README.md +8 -1
- package/node_modules/follow-redirects/index.js +102 -82
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/keyv/package.json +55 -46
- package/node_modules/keyv/src/index.d.ts +89 -0
- package/node_modules/keyv/src/index.js +177 -25
- package/node_modules/mime-db/HISTORY.md +8 -0
- package/node_modules/mime-db/LICENSE +19 -18
- package/node_modules/mime-db/README.md +1 -1
- package/node_modules/mime-db/db.json +54 -6
- package/node_modules/mime-db/index.js +1 -0
- package/node_modules/mime-db/package.json +5 -4
- package/node_modules/mime-types/HISTORY.md +9 -0
- package/node_modules/mime-types/README.md +1 -1
- package/node_modules/mime-types/package.json +5 -5
- package/node_modules/p-retry/package.json +2 -2
- package/package.json +10 -10
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
- package/node_modules/keyv/.nyc_output/5d6b8dd1-67cf-42ee-8492-c8ae62ce826c.json +0 -1
- package/node_modules/keyv/.nyc_output/ce27532e-5888-46d4-ae10-5a71058d3f0c.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/5d6b8dd1-67cf-42ee-8492-c8ae62ce826c.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/ce27532e-5888-46d4-ae10-5a71058d3f0c.json +0 -1
- package/node_modules/keyv/.nyc_output/processinfo/index.json +0 -1
- package/node_modules/keyv/test/test.js +0 -130
- package/node_modules/keyv/test/testdb.sqlite +0 -0
|
@@ -21,7 +21,6 @@ var __spreadValues = (a, b) => {
|
|
|
21
21
|
return a;
|
|
22
22
|
};
|
|
23
23
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
25
24
|
var __commonJS = (cb, mod) => function __require() {
|
|
26
25
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
27
26
|
};
|
|
@@ -29,22 +28,16 @@ var __export = (target, all) => {
|
|
|
29
28
|
for (var name in all)
|
|
30
29
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
31
30
|
};
|
|
32
|
-
var
|
|
33
|
-
if (
|
|
34
|
-
for (let key of __getOwnPropNames(
|
|
35
|
-
if (!__hasOwnProp.call(
|
|
36
|
-
__defProp(
|
|
31
|
+
var __copyProps = (to, from, except, desc) => {
|
|
32
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
33
|
+
for (let key of __getOwnPropNames(from))
|
|
34
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
35
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
37
36
|
}
|
|
38
|
-
return
|
|
37
|
+
return to;
|
|
39
38
|
};
|
|
40
|
-
var __toESM = (
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
44
|
-
return (module2, temp) => {
|
|
45
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
46
|
-
};
|
|
47
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
39
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
40
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
41
|
|
|
49
42
|
// node_modules/is-stream/index.js
|
|
50
43
|
var require_is_stream = __commonJS({
|
|
@@ -1750,7 +1743,7 @@ var require_common = __commonJS({
|
|
|
1750
1743
|
}
|
|
1751
1744
|
namespaces = split[i].replace(/\*/g, ".*?");
|
|
1752
1745
|
if (namespaces[0] === "-") {
|
|
1753
|
-
createDebug.skips.push(new RegExp("^" + namespaces.
|
|
1746
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
1754
1747
|
} else {
|
|
1755
1748
|
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
1756
1749
|
}
|
|
@@ -2474,7 +2467,7 @@ var require_follow_redirects = __commonJS({
|
|
|
2474
2467
|
return;
|
|
2475
2468
|
}
|
|
2476
2469
|
if (this._options.agents) {
|
|
2477
|
-
var scheme = protocol.
|
|
2470
|
+
var scheme = protocol.slice(0, -1);
|
|
2478
2471
|
this._options.agent = this._options.agents[scheme];
|
|
2479
2472
|
}
|
|
2480
2473
|
var request = this._currentRequest = nativeProtocol.request(this._options, this._onNativeResponse);
|
|
@@ -2513,56 +2506,72 @@ var require_follow_redirects = __commonJS({
|
|
|
2513
2506
|
});
|
|
2514
2507
|
}
|
|
2515
2508
|
var location = response.headers.location;
|
|
2516
|
-
if (location
|
|
2517
|
-
abortRequest(this._currentRequest);
|
|
2518
|
-
response.destroy();
|
|
2519
|
-
if (++this._redirectCount > this._options.maxRedirects) {
|
|
2520
|
-
this.emit("error", new TooManyRedirectsError());
|
|
2521
|
-
return;
|
|
2522
|
-
}
|
|
2523
|
-
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
2524
|
-
this._options.method = "GET";
|
|
2525
|
-
this._requestBodyBuffers = [];
|
|
2526
|
-
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
2527
|
-
}
|
|
2528
|
-
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
2529
|
-
var currentUrlParts = url.parse(this._currentUrl);
|
|
2530
|
-
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
2531
|
-
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
2532
|
-
var redirectUrl;
|
|
2533
|
-
try {
|
|
2534
|
-
redirectUrl = url.resolve(currentUrl, location);
|
|
2535
|
-
} catch (cause) {
|
|
2536
|
-
this.emit("error", new RedirectionError(cause));
|
|
2537
|
-
return;
|
|
2538
|
-
}
|
|
2539
|
-
debug("redirecting to", redirectUrl);
|
|
2540
|
-
this._isRedirect = true;
|
|
2541
|
-
var redirectUrlParts = url.parse(redirectUrl);
|
|
2542
|
-
Object.assign(this._options, redirectUrlParts);
|
|
2543
|
-
if (redirectUrlParts.protocol !== currentUrlParts.protocol || !isSameOrSubdomain(redirectUrlParts.host, currentHost)) {
|
|
2544
|
-
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
2545
|
-
}
|
|
2546
|
-
if (typeof this._options.beforeRedirect === "function") {
|
|
2547
|
-
var responseDetails = { headers: response.headers };
|
|
2548
|
-
try {
|
|
2549
|
-
this._options.beforeRedirect.call(null, this._options, responseDetails);
|
|
2550
|
-
} catch (err) {
|
|
2551
|
-
this.emit("error", err);
|
|
2552
|
-
return;
|
|
2553
|
-
}
|
|
2554
|
-
this._sanitizeOptions(this._options);
|
|
2555
|
-
}
|
|
2556
|
-
try {
|
|
2557
|
-
this._performRequest();
|
|
2558
|
-
} catch (cause) {
|
|
2559
|
-
this.emit("error", new RedirectionError(cause));
|
|
2560
|
-
}
|
|
2561
|
-
} else {
|
|
2509
|
+
if (!location || this._options.followRedirects === false || statusCode < 300 || statusCode >= 400) {
|
|
2562
2510
|
response.responseUrl = this._currentUrl;
|
|
2563
2511
|
response.redirects = this._redirects;
|
|
2564
2512
|
this.emit("response", response);
|
|
2565
2513
|
this._requestBodyBuffers = [];
|
|
2514
|
+
return;
|
|
2515
|
+
}
|
|
2516
|
+
abortRequest(this._currentRequest);
|
|
2517
|
+
response.destroy();
|
|
2518
|
+
if (++this._redirectCount > this._options.maxRedirects) {
|
|
2519
|
+
this.emit("error", new TooManyRedirectsError());
|
|
2520
|
+
return;
|
|
2521
|
+
}
|
|
2522
|
+
var requestHeaders;
|
|
2523
|
+
var beforeRedirect = this._options.beforeRedirect;
|
|
2524
|
+
if (beforeRedirect) {
|
|
2525
|
+
requestHeaders = Object.assign({
|
|
2526
|
+
Host: response.req.getHeader("host")
|
|
2527
|
+
}, this._options.headers);
|
|
2528
|
+
}
|
|
2529
|
+
var method = this._options.method;
|
|
2530
|
+
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
|
2531
|
+
this._options.method = "GET";
|
|
2532
|
+
this._requestBodyBuffers = [];
|
|
2533
|
+
removeMatchingHeaders(/^content-/i, this._options.headers);
|
|
2534
|
+
}
|
|
2535
|
+
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
|
2536
|
+
var currentUrlParts = url.parse(this._currentUrl);
|
|
2537
|
+
var currentHost = currentHostHeader || currentUrlParts.host;
|
|
2538
|
+
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url.format(Object.assign(currentUrlParts, { host: currentHost }));
|
|
2539
|
+
var redirectUrl;
|
|
2540
|
+
try {
|
|
2541
|
+
redirectUrl = url.resolve(currentUrl, location);
|
|
2542
|
+
} catch (cause) {
|
|
2543
|
+
this.emit("error", new RedirectionError(cause));
|
|
2544
|
+
return;
|
|
2545
|
+
}
|
|
2546
|
+
debug("redirecting to", redirectUrl);
|
|
2547
|
+
this._isRedirect = true;
|
|
2548
|
+
var redirectUrlParts = url.parse(redirectUrl);
|
|
2549
|
+
Object.assign(this._options, redirectUrlParts);
|
|
2550
|
+
if (redirectUrlParts.protocol !== currentUrlParts.protocol && redirectUrlParts.protocol !== "https:" || redirectUrlParts.host !== currentHost && !isSubdomain(redirectUrlParts.host, currentHost)) {
|
|
2551
|
+
removeMatchingHeaders(/^(?:authorization|cookie)$/i, this._options.headers);
|
|
2552
|
+
}
|
|
2553
|
+
if (typeof beforeRedirect === "function") {
|
|
2554
|
+
var responseDetails = {
|
|
2555
|
+
headers: response.headers,
|
|
2556
|
+
statusCode
|
|
2557
|
+
};
|
|
2558
|
+
var requestDetails = {
|
|
2559
|
+
url: currentUrl,
|
|
2560
|
+
method,
|
|
2561
|
+
headers: requestHeaders
|
|
2562
|
+
};
|
|
2563
|
+
try {
|
|
2564
|
+
beforeRedirect(this._options, responseDetails, requestDetails);
|
|
2565
|
+
} catch (err) {
|
|
2566
|
+
this.emit("error", err);
|
|
2567
|
+
return;
|
|
2568
|
+
}
|
|
2569
|
+
this._sanitizeOptions(this._options);
|
|
2570
|
+
}
|
|
2571
|
+
try {
|
|
2572
|
+
this._performRequest();
|
|
2573
|
+
} catch (cause) {
|
|
2574
|
+
this.emit("error", new RedirectionError(cause));
|
|
2566
2575
|
}
|
|
2567
2576
|
};
|
|
2568
2577
|
function wrap(protocols) {
|
|
@@ -2665,10 +2674,7 @@ var require_follow_redirects = __commonJS({
|
|
|
2665
2674
|
request.on("error", noop);
|
|
2666
2675
|
request.abort();
|
|
2667
2676
|
}
|
|
2668
|
-
function
|
|
2669
|
-
if (subdomain === domain) {
|
|
2670
|
-
return true;
|
|
2671
|
-
}
|
|
2677
|
+
function isSubdomain(subdomain, domain) {
|
|
2672
2678
|
const dot = subdomain.length - domain.length - 1;
|
|
2673
2679
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
2674
2680
|
}
|
|
@@ -4085,6 +4091,10 @@ var require_db = __commonJS({
|
|
|
4085
4091
|
"application/cfw": {
|
|
4086
4092
|
source: "iana"
|
|
4087
4093
|
},
|
|
4094
|
+
"application/city+json": {
|
|
4095
|
+
source: "iana",
|
|
4096
|
+
compressible: true
|
|
4097
|
+
},
|
|
4088
4098
|
"application/clr": {
|
|
4089
4099
|
source: "iana"
|
|
4090
4100
|
},
|
|
@@ -4128,7 +4138,8 @@ var require_db = __commonJS({
|
|
|
4128
4138
|
},
|
|
4129
4139
|
"application/cpl+xml": {
|
|
4130
4140
|
source: "iana",
|
|
4131
|
-
compressible: true
|
|
4141
|
+
compressible: true,
|
|
4142
|
+
extensions: ["cpl"]
|
|
4132
4143
|
},
|
|
4133
4144
|
"application/csrattrs": {
|
|
4134
4145
|
source: "iana"
|
|
@@ -4163,6 +4174,11 @@ var require_db = __commonJS({
|
|
|
4163
4174
|
compressible: true,
|
|
4164
4175
|
extensions: ["mpd"]
|
|
4165
4176
|
},
|
|
4177
|
+
"application/dash-patch+xml": {
|
|
4178
|
+
source: "iana",
|
|
4179
|
+
compressible: true,
|
|
4180
|
+
extensions: ["mpp"]
|
|
4181
|
+
},
|
|
4166
4182
|
"application/dashdelta": {
|
|
4167
4183
|
source: "iana"
|
|
4168
4184
|
},
|
|
@@ -4703,7 +4719,8 @@ var require_db = __commonJS({
|
|
|
4703
4719
|
},
|
|
4704
4720
|
"application/media-policy-dataset+xml": {
|
|
4705
4721
|
source: "iana",
|
|
4706
|
-
compressible: true
|
|
4722
|
+
compressible: true,
|
|
4723
|
+
extensions: ["mpf"]
|
|
4707
4724
|
},
|
|
4708
4725
|
"application/media_control+xml": {
|
|
4709
4726
|
source: "iana",
|
|
@@ -4859,6 +4876,9 @@ var require_db = __commonJS({
|
|
|
4859
4876
|
"application/oauth-authz-req+jwt": {
|
|
4860
4877
|
source: "iana"
|
|
4861
4878
|
},
|
|
4879
|
+
"application/oblivious-dns-message": {
|
|
4880
|
+
source: "iana"
|
|
4881
|
+
},
|
|
4862
4882
|
"application/ocsp-request": {
|
|
4863
4883
|
source: "iana"
|
|
4864
4884
|
},
|
|
@@ -4951,7 +4971,8 @@ var require_db = __commonJS({
|
|
|
4951
4971
|
extensions: ["pgp"]
|
|
4952
4972
|
},
|
|
4953
4973
|
"application/pgp-keys": {
|
|
4954
|
-
source: "iana"
|
|
4974
|
+
source: "iana",
|
|
4975
|
+
extensions: ["asc"]
|
|
4955
4976
|
},
|
|
4956
4977
|
"application/pgp-signature": {
|
|
4957
4978
|
source: "iana",
|
|
@@ -6482,6 +6503,10 @@ var require_db = __commonJS({
|
|
|
6482
6503
|
"application/vnd.ecip.rlp": {
|
|
6483
6504
|
source: "iana"
|
|
6484
6505
|
},
|
|
6506
|
+
"application/vnd.eclipse.ditto+json": {
|
|
6507
|
+
source: "iana",
|
|
6508
|
+
compressible: true
|
|
6509
|
+
},
|
|
6485
6510
|
"application/vnd.ecowin.chart": {
|
|
6486
6511
|
source: "iana",
|
|
6487
6512
|
extensions: ["mag"]
|
|
@@ -6639,6 +6664,10 @@ var require_db = __commonJS({
|
|
|
6639
6664
|
"application/vnd.etsi.tsl.der": {
|
|
6640
6665
|
source: "iana"
|
|
6641
6666
|
},
|
|
6667
|
+
"application/vnd.eu.kasparian.car+json": {
|
|
6668
|
+
source: "iana",
|
|
6669
|
+
compressible: true
|
|
6670
|
+
},
|
|
6642
6671
|
"application/vnd.eudora.data": {
|
|
6643
6672
|
source: "iana"
|
|
6644
6673
|
},
|
|
@@ -6669,6 +6698,10 @@ var require_db = __commonJS({
|
|
|
6669
6698
|
"application/vnd.f-secure.mobile": {
|
|
6670
6699
|
source: "iana"
|
|
6671
6700
|
},
|
|
6701
|
+
"application/vnd.familysearch.gedcom+zip": {
|
|
6702
|
+
source: "iana",
|
|
6703
|
+
compressible: false
|
|
6704
|
+
},
|
|
6672
6705
|
"application/vnd.fastcopy-disk-image": {
|
|
6673
6706
|
source: "iana"
|
|
6674
6707
|
},
|
|
@@ -6959,6 +6992,16 @@ var require_db = __commonJS({
|
|
|
6959
6992
|
source: "iana",
|
|
6960
6993
|
extensions: ["les"]
|
|
6961
6994
|
},
|
|
6995
|
+
"application/vnd.hl7cda+xml": {
|
|
6996
|
+
source: "iana",
|
|
6997
|
+
charset: "UTF-8",
|
|
6998
|
+
compressible: true
|
|
6999
|
+
},
|
|
7000
|
+
"application/vnd.hl7v2+xml": {
|
|
7001
|
+
source: "iana",
|
|
7002
|
+
charset: "UTF-8",
|
|
7003
|
+
compressible: true
|
|
7004
|
+
},
|
|
6962
7005
|
"application/vnd.hp-hpgl": {
|
|
6963
7006
|
source: "iana",
|
|
6964
7007
|
extensions: ["hpgl"]
|
|
@@ -7372,6 +7415,10 @@ var require_db = __commonJS({
|
|
|
7372
7415
|
source: "iana",
|
|
7373
7416
|
compressible: true
|
|
7374
7417
|
},
|
|
7418
|
+
"application/vnd.maxar.archive.3tz+zip": {
|
|
7419
|
+
source: "iana",
|
|
7420
|
+
compressible: false
|
|
7421
|
+
},
|
|
7375
7422
|
"application/vnd.maxmind.maxmind-db": {
|
|
7376
7423
|
source: "iana"
|
|
7377
7424
|
},
|
|
@@ -8992,6 +9039,10 @@ var require_db = __commonJS({
|
|
|
8992
9039
|
source: "iana",
|
|
8993
9040
|
compressible: true
|
|
8994
9041
|
},
|
|
9042
|
+
"application/vnd.syft+json": {
|
|
9043
|
+
source: "iana",
|
|
9044
|
+
compressible: true
|
|
9045
|
+
},
|
|
8995
9046
|
"application/vnd.symbian.install": {
|
|
8996
9047
|
source: "apache",
|
|
8997
9048
|
extensions: ["sis", "sisx"]
|
|
@@ -9382,7 +9433,8 @@ var require_db = __commonJS({
|
|
|
9382
9433
|
},
|
|
9383
9434
|
"application/watcherinfo+xml": {
|
|
9384
9435
|
source: "iana",
|
|
9385
|
-
compressible: true
|
|
9436
|
+
compressible: true,
|
|
9437
|
+
extensions: ["wif"]
|
|
9386
9438
|
},
|
|
9387
9439
|
"application/webpush-options+json": {
|
|
9388
9440
|
source: "iana",
|
|
@@ -10802,10 +10854,12 @@ var require_db = __commonJS({
|
|
|
10802
10854
|
extensions: ["apng"]
|
|
10803
10855
|
},
|
|
10804
10856
|
"image/avci": {
|
|
10805
|
-
source: "iana"
|
|
10857
|
+
source: "iana",
|
|
10858
|
+
extensions: ["avci"]
|
|
10806
10859
|
},
|
|
10807
10860
|
"image/avcs": {
|
|
10808
|
-
source: "iana"
|
|
10861
|
+
source: "iana",
|
|
10862
|
+
extensions: ["avcs"]
|
|
10809
10863
|
},
|
|
10810
10864
|
"image/avif": {
|
|
10811
10865
|
source: "iana",
|
|
@@ -14336,6 +14390,7 @@ var require_dist5 = __commonJS({
|
|
|
14336
14390
|
"Observable",
|
|
14337
14391
|
"Array",
|
|
14338
14392
|
"Buffer",
|
|
14393
|
+
"Blob",
|
|
14339
14394
|
"Object",
|
|
14340
14395
|
"RegExp",
|
|
14341
14396
|
"Date",
|
|
@@ -14447,6 +14502,7 @@ var require_dist5 = __commonJS({
|
|
|
14447
14502
|
var _a, _b, _c, _d;
|
|
14448
14503
|
return (_d = (_c = (_b = (_a = value) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.isBuffer) === null || _c === void 0 ? void 0 : _c.call(_b, value)) !== null && _d !== void 0 ? _d : false;
|
|
14449
14504
|
};
|
|
14505
|
+
is.blob = (value) => isObjectOfType("Blob")(value);
|
|
14450
14506
|
is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value);
|
|
14451
14507
|
is.object = (value) => !is.null_(value) && (typeof value === "object" || is.function_(value));
|
|
14452
14508
|
is.iterable = (value) => {
|
|
@@ -14564,9 +14620,10 @@ var require_dist5 = __commonJS({
|
|
|
14564
14620
|
is.emptyArray = (value) => is.array(value) && value.length === 0;
|
|
14565
14621
|
is.nonEmptyArray = (value) => is.array(value) && value.length > 0;
|
|
14566
14622
|
is.emptyString = (value) => is.string(value) && value.length === 0;
|
|
14567
|
-
is.nonEmptyString = (value) => is.string(value) && value.length > 0;
|
|
14568
14623
|
var isWhiteSpaceString = (value) => is.string(value) && !/\S/.test(value);
|
|
14569
14624
|
is.emptyStringOrWhitespace = (value) => is.emptyString(value) || isWhiteSpaceString(value);
|
|
14625
|
+
is.nonEmptyString = (value) => is.string(value) && value.length > 0;
|
|
14626
|
+
is.nonEmptyStringAndNotWhitespace = (value) => is.string(value) && !is.emptyStringOrWhitespace(value);
|
|
14570
14627
|
is.emptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length === 0;
|
|
14571
14628
|
is.nonEmptyObject = (value) => is.object(value) && !is.map(value) && !is.set(value) && Object.keys(value).length > 0;
|
|
14572
14629
|
is.emptySet = (value) => is.set(value) && value.size === 0;
|
|
@@ -14618,6 +14675,7 @@ var require_dist5 = __commonJS({
|
|
|
14618
14675
|
}
|
|
14619
14676
|
},
|
|
14620
14677
|
buffer: (value) => assertType(is.buffer(value), "Buffer", value),
|
|
14678
|
+
blob: (value) => assertType(is.blob(value), "Blob", value),
|
|
14621
14679
|
nullOrUndefined: (value) => assertType(is.nullOrUndefined(value), "null or undefined", value),
|
|
14622
14680
|
object: (value) => assertType(is.object(value), "Object", value),
|
|
14623
14681
|
iterable: (value) => assertType(is.iterable(value), "Iterable", value),
|
|
@@ -14670,8 +14728,9 @@ var require_dist5 = __commonJS({
|
|
|
14670
14728
|
emptyArray: (value) => assertType(is.emptyArray(value), "empty array", value),
|
|
14671
14729
|
nonEmptyArray: (value) => assertType(is.nonEmptyArray(value), "non-empty array", value),
|
|
14672
14730
|
emptyString: (value) => assertType(is.emptyString(value), "empty string", value),
|
|
14673
|
-
nonEmptyString: (value) => assertType(is.nonEmptyString(value), "non-empty string", value),
|
|
14674
14731
|
emptyStringOrWhitespace: (value) => assertType(is.emptyStringOrWhitespace(value), "empty string or whitespace", value),
|
|
14732
|
+
nonEmptyString: (value) => assertType(is.nonEmptyString(value), "non-empty string", value),
|
|
14733
|
+
nonEmptyStringAndNotWhitespace: (value) => assertType(is.nonEmptyStringAndNotWhitespace(value), "non-empty string and not whitespace", value),
|
|
14675
14734
|
emptyObject: (value) => assertType(is.emptyObject(value), "empty object", value),
|
|
14676
14735
|
nonEmptyObject: (value) => assertType(is.nonEmptyObject(value), "non-empty object", value),
|
|
14677
14736
|
emptySet: (value) => assertType(is.emptySet(value), "empty set", value),
|
|
@@ -16402,15 +16461,69 @@ var require_json_buffer = __commonJS({
|
|
|
16402
16461
|
}
|
|
16403
16462
|
});
|
|
16404
16463
|
|
|
16405
|
-
// node_modules/
|
|
16464
|
+
// node_modules/compress-brotli/src/merge-options.js
|
|
16465
|
+
var require_merge_options = __commonJS({
|
|
16466
|
+
"node_modules/compress-brotli/src/merge-options.js"(exports, module2) {
|
|
16467
|
+
"use strict";
|
|
16468
|
+
module2.exports = (defaultOptions = {}, options = {}) => {
|
|
16469
|
+
const params = __spreadValues(__spreadValues({}, defaultOptions.params || {}), options.params || {});
|
|
16470
|
+
return __spreadValues(__spreadValues(__spreadValues({}, defaultOptions), options), Object.keys(params).length ? {
|
|
16471
|
+
params
|
|
16472
|
+
} : {});
|
|
16473
|
+
};
|
|
16474
|
+
}
|
|
16475
|
+
});
|
|
16476
|
+
|
|
16477
|
+
// node_modules/compress-brotli/src/index.js
|
|
16406
16478
|
var require_src4 = __commonJS({
|
|
16479
|
+
"node_modules/compress-brotli/src/index.js"(exports, module2) {
|
|
16480
|
+
"use strict";
|
|
16481
|
+
var { promisify } = require("util");
|
|
16482
|
+
var JSONB = require_json_buffer();
|
|
16483
|
+
var zlib = require("zlib");
|
|
16484
|
+
var mergeOptions = require_merge_options();
|
|
16485
|
+
var compress = promisify(zlib.brotliCompress);
|
|
16486
|
+
var decompress = promisify(zlib.brotliDecompress);
|
|
16487
|
+
var identity = (val) => val;
|
|
16488
|
+
var createCompress = ({
|
|
16489
|
+
enable = true,
|
|
16490
|
+
serialize = JSONB.stringify,
|
|
16491
|
+
deserialize = JSONB.parse,
|
|
16492
|
+
compressOptions,
|
|
16493
|
+
decompressOptions
|
|
16494
|
+
} = {}) => {
|
|
16495
|
+
if (!enable) {
|
|
16496
|
+
return { serialize, deserialize, decompress: identity, compress: identity };
|
|
16497
|
+
}
|
|
16498
|
+
return {
|
|
16499
|
+
serialize,
|
|
16500
|
+
deserialize,
|
|
16501
|
+
compress: async (data, options = {}) => {
|
|
16502
|
+
if (data === void 0)
|
|
16503
|
+
return data;
|
|
16504
|
+
const serializedData = serialize(data);
|
|
16505
|
+
return compress(serializedData, mergeOptions(compressOptions, options));
|
|
16506
|
+
},
|
|
16507
|
+
decompress: async (data, options = {}) => {
|
|
16508
|
+
if (data === void 0)
|
|
16509
|
+
return data;
|
|
16510
|
+
return deserialize(await decompress(data, mergeOptions(decompressOptions, options)));
|
|
16511
|
+
}
|
|
16512
|
+
};
|
|
16513
|
+
};
|
|
16514
|
+
module2.exports = createCompress;
|
|
16515
|
+
module2.exports.stringify = JSONB.stringify;
|
|
16516
|
+
module2.exports.parse = JSONB.parse;
|
|
16517
|
+
}
|
|
16518
|
+
});
|
|
16519
|
+
|
|
16520
|
+
// node_modules/keyv/src/index.js
|
|
16521
|
+
var require_src5 = __commonJS({
|
|
16407
16522
|
"node_modules/keyv/src/index.js"(exports, module2) {
|
|
16408
16523
|
"use strict";
|
|
16409
16524
|
var EventEmitter = require("events");
|
|
16410
16525
|
var JSONB = require_json_buffer();
|
|
16411
|
-
|
|
16412
|
-
return this.toString();
|
|
16413
|
-
};
|
|
16526
|
+
var compressBrotli = require_src4();
|
|
16414
16527
|
var loadStore = (options) => {
|
|
16415
16528
|
const adapters = {
|
|
16416
16529
|
redis: "@keyv/redis",
|
|
@@ -16420,44 +16533,132 @@ var require_src4 = __commonJS({
|
|
|
16420
16533
|
postgresql: "@keyv/postgres",
|
|
16421
16534
|
postgres: "@keyv/postgres",
|
|
16422
16535
|
mysql: "@keyv/mysql",
|
|
16423
|
-
etcd: "@keyv/etcd"
|
|
16536
|
+
etcd: "@keyv/etcd",
|
|
16537
|
+
offline: "@keyv/offline",
|
|
16538
|
+
tiered: "@keyv/tiered"
|
|
16424
16539
|
};
|
|
16425
16540
|
if (options.adapter || options.uri) {
|
|
16426
|
-
const adapter = options.adapter || /^[
|
|
16541
|
+
const adapter = options.adapter || /^[^:+]*/.exec(options.uri)[0];
|
|
16427
16542
|
return new (require(adapters[adapter]))(options);
|
|
16428
16543
|
}
|
|
16429
16544
|
return /* @__PURE__ */ new Map();
|
|
16430
16545
|
};
|
|
16546
|
+
var iterableAdapters = [
|
|
16547
|
+
"sqlite",
|
|
16548
|
+
"postgres",
|
|
16549
|
+
"mysql",
|
|
16550
|
+
"mongo",
|
|
16551
|
+
"redis",
|
|
16552
|
+
"tiered"
|
|
16553
|
+
];
|
|
16431
16554
|
var Keyv = class extends EventEmitter {
|
|
16432
16555
|
constructor(uri, options) {
|
|
16433
16556
|
super();
|
|
16434
|
-
this.opts =
|
|
16557
|
+
this.opts = __spreadValues(__spreadValues({
|
|
16435
16558
|
namespace: "keyv",
|
|
16436
16559
|
serialize: JSONB.stringify,
|
|
16437
16560
|
deserialize: JSONB.parse
|
|
16438
|
-
}, typeof uri === "string" ? { uri } : uri, options);
|
|
16561
|
+
}, typeof uri === "string" ? { uri } : uri), options);
|
|
16439
16562
|
if (!this.opts.store) {
|
|
16440
|
-
const adapterOptions =
|
|
16563
|
+
const adapterOptions = __spreadValues({}, this.opts);
|
|
16441
16564
|
this.opts.store = loadStore(adapterOptions);
|
|
16442
16565
|
}
|
|
16566
|
+
if (this.opts.compress) {
|
|
16567
|
+
const brotli = compressBrotli(this.opts.compress.opts);
|
|
16568
|
+
this.opts.serialize = async ({ value, expires }) => brotli.serialize({ value: await brotli.compress(value), expires });
|
|
16569
|
+
this.opts.deserialize = async (data) => {
|
|
16570
|
+
const { value, expires } = brotli.deserialize(data);
|
|
16571
|
+
return { value: await brotli.decompress(value), expires };
|
|
16572
|
+
};
|
|
16573
|
+
}
|
|
16443
16574
|
if (typeof this.opts.store.on === "function") {
|
|
16444
16575
|
this.opts.store.on("error", (error) => this.emit("error", error));
|
|
16445
16576
|
}
|
|
16446
16577
|
this.opts.store.namespace = this.opts.namespace;
|
|
16578
|
+
const generateIterator = (iterator) => async function* () {
|
|
16579
|
+
for await (const [key, raw] of typeof iterator === "function" ? iterator(this.opts.store.namespace) : iterator) {
|
|
16580
|
+
const data = this.opts.deserialize(raw);
|
|
16581
|
+
if (this.opts.store.namespace && !key.includes(this.opts.store.namespace)) {
|
|
16582
|
+
continue;
|
|
16583
|
+
}
|
|
16584
|
+
if (typeof data.expires === "number" && Date.now() > data.expires) {
|
|
16585
|
+
this.delete(key);
|
|
16586
|
+
continue;
|
|
16587
|
+
}
|
|
16588
|
+
yield [this._getKeyUnprefix(key), data.value];
|
|
16589
|
+
}
|
|
16590
|
+
};
|
|
16591
|
+
if (typeof this.opts.store[Symbol.iterator] === "function" && this.opts.store instanceof Map) {
|
|
16592
|
+
this.iterator = generateIterator(this.opts.store);
|
|
16593
|
+
} else if (typeof this.opts.store.iterator === "function" && this.opts.store.opts && this._checkIterableAdaptar()) {
|
|
16594
|
+
this.iterator = generateIterator(this.opts.store.iterator.bind(this.opts.store));
|
|
16595
|
+
}
|
|
16596
|
+
}
|
|
16597
|
+
_checkIterableAdaptar() {
|
|
16598
|
+
return iterableAdapters.includes(this.opts.store.opts.dialect) || iterableAdapters.findIndex((element) => this.opts.store.opts.url.includes(element)) >= 0;
|
|
16447
16599
|
}
|
|
16448
16600
|
_getKeyPrefix(key) {
|
|
16449
16601
|
return `${this.opts.namespace}:${key}`;
|
|
16450
16602
|
}
|
|
16603
|
+
_getKeyPrefixArray(keys) {
|
|
16604
|
+
return keys.map((key) => `${this.opts.namespace}:${key}`);
|
|
16605
|
+
}
|
|
16606
|
+
_getKeyUnprefix(key) {
|
|
16607
|
+
return key.split(":").splice(1).join(":");
|
|
16608
|
+
}
|
|
16451
16609
|
get(key, options) {
|
|
16452
|
-
const keyPrefixed = this._getKeyPrefix(key);
|
|
16453
16610
|
const { store } = this.opts;
|
|
16454
|
-
|
|
16611
|
+
const isArray = Array.isArray(key);
|
|
16612
|
+
const keyPrefixed = isArray ? this._getKeyPrefixArray(key) : this._getKeyPrefix(key);
|
|
16613
|
+
if (isArray && store.getMany === void 0) {
|
|
16614
|
+
const promises = [];
|
|
16615
|
+
for (const key2 of keyPrefixed) {
|
|
16616
|
+
promises.push(Promise.resolve().then(() => store.get(key2)).then((data) => typeof data === "string" ? this.opts.deserialize(data) : data).then((data) => {
|
|
16617
|
+
if (data === void 0 || data === null) {
|
|
16618
|
+
return void 0;
|
|
16619
|
+
}
|
|
16620
|
+
if (typeof data.expires === "number" && Date.now() > data.expires) {
|
|
16621
|
+
return this.delete(key2).then(() => void 0);
|
|
16622
|
+
}
|
|
16623
|
+
return options && options.raw ? data : data.value;
|
|
16624
|
+
}));
|
|
16625
|
+
}
|
|
16626
|
+
return Promise.allSettled(promises).then((values) => {
|
|
16627
|
+
const data = [];
|
|
16628
|
+
for (const value of values) {
|
|
16629
|
+
data.push(value.value);
|
|
16630
|
+
}
|
|
16631
|
+
return data.every((x) => x === void 0) ? [] : data;
|
|
16632
|
+
});
|
|
16633
|
+
}
|
|
16634
|
+
return Promise.resolve().then(() => isArray ? store.getMany(keyPrefixed) : store.get(keyPrefixed)).then((data) => typeof data === "string" ? this.opts.deserialize(data) : data).then((data) => {
|
|
16455
16635
|
if (data === void 0 || data === null) {
|
|
16456
16636
|
return void 0;
|
|
16457
16637
|
}
|
|
16638
|
+
if (isArray) {
|
|
16639
|
+
const result = [];
|
|
16640
|
+
if (data.length === 0) {
|
|
16641
|
+
return [];
|
|
16642
|
+
}
|
|
16643
|
+
for (let row of data) {
|
|
16644
|
+
if (typeof row === "string") {
|
|
16645
|
+
row = this.opts.deserialize(row);
|
|
16646
|
+
}
|
|
16647
|
+
if (row === void 0 || row === null) {
|
|
16648
|
+
result.push(void 0);
|
|
16649
|
+
continue;
|
|
16650
|
+
}
|
|
16651
|
+
if (typeof row.expires === "number" && Date.now() > row.expires) {
|
|
16652
|
+
this.delete(key).then(() => void 0);
|
|
16653
|
+
result.push(void 0);
|
|
16654
|
+
} else {
|
|
16655
|
+
result.push(options && options.raw ? row : row.value);
|
|
16656
|
+
}
|
|
16657
|
+
}
|
|
16658
|
+
return result.every((x) => x === void 0) ? [] : result;
|
|
16659
|
+
}
|
|
16458
16660
|
if (typeof data.expires === "number" && Date.now() > data.expires) {
|
|
16459
|
-
this.delete(key);
|
|
16460
|
-
return void 0;
|
|
16661
|
+
return this.delete(key).then(() => void 0);
|
|
16461
16662
|
}
|
|
16462
16663
|
return options && options.raw ? data : data.value;
|
|
16463
16664
|
});
|
|
@@ -16481,21 +16682,49 @@ var require_src4 = __commonJS({
|
|
|
16481
16682
|
}).then((value2) => store.set(keyPrefixed, value2, ttl)).then(() => true);
|
|
16482
16683
|
}
|
|
16483
16684
|
delete(key) {
|
|
16484
|
-
const keyPrefixed = this._getKeyPrefix(key);
|
|
16485
16685
|
const { store } = this.opts;
|
|
16686
|
+
if (Array.isArray(key)) {
|
|
16687
|
+
const keyPrefixed2 = this._getKeyPrefixArray(key);
|
|
16688
|
+
if (store.deleteMany === void 0) {
|
|
16689
|
+
const promises = [];
|
|
16690
|
+
for (const key2 of keyPrefixed2) {
|
|
16691
|
+
promises.push(store.delete(key2));
|
|
16692
|
+
}
|
|
16693
|
+
return Promise.allSettled(promises).then((values) => values.every((x) => x.value === true));
|
|
16694
|
+
}
|
|
16695
|
+
return Promise.resolve().then(() => store.deleteMany(keyPrefixed2));
|
|
16696
|
+
}
|
|
16697
|
+
const keyPrefixed = this._getKeyPrefix(key);
|
|
16486
16698
|
return Promise.resolve().then(() => store.delete(keyPrefixed));
|
|
16487
16699
|
}
|
|
16488
16700
|
clear() {
|
|
16489
16701
|
const { store } = this.opts;
|
|
16490
16702
|
return Promise.resolve().then(() => store.clear());
|
|
16491
16703
|
}
|
|
16704
|
+
has(key) {
|
|
16705
|
+
const keyPrefixed = this._getKeyPrefix(key);
|
|
16706
|
+
const { store } = this.opts;
|
|
16707
|
+
return Promise.resolve().then(async () => {
|
|
16708
|
+
if (typeof store.has === "function") {
|
|
16709
|
+
return store.has(keyPrefixed);
|
|
16710
|
+
}
|
|
16711
|
+
const value = await store.get(keyPrefixed);
|
|
16712
|
+
return value !== void 0;
|
|
16713
|
+
});
|
|
16714
|
+
}
|
|
16715
|
+
disconnect() {
|
|
16716
|
+
const { store } = this.opts;
|
|
16717
|
+
if (typeof store.disconnect === "function") {
|
|
16718
|
+
return store.disconnect();
|
|
16719
|
+
}
|
|
16720
|
+
}
|
|
16492
16721
|
};
|
|
16493
16722
|
module2.exports = Keyv;
|
|
16494
16723
|
}
|
|
16495
16724
|
});
|
|
16496
16725
|
|
|
16497
16726
|
// node_modules/cacheable-request/src/index.js
|
|
16498
|
-
var
|
|
16727
|
+
var require_src6 = __commonJS({
|
|
16499
16728
|
"node_modules/cacheable-request/src/index.js"(exports, module2) {
|
|
16500
16729
|
"use strict";
|
|
16501
16730
|
var EventEmitter = require("events");
|
|
@@ -16506,7 +16735,7 @@ var require_src5 = __commonJS({
|
|
|
16506
16735
|
var Response = require_src2();
|
|
16507
16736
|
var lowercaseKeys = require_lowercase_keys();
|
|
16508
16737
|
var cloneResponse = require_src3();
|
|
16509
|
-
var Keyv =
|
|
16738
|
+
var Keyv = require_src5();
|
|
16510
16739
|
var CacheableRequest = class {
|
|
16511
16740
|
constructor(request, cacheAdapter) {
|
|
16512
16741
|
if (typeof request !== "function") {
|
|
@@ -18587,7 +18816,7 @@ var require_core = __commonJS({
|
|
|
18587
18816
|
var https = require("https");
|
|
18588
18817
|
var http_timer_1 = require_source2();
|
|
18589
18818
|
var cacheable_lookup_1 = require_source3();
|
|
18590
|
-
var CacheableRequest =
|
|
18819
|
+
var CacheableRequest = require_src6();
|
|
18591
18820
|
var decompressResponse = require_decompress_response();
|
|
18592
18821
|
var http2wrapper = require_source4();
|
|
18593
18822
|
var lowercaseKeys = require_lowercase_keys();
|
|
@@ -20500,6 +20729,7 @@ var detect_lambda_exports = {};
|
|
|
20500
20729
|
__export(detect_lambda_exports, {
|
|
20501
20730
|
handler: () => handler
|
|
20502
20731
|
});
|
|
20732
|
+
module.exports = __toCommonJS(detect_lambda_exports);
|
|
20503
20733
|
var import_web_api = __toESM(require_dist4());
|
|
20504
20734
|
var import_aws_sdk = require("aws-sdk");
|
|
20505
20735
|
var import_got = __toESM(require_source5());
|
|
@@ -20534,7 +20764,6 @@ async function handler(event) {
|
|
|
20534
20764
|
});
|
|
20535
20765
|
console.log("Post message: %j", postMessage);
|
|
20536
20766
|
}
|
|
20537
|
-
module.exports = __toCommonJS(detect_lambda_exports);
|
|
20538
20767
|
// Annotate the CommonJS export names for ESM import in node:
|
|
20539
20768
|
0 && (module.exports = {
|
|
20540
20769
|
handler
|
|
@@ -20542,6 +20771,7 @@ module.exports = __toCommonJS(detect_lambda_exports);
|
|
|
20542
20771
|
/*!
|
|
20543
20772
|
* mime-db
|
|
20544
20773
|
* Copyright(c) 2014 Jonathan Ong
|
|
20774
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
20545
20775
|
* MIT Licensed
|
|
20546
20776
|
*/
|
|
20547
20777
|
/*!
|