@hot-updater/aws 0.18.4 → 0.19.0
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 +3 -1
- package/dist/iac/index.js +3 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +4 -4
package/dist/iac/index.cjs
CHANGED
|
@@ -8845,7 +8845,9 @@ function App() {
|
|
|
8845
8845
|
}
|
|
8846
8846
|
|
|
8847
8847
|
export default HotUpdater.wrap({
|
|
8848
|
-
source: getUpdateSource("%%source%%"
|
|
8848
|
+
source: getUpdateSource("%%source%%", {
|
|
8849
|
+
updateStrategy: "fingerprint", // or "appVersion"
|
|
8850
|
+
}),
|
|
8849
8851
|
})(App);`;
|
|
8850
8852
|
|
|
8851
8853
|
//#endregion
|
package/dist/iac/index.js
CHANGED
|
@@ -8848,7 +8848,9 @@ function App() {
|
|
|
8848
8848
|
}
|
|
8849
8849
|
|
|
8850
8850
|
export default HotUpdater.wrap({
|
|
8851
|
-
source: getUpdateSource("%%source%%"
|
|
8851
|
+
source: getUpdateSource("%%source%%", {
|
|
8852
|
+
updateStrategy: "fingerprint", // or "appVersion"
|
|
8853
|
+
}),
|
|
8852
8854
|
})(App);`;
|
|
8853
8855
|
|
|
8854
8856
|
//#endregion
|
package/dist/index.cjs
CHANGED
|
@@ -1486,7 +1486,7 @@ const s3Storage = (config, hooks) => (_) => {
|
|
|
1486
1486
|
return {
|
|
1487
1487
|
name: "s3Storage",
|
|
1488
1488
|
async deleteBundle(bundleId) {
|
|
1489
|
-
const Key =
|
|
1489
|
+
const Key = bundleId;
|
|
1490
1490
|
const listCommand = new __aws_sdk_client_s3.ListObjectsV2Command({
|
|
1491
1491
|
Bucket: bucketName,
|
|
1492
1492
|
Prefix: bundleId
|
|
@@ -1503,7 +1503,7 @@ const s3Storage = (config, hooks) => (_) => {
|
|
|
1503
1503
|
};
|
|
1504
1504
|
const deleteCommand = new __aws_sdk_client_s3.DeleteObjectsCommand(deleteParams);
|
|
1505
1505
|
await client.send(deleteCommand);
|
|
1506
|
-
return Key;
|
|
1506
|
+
return { storageUri: `s3://${bucketName}/${Key}` };
|
|
1507
1507
|
}
|
|
1508
1508
|
throw new Error("Bundle Not Found");
|
|
1509
1509
|
},
|
package/dist/index.js
CHANGED
|
@@ -1463,7 +1463,7 @@ const s3Storage = (config, hooks) => (_) => {
|
|
|
1463
1463
|
return {
|
|
1464
1464
|
name: "s3Storage",
|
|
1465
1465
|
async deleteBundle(bundleId) {
|
|
1466
|
-
const Key =
|
|
1466
|
+
const Key = bundleId;
|
|
1467
1467
|
const listCommand = new ListObjectsV2Command({
|
|
1468
1468
|
Bucket: bucketName,
|
|
1469
1469
|
Prefix: bundleId
|
|
@@ -1480,7 +1480,7 @@ const s3Storage = (config, hooks) => (_) => {
|
|
|
1480
1480
|
};
|
|
1481
1481
|
const deleteCommand = new DeleteObjectsCommand(deleteParams);
|
|
1482
1482
|
await client.send(deleteCommand);
|
|
1483
|
-
return Key;
|
|
1483
|
+
return { storageUri: `s3://${bucketName}/${Key}` };
|
|
1484
1484
|
}
|
|
1485
1485
|
throw new Error("Bundle Not Found");
|
|
1486
1486
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/aws",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.19.0",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"mime": "^4.0.4",
|
|
46
46
|
"picocolors": "^1.0.0",
|
|
47
47
|
"@clack/prompts": "0.10.0",
|
|
48
|
-
"@hot-updater/
|
|
49
|
-
"@hot-updater/
|
|
48
|
+
"@hot-updater/js": "0.19.0",
|
|
49
|
+
"@hot-updater/core": "0.19.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@aws-sdk/client-cloudfront": "3.772.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@aws-sdk/credential-providers": "3.772.0",
|
|
58
58
|
"@aws-sdk/lib-storage": "3.772.0",
|
|
59
59
|
"aws-lambda": "1.0.7",
|
|
60
|
-
"@hot-updater/plugin-core": "0.
|
|
60
|
+
"@hot-updater/plugin-core": "0.19.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsdown",
|