@hot-updater/aws 0.31.0 → 0.31.2
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/dist/iac/index.cjs +7 -7
- package/dist/iac/index.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +5 -6
- package/dist/index.d.mts +4 -5
- package/dist/lambda/index.cjs +10 -7
- package/package.json +8 -8
package/dist/iac/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -29,13 +29,13 @@ let node_child_process = require("node:child_process");
|
|
|
29
29
|
let node_string_decoder = require("node:string_decoder");
|
|
30
30
|
let node_util = require("node:util");
|
|
31
31
|
let node_process = require("node:process");
|
|
32
|
-
node_process = __toESM(node_process);
|
|
32
|
+
node_process = __toESM(node_process, 1);
|
|
33
33
|
let node_tty = require("node:tty");
|
|
34
|
-
node_tty = __toESM(node_tty);
|
|
34
|
+
node_tty = __toESM(node_tty, 1);
|
|
35
35
|
let node_path = require("node:path");
|
|
36
|
-
node_path = __toESM(node_path);
|
|
36
|
+
node_path = __toESM(node_path, 1);
|
|
37
37
|
let path = require("path");
|
|
38
|
-
path = __toESM(path);
|
|
38
|
+
path = __toESM(path, 1);
|
|
39
39
|
let node_timers_promises = require("node:timers/promises");
|
|
40
40
|
let node_os = require("node:os");
|
|
41
41
|
let node_events = require("node:events");
|
|
@@ -45,12 +45,12 @@ let node_stream_promises = require("node:stream/promises");
|
|
|
45
45
|
let node_stream = require("node:stream");
|
|
46
46
|
let node_buffer = require("node:buffer");
|
|
47
47
|
let crypto = require("crypto");
|
|
48
|
-
crypto = __toESM(crypto);
|
|
48
|
+
crypto = __toESM(crypto, 1);
|
|
49
49
|
let _aws_sdk_client_cloudfront = require("@aws-sdk/client-cloudfront");
|
|
50
50
|
let _aws_sdk_client_iam = require("@aws-sdk/client-iam");
|
|
51
51
|
let _aws_sdk_client_sts = require("@aws-sdk/client-sts");
|
|
52
52
|
let fs_promises = require("fs/promises");
|
|
53
|
-
fs_promises = __toESM(fs_promises);
|
|
53
|
+
fs_promises = __toESM(fs_promises, 1);
|
|
54
54
|
let _aws_sdk_client_lambda = require("@aws-sdk/client-lambda");
|
|
55
55
|
let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
56
56
|
let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
|
package/dist/iac/index.mjs
CHANGED
|
@@ -33,7 +33,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
33
33
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
34
34
|
var __getProtoOf = Object.getPrototypeOf;
|
|
35
35
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
36
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
36
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
37
37
|
var __copyProps = (to, from, except, desc) => {
|
|
38
38
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
39
39
|
key = keys[i];
|
package/dist/index.cjs
CHANGED
|
@@ -26,9 +26,9 @@ let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
|
26
26
|
let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
|
|
27
27
|
let _hot_updater_plugin_core = require("@hot-updater/plugin-core");
|
|
28
28
|
let fs_promises = require("fs/promises");
|
|
29
|
-
fs_promises = __toESM(fs_promises);
|
|
29
|
+
fs_promises = __toESM(fs_promises, 1);
|
|
30
30
|
let path = require("path");
|
|
31
|
-
path = __toESM(path);
|
|
31
|
+
path = __toESM(path, 1);
|
|
32
32
|
let _aws_sdk_s3_request_presigner = require("@aws-sdk/s3-request-presigner");
|
|
33
33
|
let _aws_sdk_client_ssm = require("@aws-sdk/client-ssm");
|
|
34
34
|
let _aws_sdk_cloudfront_signer = require("@aws-sdk/cloudfront-signer");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
|
|
2
|
-
import { BlobDatabasePluginConfig, RuntimeStoragePlugin, StoragePluginHooks, StorageResolveContext } from "@hot-updater/plugin-core";
|
|
3
1
|
import { S3ClientConfig } from "@aws-sdk/client-s3";
|
|
2
|
+
import { BlobDatabasePluginConfig, RuntimeStoragePlugin, StoragePluginHooks, StorageResolveContext } from "@hot-updater/plugin-core";
|
|
4
3
|
|
|
5
4
|
//#region src/s3Database.d.ts
|
|
6
5
|
interface S3DatabaseConfig extends S3ClientConfig, BlobDatabasePluginConfig {
|
|
@@ -22,7 +21,7 @@ interface S3DatabaseConfig extends S3ClientConfig, BlobDatabasePluginConfig {
|
|
|
22
21
|
shouldWaitForInvalidation?: boolean;
|
|
23
22
|
apiBasePath?: string;
|
|
24
23
|
}
|
|
25
|
-
declare const s3Database: (config: S3DatabaseConfig, hooks?:
|
|
24
|
+
declare const s3Database: (config: S3DatabaseConfig, hooks?: import("@hot-updater/plugin-core").DatabasePluginHooks) => () => import("@hot-updater/plugin-core").DatabasePlugin<unknown>;
|
|
26
25
|
//#endregion
|
|
27
26
|
//#region src/s3Storage.d.ts
|
|
28
27
|
interface S3StorageConfig extends S3ClientConfig {
|
|
@@ -32,7 +31,7 @@ interface S3StorageConfig extends S3ClientConfig {
|
|
|
32
31
|
*/
|
|
33
32
|
basePath?: string;
|
|
34
33
|
}
|
|
35
|
-
declare const s3Storage: (config: S3StorageConfig, hooks?:
|
|
34
|
+
declare const s3Storage: (config: S3StorageConfig, hooks?: import("@hot-updater/plugin-core").StoragePluginHooks) => () => import("@hot-updater/plugin-core").UniversalStoragePlugin<unknown>;
|
|
36
35
|
//#endregion
|
|
37
36
|
//#region src/withCloudFrontSignedUrl.d.ts
|
|
38
37
|
interface CloudFrontPrivateKeyFromGetter {
|
|
@@ -56,7 +55,7 @@ declare const withCloudFrontSignedUrl: <TContext = unknown, TStorage extends Run
|
|
|
56
55
|
//#endregion
|
|
57
56
|
//#region src/s3LambdaEdgeStorage.d.ts
|
|
58
57
|
type AwsLambdaEdgeStorageConfig = S3StorageConfig & WithCloudFrontSignedUrlOptions;
|
|
59
|
-
declare const awsLambdaEdgeStorage: (config: AwsLambdaEdgeStorageConfig, hooks?: StoragePluginHooks) => () =>
|
|
60
|
-
declare const s3LambdaEdgeStorage: (config: AwsLambdaEdgeStorageConfig, hooks?: StoragePluginHooks) => () =>
|
|
58
|
+
declare const awsLambdaEdgeStorage: (config: AwsLambdaEdgeStorageConfig, hooks?: StoragePluginHooks) => () => import("@hot-updater/plugin-core").UniversalStoragePlugin<unknown>;
|
|
59
|
+
declare const s3LambdaEdgeStorage: (config: AwsLambdaEdgeStorageConfig, hooks?: StoragePluginHooks) => () => import("@hot-updater/plugin-core").UniversalStoragePlugin<unknown>;
|
|
61
60
|
//#endregion
|
|
62
61
|
export { AwsLambdaEdgeStorageConfig, CloudFrontSignedUrlConfig, PublicBaseUrlResolver, S3DatabaseConfig, S3StorageConfig, WithCloudFrontSignedUrlOptions, awsLambdaEdgeStorage, s3Database, s3LambdaEdgeStorage, s3Storage, withCloudFrontSignedUrl };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { S3ClientConfig } from "@aws-sdk/client-s3";
|
|
2
|
-
import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
|
|
3
2
|
import { BlobDatabasePluginConfig, RuntimeStoragePlugin, StoragePluginHooks, StorageResolveContext } from "@hot-updater/plugin-core";
|
|
4
3
|
|
|
5
4
|
//#region src/s3Database.d.ts
|
|
@@ -22,7 +21,7 @@ interface S3DatabaseConfig extends S3ClientConfig, BlobDatabasePluginConfig {
|
|
|
22
21
|
shouldWaitForInvalidation?: boolean;
|
|
23
22
|
apiBasePath?: string;
|
|
24
23
|
}
|
|
25
|
-
declare const s3Database: (config: S3DatabaseConfig, hooks?:
|
|
24
|
+
declare const s3Database: (config: S3DatabaseConfig, hooks?: import("@hot-updater/plugin-core").DatabasePluginHooks) => () => import("@hot-updater/plugin-core").DatabasePlugin<unknown>;
|
|
26
25
|
//#endregion
|
|
27
26
|
//#region src/s3Storage.d.ts
|
|
28
27
|
interface S3StorageConfig extends S3ClientConfig {
|
|
@@ -32,7 +31,7 @@ interface S3StorageConfig extends S3ClientConfig {
|
|
|
32
31
|
*/
|
|
33
32
|
basePath?: string;
|
|
34
33
|
}
|
|
35
|
-
declare const s3Storage: (config: S3StorageConfig, hooks?:
|
|
34
|
+
declare const s3Storage: (config: S3StorageConfig, hooks?: import("@hot-updater/plugin-core").StoragePluginHooks) => () => import("@hot-updater/plugin-core").UniversalStoragePlugin<unknown>;
|
|
36
35
|
//#endregion
|
|
37
36
|
//#region src/withCloudFrontSignedUrl.d.ts
|
|
38
37
|
interface CloudFrontPrivateKeyFromGetter {
|
|
@@ -56,7 +55,7 @@ declare const withCloudFrontSignedUrl: <TContext = unknown, TStorage extends Run
|
|
|
56
55
|
//#endregion
|
|
57
56
|
//#region src/s3LambdaEdgeStorage.d.ts
|
|
58
57
|
type AwsLambdaEdgeStorageConfig = S3StorageConfig & WithCloudFrontSignedUrlOptions;
|
|
59
|
-
declare const awsLambdaEdgeStorage: (config: AwsLambdaEdgeStorageConfig, hooks?: StoragePluginHooks) => () =>
|
|
60
|
-
declare const s3LambdaEdgeStorage: (config: AwsLambdaEdgeStorageConfig, hooks?: StoragePluginHooks) => () =>
|
|
58
|
+
declare const awsLambdaEdgeStorage: (config: AwsLambdaEdgeStorageConfig, hooks?: StoragePluginHooks) => () => import("@hot-updater/plugin-core").UniversalStoragePlugin<unknown>;
|
|
59
|
+
declare const s3LambdaEdgeStorage: (config: AwsLambdaEdgeStorageConfig, hooks?: StoragePluginHooks) => () => import("@hot-updater/plugin-core").UniversalStoragePlugin<unknown>;
|
|
61
60
|
//#endregion
|
|
62
61
|
export { AwsLambdaEdgeStorageConfig, CloudFrontSignedUrlConfig, PublicBaseUrlResolver, S3DatabaseConfig, S3StorageConfig, WithCloudFrontSignedUrlOptions, awsLambdaEdgeStorage, s3Database, s3LambdaEdgeStorage, s3Storage, withCloudFrontSignedUrl };
|
package/dist/lambda/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
|
6
6
|
var __getOwnPropNames$1 = Object.getOwnPropertyNames;
|
|
7
7
|
var __getProtoOf$1 = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin$1 = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
9
|
+
var __commonJSMin$1 = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
10
|
var __copyProps$1 = (to, from, except, desc) => {
|
|
11
11
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames$1(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
12
|
key = keys[i];
|
|
@@ -23,16 +23,16 @@ var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(
|
|
|
23
23
|
}) : target, mod));
|
|
24
24
|
//#endregion
|
|
25
25
|
let node_path = require("node:path");
|
|
26
|
-
node_path = __toESM$1(node_path);
|
|
26
|
+
node_path = __toESM$1(node_path, 1);
|
|
27
27
|
let node_crypto = require("node:crypto");
|
|
28
|
-
node_crypto = __toESM$1(node_crypto);
|
|
28
|
+
node_crypto = __toESM$1(node_crypto, 1);
|
|
29
29
|
let _aws_sdk_client_cloudfront = require("@aws-sdk/client-cloudfront");
|
|
30
30
|
let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
|
|
31
31
|
let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
|
|
32
32
|
let fs_promises = require("fs/promises");
|
|
33
|
-
fs_promises = __toESM$1(fs_promises);
|
|
33
|
+
fs_promises = __toESM$1(fs_promises, 1);
|
|
34
34
|
let path = require("path");
|
|
35
|
-
path = __toESM$1(path);
|
|
35
|
+
path = __toESM$1(path, 1);
|
|
36
36
|
let _aws_sdk_s3_request_presigner = require("@aws-sdk/s3-request-presigner");
|
|
37
37
|
let _aws_sdk_client_ssm = require("@aws-sdk/client-ssm");
|
|
38
38
|
let _aws_sdk_cloudfront_signer = require("@aws-sdk/cloudfront-signer");
|
|
@@ -2795,6 +2795,7 @@ var require_min_version$2 = /* @__PURE__ */ __commonJSMin$1(((exports, module) =
|
|
|
2795
2795
|
break;
|
|
2796
2796
|
case "<":
|
|
2797
2797
|
case "<=": break;
|
|
2798
|
+
/* istanbul ignore next */
|
|
2798
2799
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
2799
2800
|
}
|
|
2800
2801
|
});
|
|
@@ -3318,7 +3319,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3318
3319
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3319
3320
|
var __getProtoOf = Object.getPrototypeOf;
|
|
3320
3321
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3321
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
3322
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
3322
3323
|
var __copyProps = (to, from, except, desc) => {
|
|
3323
3324
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
3324
3325
|
key = keys[i];
|
|
@@ -4307,6 +4308,7 @@ var require_min_version$1 = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
4307
4308
|
break;
|
|
4308
4309
|
case "<":
|
|
4309
4310
|
case "<=": break;
|
|
4311
|
+
/* istanbul ignore next */
|
|
4310
4312
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
4311
4313
|
}
|
|
4312
4314
|
});
|
|
@@ -6922,6 +6924,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin$1(((exports, module) =>
|
|
|
6922
6924
|
break;
|
|
6923
6925
|
case "<":
|
|
6924
6926
|
case "<=": break;
|
|
6927
|
+
/* istanbul ignore next */
|
|
6925
6928
|
default: throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
6926
6929
|
}
|
|
6927
6930
|
});
|
|
@@ -7271,7 +7274,7 @@ function findRoute(router, method, path) {
|
|
|
7271
7274
|
}
|
|
7272
7275
|
//#endregion
|
|
7273
7276
|
//#region ../../packages/server/src/version.ts
|
|
7274
|
-
const HOT_UPDATER_SERVER_VERSION = "0.31.
|
|
7277
|
+
const HOT_UPDATER_SERVER_VERSION = "0.31.2";
|
|
7275
7278
|
//#endregion
|
|
7276
7279
|
//#region ../../packages/server/src/handler.ts
|
|
7277
7280
|
var HandlerBadRequestError = class extends Error {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/aws",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.31.
|
|
4
|
+
"version": "0.31.2",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"es-toolkit": "^1.32.0",
|
|
43
43
|
"execa": "9.5.2",
|
|
44
44
|
"mime": "^4.0.4",
|
|
45
|
-
"@hot-updater/
|
|
46
|
-
"@hot-updater/
|
|
47
|
-
"@hot-updater/mock": "0.31.
|
|
48
|
-
"@hot-updater/test-utils": "0.31.
|
|
45
|
+
"@hot-updater/js": "0.31.2",
|
|
46
|
+
"@hot-updater/core": "0.31.2",
|
|
47
|
+
"@hot-updater/mock": "0.31.2",
|
|
48
|
+
"@hot-updater/test-utils": "0.31.2"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@aws-sdk/client-cloudfront": "3.1008.0",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@aws-sdk/lib-storage": "3.1008.0",
|
|
61
61
|
"hono": "4.12.9",
|
|
62
62
|
"aws-lambda": "1.0.7",
|
|
63
|
-
"@hot-updater/
|
|
64
|
-
"@hot-updater/
|
|
65
|
-
"@hot-updater/server": "0.31.
|
|
63
|
+
"@hot-updater/plugin-core": "0.31.2",
|
|
64
|
+
"@hot-updater/cli-tools": "0.31.2",
|
|
65
|
+
"@hot-updater/server": "0.31.2"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsdown",
|