hot-updater 0.12.1-0 → 0.12.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/index.cjs +6 -5
- package/dist/index.js +6 -5
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -22753,9 +22753,6 @@ export default HotUpdater.wrap({
|
|
|
22753
22753
|
ZipFile: await promises_default().readFile(zipFilePath),
|
|
22754
22754
|
Publish: true
|
|
22755
22755
|
});
|
|
22756
|
-
promises_default().rm(zipFilePath, {
|
|
22757
|
-
force: true
|
|
22758
|
-
});
|
|
22759
22756
|
functionArn.arn = updateResp.FunctionArn || null;
|
|
22760
22757
|
functionArn.version = updateResp.Version || "1";
|
|
22761
22758
|
} else {
|
|
@@ -22763,6 +22760,10 @@ export default HotUpdater.wrap({
|
|
|
22763
22760
|
throw error;
|
|
22764
22761
|
}
|
|
22765
22762
|
return `Updated Lambda "${lambdaName}" function`;
|
|
22763
|
+
} finally{
|
|
22764
|
+
promises_default().rm(zipFilePath, {
|
|
22765
|
+
force: true
|
|
22766
|
+
});
|
|
22766
22767
|
}
|
|
22767
22768
|
}
|
|
22768
22769
|
},
|
|
@@ -22782,7 +22783,7 @@ export default HotUpdater.wrap({
|
|
|
22782
22783
|
}
|
|
22783
22784
|
]);
|
|
22784
22785
|
if (!functionArn.arn || !functionArn.version) throw new Error("Failed to create or update Lambda function");
|
|
22785
|
-
if (!functionArn.arn.
|
|
22786
|
+
if (!functionArn.arn.endsWith(`:${functionArn.version}`)) functionArn.arn = `${functionArn.arn}:${functionArn.version}`;
|
|
22786
22787
|
prompts_namespaceObject.log.info(`Using Lambda ARN: ${functionArn.arn}`);
|
|
22787
22788
|
return {
|
|
22788
22789
|
lambdaName,
|
|
@@ -23263,7 +23264,7 @@ export default HotUpdater.wrap({
|
|
|
23263
23264
|
prompts_namespaceObject.note(transformTemplate(SOURCE_TEMPLATE, {
|
|
23264
23265
|
source: sourceUrl
|
|
23265
23266
|
}));
|
|
23266
|
-
prompts_namespaceObject.log.message(`Next step: ${banner_link("https://gronxb.github.io/hot-updater/guide/providers/3_aws-s3-lambda-edge.html")}`);
|
|
23267
|
+
prompts_namespaceObject.log.message(`Next step: ${banner_link("https://gronxb.github.io/hot-updater/guide/providers/3_aws-s3-lambda-edge.html#step-4-changeenv-file-optional")}`);
|
|
23267
23268
|
prompts_namespaceObject.log.success("Done! 🎉");
|
|
23268
23269
|
};
|
|
23269
23270
|
const cloudflareD1R2Worker_CONFIG_TEMPLATE = `
|
package/dist/index.js
CHANGED
|
@@ -22642,9 +22642,6 @@ const deployLambdaEdge = async (credentials, lambdaRoleArn)=>{
|
|
|
22642
22642
|
ZipFile: await __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__["default"].readFile(zipFilePath),
|
|
22643
22643
|
Publish: true
|
|
22644
22644
|
});
|
|
22645
|
-
__WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__["default"].rm(zipFilePath, {
|
|
22646
|
-
force: true
|
|
22647
|
-
});
|
|
22648
22645
|
functionArn.arn = updateResp.FunctionArn || null;
|
|
22649
22646
|
functionArn.version = updateResp.Version || "1";
|
|
22650
22647
|
} else {
|
|
@@ -22652,6 +22649,10 @@ const deployLambdaEdge = async (credentials, lambdaRoleArn)=>{
|
|
|
22652
22649
|
throw error;
|
|
22653
22650
|
}
|
|
22654
22651
|
return `Updated Lambda "${lambdaName}" function`;
|
|
22652
|
+
} finally{
|
|
22653
|
+
__WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__["default"].rm(zipFilePath, {
|
|
22654
|
+
force: true
|
|
22655
|
+
});
|
|
22655
22656
|
}
|
|
22656
22657
|
}
|
|
22657
22658
|
},
|
|
@@ -22671,7 +22672,7 @@ const deployLambdaEdge = async (credentials, lambdaRoleArn)=>{
|
|
|
22671
22672
|
}
|
|
22672
22673
|
]);
|
|
22673
22674
|
if (!functionArn.arn || !functionArn.version) throw new Error("Failed to create or update Lambda function");
|
|
22674
|
-
if (!functionArn.arn.
|
|
22675
|
+
if (!functionArn.arn.endsWith(`:${functionArn.version}`)) functionArn.arn = `${functionArn.arn}:${functionArn.version}`;
|
|
22675
22676
|
__WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.info(`Using Lambda ARN: ${functionArn.arn}`);
|
|
22676
22677
|
return {
|
|
22677
22678
|
lambdaName,
|
|
@@ -23152,7 +23153,7 @@ const initAwsS3LambdaEdge = async ()=>{
|
|
|
23152
23153
|
__WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.note(transformTemplate(SOURCE_TEMPLATE, {
|
|
23153
23154
|
source: sourceUrl
|
|
23154
23155
|
}));
|
|
23155
|
-
__WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.message(`Next step: ${banner_link("https://gronxb.github.io/hot-updater/guide/providers/3_aws-s3-lambda-edge.html")}`);
|
|
23156
|
+
__WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.message(`Next step: ${banner_link("https://gronxb.github.io/hot-updater/guide/providers/3_aws-s3-lambda-edge.html#step-4-changeenv-file-optional")}`);
|
|
23156
23157
|
__WEBPACK_EXTERNAL_MODULE__clack_prompts_3cae1695__.log.success("Done! 🎉");
|
|
23157
23158
|
};
|
|
23158
23159
|
const cloudflareD1R2Worker_CONFIG_TEMPLATE = `
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hot-updater",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.2",
|
|
5
5
|
"bin": {
|
|
6
6
|
"hot-updater": "./dist/index.js"
|
|
7
7
|
},
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@clack/prompts": "^0.9.0",
|
|
52
|
-
"@hot-updater/console": "0.12.
|
|
53
|
-
"@hot-updater/core": "0.12.
|
|
54
|
-
"@hot-updater/plugin-core": "0.12.
|
|
52
|
+
"@hot-updater/console": "0.12.2",
|
|
53
|
+
"@hot-updater/core": "0.12.2",
|
|
54
|
+
"@hot-updater/plugin-core": "0.12.2",
|
|
55
55
|
"commander": "^11.1.0",
|
|
56
56
|
"cosmiconfig": "^9.0.0",
|
|
57
57
|
"cosmiconfig-typescript-loader": "^5.0.0"
|