hot-updater 0.12.2 → 0.12.4
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/commands/init/aws/index.d.ts +9 -4
- package/dist/commands/init/aws/regionLocationMap.d.ts +1 -1
- package/dist/commands/init/aws/transformEnv.d.ts +1 -0
- package/dist/commands/init/aws/transformEnv.spec.d.ts +1 -0
- package/dist/config.cjs +1 -1
- package/dist/config.d.ts +2 -2
- package/dist/config.js +1 -1
- package/dist/index.cjs +56967 -744
- package/dist/index.js +56745 -753
- package/dist/utils/createZip.d.ts +2 -1
- package/package.json +7 -4
|
@@ -11,10 +11,15 @@ export declare function createOrSelectIamRole({ region, credentials, }: {
|
|
|
11
11
|
* - Zip the local ./lambda folder, create a function in us-east-1 region,
|
|
12
12
|
* - Publish a new version of the function
|
|
13
13
|
*/
|
|
14
|
-
export declare const deployLambdaEdge: (credentials: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
export declare const deployLambdaEdge: ({ region, bucketName, credentials, lambdaRoleArn, }: {
|
|
15
|
+
region: BucketLocationConstraint;
|
|
16
|
+
bucketName: string;
|
|
17
|
+
credentials: {
|
|
18
|
+
accessKeyId: string;
|
|
19
|
+
secretAccessKey: string;
|
|
20
|
+
};
|
|
21
|
+
lambdaRoleArn: string;
|
|
22
|
+
}) => Promise<{
|
|
18
23
|
lambdaName: string;
|
|
19
24
|
functionArn: string;
|
|
20
25
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { BucketLocationConstraint } from "@hot-updater/aws/sdk";
|
|
2
|
-
export declare const regionLocationMap: Record<BucketLocationConstraint, string>;
|
|
2
|
+
export declare const regionLocationMap: Record<BucketLocationConstraint | "ap-southeast-4" | "ap-southeast-5" | "il-central-1" | "me-central-1", string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const transformEnv: <T extends Record<string, string>>(code: string, env: T) => Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/config.cjs
CHANGED
|
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
29
29
|
defineConfig: ()=>defineConfig
|
|
30
30
|
});
|
|
31
|
-
const defineConfig = async (config)=>
|
|
31
|
+
const defineConfig = async (config)=>config;
|
|
32
32
|
var __webpack_export_target__ = exports;
|
|
33
33
|
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
34
34
|
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
package/dist/config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Config } from "@hot-updater/plugin-core";
|
|
2
|
-
export declare const defineConfig: (config: Config | (() => Config) | (() => Promise<Config>)) => Promise<Config>;
|
|
1
|
+
import type { Config, HotUpdaterConfigOptions } from "@hot-updater/plugin-core";
|
|
2
|
+
export declare const defineConfig: (config: Config | ((options: HotUpdaterConfigOptions) => Config) | ((options: HotUpdaterConfigOptions) => Promise<Config>)) => Promise<Config | ((options: HotUpdaterConfigOptions) => Config) | ((options: HotUpdaterConfigOptions) => Promise<Config>)>;
|
package/dist/config.js
CHANGED