@flosum/storages 1.3.3-beta.2 → 1.3.3-beta.3
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/README.md +25 -0
- package/dist/copy/aws-s3-copy.d.ts +7 -0
- package/dist/copy/aws-s3-copy.js +1 -0
- package/dist/copy/base-copy.d.ts +6 -0
- package/dist/copy/base-copy.js +1 -0
- package/dist/copy/index.d.ts +3 -0
- package/dist/copy/index.js +1 -0
- package/dist/copy/local-copy.d.ts +5 -0
- package/dist/copy/local-copy.js +1 -0
- package/dist/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/azure-credentials.js +1 -1
- package/dist/credentials/base-credentials.js +1 -1
- package/dist/credentials/index.js +1 -1
- package/dist/credentials/local-credentials.js +1 -1
- package/dist/delete/aws-s3-delete.js +1 -1
- package/dist/delete/azure-delete.js +1 -1
- package/dist/delete/base-delete.js +1 -1
- package/dist/delete/index.js +1 -1
- package/dist/delete/local-delete.js +1 -1
- package/dist/deploy/aws-s3-deploy.js +1 -1
- package/dist/deploy/azure-deploy.js +1 -1
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.d.ts +2 -0
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
- package/dist/retrieve/helpers/azure-helper.js +1 -1
- package/dist/retrieve/helpers/base-helper.js +1 -1
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.js +1 -1
- package/dist/types/azure.types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal.types.js +1 -1
- package/dist/types/retrieve-status.enum.js +1 -1
- package/dist/types/storage-type.enum.js +1 -1
- package/dist/utils/aws-s3.utils.js +1 -1
- package/dist/utils/azure.utils.js +1 -1
- package/dist/utils/cache.utils.js +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Flosum Storages
|
|
2
|
+
|
|
3
|
+
## AWS IAM Policy Example for S3
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{
|
|
7
|
+
"Version": "2012-10-17",
|
|
8
|
+
"Statement": [
|
|
9
|
+
{
|
|
10
|
+
"Effect": "Allow",
|
|
11
|
+
"Action": [
|
|
12
|
+
"s3:ListBucket",
|
|
13
|
+
"s3:GetObject",
|
|
14
|
+
"s3:HeadObject",
|
|
15
|
+
"s3:RestoreObject",
|
|
16
|
+
"s3:DeleteObject",
|
|
17
|
+
"s3:HeadBucket"
|
|
18
|
+
],
|
|
19
|
+
"Resource": [
|
|
20
|
+
"arn:aws:s3:::your-bucket-name",
|
|
21
|
+
"arn:aws:s3:::your-bucket-name/*"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AwsS3Credentials } from '../credentials';
|
|
2
|
+
import { BaseCopy } from './base-copy';
|
|
3
|
+
export declare class AwsS3Copy extends BaseCopy<AwsS3Credentials> {
|
|
4
|
+
private readonly s3Client;
|
|
5
|
+
constructor(credentials: AwsS3Credentials);
|
|
6
|
+
execute(sourcePath: string, destinationPath: string): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x4ba4(){const _0x19ff4a=['bucketName','throw','./base-copy','50470jZOPFG','value','36027zsPBiU','apply','11RpSgCT','then','credentials','createS3Client','send','14706790DrKryn','3110115RLVMZJ','defineProperty','s3Client','AwsS3Copy','__awaiter','848895GHdopA','__esModule','next','3565792CLrQZo','824rleeFU','18bQkDtf','../utils/aws-s3.utils','@aws-sdk/client-s3','1090836kuatxM','82NyiJYR'];_0x4ba4=function(){return _0x19ff4a;};return _0x4ba4();}const _0x358bd3=_0x4acc;(function(_0x2f7512,_0x3839b5){const _0x51161f=_0x4acc,_0x4b6ea6=_0x2f7512();while(!![]){try{const _0xf9463b=parseInt(_0x51161f(0xcc))/0x1*(parseInt(_0x51161f(0xc6))/0x2)+-parseInt(_0x51161f(0xd4))/0x3+-parseInt(_0x51161f(0xdc))/0x4+-parseInt(_0x51161f(0xd9))/0x5*(-parseInt(_0x51161f(0xde))/0x6)+-parseInt(_0x51161f(0xca))/0x7*(parseInt(_0x51161f(0xdd))/0x8)+parseInt(_0x51161f(0xc5))/0x9+parseInt(_0x51161f(0xd3))/0xa*(parseInt(_0x51161f(0xce))/0xb);if(_0xf9463b===_0x3839b5)break;else _0x4b6ea6['push'](_0x4b6ea6['shift']());}catch(_0xe4fc5f){_0x4b6ea6['push'](_0x4b6ea6['shift']());}}}(_0x4ba4,0xdd918));var __awaiter=this&&this[_0x358bd3(0xd8)]||function(_0x3f31d5,_0x207d01,_0x82acc3,_0x2761a9){function _0x34a768(_0x23adfc){return _0x23adfc instanceof _0x82acc3?_0x23adfc:new _0x82acc3(function(_0x13f1b3){_0x13f1b3(_0x23adfc);});}return new(_0x82acc3||(_0x82acc3=Promise))(function(_0x20edc7,_0x687f89){const _0x2f2171=_0x4acc;function _0xed1249(_0x3c3200){const _0x2449ca=_0x4acc;try{_0x56d9c7(_0x2761a9[_0x2449ca(0xdb)](_0x3c3200));}catch(_0x315337){_0x687f89(_0x315337);}}function _0x1ca017(_0x5de710){const _0x2083a1=_0x4acc;try{_0x56d9c7(_0x2761a9[_0x2083a1(0xc8)](_0x5de710));}catch(_0x446bc1){_0x687f89(_0x446bc1);}}function _0x56d9c7(_0x4a366f){const _0x57b9b8=_0x4acc;_0x4a366f['done']?_0x20edc7(_0x4a366f[_0x57b9b8(0xcb)]):_0x34a768(_0x4a366f[_0x57b9b8(0xcb)])[_0x57b9b8(0xcf)](_0xed1249,_0x1ca017);}_0x56d9c7((_0x2761a9=_0x2761a9[_0x2f2171(0xcd)](_0x3f31d5,_0x207d01||[]))[_0x2f2171(0xdb)]());});};Object[_0x358bd3(0xd5)](exports,_0x358bd3(0xda),{'value':!![]}),exports[_0x358bd3(0xd7)]=void 0x0;function _0x4acc(_0x195938,_0x25b332){const _0x4ba45e=_0x4ba4();return _0x4acc=function(_0x4accc3,_0x45fb33){_0x4accc3=_0x4accc3-0xc4;let _0x2e553f=_0x4ba45e[_0x4accc3];return _0x2e553f;},_0x4acc(_0x195938,_0x25b332);}const base_copy_1=require(_0x358bd3(0xc9)),client_s3_1=require(_0x358bd3(0xc4)),aws_s3_utils_1=require(_0x358bd3(0xdf));class AwsS3Copy extends base_copy_1['BaseCopy']{constructor(_0x4a740b){const _0x303644=_0x358bd3;super(_0x4a740b),this[_0x303644(0xd6)]=aws_s3_utils_1['AwsS3Utils'][_0x303644(0xd1)](_0x4a740b);}['execute'](_0x125cde,_0x160753){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2c51ab=_0x4acc,_0x42dc7e=new client_s3_1['CopyObjectCommand']({'Bucket':this[_0x2c51ab(0xd0)][_0x2c51ab(0xc7)],'CopySource':_0x125cde,'Key':_0x160753});yield this[_0x2c51ab(0xd6)][_0x2c51ab(0xd2)](_0x42dc7e);});}}exports[_0x358bd3(0xd7)]=AwsS3Copy;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseCredentials } from '../credentials';
|
|
2
|
+
export declare abstract class BaseCopy<T extends BaseCredentials = BaseCredentials> {
|
|
3
|
+
protected readonly credentials: T;
|
|
4
|
+
constructor(credentials: T);
|
|
5
|
+
abstract execute(sourcePath: string, destinationPath: string): Promise<void>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x22c87e=_0xed96;(function(_0x2b9eb4,_0x2cf2f0){var _0x1782b7=_0xed96,_0x5cdb57=_0x2b9eb4();while(!![]){try{var _0x52221a=-parseInt(_0x1782b7(0x1d5))/0x1*(-parseInt(_0x1782b7(0x1d8))/0x2)+-parseInt(_0x1782b7(0x1da))/0x3+-parseInt(_0x1782b7(0x1d9))/0x4*(parseInt(_0x1782b7(0x1d1))/0x5)+parseInt(_0x1782b7(0x1cf))/0x6*(-parseInt(_0x1782b7(0x1d4))/0x7)+-parseInt(_0x1782b7(0x1d0))/0x8*(parseInt(_0x1782b7(0x1cd))/0x9)+-parseInt(_0x1782b7(0x1d3))/0xa*(-parseInt(_0x1782b7(0x1d7))/0xb)+parseInt(_0x1782b7(0x1ce))/0xc;if(_0x52221a===_0x2cf2f0)break;else _0x5cdb57['push'](_0x5cdb57['shift']());}catch(_0x35018c){_0x5cdb57['push'](_0x5cdb57['shift']());}}}(_0x3709,0x230bf));Object['defineProperty'](exports,_0x22c87e(0x1d2),{'value':!![]}),exports['BaseCopy']=void 0x0;function _0x3709(){var _0x154647=['114737NiKzkX','6437bQRQYZ','credentials','44DjXoOT','62sruuik','4kYXYDt','802923VNzJZl','9wjJhns','5227668rQHebU','36TBNSee','1222888KGqVKD','939115OVLGst','__esModule','537590DwqLZF'];_0x3709=function(){return _0x154647;};return _0x3709();}function _0xed96(_0x34b56e,_0x270e61){var _0x370983=_0x3709();return _0xed96=function(_0xed969d,_0x242823){_0xed969d=_0xed969d-0x1cd;var _0x4c446c=_0x370983[_0xed969d];return _0x4c446c;},_0xed96(_0x34b56e,_0x270e61);}class BaseCopy{constructor(_0x199140){var _0x45da44=_0x22c87e;this[_0x45da44(0x1d6)]=_0x199140;}}exports['BaseCopy']=BaseCopy;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x25ae91=_0x5491;(function(_0x18937f,_0x5e6da5){var _0x57d633=_0x5491,_0x8fd83e=_0x18937f();while(!![]){try{var _0x2ad54b=parseInt(_0x57d633(0x133))/0x1+-parseInt(_0x57d633(0x131))/0x2*(parseInt(_0x57d633(0x12c))/0x3)+parseInt(_0x57d633(0x130))/0x4*(-parseInt(_0x57d633(0x13b))/0x5)+-parseInt(_0x57d633(0x12e))/0x6+-parseInt(_0x57d633(0x135))/0x7+-parseInt(_0x57d633(0x13c))/0x8*(parseInt(_0x57d633(0x12b))/0x9)+-parseInt(_0x57d633(0x137))/0xa*(-parseInt(_0x57d633(0x12d))/0xb);if(_0x2ad54b===_0x5e6da5)break;else _0x8fd83e['push'](_0x8fd83e['shift']());}catch(_0x23e82b){_0x8fd83e['push'](_0x8fd83e['shift']());}}}(_0x36fa,0x7a3e6));Object['defineProperty'](exports,_0x25ae91(0x136),{'value':!![]}),exports[_0x25ae91(0x13d)]=exports[_0x25ae91(0x13a)]=exports[_0x25ae91(0x12f)]=void 0x0;var base_copy_1=require(_0x25ae91(0x134));Object['defineProperty'](exports,_0x25ae91(0x12f),{'enumerable':!![],'get':function(){var _0x5a7d58=_0x25ae91;return base_copy_1[_0x5a7d58(0x12f)];}});function _0x5491(_0xa3276e,_0x4f1773){var _0x36facb=_0x36fa();return _0x5491=function(_0x54919e,_0x3ededb){_0x54919e=_0x54919e-0x12b;var _0x38539d=_0x36facb[_0x54919e];return _0x38539d;},_0x5491(_0xa3276e,_0x4f1773);}function _0x36fa(){var _0x2717b8=['1098SFhBvV','defineProperty','638990CEFyiu','./base-copy','6454812nJzNae','__esModule','6310330IJsNfU','./aws-s3-copy','./local-copy','LocalCopy','4538965gLaeac','13424uGXGsg','AwsS3Copy','27bEhNuo','879WuLowB','44Fcctwv','3999672qssBSD','BaseCopy','4ecYDno'];_0x36fa=function(){return _0x2717b8;};return _0x36fa();}var local_copy_1=require(_0x25ae91(0x139));Object[_0x25ae91(0x132)](exports,_0x25ae91(0x13a),{'enumerable':!![],'get':function(){var _0x1f9115=_0x25ae91;return local_copy_1[_0x1f9115(0x13a)];}});var aws_s3_copy_1=require(_0x25ae91(0x138));Object[_0x25ae91(0x132)](exports,'AwsS3Copy',{'enumerable':!![],'get':function(){var _0x396f4b=_0x25ae91;return aws_s3_copy_1[_0x396f4b(0x13d)];}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x418a8d=_0x413a;(function(_0x1e2079,_0x4bedc0){const _0xbbf208=_0x413a,_0x5cdf27=_0x1e2079();while(!![]){try{const _0x526c11=parseInt(_0xbbf208(0x11a))/0x1*(parseInt(_0xbbf208(0x121))/0x2)+parseInt(_0xbbf208(0x11e))/0x3*(parseInt(_0xbbf208(0x119))/0x4)+parseInt(_0xbbf208(0x123))/0x5*(-parseInt(_0xbbf208(0x116))/0x6)+parseInt(_0xbbf208(0x12a))/0x7+-parseInt(_0xbbf208(0x128))/0x8*(-parseInt(_0xbbf208(0x120))/0x9)+parseInt(_0xbbf208(0x115))/0xa+-parseInt(_0xbbf208(0x122))/0xb;if(_0x526c11===_0x4bedc0)break;else _0x5cdf27['push'](_0x5cdf27['shift']());}catch(_0x506d47){_0x5cdf27['push'](_0x5cdf27['shift']());}}}(_0x467c,0x4e58f));function _0x467c(){const _0x33b0be=['LocalCopy','done','288naBYNZ','defineProperty','85563fxDQjw','2xIZuiH','2211110pyIjrY','5IRwYYt','value','fs/promises','__awaiter','next','88ulqwyc','execute','46858EOeghP','3534510FqVaGX','3681660UVjHdp','apply','then','6852LDNKVA','506361QXPlmV','./base-copy'];_0x467c=function(){return _0x33b0be;};return _0x467c();}var __awaiter=this&&this[_0x418a8d(0x126)]||function(_0xa1a67b,_0x4e98fc,_0x1c2e2d,_0x39f555){function _0x549cc7(_0x1a70aa){return _0x1a70aa instanceof _0x1c2e2d?_0x1a70aa:new _0x1c2e2d(function(_0x27f682){_0x27f682(_0x1a70aa);});}return new(_0x1c2e2d||(_0x1c2e2d=Promise))(function(_0x5bee6c,_0x3a1349){const _0x3dce16=_0x413a;function _0x5e972a(_0x41e717){const _0x4735b7=_0x413a;try{_0x45ab27(_0x39f555[_0x4735b7(0x127)](_0x41e717));}catch(_0x4ce207){_0x3a1349(_0x4ce207);}}function _0x54b9e6(_0x4a806b){try{_0x45ab27(_0x39f555['throw'](_0x4a806b));}catch(_0x338fa7){_0x3a1349(_0x338fa7);}}function _0x45ab27(_0x50a8e3){const _0x1fa374=_0x413a;_0x50a8e3[_0x1fa374(0x11d)]?_0x5bee6c(_0x50a8e3['value']):_0x549cc7(_0x50a8e3[_0x1fa374(0x124)])[_0x1fa374(0x118)](_0x5e972a,_0x54b9e6);}_0x45ab27((_0x39f555=_0x39f555[_0x3dce16(0x117)](_0xa1a67b,_0x4e98fc||[]))['next']());});};Object[_0x418a8d(0x11f)](exports,'__esModule',{'value':!![]}),exports[_0x418a8d(0x11c)]=void 0x0;const base_copy_1=require(_0x418a8d(0x11b)),promises_1=require(_0x418a8d(0x125)),path_1=require('path');class LocalCopy extends base_copy_1['BaseCopy']{[_0x418a8d(0x129)](_0x906a65,_0x26adfc){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x538773=(0x0,path_1['dirname'])(_0x26adfc);yield(0x0,promises_1['mkdir'])(_0x538773,{'recursive':!![]}),yield(0x0,promises_1['copyFile'])(_0x906a65,_0x26adfc);});}}function _0x413a(_0x3074a5,_0x4df962){const _0x467c3c=_0x467c();return _0x413a=function(_0x413a3a,_0x1c2bb6){_0x413a3a=_0x413a3a-0x115;let _0x5ab137=_0x467c3c[_0x413a3a];return _0x5ab137;},_0x413a(_0x3074a5,_0x4df962);}exports[_0x418a8d(0x11c)]=LocalCopy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5a2bbf=_0x94b6;(function(_0x205ded,_0x5e3114){const _0x1f65c6=_0x94b6,_0x19102a=_0x205ded();while(!![]){try{const _0x41d110=parseInt(_0x1f65c6(0x1fe))/0x1*(parseInt(_0x1f65c6(0x1f0))/0x2)+-parseInt(_0x1f65c6(0x1eb))/0x3*(-parseInt(_0x1f65c6(0x1f7))/0x4)+parseInt(_0x1f65c6(0x1df))/0x5*(-parseInt(_0x1f65c6(0x1e0))/0x6)+parseInt(_0x1f65c6(0x1f4))/0x7+-parseInt(_0x1f65c6(0x1fb))/0x8*(-parseInt(_0x1f65c6(0x1fa))/0x9)+-parseInt(_0x1f65c6(0x1e9))/0xa*(-parseInt(_0x1f65c6(0x1e5))/0xb)+-parseInt(_0x1f65c6(0x1f1))/0xc*(parseInt(_0x1f65c6(0x1f9))/0xd);if(_0x41d110===_0x5e3114)break;else _0x19102a['push'](_0x19102a['shift']());}catch(_0x12ee02){_0x19102a['push'](_0x19102a['shift']());}}}(_0xd50e,0x254c8));var __awaiter=this&&this['__awaiter']||function(_0x29ba07,_0x3f398c,_0x24825b,_0x212672){function _0x291e0e(_0x166b15){return _0x166b15 instanceof _0x24825b?_0x166b15:new _0x24825b(function(_0x3ae730){_0x3ae730(_0x166b15);});}return new(_0x24825b||(_0x24825b=Promise))(function(_0x4b3467,_0x21b32e){const _0x191d93=_0x94b6;function _0x1cf457(_0x35ff29){const _0x5e7f9b=_0x94b6;try{_0x3f1729(_0x212672[_0x5e7f9b(0x1f5)](_0x35ff29));}catch(_0xdcfe66){_0x21b32e(_0xdcfe66);}}function _0x4815d8(_0x290cbe){try{_0x3f1729(_0x212672['throw'](_0x290cbe));}catch(_0x2eb656){_0x21b32e(_0x2eb656);}}function _0x3f1729(_0x48d939){const _0x1090b8=_0x94b6;_0x48d939[_0x1090b8(0x1f2)]?_0x4b3467(_0x48d939[_0x1090b8(0x1fc)]):_0x291e0e(_0x48d939[_0x1090b8(0x1fc)])[_0x1090b8(0x1e3)](_0x1cf457,_0x4815d8);}_0x3f1729((_0x212672=_0x212672[_0x191d93(0x1e2)](_0x29ba07,_0x3f398c||[]))[_0x191d93(0x1f5)]());});};Object[_0x5a2bbf(0x1e7)](exports,_0x5a2bbf(0x1f8),{'value':!![]}),exports[_0x5a2bbf(0x1ed)]=void 0x0;const base_credentials_1=require(_0x5a2bbf(0x1e4)),client_s3_1=require('@aws-sdk/client-s3'),aws_s3_utils_1=require('../utils/aws-s3.utils');function _0x94b6(_0x26c190,_0x27b628){const _0xd50e24=_0xd50e();return _0x94b6=function(_0x94b67,_0x14c3a1){_0x94b67=_0x94b67-0x1df;let _0x1819e5=_0xd50e24[_0x94b67];return _0x1819e5;},_0x94b6(_0x26c190,_0x27b628);}class AwsS3Credentials extends base_credentials_1['BaseCredentials']{constructor(_0x396e92){const _0x294e5f=_0x5a2bbf;super(_0x396e92),this[_0x294e5f(0x1ec)]=aws_s3_utils_1[_0x294e5f(0x1ee)][_0x294e5f(0x1f6)](this[_0x294e5f(0x1fd)]);}get[_0x5a2bbf(0x1e8)](){return this['credentials']['accessKeyId'];}get[_0x5a2bbf(0x1ff)](){const _0xf7f15f=_0x5a2bbf;return this[_0xf7f15f(0x1fd)][_0xf7f15f(0x1ff)];}get[_0x5a2bbf(0x1f3)](){const _0x3f7438=_0x5a2bbf;return this['credentials'][_0x3f7438(0x1f3)];}get['region'](){const _0x4a06b3=_0x5a2bbf;return this[_0x4a06b3(0x1fd)]['region'];}[_0x5a2bbf(0x1ef)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x49bd69=_0x94b6;try{const _0x9717de=new client_s3_1[(_0x49bd69(0x1ea))]({'Bucket':this[_0x49bd69(0x1fd)][_0x49bd69(0x1f3)]});yield this[_0x49bd69(0x1ec)][_0x49bd69(0x1e1)](_0x9717de);}catch(_0x25300d){throw new Error(_0x49bd69(0x1e6)+_0x25300d['message']);}});}['getCredentials'](_0x556df6=![]){const _0x221228=_0x5a2bbf;if(_0x556df6)return{'bucketName':this[_0x221228(0x1fd)][_0x221228(0x1f3)]};return this[_0x221228(0x1fd)];}}function _0xd50e(){const _0x53c7e9=['apply','then','./base-credentials','836weQZCq','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','defineProperty','accessKeyId','11170cbrpKG','HeadBucketCommand','91338Ajuqvl','s3Client','AwsS3Credentials','AwsS3Utils','validate','188048gtfrmD','175872YVixjO','done','bucketName','1827896DqSsJh','next','createS3Client','32kkhzuS','__esModule','403xykCVx','1098yMpNIR','11568gnoEXW','value','credentials','1DmSoIM','secretAccessKey','632280vhCwFP','12kOfvEU','send'];_0xd50e=function(){return _0x53c7e9;};return _0xd50e();}exports[_0x5a2bbf(0x1ed)]=AwsS3Credentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x18c35a=_0x34ff;(function(_0x1c9791,_0x71d469){const _0x58de7f=_0x34ff,_0x3953dc=_0x1c9791();while(!![]){try{const _0x2a5b82=-parseInt(_0x58de7f(0x180))/0x1*(parseInt(_0x58de7f(0x173))/0x2)+parseInt(_0x58de7f(0x179))/0x3*(-parseInt(_0x58de7f(0x172))/0x4)+parseInt(_0x58de7f(0x16c))/0x5+parseInt(_0x58de7f(0x18a))/0x6*(parseInt(_0x58de7f(0x16a))/0x7)+-parseInt(_0x58de7f(0x176))/0x8*(-parseInt(_0x58de7f(0x186))/0x9)+-parseInt(_0x58de7f(0x16d))/0xa*(-parseInt(_0x58de7f(0x16f))/0xb)+parseInt(_0x58de7f(0x17f))/0xc*(-parseInt(_0x58de7f(0x174))/0xd);if(_0x2a5b82===_0x71d469)break;else _0x3953dc['push'](_0x3953dc['shift']());}catch(_0x31f880){_0x3953dc['push'](_0x3953dc['shift']());}}}(_0x273e,0xd6cbf));function _0x273e(){const _0x315ba3=['accountKey','getCredentials','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','done','throw','272196eglNSo','23aAsGdw','message','next','./base-credentials','getContainerClient','AzureCredentials','36kozTxZ','exists','__awaiter','value','178614dLPKLo','containerName','BaseCredentials','then','112ncgJzq','apply','8002960BorLkQ','1603130nfwUcB','defineProperty','55HCszyy','../utils/azure.utils','accountName','4PAfBQx','8122eMEfDk','1105dPZuEe','blobServiceClient','3060616xJVGZP','credentials','createAzureBlobServiceClient','4522512ZmkWsH'];_0x273e=function(){return _0x315ba3;};return _0x273e();}var __awaiter=this&&this[_0x18c35a(0x188)]||function(_0x1eb8b8,_0x3284a9,_0x570d50,_0x2c4903){function _0x155736(_0x1abf7e){return _0x1abf7e instanceof _0x570d50?_0x1abf7e:new _0x570d50(function(_0x2c4d02){_0x2c4d02(_0x1abf7e);});}return new(_0x570d50||(_0x570d50=Promise))(function(_0x56e75e,_0x1a3088){const _0x48c78e=_0x34ff;function _0x382ed4(_0x17189c){const _0x292bcc=_0x34ff;try{_0x40f01a(_0x2c4903[_0x292bcc(0x182)](_0x17189c));}catch(_0x19bc34){_0x1a3088(_0x19bc34);}}function _0x18a425(_0x13234a){const _0x3b58e0=_0x34ff;try{_0x40f01a(_0x2c4903[_0x3b58e0(0x17e)](_0x13234a));}catch(_0x40e220){_0x1a3088(_0x40e220);}}function _0x40f01a(_0x480887){const _0x52fbb1=_0x34ff;_0x480887[_0x52fbb1(0x17d)]?_0x56e75e(_0x480887[_0x52fbb1(0x189)]):_0x155736(_0x480887['value'])[_0x52fbb1(0x169)](_0x382ed4,_0x18a425);}_0x40f01a((_0x2c4903=_0x2c4903[_0x48c78e(0x16b)](_0x1eb8b8,_0x3284a9||[]))[_0x48c78e(0x182)]());});};Object[_0x18c35a(0x16e)](exports,'__esModule',{'value':!![]}),exports['AzureCredentials']=void 0x0;function _0x34ff(_0x3765db,_0x57997a){const _0x273e50=_0x273e();return _0x34ff=function(_0x34ff4d,_0x3e88ca){_0x34ff4d=_0x34ff4d-0x168;let _0x668dea=_0x273e50[_0x34ff4d];return _0x668dea;},_0x34ff(_0x3765db,_0x57997a);}const base_credentials_1=require(_0x18c35a(0x183)),azure_utils_1=require(_0x18c35a(0x170));class AzureCredentials extends base_credentials_1[_0x18c35a(0x168)]{constructor(_0x1169d7){const _0x53a829=_0x18c35a;super(_0x1169d7),this[_0x53a829(0x175)]=azure_utils_1['AzureUtils'][_0x53a829(0x178)](this[_0x53a829(0x177)]);}get['accountKey'](){const _0x46549a=_0x18c35a;return this[_0x46549a(0x177)][_0x46549a(0x17a)];}get[_0x18c35a(0x171)](){const _0x1ccf58=_0x18c35a;return this[_0x1ccf58(0x177)][_0x1ccf58(0x171)];}get[_0x18c35a(0x18b)](){const _0x23e93c=_0x18c35a;return this[_0x23e93c(0x177)][_0x23e93c(0x18b)];}['validate'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2d92fc=_0x34ff;try{const _0x82b080=this[_0x2d92fc(0x175)][_0x2d92fc(0x184)](this[_0x2d92fc(0x177)]['containerName']);yield _0x82b080[_0x2d92fc(0x187)]();}catch(_0x594e48){throw new Error(_0x2d92fc(0x17c)+_0x594e48[_0x2d92fc(0x181)]);}});}[_0x18c35a(0x17b)](_0x235876=![]){const _0x426484=_0x18c35a;if(_0x235876)return{'accountName':this[_0x426484(0x177)][_0x426484(0x171)]};return this['credentials'];}}exports[_0x18c35a(0x185)]=AzureCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x1a74(_0x13c3d5,_0x5055f7){var _0x299c51=_0x299c();return _0x1a74=function(_0x1a7491,_0x3ec501){_0x1a7491=_0x1a7491-0x161;var _0x55b7b9=_0x299c51[_0x1a7491];return _0x55b7b9;},_0x1a74(_0x13c3d5,_0x5055f7);}var _0x1a666a=_0x1a74;(function(_0x340f82,_0x2ea920){var _0xfcb6da=_0x1a74,_0x381af3=_0x340f82();while(!![]){try{var _0x27f6db=parseInt(_0xfcb6da(0x163))/0x1+parseInt(_0xfcb6da(0x164))/0x2+parseInt(_0xfcb6da(0x161))/0x3*(-parseInt(_0xfcb6da(0x162))/0x4)+parseInt(_0xfcb6da(0x168))/0x5*(-parseInt(_0xfcb6da(0x16a))/0x6)+parseInt(_0xfcb6da(0x165))/0x7+parseInt(_0xfcb6da(0x16c))/0x8+-parseInt(_0xfcb6da(0x16b))/0x9;if(_0x27f6db===_0x2ea920)break;else _0x381af3['push'](_0x381af3['shift']());}catch(_0x96995){_0x381af3['push'](_0x381af3['shift']());}}}(_0x299c,0xc9d05));function _0x299c(){var _0x1f79f6=['rawCredentials','__esModule','1136030LoFBNq','credentials','6RPbYVg','15194682gbTYVV','1795664HIRDEE','69GIhKjN','140992npFhOv','1580858AxbmkZ','2905622SOFhjp','2062970XVYSOu'];_0x299c=function(){return _0x1f79f6;};return _0x299c();}Object['defineProperty'](exports,_0x1a666a(0x167),{'value':!![]}),exports['BaseCredentials']=void 0x0;class BaseCredentials{constructor(_0x590ae9){var _0x227152=_0x1a666a;this[_0x227152(0x166)]=_0x590ae9,this[_0x227152(0x169)]=this[_0x227152(0x166)]?this[_0x227152(0x166)]:null;}}exports['BaseCredentials']=BaseCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x321669=_0x4d9f;(function(_0x277eaa,_0x494432){var _0x88ae9a=_0x4d9f,_0x14a962=_0x277eaa();while(!![]){try{var _0x22e0d0=parseInt(_0x88ae9a(0x70))/0x1*(parseInt(_0x88ae9a(0x74))/0x2)+parseInt(_0x88ae9a(0x78))/0x3+parseInt(_0x88ae9a(0x7b))/0x4+parseInt(_0x88ae9a(0x75))/0x5+-parseInt(_0x88ae9a(0x72))/0x6*(-parseInt(_0x88ae9a(0x6f))/0x7)+-parseInt(_0x88ae9a(0x71))/0x8+-parseInt(_0x88ae9a(0x7c))/0x9;if(_0x22e0d0===_0x494432)break;else _0x14a962['push'](_0x14a962['shift']());}catch(_0x50447f){_0x14a962['push'](_0x14a962['shift']());}}}(_0x38cc,0x44165));Object[_0x321669(0x7a)](exports,'__esModule',{'value':!![]}),exports['AzureCredentials']=exports[_0x321669(0x79)]=exports[_0x321669(0x7d)]=exports['BaseCredentials']=void 0x0;var base_credentials_1=require('./base-credentials');Object[_0x321669(0x7a)](exports,_0x321669(0x7e),{'enumerable':!![],'get':function(){var _0x5847a3=_0x321669;return base_credentials_1[_0x5847a3(0x7e)];}});var aws_s3_credentials_1=require(_0x321669(0x77));Object[_0x321669(0x7a)](exports,_0x321669(0x7d),{'enumerable':!![],'get':function(){var _0x185066=_0x321669;return aws_s3_credentials_1[_0x185066(0x7d)];}});var local_credentials_1=require(_0x321669(0x76));function _0x38cc(){var _0x1ac26a=['8UqzHHk','100155JbcLyJ','./local-credentials','./aws-s3-credentials','651363dTYScj','LocalCredentials','defineProperty','835928YWRRDM','4575510bMQcUP','AwsS3Credentials','BaseCredentials','AzureCredentials','1177099dxznEY','32007bejPXu','2330864rmoGbg','18rcTsSV','./azure-credentials'];_0x38cc=function(){return _0x1ac26a;};return _0x38cc();}Object[_0x321669(0x7a)](exports,_0x321669(0x79),{'enumerable':!![],'get':function(){return local_credentials_1['LocalCredentials'];}});var azure_credentials_1=require(_0x321669(0x73));function _0x4d9f(_0x2347fd,_0x39330a){var _0x38cc1f=_0x38cc();return _0x4d9f=function(_0x4d9f2e,_0x2c2a19){_0x4d9f2e=_0x4d9f2e-0x6e;var _0x227e5b=_0x38cc1f[_0x4d9f2e];return _0x227e5b;},_0x4d9f(_0x2347fd,_0x39330a);}Object[_0x321669(0x7a)](exports,_0x321669(0x6e),{'enumerable':!![],'get':function(){var _0x1feb84=_0x321669;return azure_credentials_1[_0x1feb84(0x6e)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3315b5=_0x3b7a;(function(_0x38c888,_0x7816b4){const _0x32a50b=_0x3b7a,_0x4bb350=_0x38c888();while(!![]){try{const _0x3aa197=parseInt(_0x32a50b(0xa8))/0x1+parseInt(_0x32a50b(0xac))/0x2*(-parseInt(_0x32a50b(0xb5))/0x3)+parseInt(_0x32a50b(0xad))/0x4+-parseInt(_0x32a50b(0xb0))/0x5*(-parseInt(_0x32a50b(0xb7))/0x6)+-parseInt(_0x32a50b(0xaa))/0x7*(parseInt(_0x32a50b(0xae))/0x8)+-parseInt(_0x32a50b(0xa9))/0x9+parseInt(_0x32a50b(0xab))/0xa;if(_0x3aa197===_0x7816b4)break;else _0x4bb350['push'](_0x4bb350['shift']());}catch(_0x57911b){_0x4bb350['push'](_0x4bb350['shift']());}}}(_0x43de,0x44128));Object['defineProperty'](exports,_0x3315b5(0xa7),{'value':!![]}),exports[_0x3315b5(0xb2)]=void 0x0;function _0x3b7a(_0xeeb758,_0x16639b){const _0x43de95=_0x43de();return _0x3b7a=function(_0x3b7a69,_0x46d44e){_0x3b7a69=_0x3b7a69-0xa7;let _0x4886c3=_0x43de95[_0x3b7a69];return _0x4886c3;},_0x3b7a(_0xeeb758,_0x16639b);}function _0x43de(){const _0x1b5608=['BaseCredentials','6MMWmIP','__esModule','235067pQEMuA','2400471Ytxnqk','147lWfFNn','254720pLkJAP','242TOlMrl','132784NxyQJr','14424aKKEDa','validate','2191900jqUMix','resolve','LocalCredentials','./base-credentials','getCredentials','3687DKimmT'];_0x43de=function(){return _0x1b5608;};return _0x43de();}const base_credentials_1=require(_0x3315b5(0xb3));class LocalCredentials extends base_credentials_1[_0x3315b5(0xb6)]{[_0x3315b5(0xb4)](){return null;}[_0x3315b5(0xaf)](){const _0xd4985f=_0x3315b5;return Promise[_0xd4985f(0xb1)](undefined);}}exports[_0x3315b5(0xb2)]=LocalCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x5b8576=_0x51f2;function _0x44b4(){const _0x4568a8=['400367UAVTYa','send','credentials','55449zTrOrI','posix','__importDefault','next','1404fDMrMg','88fdJPWl','10OhCsyt','49257AASBpK','271836MuZtAQ','split','bucketName','222DYYBeL','AwsS3Delete','ArrayUtils','throw','createS3Client','@flosum/utils','join','OBJECTS_PER_CHUNK','@aws-sdk/client-s3','getFilesPaths','map','26046KxZqjW','8jeCyLN','execute','sep','__esModule','__awaiter','s3Client','2712269aiYMUV','19775ykrKzX','12dFMsqw','BaseDelete','AwsS3Utils','apply','path'];_0x44b4=function(){return _0x4568a8;};return _0x44b4();}(function(_0xe03919,_0x325cfc){const _0x4e5624=_0x51f2,_0x593def=_0xe03919();while(!![]){try{const _0x2f1910=-parseInt(_0x4e5624(0x141))/0x1*(parseInt(_0x4e5624(0x14a))/0x2)+parseInt(_0x4e5624(0x133))/0x3*(parseInt(_0x4e5624(0x142))/0x4)+-parseInt(_0x4e5624(0x149))/0x5*(-parseInt(_0x4e5624(0x136))/0x6)+parseInt(_0x4e5624(0x148))/0x7+parseInt(_0x4e5624(0x130))/0x8*(parseInt(_0x4e5624(0x12b))/0x9)+-parseInt(_0x4e5624(0x131))/0xa*(-parseInt(_0x4e5624(0x128))/0xb)+parseInt(_0x4e5624(0x12f))/0xc*(-parseInt(_0x4e5624(0x132))/0xd);if(_0x2f1910===_0x325cfc)break;else _0x593def['push'](_0x593def['shift']());}catch(_0x232328){_0x593def['push'](_0x593def['shift']());}}}(_0x44b4,0x359d5));var __awaiter=this&&this[_0x5b8576(0x146)]||function(_0xcc4b26,_0xd7910a,_0x42539a,_0x18f469){function _0x91dc9a(_0x2b014d){return _0x2b014d instanceof _0x42539a?_0x2b014d:new _0x42539a(function(_0xefbde6){_0xefbde6(_0x2b014d);});}return new(_0x42539a||(_0x42539a=Promise))(function(_0x5581ac,_0x2c45e4){const _0x5cdbb1=_0x51f2;function _0x22b34d(_0xce28dc){try{_0x441c7b(_0x18f469['next'](_0xce28dc));}catch(_0x3e1aa3){_0x2c45e4(_0x3e1aa3);}}function _0xc64878(_0x5cb87f){const _0x240e2a=_0x51f2;try{_0x441c7b(_0x18f469[_0x240e2a(0x139)](_0x5cb87f));}catch(_0x39f25b){_0x2c45e4(_0x39f25b);}}function _0x441c7b(_0x2a171e){_0x2a171e['done']?_0x5581ac(_0x2a171e['value']):_0x91dc9a(_0x2a171e['value'])['then'](_0x22b34d,_0xc64878);}_0x441c7b((_0x18f469=_0x18f469[_0x5cdbb1(0x126)](_0xcc4b26,_0xd7910a||[]))[_0x5cdbb1(0x12e)]());});},__importDefault=this&&this[_0x5b8576(0x12d)]||function(_0xac79ea){const _0x3e0c55=_0x5b8576;return _0xac79ea&&_0xac79ea[_0x3e0c55(0x145)]?_0xac79ea:{'default':_0xac79ea};};function _0x51f2(_0x277ff4,_0x41bc93){const _0x44b491=_0x44b4();return _0x51f2=function(_0x51f215,_0x4d6268){_0x51f215=_0x51f215-0x125;let _0x388da4=_0x44b491[_0x51f215];return _0x388da4;},_0x51f2(_0x277ff4,_0x41bc93);}Object['defineProperty'](exports,_0x5b8576(0x145),{'value':!![]}),exports[_0x5b8576(0x137)]=void 0x0;const path_1=__importDefault(require(_0x5b8576(0x127))),utils_1=require(_0x5b8576(0x13b)),aws_s3_utils_1=require('../utils/aws-s3.utils'),_1=require('./'),client_s3_1=require(_0x5b8576(0x13e));class AwsS3Delete extends _1[_0x5b8576(0x14b)]{constructor(_0x2404ee,_0x430a83){const _0x4c1f43=_0x5b8576;super(_0x2404ee),this[_0x4c1f43(0x12a)]=_0x2404ee,this[_0x4c1f43(0x13d)]=0x3e8,this['s3Client']=aws_s3_utils_1[_0x4c1f43(0x125)][_0x4c1f43(0x13a)](_0x2404ee,_0x430a83);}[_0x5b8576(0x143)](_0x1e1478){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2fbcbc=_0x51f2,_0x3b9353=_0x1e1478[_0x2fbcbc(0x134)](path_1['default'][_0x2fbcbc(0x144)])[_0x2fbcbc(0x13c)](path_1['default'][_0x2fbcbc(0x12c)][_0x2fbcbc(0x144)]),_0x3b1501=yield aws_s3_utils_1[_0x2fbcbc(0x125)][_0x2fbcbc(0x13f)](_0x3b9353,this[_0x2fbcbc(0x12a)][_0x2fbcbc(0x135)],this['s3Client']),_0xce9da7=utils_1[_0x2fbcbc(0x138)]['splitOnChunks'](_0x3b1501,this[_0x2fbcbc(0x13d)]);for(const _0x192f9b of _0xce9da7){const _0x3f1543=_0x192f9b[_0x2fbcbc(0x140)](_0x40fe3b=>({'Key':_0x40fe3b})),_0x5ef55a=new client_s3_1['DeleteObjectsCommand']({'Bucket':this[_0x2fbcbc(0x12a)][_0x2fbcbc(0x135)],'Delete':{'Objects':_0x3f1543}});yield this[_0x2fbcbc(0x147)][_0x2fbcbc(0x129)](_0x5ef55a);}});}}exports[_0x5b8576(0x137)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x226303=_0x1320;(function(_0x61d4ce,_0x14a624){const _0xcb91b4=_0x1320,_0x45b5bd=_0x61d4ce();while(!![]){try{const _0x50bdc0=parseInt(_0xcb91b4(0x1c3))/0x1*(-parseInt(_0xcb91b4(0x1ad))/0x2)+-parseInt(_0xcb91b4(0x1b4))/0x3+parseInt(_0xcb91b4(0x1b8))/0x4*(-parseInt(_0xcb91b4(0x1c8))/0x5)+-parseInt(_0xcb91b4(0x1bc))/0x6+-parseInt(_0xcb91b4(0x1c4))/0x7*(-parseInt(_0xcb91b4(0x1c0))/0x8)+-parseInt(_0xcb91b4(0x1cb))/0x9*(-parseInt(_0xcb91b4(0x1bd))/0xa)+parseInt(_0xcb91b4(0x1b1))/0xb;if(_0x50bdc0===_0x14a624)break;else _0x45b5bd['push'](_0x45b5bd['shift']());}catch(_0x14eacf){_0x45b5bd['push'](_0x45b5bd['shift']());}}}(_0x5cc1,0xbd6ec));var __awaiter=this&&this[_0x226303(0x1bf)]||function(_0x23d793,_0x3b153c,_0x483a8e,_0x52a052){function _0x23a3e5(_0x418785){return _0x418785 instanceof _0x483a8e?_0x418785:new _0x483a8e(function(_0x5b17ab){_0x5b17ab(_0x418785);});}return new(_0x483a8e||(_0x483a8e=Promise))(function(_0x49831e,_0x3bd690){const _0x553941=_0x1320;function _0x51c2a6(_0x3aca5a){const _0x26aa91=_0x1320;try{_0x5d2a5e(_0x52a052[_0x26aa91(0x1c7)](_0x3aca5a));}catch(_0x3bb35e){_0x3bd690(_0x3bb35e);}}function _0x1cf612(_0x3ca609){try{_0x5d2a5e(_0x52a052['throw'](_0x3ca609));}catch(_0x2ba2c){_0x3bd690(_0x2ba2c);}}function _0x5d2a5e(_0x4beb3a){const _0x362a25=_0x1320;_0x4beb3a[_0x362a25(0x1c6)]?_0x49831e(_0x4beb3a[_0x362a25(0x1b2)]):_0x23a3e5(_0x4beb3a[_0x362a25(0x1b2)])[_0x362a25(0x1b0)](_0x51c2a6,_0x1cf612);}_0x5d2a5e((_0x52a052=_0x52a052[_0x553941(0x1b3)](_0x23d793,_0x3b153c||[]))[_0x553941(0x1c7)]());});},__importDefault=this&&this['__importDefault']||function(_0x56d672){return _0x56d672&&_0x56d672['__esModule']?_0x56d672:{'default':_0x56d672};};function _0x1320(_0x400899,_0xe369ae){const _0x5cc138=_0x5cc1();return _0x1320=function(_0x132057,_0x3a84ad){_0x132057=_0x132057-0x1ac;let _0x410f37=_0x5cc138[_0x132057];return _0x410f37;},_0x1320(_0x400899,_0xe369ae);}Object['defineProperty'](exports,_0x226303(0x1b9),{'value':!![]}),exports[_0x226303(0x1b5)]=void 0x0;const path_1=__importDefault(require(_0x226303(0x1c9))),_1=require('./'),azure_utils_1=require(_0x226303(0x1be));class AzureDelete extends _1['BaseDelete']{constructor(_0x469bdb){const _0x211ef5=_0x226303;super(_0x469bdb),this[_0x211ef5(0x1c1)]=_0x469bdb,this[_0x211ef5(0x1ca)]=azure_utils_1[_0x211ef5(0x1ac)][_0x211ef5(0x1b6)](_0x469bdb);}[_0x226303(0x1c5)](_0x226b63){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x223ddf=_0x1320,_0x9f37a4=_0x226b63[_0x223ddf(0x1c2)](path_1[_0x223ddf(0x1bb)][_0x223ddf(0x1b7)])[_0x223ddf(0x1ba)](path_1['default'][_0x223ddf(0x1ae)][_0x223ddf(0x1b7)]),_0x462bdf=yield azure_utils_1['AzureUtils']['getAzureBlobsPaths'](_0x9f37a4,this[_0x223ddf(0x1ca)]);for(const _0x2b0979 of _0x462bdf){yield this['containerClient'][_0x223ddf(0x1af)](_0x2b0979);}});}}exports['AzureDelete']=AzureDelete;function _0x5cc1(){const _0x1a7858=['10tqgcGH','../utils/azure.utils','__awaiter','112sJTwLy','credentials','split','3413xnoFGk','362901IZhdSd','execute','done','next','4983820pBKBxQ','path','containerClient','6141393Pvkolf','AzureUtils','146xwjxna','posix','deleteBlob','then','23795596HcrBsr','value','apply','2345037CXgCtt','AzureDelete','createAzureBlobContainerClient','sep','4npKJXT','__esModule','join','default','4607442TKcbNx'];_0x5cc1=function(){return _0x1a7858;};return _0x5cc1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x4b75(_0x3f0154,_0x1a6e34){var _0x47e855=_0x47e8();return _0x4b75=function(_0x4b7545,_0x41569b){_0x4b7545=_0x4b7545-0x69;var _0x46fef8=_0x47e855[_0x4b7545];return _0x46fef8;},_0x4b75(_0x3f0154,_0x1a6e34);}var _0x4ef2ba=_0x4b75;function _0x47e8(){var _0x15bc2d=['102531bhNthc','BaseDelete','55erhnnn','583710KQVJLT','2240mqCGxL','99882KZCqzJ','__esModule','200zcjMxM','185403HHHdrc','defineProperty','279125rBSZeF','832797RdtmaS','16PxVsmE','3WByMSx'];_0x47e8=function(){return _0x15bc2d;};return _0x47e8();}(function(_0x5efe82,_0x3848c4){var _0xf4b924=_0x4b75,_0x1b0095=_0x5efe82();while(!![]){try{var _0xf5875d=parseInt(_0xf4b924(0x6e))/0x1*(-parseInt(_0xf4b924(0x74))/0x2)+-parseInt(_0xf4b924(0x69))/0x3+-parseInt(_0xf4b924(0x73))/0x4*(-parseInt(_0xf4b924(0x71))/0x5)+-parseInt(_0xf4b924(0x72))/0x6+parseInt(_0xf4b924(0x6b))/0x7+-parseInt(_0xf4b924(0x6d))/0x8*(-parseInt(_0xf4b924(0x6c))/0x9)+parseInt(_0xf4b924(0x76))/0xa*(parseInt(_0xf4b924(0x6f))/0xb);if(_0xf5875d===_0x3848c4)break;else _0x1b0095['push'](_0x1b0095['shift']());}catch(_0x4b1528){_0x1b0095['push'](_0x1b0095['shift']());}}}(_0x47e8,0x1a844));Object[_0x4ef2ba(0x6a)](exports,_0x4ef2ba(0x75),{'value':!![]}),exports['BaseDelete']=void 0x0;class BaseDelete{constructor(_0x2587f2){this['credentials']=_0x2587f2;}}exports[_0x4ef2ba(0x70)]=BaseDelete;
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0xf4e7(){var _0x4fb33a=['LocalDelete','defineProperty','./local-delete','267335RqzLpf','./aws-s3-delete','974192yPdgIF','BaseDelete','9tZGlxW','AwsS3Delete','1601326vifeLu','2502906ClMzSI','21561uSLiNH','388MIblBk','5283310bOjnMY','9978nzfkqJ','320kMxFrb','AzureDelete','./azure-delete'];_0xf4e7=function(){return _0x4fb33a;};return _0xf4e7();}var _0x21d3b9=_0x324b;(function(_0x11c245,_0x30400f){var _0x14f2fa=_0x324b,_0x364fd8=_0x11c245();while(!![]){try{var _0x99131d=parseInt(_0x14f2fa(0x15e))/0x1+parseInt(_0x14f2fa(0x164))/0x2+-parseInt(_0x14f2fa(0x154))/0x3*(parseInt(_0x14f2fa(0x155))/0x4)+-parseInt(_0x14f2fa(0x158))/0x5*(parseInt(_0x14f2fa(0x157))/0x6)+-parseInt(_0x14f2fa(0x153))/0x7+parseInt(_0x14f2fa(0x160))/0x8+parseInt(_0x14f2fa(0x162))/0x9*(parseInt(_0x14f2fa(0x156))/0xa);if(_0x99131d===_0x30400f)break;else _0x364fd8['push'](_0x364fd8['shift']());}catch(_0x5b0cce){_0x364fd8['push'](_0x364fd8['shift']());}}}(_0xf4e7,0x87fae));Object[_0x21d3b9(0x15c)](exports,'__esModule',{'value':!![]}),exports[_0x21d3b9(0x159)]=exports[_0x21d3b9(0x15b)]=exports[_0x21d3b9(0x163)]=exports[_0x21d3b9(0x161)]=void 0x0;var base_delete_1=require('./base-delete');function _0x324b(_0x4c6867,_0xef4e90){var _0xf4e718=_0xf4e7();return _0x324b=function(_0x324bac,_0x223dac){_0x324bac=_0x324bac-0x153;var _0x432c13=_0xf4e718[_0x324bac];return _0x432c13;},_0x324b(_0x4c6867,_0xef4e90);}Object['defineProperty'](exports,'BaseDelete',{'enumerable':!![],'get':function(){var _0x1ef09a=_0x21d3b9;return base_delete_1[_0x1ef09a(0x161)];}});var aws_s3_delete_1=require(_0x21d3b9(0x15f));Object[_0x21d3b9(0x15c)](exports,_0x21d3b9(0x163),{'enumerable':!![],'get':function(){var _0x1c0f07=_0x21d3b9;return aws_s3_delete_1[_0x1c0f07(0x163)];}});var local_delete_1=require(_0x21d3b9(0x15d));Object[_0x21d3b9(0x15c)](exports,_0x21d3b9(0x15b),{'enumerable':!![],'get':function(){var _0x2e1975=_0x21d3b9;return local_delete_1[_0x2e1975(0x15b)];}});var azure_delete_1=require(_0x21d3b9(0x15a));Object['defineProperty'](exports,'AzureDelete',{'enumerable':!![],'get':function(){var _0x33489e=_0x21d3b9;return azure_delete_1[_0x33489e(0x159)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4f9d47=_0x314a;(function(_0x2adfb8,_0x263d86){const _0x3eda64=_0x314a,_0x3e7c51=_0x2adfb8();while(!![]){try{const _0x2b59c2=-parseInt(_0x3eda64(0x12e))/0x1+parseInt(_0x3eda64(0x119))/0x2*(parseInt(_0x3eda64(0x11e))/0x3)+parseInt(_0x3eda64(0x128))/0x4*(parseInt(_0x3eda64(0x126))/0x5)+-parseInt(_0x3eda64(0x123))/0x6*(-parseInt(_0x3eda64(0x11f))/0x7)+-parseInt(_0x3eda64(0x12c))/0x8+parseInt(_0x3eda64(0x125))/0x9+parseInt(_0x3eda64(0x122))/0xa;if(_0x2b59c2===_0x263d86)break;else _0x3e7c51['push'](_0x3e7c51['shift']());}catch(_0x25c076){_0x3e7c51['push'](_0x3e7c51['shift']());}}}(_0x3891,0x3176e));var __awaiter=this&&this[_0x4f9d47(0x120)]||function(_0x1397e5,_0x26c2b7,_0x3cee1c,_0x2a3459){function _0x56aa09(_0x2b1e80){return _0x2b1e80 instanceof _0x3cee1c?_0x2b1e80:new _0x3cee1c(function(_0x2ad824){_0x2ad824(_0x2b1e80);});}return new(_0x3cee1c||(_0x3cee1c=Promise))(function(_0x419f7b,_0x3264ae){const _0x10781f=_0x314a;function _0x130893(_0x1a6960){const _0x549575=_0x314a;try{_0x1102fc(_0x2a3459[_0x549575(0x12b)](_0x1a6960));}catch(_0x325282){_0x3264ae(_0x325282);}}function _0x3cc103(_0x5611cd){const _0x5973e4=_0x314a;try{_0x1102fc(_0x2a3459[_0x5973e4(0x124)](_0x5611cd));}catch(_0x58fa1c){_0x3264ae(_0x58fa1c);}}function _0x1102fc(_0x5c4c99){const _0x51e5a4=_0x314a;_0x5c4c99['done']?_0x419f7b(_0x5c4c99[_0x51e5a4(0x11a)]):_0x56aa09(_0x5c4c99[_0x51e5a4(0x11a)])[_0x51e5a4(0x12d)](_0x130893,_0x3cc103);}_0x1102fc((_0x2a3459=_0x2a3459[_0x10781f(0x129)](_0x1397e5,_0x26c2b7||[]))[_0x10781f(0x12b)]());});};Object['defineProperty'](exports,_0x4f9d47(0x11c),{'value':!![]}),exports[_0x4f9d47(0x11b)]=void 0x0;const promises_1=require(_0x4f9d47(0x12a)),utils_1=require('@flosum/utils'),_1=require('./');class LocalDelete extends _1[_0x4f9d47(0x121)]{['execute'](_0x330650){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x18e053=_0x314a;if(yield utils_1[_0x18e053(0x11d)][_0x18e053(0x127)](_0x330650))yield(0x0,promises_1['rm'])(_0x330650,{'recursive':!![]});});}}function _0x3891(){const _0x4648c1=['__esModule','FsUtils','18201jdMdYb','212835OTKtAt','__awaiter','BaseDelete','2541530zATomL','18PBjOgq','throw','609885VtWQXb','15ggaHYG','isExistsPath','7908fLSJEY','apply','fs/promises','next','914712NIoZbY','then','253794BjlBKH','50OvyQLE','value','LocalDelete'];_0x3891=function(){return _0x4648c1;};return _0x3891();}function _0x314a(_0x34c413,_0x2f5661){const _0x3891d3=_0x3891();return _0x314a=function(_0x314ac0,_0x215256){_0x314ac0=_0x314ac0-0x119;let _0x1241e4=_0x3891d3[_0x314ac0];return _0x1241e4;},_0x314a(_0x34c413,_0x2f5661);}exports[_0x4f9d47(0x11b)]=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x36d23b=_0x28f5;(function(_0x586153,_0x1b90f9){const _0x5db97f=_0x28f5,_0x189f1f=_0x586153();while(!![]){try{const _0x4f8a78=-parseInt(_0x5db97f(0x1a9))/0x1+-parseInt(_0x5db97f(0x1b9))/0x2*(parseInt(_0x5db97f(0x1b6))/0x3)+parseInt(_0x5db97f(0x1a6))/0x4*(-parseInt(_0x5db97f(0x1ba))/0x5)+-parseInt(_0x5db97f(0x1b4))/0x6+parseInt(_0x5db97f(0x1b5))/0x7*(parseInt(_0x5db97f(0x1bb))/0x8)+-parseInt(_0x5db97f(0x19b))/0x9+parseInt(_0x5db97f(0x1b7))/0xa;if(_0x4f8a78===_0x1b90f9)break;else _0x189f1f['push'](_0x189f1f['shift']());}catch(_0x51bb2a){_0x189f1f['push'](_0x189f1f['shift']());}}}(_0x5357,0xc0315));function _0x28f5(_0x3d657c,_0x3892c1){const _0x5357a0=_0x5357();return _0x28f5=function(_0x28f54f,_0x26d286){_0x28f54f=_0x28f54f-0x19b;let _0x389cad=_0x5357a0[_0x28f54f];return _0x389cad;},_0x28f5(_0x3d657c,_0x3892c1);}var __awaiter=this&&this['__awaiter']||function(_0x40cf3d,_0x39910e,_0x2434bd,_0x48c0d3){function _0x44db2c(_0x4bb056){return _0x4bb056 instanceof _0x2434bd?_0x4bb056:new _0x2434bd(function(_0x4243a1){_0x4243a1(_0x4bb056);});}return new(_0x2434bd||(_0x2434bd=Promise))(function(_0xaa1614,_0x117f70){const _0x1c1ea1=_0x28f5;function _0x51faed(_0x9be270){try{_0x2a1d74(_0x48c0d3['next'](_0x9be270));}catch(_0x5bcb82){_0x117f70(_0x5bcb82);}}function _0x47e329(_0x3b1e30){const _0xd75efb=_0x28f5;try{_0x2a1d74(_0x48c0d3[_0xd75efb(0x1a1)](_0x3b1e30));}catch(_0x55cac5){_0x117f70(_0x55cac5);}}function _0x2a1d74(_0x4eab70){const _0x2f9950=_0x28f5;_0x4eab70['done']?_0xaa1614(_0x4eab70[_0x2f9950(0x1ac)]):_0x44db2c(_0x4eab70[_0x2f9950(0x1ac)])[_0x2f9950(0x19c)](_0x51faed,_0x47e329);}_0x2a1d74((_0x48c0d3=_0x48c0d3['apply'](_0x40cf3d,_0x39910e||[]))[_0x1c1ea1(0x1b2)]());});},__importDefault=this&&this[_0x36d23b(0x1a0)]||function(_0x1d938a){return _0x1d938a&&_0x1d938a['__esModule']?_0x1d938a:{'default':_0x1d938a};};Object[_0x36d23b(0x1b1)](exports,_0x36d23b(0x1aa),{'value':!![]}),exports[_0x36d23b(0x1b0)]=void 0x0;const path_1=__importDefault(require('path')),_1=require('./'),lib_storage_1=require('@aws-sdk/lib-storage'),aws_s3_utils_1=require(_0x36d23b(0x1a2));function _0x5357(){const _0x3ddcd7=['storageClass','value','join','credentials','BaseDeploy','AwsS3Deploy','defineProperty','next','Upload','9079140sgdCgb','14FgVDrr','6wEbKCk','43023850NyVMoT','s3Client','610922EeBlcb','3490uLzIpB','3052432XzFOJK','1832472NONUpG','then','execute','split','default','__importDefault','throw','../utils/aws-s3.utils','upload','done','bucketName','3868UPSqjO','posix','sep','1275586LAKmBF','__esModule'];_0x5357=function(){return _0x3ddcd7;};return _0x5357();}class AwsS3Deploy extends _1[_0x36d23b(0x1af)]{constructor(_0x458904,_0x5d1af8,_0x20b67e){const _0x81f12e=_0x36d23b;super(_0x458904),this[_0x81f12e(0x1ae)]=_0x458904,this[_0x81f12e(0x1ab)]=_0x5d1af8,this[_0x81f12e(0x1b8)]=aws_s3_utils_1['AwsS3Utils']['createS3Client'](_0x458904,_0x20b67e);}[_0x36d23b(0x1a3)](_0x2ce2ac,_0x3c3af1){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x30df57=_0x28f5,_0x33292b=new lib_storage_1[(_0x30df57(0x1b3))]({'client':this[_0x30df57(0x1b8)],'params':{'Bucket':this[_0x30df57(0x1ae)][_0x30df57(0x1a5)],'Key':_0x3c3af1,'Body':_0x2ce2ac,'StorageClass':this[_0x30df57(0x1ab)]}});yield _0x33292b[_0x30df57(0x1a4)]();});}[_0x36d23b(0x19d)](_0x38c2df,_0x2ee509){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xca053e=_0x28f5;try{const _0x3c2f12=_0x2ee509[_0xca053e(0x19e)](path_1[_0xca053e(0x19f)][_0xca053e(0x1a8)])[_0xca053e(0x1ad)](path_1[_0xca053e(0x19f)][_0xca053e(0x1a7)][_0xca053e(0x1a8)]);yield this['upload'](_0x38c2df,_0x3c2f12);}catch(_0x12b5e4){throw _0x12b5e4;}});}}exports[_0x36d23b(0x1b0)]=AwsS3Deploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x59e5e2=_0x5014;(function(_0x5b0057,_0x3ed1f9){const _0x506a74=_0x5014,_0x4abb42=_0x5b0057();while(!![]){try{const _0x5c820d=-parseInt(_0x506a74(0x65))/0x1*(parseInt(_0x506a74(0x74))/0x2)+-parseInt(_0x506a74(0x6a))/0x3+parseInt(_0x506a74(0x80))/0x4+-parseInt(_0x506a74(0x6e))/0x5+-parseInt(_0x506a74(0x7f))/0x6+parseInt(_0x506a74(0x7e))/0x7+parseInt(_0x506a74(0x66))/0x8;if(_0x5c820d===_0x3ed1f9)break;else _0x4abb42['push'](_0x4abb42['shift']());}catch(_0x437f39){_0x4abb42['push'](_0x4abb42['shift']());}}}(_0x28f3,0x34974));function _0x28f3(){const _0x1c9e5b=['AzureUtils','../utils/azure.utils','uploadStream','path','1151913zsAWnp','2394960dbTCuj','1389764fzQsqI','301437aryPot','4897208ymkRhS','getBlockBlobClient','createAzureBlobContainerClient','sep','495552XfkoMn','upload','join','AzureDeploy','214790muuDif','__esModule','next','value','then','done','2HHlNcd','execute','split','containerClient','apply','BaseDeploy'];_0x28f3=function(){return _0x1c9e5b;};return _0x28f3();}function _0x5014(_0x2e7b28,_0x3a3a24){const _0x28f3bb=_0x28f3();return _0x5014=function(_0x50147c,_0x1db491){_0x50147c=_0x50147c-0x65;let _0x5b341a=_0x28f3bb[_0x50147c];return _0x5b341a;},_0x5014(_0x2e7b28,_0x3a3a24);}var __awaiter=this&&this['__awaiter']||function(_0x5b8111,_0x878b5b,_0x4bbfa3,_0x43bf41){function _0x56126c(_0x395115){return _0x395115 instanceof _0x4bbfa3?_0x395115:new _0x4bbfa3(function(_0x7b7517){_0x7b7517(_0x395115);});}return new(_0x4bbfa3||(_0x4bbfa3=Promise))(function(_0x3076b0,_0x1cd6d1){const _0x30ee98=_0x5014;function _0x4502be(_0x1ab394){const _0x5d6110=_0x5014;try{_0x10f79b(_0x43bf41[_0x5d6110(0x70)](_0x1ab394));}catch(_0xeebd3c){_0x1cd6d1(_0xeebd3c);}}function _0x127a63(_0x17beb9){try{_0x10f79b(_0x43bf41['throw'](_0x17beb9));}catch(_0x15ba7a){_0x1cd6d1(_0x15ba7a);}}function _0x10f79b(_0x56dce4){const _0x5c9ecb=_0x5014;_0x56dce4[_0x5c9ecb(0x73)]?_0x3076b0(_0x56dce4['value']):_0x56126c(_0x56dce4[_0x5c9ecb(0x71)])[_0x5c9ecb(0x72)](_0x4502be,_0x127a63);}_0x10f79b((_0x43bf41=_0x43bf41[_0x30ee98(0x78)](_0x5b8111,_0x878b5b||[]))[_0x30ee98(0x70)]());});},__importDefault=this&&this['__importDefault']||function(_0x2f7a5f){const _0xf06ab1=_0x5014;return _0x2f7a5f&&_0x2f7a5f[_0xf06ab1(0x6f)]?_0x2f7a5f:{'default':_0x2f7a5f};};Object['defineProperty'](exports,_0x59e5e2(0x6f),{'value':!![]}),exports[_0x59e5e2(0x6d)]=void 0x0;const path_1=__importDefault(require(_0x59e5e2(0x7d))),_1=require('./'),azure_utils_1=require(_0x59e5e2(0x7b));class AzureDeploy extends _1[_0x59e5e2(0x79)]{constructor(_0x58d29d){const _0xbb6539=_0x59e5e2;super(_0x58d29d),this['credentials']=_0x58d29d,this[_0xbb6539(0x77)]=azure_utils_1[_0xbb6539(0x7a)][_0xbb6539(0x68)](this['credentials']);}[_0x59e5e2(0x6b)](_0x1785b7,_0x26d6f2){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xae165e=_0x5014,_0x239ac9=this[_0xae165e(0x77)][_0xae165e(0x67)](_0x26d6f2);_0x1785b7 instanceof Buffer?yield _0x239ac9[_0xae165e(0x6b)](_0x1785b7,_0x1785b7['byteLength']):yield _0x239ac9[_0xae165e(0x7c)](_0x1785b7);});}[_0x59e5e2(0x75)](_0x208cbb,_0x578c7c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x18a67c=_0x5014,_0xc64977=_0x578c7c[_0x18a67c(0x76)](path_1['default']['sep'])[_0x18a67c(0x6c)](path_1['default']['posix'][_0x18a67c(0x69)]);yield this[_0x18a67c(0x6b)](_0x208cbb,_0xc64977);});}}exports[_0x59e5e2(0x6d)]=AzureDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x440b4a=_0x5261;(function(_0x204ea3,_0x5bf741){var _0x22fc78=_0x5261,_0x60bf7b=_0x204ea3();while(!![]){try{var _0x38dc67=parseInt(_0x22fc78(0x1c8))/0x1+parseInt(_0x22fc78(0x1c2))/0x2*(-parseInt(_0x22fc78(0x1c3))/0x3)+-parseInt(_0x22fc78(0x1c6))/0x4*(-parseInt(_0x22fc78(0x1c5))/0x5)+-parseInt(_0x22fc78(0x1ca))/0x6+parseInt(_0x22fc78(0x1c1))/0x7*(-parseInt(_0x22fc78(0x1bf))/0x8)+parseInt(_0x22fc78(0x1c9))/0x9+-parseInt(_0x22fc78(0x1cb))/0xa*(parseInt(_0x22fc78(0x1c0))/0xb);if(_0x38dc67===_0x5bf741)break;else _0x60bf7b['push'](_0x60bf7b['shift']());}catch(_0x3931be){_0x60bf7b['push'](_0x60bf7b['shift']());}}}(_0x3336,0xa013c));function _0x5261(_0x1dba8a,_0x53ec11){var _0x3336c1=_0x3336();return _0x5261=function(_0x5261ae,_0x19a7a0){_0x5261ae=_0x5261ae-0x1bf;var _0x258942=_0x3336c1[_0x5261ae];return _0x258942;},_0x5261(_0x1dba8a,_0x53ec11);}Object[_0x440b4a(0x1c4)](exports,'__esModule',{'value':!![]}),exports[_0x440b4a(0x1c7)]=void 0x0;class BaseDeploy{constructor(_0x208002){var _0x30a327=_0x440b4a;this[_0x30a327(0x1cc)]=_0x208002;}}function _0x3336(){var _0x5543c4=['245874Qskskb','10rkhbDp','credentials','16NTDdks','8271527tAqSBa','1594964CWKPfD','12QboIMV','228099EDYuBf','defineProperty','2549220zaMZEk','8fDDbeF','BaseDeploy','420097lgFqkm','8286561PoZFUM'];_0x3336=function(){return _0x5543c4;};return _0x3336();}exports[_0x440b4a(0x1c7)]=BaseDeploy;
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x2c41(){var _0x3b1806=['3590zvcXjD','AzureDeploy','3268377XWBlWO','1964025vzmQkP','110yCzkjU','./base-deploy','./aws-s3-deploy','BaseDeploy','374YlsqKX','1561161sTMpsZ','./local-deploy','13717650VJyoHa','10239176ZbRuCa','LocalDeploy','4wjhmEL','__esModule','76314PDwGRL','defineProperty','AwsS3Deploy'];_0x2c41=function(){return _0x3b1806;};return _0x2c41();}var _0x21a157=_0x4df7;(function(_0x5038b7,_0x386174){var _0x36e371=_0x4df7,_0x29ab64=_0x5038b7();while(!![]){try{var _0x991ce1=-parseInt(_0x36e371(0x1c7))/0x1*(parseInt(_0x36e371(0x1bc))/0x2)+parseInt(_0x36e371(0x1c9))/0x3*(-parseInt(_0x36e371(0x1c2))/0x4)+parseInt(_0x36e371(0x1cb))/0x5*(parseInt(_0x36e371(0x1c4))/0x6)+-parseInt(_0x36e371(0x1bd))/0x7+parseInt(_0x36e371(0x1c0))/0x8+-parseInt(_0x36e371(0x1ca))/0x9+parseInt(_0x36e371(0x1bf))/0xa;if(_0x991ce1===_0x386174)break;else _0x29ab64['push'](_0x29ab64['shift']());}catch(_0x411b9c){_0x29ab64['push'](_0x29ab64['shift']());}}}(_0x2c41,0xb2163));Object[_0x21a157(0x1c5)](exports,_0x21a157(0x1c3),{'value':!![]}),exports[_0x21a157(0x1c8)]=exports['LocalDeploy']=exports[_0x21a157(0x1c6)]=exports['BaseDeploy']=void 0x0;function _0x4df7(_0x37f513,_0x30c08b){var _0x4df7cc=_0x2c41();return _0x4df7=function(_0x24ce29,_0x1a600e){_0x24ce29=_0x24ce29-0x1ba;var _0x5ce32f=_0x4df7cc[_0x24ce29];return _0x5ce32f;},_0x4df7(_0x37f513,_0x30c08b);}var base_deploy_1=require(_0x21a157(0x1cc));Object[_0x21a157(0x1c5)](exports,_0x21a157(0x1bb),{'enumerable':!![],'get':function(){var _0x1826a4=_0x21a157;return base_deploy_1[_0x1826a4(0x1bb)];}});var aws_s3_deploy_1=require(_0x21a157(0x1ba));Object['defineProperty'](exports,'AwsS3Deploy',{'enumerable':!![],'get':function(){var _0x19e88a=_0x21a157;return aws_s3_deploy_1[_0x19e88a(0x1c6)];}});var local_deploy_1=require(_0x21a157(0x1be));Object[_0x21a157(0x1c5)](exports,'LocalDeploy',{'enumerable':!![],'get':function(){var _0x398881=_0x21a157;return local_deploy_1[_0x398881(0x1c1)];}});var azure_deploy_1=require('./azure-deploy');Object[_0x21a157(0x1c5)](exports,_0x21a157(0x1c8),{'enumerable':!![],'get':function(){var _0x227449=_0x21a157;return azure_deploy_1[_0x227449(0x1c8)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1880f1=_0x1834;function _0x1834(_0x19472d,_0x34d068){const _0x3f47b2=_0x3f47();return _0x1834=function(_0x1834bb,_0x69a9bd){_0x1834bb=_0x1834bb-0x19f;let _0x2e5b86=_0x3f47b2[_0x1834bb];return _0x2e5b86;},_0x1834(_0x19472d,_0x34d068);}(function(_0x433827,_0x1066ab){const _0x1b0667=_0x1834,_0x585e55=_0x433827();while(!![]){try{const _0x4b34c7=parseInt(_0x1b0667(0x1ae))/0x1*(parseInt(_0x1b0667(0x1b3))/0x2)+parseInt(_0x1b0667(0x1a1))/0x3+-parseInt(_0x1b0667(0x1b4))/0x4*(parseInt(_0x1b0667(0x1a8))/0x5)+parseInt(_0x1b0667(0x1b0))/0x6+-parseInt(_0x1b0667(0x1ad))/0x7+-parseInt(_0x1b0667(0x1b9))/0x8+parseInt(_0x1b0667(0x1a5))/0x9*(parseInt(_0x1b0667(0x1b1))/0xa);if(_0x4b34c7===_0x1066ab)break;else _0x585e55['push'](_0x585e55['shift']());}catch(_0x39298a){_0x585e55['push'](_0x585e55['shift']());}}}(_0x3f47,0x4e2ba));var __awaiter=this&&this[_0x1880f1(0x1a3)]||function(_0x2d54f5,_0x1ca82c,_0x2a09bc,_0x191ad4){function _0x5b9450(_0x372835){return _0x372835 instanceof _0x2a09bc?_0x372835:new _0x2a09bc(function(_0x304b1b){_0x304b1b(_0x372835);});}return new(_0x2a09bc||(_0x2a09bc=Promise))(function(_0x5cb913,_0x403eea){const _0x1d56fa=_0x1834;function _0x4c319c(_0x364b5f){const _0x3455bb=_0x1834;try{_0xe0c86d(_0x191ad4[_0x3455bb(0x1bb)](_0x364b5f));}catch(_0x3f176d){_0x403eea(_0x3f176d);}}function _0x39914b(_0x2a0da1){try{_0xe0c86d(_0x191ad4['throw'](_0x2a0da1));}catch(_0xd53493){_0x403eea(_0xd53493);}}function _0xe0c86d(_0x9ea536){const _0xef866a=_0x1834;_0x9ea536[_0xef866a(0x1b8)]?_0x5cb913(_0x9ea536[_0xef866a(0x1a9)]):_0x5b9450(_0x9ea536[_0xef866a(0x1a9)])[_0xef866a(0x1a7)](_0x4c319c,_0x39914b);}_0xe0c86d((_0x191ad4=_0x191ad4[_0x1d56fa(0x1a2)](_0x2d54f5,_0x1ca82c||[]))['next']());});},__importDefault=this&&this[_0x1880f1(0x1ac)]||function(_0x24f9a6){return _0x24f9a6&&_0x24f9a6['__esModule']?_0x24f9a6:{'default':_0x24f9a6};};Object[_0x1880f1(0x1aa)](exports,'__esModule',{'value':!![]}),exports[_0x1880f1(0x19f)]=void 0x0;const path_1=__importDefault(require(_0x1880f1(0x1b5))),promises_1=require(_0x1880f1(0x1b7)),utils_1=require(_0x1880f1(0x1ab)),_1=require('./');class LocalDeploy extends _1[_0x1880f1(0x1b6)]{[_0x1880f1(0x1a6)](_0x38eba7,_0x229b29){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3590a3=_0x1834;try{const _0x559721=path_1['default'][_0x3590a3(0x1a0)](_0x229b29),_0x42c335=yield utils_1[_0x3590a3(0x1b2)][_0x3590a3(0x1ba)](_0x559721);!_0x42c335&&(yield(0x0,promises_1[_0x3590a3(0x1a4)])(_0x559721,{'recursive':!![]})),yield(0x0,promises_1[_0x3590a3(0x1af)])(_0x229b29,_0x38eba7);}catch(_0x231c17){(yield utils_1[_0x3590a3(0x1b2)][_0x3590a3(0x1ba)](_0x229b29))&&(yield(0x0,promises_1['rm'])(_0x229b29,{'recursive':!![]}));throw _0x231c17;}});}}exports[_0x1880f1(0x19f)]=LocalDeploy;function _0x3f47(){const _0xf85731=['__awaiter','mkdir','243HzejJc','execute','then','65tHxmmP','value','defineProperty','@flosum/utils','__importDefault','1329412NUPABD','1cAlyYP','writeFile','3529674AQNrNW','287240wPFuWC','FsUtils','193562JyLxvw','172540uEbHVN','path','BaseDeploy','fs/promises','done','4030088eAPSNS','isExistsPath','next','LocalDeploy','dirname','342030yDbPIF','apply'];_0x3f47=function(){return _0xf85731;};return _0x3f47();}
|
package/dist/factory.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { BaseHelper, BaseRetrieve } from './retrieve';
|
|
|
6
6
|
import { BaseFileSizeRetriever } from './file-size-retriever';
|
|
7
7
|
import { StorageClass, Tier } from '@aws-sdk/client-s3';
|
|
8
8
|
import { AwsBuildMiddleware } from './types';
|
|
9
|
+
import { BaseCopy } from './copy';
|
|
9
10
|
export declare class StorageFactory {
|
|
10
11
|
static createRetrieve(storageType: StorageType, credentials: BaseCredentials, path: string, restoreType?: Tier, cachePath?: string, middlewareStack?: AwsBuildMiddleware[]): BaseRetrieve;
|
|
11
12
|
static createDeploy(storageType: StorageType, credentials: BaseCredentials, storageClass?: StorageClass, middlewareStack?: AwsBuildMiddleware[]): BaseDeploy;
|
|
@@ -13,4 +14,5 @@ export declare class StorageFactory {
|
|
|
13
14
|
static createCredentials(storageType: StorageType, rawCredentials?: Record<string, any>): BaseCredentials;
|
|
14
15
|
static createFileSizeRetriever(storageType: StorageType, credentials: BaseCredentials, middlewareStack?: AwsBuildMiddleware[]): BaseFileSizeRetriever;
|
|
15
16
|
static createRetrieveHelper(storageType: StorageType, credentials: BaseCredentials, sourcePath: string): BaseHelper;
|
|
17
|
+
static createCopy(storageType: StorageType, credentials: BaseCredentials): BaseCopy;
|
|
16
18
|
}
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x1b2713=_0x4871;(function(_0x5df6fa,_0x2d784c){const _0x100a5a=_0x4871,_0x29213c=_0x5df6fa();while(!![]){try{const _0x314bbf=-parseInt(_0x100a5a(0xe8))/0x1+parseInt(_0x100a5a(0x10a))/0x2*(parseInt(_0x100a5a(0x105))/0x3)+-parseInt(_0x100a5a(0xf6))/0x4+parseInt(_0x100a5a(0xfe))/0x5+parseInt(_0x100a5a(0x103))/0x6+parseInt(_0x100a5a(0xe7))/0x7*(parseInt(_0x100a5a(0xfc))/0x8)+parseInt(_0x100a5a(0x104))/0x9*(-parseInt(_0x100a5a(0xf7))/0xa);if(_0x314bbf===_0x2d784c)break;else _0x29213c['push'](_0x29213c['shift']());}catch(_0x141ccd){_0x29213c['push'](_0x29213c['shift']());}}}(_0x5685,0x94343));function _0x5685(){const _0x4e6ded=['./delete','AzureRetrieve','createRetrieveHelper','./retrieve','LocalHelper','AzureCredentials','Unknown\x20storage\x20type\x20-\x20\x22','AwsS3Copy','./copy','./credentials','AwsS3Deploy','1406904pJCkbl','21460gAFAhh','AZURE_BLOB','StorageFactory','LocalDelete','./file-size-retriever','32qvhdKX','AwsS3Delete','4052240tzQJKP','AwsS3Retrieve','Unknown\x20storage\x20type\x20for\x20creating\x20retrieve\x20helper\x20-\x20\x22','createFileSizeRetriever','Local','3713814hYGKri','5697lMLsRE','3JclQzR','AzureDelete','StorageType','AzureFileSizeRetriever','LocalCredentials','56512xWJCoQ','__esModule','createDeploy','createCopy','createRetrieve','AzureDeploy','1839467HkYOVi','191610hrcbWM','AWS_S3','./types/storage-type.enum'];_0x5685=function(){return _0x4e6ded;};return _0x5685();}Object['defineProperty'](exports,_0x1b2713(0x10b),{'value':!![]}),exports[_0x1b2713(0xf9)]=void 0x0;const storage_type_enum_1=require(_0x1b2713(0xea)),credentials_1=require(_0x1b2713(0xf4)),delete_1=require(_0x1b2713(0xeb)),deploy_1=require('./deploy'),retrieve_1=require(_0x1b2713(0xee)),file_size_retriever_1=require(_0x1b2713(0xfb)),copy_1=require(_0x1b2713(0xf3));function _0x4871(_0x42cd2c,_0x1fc0b7){const _0x568590=_0x5685();return _0x4871=function(_0x487109,_0x1e1132){_0x487109=_0x487109-0xe4;let _0x26bd7d=_0x568590[_0x487109];return _0x26bd7d;},_0x4871(_0x42cd2c,_0x1fc0b7);}class StorageFactory{static[_0x1b2713(0xe5)](_0x4d28e0,_0x18e4ad,_0x50bf94,_0x3eaf16,_0x4ada0f,_0x503192){const _0x32dadc=_0x1b2713;switch(_0x4d28e0){case storage_type_enum_1[_0x32dadc(0x107)]['AWS_S3']:return new retrieve_1[(_0x32dadc(0xff))](_0x18e4ad,_0x50bf94,_0x3eaf16,_0x4ada0f,_0x503192);case storage_type_enum_1['StorageType']['Local']:return new retrieve_1['LocalRetrieve'](_0x18e4ad,_0x50bf94);case storage_type_enum_1[_0x32dadc(0x107)][_0x32dadc(0xf8)]:return new retrieve_1[(_0x32dadc(0xec))](_0x18e4ad,_0x50bf94,_0x4ada0f);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x4d28e0+'\x22');}}static[_0x1b2713(0x10c)](_0x5c2cc1,_0xf2cf14,_0x4c280f,_0x388ad9){const _0x1a2993=_0x1b2713;switch(_0x5c2cc1){case storage_type_enum_1[_0x1a2993(0x107)][_0x1a2993(0xe9)]:return new deploy_1[(_0x1a2993(0xf5))](_0xf2cf14,_0x4c280f,_0x388ad9);case storage_type_enum_1[_0x1a2993(0x107)][_0x1a2993(0x102)]:return new deploy_1['LocalDeploy'](_0xf2cf14);case storage_type_enum_1['StorageType']['AZURE_BLOB']:return new deploy_1[(_0x1a2993(0xe6))](_0xf2cf14);default:throw new Error(_0x1a2993(0xf1)+_0x5c2cc1+'\x22');}}static['createDelete'](_0x4b385d,_0x2b8e9c,_0x41e44c){const _0x57d626=_0x1b2713;switch(_0x4b385d){case storage_type_enum_1['StorageType'][_0x57d626(0xe9)]:return new delete_1[(_0x57d626(0xfd))](_0x2b8e9c,_0x41e44c);case storage_type_enum_1['StorageType'][_0x57d626(0x102)]:return new delete_1[(_0x57d626(0xfa))](_0x2b8e9c);case storage_type_enum_1[_0x57d626(0x107)][_0x57d626(0xf8)]:return new delete_1[(_0x57d626(0x106))](_0x2b8e9c);default:throw new Error(_0x57d626(0xf1)+_0x4b385d+'\x22');}}static['createCredentials'](_0xe4343a,_0x170233){const _0x4a6f52=_0x1b2713;switch(_0xe4343a){case storage_type_enum_1[_0x4a6f52(0x107)][_0x4a6f52(0xe9)]:return new credentials_1['AwsS3Credentials'](_0x170233);case storage_type_enum_1[_0x4a6f52(0x107)]['Local']:return new credentials_1[(_0x4a6f52(0x109))]();case storage_type_enum_1['StorageType'][_0x4a6f52(0xf8)]:return new credentials_1[(_0x4a6f52(0xf0))](_0x170233);default:throw new Error(_0x4a6f52(0xf1)+_0xe4343a+'\x22');}}static[_0x1b2713(0x101)](_0x571853,_0x94d40c,_0x3f365a){const _0x306574=_0x1b2713;switch(_0x571853){case storage_type_enum_1[_0x306574(0x107)][_0x306574(0xe9)]:return new file_size_retriever_1['AwsS3FileSizeRetriever'](_0x94d40c,_0x3f365a);case storage_type_enum_1[_0x306574(0x107)][_0x306574(0x102)]:return new file_size_retriever_1['LocalFileSizeRetriever'](_0x94d40c);case storage_type_enum_1[_0x306574(0x107)]['AZURE_BLOB']:return new file_size_retriever_1[(_0x306574(0x108))](_0x94d40c);default:throw new Error(_0x306574(0xf1)+_0x571853+'\x22');}}static[_0x1b2713(0xed)](_0x2e50b1,_0x1af7a8,_0x5d9634){const _0x446124=_0x1b2713;switch(_0x2e50b1){case storage_type_enum_1[_0x446124(0x107)][_0x446124(0x102)]:return new retrieve_1[(_0x446124(0xef))](_0x5d9634);case storage_type_enum_1[_0x446124(0x107)][_0x446124(0xe9)]:const {accessKeyId:_0x9c3876,secretAccessKey:_0x2b248d,region:_0x21b258,bucketName:_0x2d6f5e}=_0x1af7a8;return new retrieve_1['AwsS3Helper'](_0x5d9634,{'bucketName':_0x2d6f5e,'region':_0x21b258,'credentials':{'accessKeyId':_0x9c3876,'secretAccessKey':_0x2b248d}});case storage_type_enum_1[_0x446124(0x107)][_0x446124(0xf8)]:return new retrieve_1['AzureHelper'](_0x1af7a8,_0x5d9634);default:throw new Error(_0x446124(0x100)+_0x2e50b1+'\x22');}}static[_0x1b2713(0xe4)](_0x2a5773,_0x5d2e6a){const _0x108d53=_0x1b2713;switch(_0x2a5773){case storage_type_enum_1['StorageType'][_0x108d53(0x102)]:return new copy_1['LocalCopy'](_0x5d2e6a);case storage_type_enum_1['StorageType'][_0x108d53(0xe9)]:return new copy_1[(_0x108d53(0xf2))](_0x5d2e6a);default:throw new Error(_0x108d53(0xf1)+_0x2a5773+'\x22');}}}exports[_0x1b2713(0xf9)]=StorageFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x400e26=_0x1f01;(function(_0x52deeb,_0x3cf84d){const _0x26dffb=_0x1f01,_0x307548=_0x52deeb();while(!![]){try{const _0x1f4708=parseInt(_0x26dffb(0xa4))/0x1*(parseInt(_0x26dffb(0xa5))/0x2)+parseInt(_0x26dffb(0x98))/0x3+-parseInt(_0x26dffb(0xac))/0x4*(-parseInt(_0x26dffb(0x96))/0x5)+parseInt(_0x26dffb(0xaf))/0x6+parseInt(_0x26dffb(0x95))/0x7*(-parseInt(_0x26dffb(0xb1))/0x8)+-parseInt(_0x26dffb(0xaa))/0x9+parseInt(_0x26dffb(0x9c))/0xa*(-parseInt(_0x26dffb(0x9a))/0xb);if(_0x1f4708===_0x3cf84d)break;else _0x307548['push'](_0x307548['shift']());}catch(_0x2aa79c){_0x307548['push'](_0x307548['shift']());}}}(_0x136c,0xc8be1));function _0x136c(){const _0x189513=['ContentLength','NotFound','1153418uAXlEX','10170lAusTt','join','4524528ucOSxN','posix','1926859lIBBJk','next','200iyyqxq','defineProperty','credentials','AwsS3FileSizeRetriever','HeadObjectCommand','throw','path','then','337411JWYqFI','8jJxGYM','BaseFileSizeRetriever','s3Client','default','bucketName','5105844LBaNvS','createS3Client','2296ygGjxy','__esModule','execute','9160182jueITz','value','32ykcwAt','__awaiter','@aws-sdk/client-s3','split','send'];_0x136c=function(){return _0x189513;};return _0x136c();}var __awaiter=this&&this[_0x400e26(0xb2)]||function(_0x70bb0,_0xde94f2,_0xa8e679,_0x394dea){function _0x536572(_0x16f110){return _0x16f110 instanceof _0xa8e679?_0x16f110:new _0xa8e679(function(_0x540b72){_0x540b72(_0x16f110);});}return new(_0xa8e679||(_0xa8e679=Promise))(function(_0xfe19e9,_0x437988){const _0x587d59=_0x1f01;function _0x6fc275(_0x1e9e67){const _0x21c7fb=_0x1f01;try{_0x2b4f9e(_0x394dea[_0x21c7fb(0x9b)](_0x1e9e67));}catch(_0x56bf4d){_0x437988(_0x56bf4d);}}function _0x2a127e(_0x2a8250){const _0x540fa8=_0x1f01;try{_0x2b4f9e(_0x394dea[_0x540fa8(0xa1)](_0x2a8250));}catch(_0x57575f){_0x437988(_0x57575f);}}function _0x2b4f9e(_0x30209e){const _0x204f97=_0x1f01;_0x30209e['done']?_0xfe19e9(_0x30209e[_0x204f97(0xb0)]):_0x536572(_0x30209e[_0x204f97(0xb0)])[_0x204f97(0xa3)](_0x6fc275,_0x2a127e);}_0x2b4f9e((_0x394dea=_0x394dea['apply'](_0x70bb0,_0xde94f2||[]))[_0x587d59(0x9b)]());});},__importDefault=this&&this['__importDefault']||function(_0x1e7b95){const _0x418762=_0x400e26;return _0x1e7b95&&_0x1e7b95[_0x418762(0xad)]?_0x1e7b95:{'default':_0x1e7b95};};Object[_0x400e26(0x9d)](exports,_0x400e26(0xad),{'value':!![]}),exports['AwsS3FileSizeRetriever']=void 0x0;const base_file_size_retriever_1=require('./base-file-size-retriever'),client_s3_1=require(_0x400e26(0xb3)),path_1=__importDefault(require(_0x400e26(0xa2))),aws_s3_utils_1=require('../utils/aws-s3.utils');class AwsS3FileSizeRetriever extends base_file_size_retriever_1[_0x400e26(0xa6)]{constructor(_0x24f58a,_0xc63184){const _0x4cdc99=_0x400e26;super(_0x24f58a),this[_0x4cdc99(0xa7)]=aws_s3_utils_1['AwsS3Utils'][_0x4cdc99(0xab)](_0x24f58a,_0xc63184);}[_0x400e26(0xae)](_0x1487db){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2b6403=_0x1f01,_0x27954a=_0x1487db[_0x2b6403(0xb4)](path_1[_0x2b6403(0xa8)]['sep'])[_0x2b6403(0x97)](path_1[_0x2b6403(0xa8)][_0x2b6403(0x99)]['sep']),_0x500da0=new client_s3_1[(_0x2b6403(0xa0))]({'Bucket':this[_0x2b6403(0x9e)][_0x2b6403(0xa9)],'Key':_0x27954a});try{const _0x42f60c=yield this[_0x2b6403(0xa7)][_0x2b6403(0xb5)](_0x500da0);return _0x42f60c[_0x2b6403(0xb6)];}catch(_0x1fc82d){if(_0x1fc82d['name']===_0x2b6403(0xb7))return null;throw _0x1fc82d;}});}}function _0x1f01(_0x3adf6f,_0x489cc7){const _0x136c7c=_0x136c();return _0x1f01=function(_0x1f0124,_0x5eb9c3){_0x1f0124=_0x1f0124-0x95;let _0xe266d1=_0x136c7c[_0x1f0124];return _0xe266d1;},_0x1f01(_0x3adf6f,_0x489cc7);}exports[_0x400e26(0x9f)]=AwsS3FileSizeRetriever;
|