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.
@@ -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
- accessKeyId: string;
16
- secretAccessKey: string;
17
- } | undefined, lambdaRoleArn: string) => Promise<{
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)=>"function" == typeof config ? await config() : 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
@@ -1,4 +1,4 @@
1
1
  import __rslib_shim_module__ from 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
- const defineConfig = async (config)=>"function" == typeof config ? await config() : config;
3
+ const defineConfig = async (config)=>config;
4
4
  export { defineConfig };