@flosum/storages 1.0.19 → 1.0.21-dev.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/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/base-credentials.d.ts +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/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/base-deploy.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/aws-s3-single-file-retrieve.d.ts +22 -0
- package/dist/retrieve/aws-s3-single-file-retrieve.js +1 -0
- package/dist/retrieve/base-retrieve.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/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/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x4b5903=_0x1b34;function _0xfc21(){const _0x323f87=['__awaiter','119EZJDtS','then','region','71508zyFbao','__esModule','accessKeyId','4469094VfcDTO','40sNMsLZ','@aws-sdk/client-s3','defineProperty','HeadBucketCommand','AwsS3Credentials','secretAccessKey','541638sqYySf','message','S3Client','569919DObZhX','4421200YMszbZ','next','317896caNJiI','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','bucketName','value','1jqzrGQ','getCredentials','credentials','s3Client','HttpHandler','send','104768FYEVKv'];_0xfc21=function(){return _0x323f87;};return _0xfc21();}(function(_0x1b74b2,_0x53d0fe){const _0x428f54=_0x1b34,_0x2584c8=_0x1b74b2();while(!![]){try{const _0x2318cc=-parseInt(_0x428f54(0x9d))/0x1*(parseInt(_0x428f54(0xa8))/0x2)+parseInt(_0x428f54(0x96))/0x3+-parseInt(_0x428f54(0xa3))/0x4*(parseInt(_0x428f54(0xac))/0x5)+-parseInt(_0x428f54(0xab))/0x6+parseInt(_0x428f54(0xa5))/0x7*(parseInt(_0x428f54(0x99))/0x8)+parseInt(_0x428f54(0x93))/0x9+parseInt(_0x428f54(0x97))/0xa;if(_0x2318cc===_0x53d0fe)break;else _0x2584c8['push'](_0x2584c8['shift']());}catch(_0x4a27cf){_0x2584c8['push'](_0x2584c8['shift']());}}}(_0xfc21,0x5c341));var __awaiter=this&&this[_0x4b5903(0xa4)]||function(_0x200dcb,_0x47f0b7,_0x52bac8,_0x296673){function _0x4b04f9(_0x3bf5ef){return _0x3bf5ef instanceof _0x52bac8?_0x3bf5ef:new _0x52bac8(function(_0x58ec21){_0x58ec21(_0x3bf5ef);});}return new(_0x52bac8||(_0x52bac8=Promise))(function(_0x5331cd,_0x5338f8){const _0x267d2f=_0x1b34;function _0x4eb0e9(_0x541e57){const _0x1e1824=_0x1b34;try{_0x41cbbc(_0x296673[_0x1e1824(0x98)](_0x541e57));}catch(_0x7b713a){_0x5338f8(_0x7b713a);}}function _0x1f00b3(_0x25c206){try{_0x41cbbc(_0x296673['throw'](_0x25c206));}catch(_0x27428b){_0x5338f8(_0x27428b);}}function _0x41cbbc(_0x368fa4){const _0xa71559=_0x1b34;_0x368fa4['done']?_0x5331cd(_0x368fa4[_0xa71559(0x9c)]):_0x4b04f9(_0x368fa4['value'])[_0xa71559(0xa6)](_0x4eb0e9,_0x1f00b3);}_0x41cbbc((_0x296673=_0x296673['apply'](_0x200dcb,_0x47f0b7||[]))[_0x267d2f(0x98)]());});};Object[_0x4b5903(0xae)](exports,_0x4b5903(0xa9),{'value':!![]}),exports[_0x4b5903(0x91)]=void 0x0;const base_credentials_1=require('./base-credentials'),client_s3_1=require(_0x4b5903(0xad)),init_1=require('../init');class AwsS3Credentials extends base_credentials_1['BaseCredentials']{constructor(){const _0x38f495=_0x4b5903;super(...arguments),this['s3Client']=new client_s3_1[(_0x38f495(0x95))]({'region':this[_0x38f495(0x9f)]['region'],'credentials':{'accessKeyId':this['credentials'][_0x38f495(0xaa)],'secretAccessKey':this['credentials'][_0x38f495(0x92)]},'requestHandler':new init_1[(_0x38f495(0xa1))]()});}get[_0x4b5903(0xaa)](){const _0x3d167f=_0x4b5903;return this[_0x3d167f(0x9f)][_0x3d167f(0xaa)];}get[_0x4b5903(0x92)](){const _0xc82093=_0x4b5903;return this[_0xc82093(0x9f)][_0xc82093(0x92)];}get[_0x4b5903(0x9b)](){const _0x5b3cd3=_0x4b5903;return this[_0x5b3cd3(0x9f)][_0x5b3cd3(0x9b)];}get[_0x4b5903(0xa7)](){const _0x1145ce=_0x4b5903;return this[_0x1145ce(0x9f)][_0x1145ce(0xa7)];}['validate'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5166eb=_0x1b34;try{const _0x29655c=new client_s3_1[(_0x5166eb(0x90))]({'Bucket':this[_0x5166eb(0x9f)][_0x5166eb(0x9b)]});yield this[_0x5166eb(0xa0)][_0x5166eb(0xa2)](_0x29655c);}catch(_0x3f2b54){throw new Error(_0x5166eb(0x9a)+_0x3f2b54[_0x5166eb(0x94)]);}});}[_0x4b5903(0x9e)](_0x22e298=![]){const _0x3ba0b6=_0x4b5903;if(_0x22e298)return{'bucketName':this[_0x3ba0b6(0x9f)][_0x3ba0b6(0x9b)]};return this[_0x3ba0b6(0x9f)];}}function _0x1b34(_0x5b5128,_0x2fac5c){const _0xfc2143=_0xfc21();return _0x1b34=function(_0x1b34f3,_0x2f4293){_0x1b34f3=_0x1b34f3-0x90;let _0xee787a=_0xfc2143[_0x1b34f3];return _0xee787a;},_0x1b34(_0x5b5128,_0x2fac5c);}exports['AwsS3Credentials']=AwsS3Credentials;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare abstract class BaseCredentials<T extends Record<string, string> = Record<string, string> | null> {
|
|
1
|
+
export declare abstract class BaseCredentials<T extends Record<string, string> | null = Record<string, string> | null> {
|
|
2
2
|
protected rawCredentials?: string;
|
|
3
3
|
protected credentials: T;
|
|
4
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4b82(_0x11ccf1,_0x55689f){var _0x4a29bf=_0x4a29();return _0x4b82=function(_0x4b8262,_0x37f6b8){_0x4b8262=_0x4b8262-0x165;var _0x55dff3=_0x4a29bf[_0x4b8262];return _0x55dff3;},_0x4b82(_0x11ccf1,_0x55689f);}function _0x4a29(){var _0xd65c74=['3214375YxzqHL','5481707EyzVAf','218058orLRnq','rawCredentials','8EtpRGA','__esModule','363789cViXLD','BaseCredentials','2931054TvGjtS','7ZkLCzO','credentials','18JViDft','8959900ZkXcra','parse','2723748Nmbouf'];_0x4a29=function(){return _0xd65c74;};return _0x4a29();}var _0x58bedf=_0x4b82;(function(_0x3dd334,_0x4c6035){var _0x312177=_0x4b82,_0x2f0d6a=_0x3dd334();while(!![]){try{var _0x3280fb=parseInt(_0x312177(0x16f))/0x1*(parseInt(_0x312177(0x168))/0x2)+-parseInt(_0x312177(0x16c))/0x3+parseInt(_0x312177(0x165))/0x4+parseInt(_0x312177(0x166))/0x5+-parseInt(_0x312177(0x16e))/0x6+-parseInt(_0x312177(0x167))/0x7*(-parseInt(_0x312177(0x16a))/0x8)+-parseInt(_0x312177(0x171))/0x9*(parseInt(_0x312177(0x172))/0xa);if(_0x3280fb===_0x4c6035)break;else _0x2f0d6a['push'](_0x2f0d6a['shift']());}catch(_0x1541d6){_0x2f0d6a['push'](_0x2f0d6a['shift']());}}}(_0x4a29,0x7258c));Object['defineProperty'](exports,_0x58bedf(0x16b),{'value':!![]}),exports[_0x58bedf(0x16d)]=void 0x0;class BaseCredentials{constructor(_0x530770){var _0x32f73f=_0x58bedf;this[_0x32f73f(0x169)]=_0x530770,this[_0x32f73f(0x169)]&&(this[_0x32f73f(0x170)]=JSON[_0x32f73f(0x173)](this[_0x32f73f(0x169)]));}}exports[_0x58bedf(0x16d)]=BaseCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3064af=_0x2558;(function(_0x43e648,_0x407632){var _0x15754b=_0x2558,_0x4d7c16=_0x43e648();while(!![]){try{var _0x3baba5=-parseInt(_0x15754b(0x19c))/0x1+parseInt(_0x15754b(0x194))/0x2*(parseInt(_0x15754b(0x18f))/0x3)+-parseInt(_0x15754b(0x199))/0x4*(-parseInt(_0x15754b(0x18e))/0x5)+parseInt(_0x15754b(0x19e))/0x6*(parseInt(_0x15754b(0x19b))/0x7)+-parseInt(_0x15754b(0x192))/0x8+parseInt(_0x15754b(0x190))/0x9*(-parseInt(_0x15754b(0x19d))/0xa)+parseInt(_0x15754b(0x195))/0xb;if(_0x3baba5===_0x407632)break;else _0x4d7c16['push'](_0x4d7c16['shift']());}catch(_0x6d2594){_0x4d7c16['push'](_0x4d7c16['shift']());}}}(_0xcc3e,0x9bdc9));function _0x2558(_0x5f1dda,_0x4d5d85){var _0xcc3e0d=_0xcc3e();return _0x2558=function(_0x255843,_0xc46d70){_0x255843=_0x255843-0x18e;var _0x19d957=_0xcc3e0d[_0x255843];return _0x19d957;},_0x2558(_0x5f1dda,_0x4d5d85);}function _0xcc3e(){var _0x8ca9b8=['10015FqVwqg','687357cysPgv','198uQhLvt','__esModule','5063680ahhtvr','./aws-s3-credentials','6gUZPUO','3573262wBgzxN','AwsS3Credentials','BaseCredentials','LocalCredentials','1456Jdsbdk','defineProperty','68852rGcGud','319584IuajLY','484130GCzDyZ','558YKbRrE','./local-credentials'];_0xcc3e=function(){return _0x8ca9b8;};return _0xcc3e();}Object['defineProperty'](exports,_0x3064af(0x191),{'value':!![]}),exports[_0x3064af(0x198)]=exports[_0x3064af(0x196)]=exports[_0x3064af(0x197)]=void 0x0;var base_credentials_1=require('./base-credentials');Object['defineProperty'](exports,_0x3064af(0x197),{'enumerable':!![],'get':function(){var _0x1d3aeb=_0x3064af;return base_credentials_1[_0x1d3aeb(0x197)];}});var aws_s3_credentials_1=require(_0x3064af(0x193));Object['defineProperty'](exports,_0x3064af(0x196),{'enumerable':!![],'get':function(){var _0xd0a0bf=_0x3064af;return aws_s3_credentials_1[_0xd0a0bf(0x196)];}});var local_credentials_1=require(_0x3064af(0x19f));Object[_0x3064af(0x19a)](exports,_0x3064af(0x198),{'enumerable':!![],'get':function(){return local_credentials_1['LocalCredentials'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4d6b6e=_0x95b1;function _0x39fa(){const _0x510f3b=['__esModule','1333367LSLKvU','getCredentials','821916qTamLT','1132305TdUxYZ','resolve','1133696qmkNOi','BaseCredentials','211415kpicSu','defineProperty','validate','100596cdLRIN','LocalCredentials','99044bFVNzn','./base-credentials'];_0x39fa=function(){return _0x510f3b;};return _0x39fa();}(function(_0x52cadb,_0x9d4ef5){const _0xa23117=_0x95b1,_0x5e75e5=_0x52cadb();while(!![]){try{const _0x533254=parseInt(_0xa23117(0x192))/0x1+-parseInt(_0xa23117(0x197))/0x2+-parseInt(_0xa23117(0x19c))/0x3+parseInt(_0xa23117(0x19f))/0x4+-parseInt(_0xa23117(0x19d))/0x5+parseInt(_0xa23117(0x195))/0x6+parseInt(_0xa23117(0x19a))/0x7;if(_0x533254===_0x9d4ef5)break;else _0x5e75e5['push'](_0x5e75e5['shift']());}catch(_0x27538d){_0x5e75e5['push'](_0x5e75e5['shift']());}}}(_0x39fa,0x25243));Object[_0x4d6b6e(0x193)](exports,_0x4d6b6e(0x199),{'value':!![]}),exports['LocalCredentials']=void 0x0;const base_credentials_1=require(_0x4d6b6e(0x198));class LocalCredentials extends base_credentials_1[_0x4d6b6e(0x191)]{[_0x4d6b6e(0x19b)](){return null;}[_0x4d6b6e(0x194)](){const _0xa6e75f=_0x4d6b6e;return Promise[_0xa6e75f(0x19e)](undefined);}}function _0x95b1(_0x5aa845,_0x120a37){const _0x39fa0c=_0x39fa();return _0x95b1=function(_0x95b104,_0x1cfdfb){_0x95b104=_0x95b104-0x191;let _0x1c2ade=_0x39fa0c[_0x95b104];return _0x1c2ade;},_0x95b1(_0x5aa845,_0x120a37);}exports[_0x4d6b6e(0x196)]=LocalCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x520e(){const _0x301ec5=['split','accessKeyId','join','credentials','defineProperty','bucketName','value','4315hXlTSy','posix','send','204UaXizU','BaseDelete','5453982LytuMa','ArrayUtils','247680QOioWv','map','__importDefault','AwsS3Delete','__awaiter','__esModule','../init','../utils/aws-s3.utils','@aws-sdk/client-s3','secretAccessKey','HttpHandler','path','s3Client','2283180XRDqFx','next','sep','S3Client','splitOnChunks','969620auHXDy','getFilesPaths','37603QYyLlX','region','12OFSlPd','127631vngUDF','then','OBJECTS_PER_CHUNK','1304dtwIuq'];_0x520e=function(){return _0x301ec5;};return _0x520e();}const _0x463331=_0x3f85;(function(_0x7bb032,_0x44251b){const _0x3b86aa=_0x3f85,_0x1a2c50=_0x7bb032();while(!![]){try{const _0x3cf3f6=parseInt(_0x3b86aa(0x83))/0x1*(-parseInt(_0x3b86aa(0x85))/0x2)+-parseInt(_0x3b86aa(0x7c))/0x3+parseInt(_0x3b86aa(0x89))/0x4*(parseInt(_0x3b86aa(0x68))/0x5)+-parseInt(_0x3b86aa(0x6b))/0x6*(-parseInt(_0x3b86aa(0x86))/0x7)+-parseInt(_0x3b86aa(0x6f))/0x8+parseInt(_0x3b86aa(0x6d))/0x9+-parseInt(_0x3b86aa(0x81))/0xa;if(_0x3cf3f6===_0x44251b)break;else _0x1a2c50['push'](_0x1a2c50['shift']());}catch(_0xecbce9){_0x1a2c50['push'](_0x1a2c50['shift']());}}}(_0x520e,0x5fdd2));var __awaiter=this&&this[_0x463331(0x73)]||function(_0x4a7145,_0x340213,_0x54ef81,_0x5f1f4b){function _0x58a390(_0x405735){return _0x405735 instanceof _0x54ef81?_0x405735:new _0x54ef81(function(_0x466f09){_0x466f09(_0x405735);});}return new(_0x54ef81||(_0x54ef81=Promise))(function(_0x5795f3,_0x139a6c){function _0x4ddf23(_0x18686f){const _0x5d62f8=_0x3f85;try{_0x5c1b3e(_0x5f1f4b[_0x5d62f8(0x7d)](_0x18686f));}catch(_0x41bef7){_0x139a6c(_0x41bef7);}}function _0x388283(_0x696324){try{_0x5c1b3e(_0x5f1f4b['throw'](_0x696324));}catch(_0xbf9c0d){_0x139a6c(_0xbf9c0d);}}function _0x5c1b3e(_0x18f949){const _0xa72c6e=_0x3f85;_0x18f949['done']?_0x5795f3(_0x18f949[_0xa72c6e(0x90)]):_0x58a390(_0x18f949['value'])[_0xa72c6e(0x87)](_0x4ddf23,_0x388283);}_0x5c1b3e((_0x5f1f4b=_0x5f1f4b['apply'](_0x4a7145,_0x340213||[]))['next']());});},__importDefault=this&&this[_0x463331(0x71)]||function(_0x16297c){return _0x16297c&&_0x16297c['__esModule']?_0x16297c:{'default':_0x16297c};};Object[_0x463331(0x8e)](exports,_0x463331(0x74),{'value':!![]}),exports[_0x463331(0x72)]=void 0x0;const path_1=__importDefault(require(_0x463331(0x7a))),utils_1=require('@flosum/utils'),aws_s3_utils_1=require(_0x463331(0x76)),_1=require('./'),client_s3_1=require(_0x463331(0x77)),init_1=require(_0x463331(0x75));function _0x3f85(_0x577422,_0x10a974){const _0x520e9c=_0x520e();return _0x3f85=function(_0x3f85b0,_0x363876){_0x3f85b0=_0x3f85b0-0x68;let _0x185dc6=_0x520e9c[_0x3f85b0];return _0x185dc6;},_0x3f85(_0x577422,_0x10a974);}class AwsS3Delete extends _1[_0x463331(0x6c)]{constructor(_0x5bd868){const _0x36681c=_0x463331;super(_0x5bd868),this[_0x36681c(0x8d)]=_0x5bd868,this[_0x36681c(0x88)]=0x3e8,this['s3Client']=new client_s3_1[(_0x36681c(0x7f))]({'region':this[_0x36681c(0x8d)][_0x36681c(0x84)],'credentials':{'accessKeyId':this[_0x36681c(0x8d)][_0x36681c(0x8b)],'secretAccessKey':this[_0x36681c(0x8d)][_0x36681c(0x78)]},'requestHandler':new init_1[(_0x36681c(0x79))]()});}['execute'](_0xd33609){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x59c573=_0x3f85,_0x1ee65c=_0xd33609[_0x59c573(0x8a)](path_1['default'][_0x59c573(0x7e)])[_0x59c573(0x8c)](path_1['default'][_0x59c573(0x69)]['sep']),_0x48f536=yield aws_s3_utils_1['AwsS3Utils'][_0x59c573(0x82)](_0x1ee65c,this['credentials'][_0x59c573(0x8f)],this[_0x59c573(0x7b)]),_0xd73f35=utils_1[_0x59c573(0x6e)][_0x59c573(0x80)](_0x48f536,this['OBJECTS_PER_CHUNK']);for(const _0x1b53a5 of _0xd73f35){const _0x7373e1=_0x1b53a5[_0x59c573(0x70)](_0x31b5c2=>({'Key':_0x31b5c2})),_0x435200=new client_s3_1['DeleteObjectsCommand']({'Bucket':this['credentials'][_0x59c573(0x8f)],'Delete':{'Objects':_0x7373e1}});yield this[_0x59c573(0x7b)][_0x59c573(0x6a)](_0x435200);}});}}exports[_0x463331(0x72)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x5cd2bf=_0x520a;(function(_0x2a818a,_0x47ac5a){var _0x63c094=_0x520a,_0x2e444a=_0x2a818a();while(!![]){try{var _0x1c6841=parseInt(_0x63c094(0x166))/0x1*(-parseInt(_0x63c094(0x162))/0x2)+-parseInt(_0x63c094(0x16c))/0x3*(parseInt(_0x63c094(0x168))/0x4)+parseInt(_0x63c094(0x164))/0x5*(parseInt(_0x63c094(0x16f))/0x6)+parseInt(_0x63c094(0x163))/0x7*(-parseInt(_0x63c094(0x16b))/0x8)+parseInt(_0x63c094(0x16e))/0x9+parseInt(_0x63c094(0x16a))/0xa*(parseInt(_0x63c094(0x161))/0xb)+parseInt(_0x63c094(0x160))/0xc*(parseInt(_0x63c094(0x169))/0xd);if(_0x1c6841===_0x47ac5a)break;else _0x2e444a['push'](_0x2e444a['shift']());}catch(_0x4dfe69){_0x2e444a['push'](_0x2e444a['shift']());}}}(_0x3198,0xd25cd));function _0x520a(_0x4ba360,_0x178fc5){var _0x31988a=_0x3198();return _0x520a=function(_0x520af4,_0xe0e6c4){_0x520af4=_0x520af4-0x160;var _0x3f07b4=_0x31988a[_0x520af4];return _0x3f07b4;},_0x520a(_0x4ba360,_0x178fc5);}Object[_0x5cd2bf(0x167)](exports,'__esModule',{'value':!![]}),exports[_0x5cd2bf(0x165)]=void 0x0;class BaseDelete{constructor(_0x4a9445){var _0x43b826=_0x5cd2bf;this[_0x43b826(0x16d)]=_0x4a9445;}}exports[_0x5cd2bf(0x165)]=BaseDelete;function _0x3198(){var _0x3b7caa=['4668miIOLf','209125AMfihy','1535OorWYD','BaseDelete','98XIKHlo','defineProperty','6313264cajbPI','9412WNpWjX','846250xIIbfG','376RbFGNQ','3AmZnkV','credentials','15469677SDseeS','7602IYkoDM','21348rILRSp','88GMWoyr'];_0x3198=function(){return _0x3b7caa;};return _0x3198();}
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x38b1(){var _0x2de6bc=['defineProperty','8832627SGHNzS','./base-delete','LocalDelete','614504TAsCQR','273360fdNqwc','76419wZLLBR','AwsS3Delete','__esModule','BaseDelete','544StCmFm','1727988rJwDmH','3976oykpHp','361945VloSsk','15UAyrQs'];_0x38b1=function(){return _0x2de6bc;};return _0x38b1();}var _0x3b2fbb=_0x19cc;(function(_0x40aaee,_0x53481f){var _0x4938ff=_0x19cc,_0x216729=_0x40aaee();while(!![]){try{var _0x185939=parseInt(_0x4938ff(0x118))/0x1+parseInt(_0x4938ff(0x11e))/0x2+-parseInt(_0x4938ff(0x120))/0x3+-parseInt(_0x4938ff(0x11f))/0x4*(-parseInt(_0x4938ff(0x119))/0x5)+parseInt(_0x4938ff(0x116))/0x6+-parseInt(_0x4938ff(0x117))/0x7*(-parseInt(_0x4938ff(0x115))/0x8)+-parseInt(_0x4938ff(0x11b))/0x9;if(_0x185939===_0x53481f)break;else _0x216729['push'](_0x216729['shift']());}catch(_0x476ce8){_0x216729['push'](_0x216729['shift']());}}}(_0x38b1,0x2f5ab));Object[_0x3b2fbb(0x11a)](exports,_0x3b2fbb(0x113),{'value':!![]}),exports[_0x3b2fbb(0x11d)]=exports['AwsS3Delete']=exports[_0x3b2fbb(0x114)]=void 0x0;var base_delete_1=require(_0x3b2fbb(0x11c));Object[_0x3b2fbb(0x11a)](exports,_0x3b2fbb(0x114),{'enumerable':!![],'get':function(){var _0x5e205d=_0x3b2fbb;return base_delete_1[_0x5e205d(0x114)];}});var aws_s3_delete_1=require('./aws-s3-delete');Object[_0x3b2fbb(0x11a)](exports,_0x3b2fbb(0x112),{'enumerable':!![],'get':function(){return aws_s3_delete_1['AwsS3Delete'];}});function _0x19cc(_0x3d6d97,_0x2ae20d){var _0x38b111=_0x38b1();return _0x19cc=function(_0x19cca7,_0x309448){_0x19cca7=_0x19cca7-0x112;var _0x3ed657=_0x38b111[_0x19cca7];return _0x3ed657;},_0x19cc(_0x3d6d97,_0x2ae20d);}var local_delete_1=require('./local-delete');Object[_0x3b2fbb(0x11a)](exports,_0x3b2fbb(0x11d),{'enumerable':!![],'get':function(){var _0x342835=_0x3b2fbb;return local_delete_1[_0x342835(0x11d)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x301d5e=_0x50c7;function _0x50c7(_0x421904,_0x3e453d){const _0x4a7b0c=_0x4a7b();return _0x50c7=function(_0x50c7a8,_0x27fa49){_0x50c7a8=_0x50c7a8-0x16a;let _0x116ebc=_0x4a7b0c[_0x50c7a8];return _0x116ebc;},_0x50c7(_0x421904,_0x3e453d);}(function(_0xeb05ad,_0x11aa49){const _0x517e95=_0x50c7,_0x1aba9c=_0xeb05ad();while(!![]){try{const _0x346ae2=-parseInt(_0x517e95(0x171))/0x1+parseInt(_0x517e95(0x180))/0x2+-parseInt(_0x517e95(0x17a))/0x3*(parseInt(_0x517e95(0x175))/0x4)+parseInt(_0x517e95(0x177))/0x5*(-parseInt(_0x517e95(0x17d))/0x6)+parseInt(_0x517e95(0x172))/0x7+-parseInt(_0x517e95(0x170))/0x8+parseInt(_0x517e95(0x17e))/0x9;if(_0x346ae2===_0x11aa49)break;else _0x1aba9c['push'](_0x1aba9c['shift']());}catch(_0x33c916){_0x1aba9c['push'](_0x1aba9c['shift']());}}}(_0x4a7b,0xb9658));var __awaiter=this&&this[_0x301d5e(0x16a)]||function(_0x14ba58,_0x4caf23,_0x4d1821,_0x233013){function _0xc2b4ee(_0x3e87bd){return _0x3e87bd instanceof _0x4d1821?_0x3e87bd:new _0x4d1821(function(_0x30429b){_0x30429b(_0x3e87bd);});}return new(_0x4d1821||(_0x4d1821=Promise))(function(_0x25f536,_0x3943e5){const _0x1bee66=_0x50c7;function _0x39fdb3(_0x1312e9){const _0x1b867c=_0x50c7;try{_0x97c751(_0x233013[_0x1b867c(0x16f)](_0x1312e9));}catch(_0x1ac40a){_0x3943e5(_0x1ac40a);}}function _0x4e9321(_0x1ff55f){const _0x226d94=_0x50c7;try{_0x97c751(_0x233013[_0x226d94(0x17c)](_0x1ff55f));}catch(_0x4674c6){_0x3943e5(_0x4674c6);}}function _0x97c751(_0x5d4e4f){const _0x324a06=_0x50c7;_0x5d4e4f[_0x324a06(0x16b)]?_0x25f536(_0x5d4e4f[_0x324a06(0x16e)]):_0xc2b4ee(_0x5d4e4f[_0x324a06(0x16e)])['then'](_0x39fdb3,_0x4e9321);}_0x97c751((_0x233013=_0x233013[_0x1bee66(0x176)](_0x14ba58,_0x4caf23||[]))[_0x1bee66(0x16f)]());});};Object[_0x301d5e(0x174)](exports,_0x301d5e(0x16c),{'value':!![]}),exports['LocalDelete']=void 0x0;const promises_1=require(_0x301d5e(0x173)),utils_1=require(_0x301d5e(0x179)),_1=require('./');class LocalDelete extends _1[_0x301d5e(0x16d)]{[_0x301d5e(0x17b)](_0x3a427){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2d2ef8=_0x50c7;if(yield utils_1[_0x2d2ef8(0x17f)][_0x2d2ef8(0x178)](_0x3a427))yield(0x0,promises_1['rm'])(_0x3a427,{'recursive':!![]});});}}exports['LocalDelete']=LocalDelete;function _0x4a7b(){const _0x5e7760=['FsUtils','457528IcVTOm','__awaiter','done','__esModule','BaseDelete','value','next','4298360sWQibl','1008765QzaIiK','5001157wMEYRJ','fs/promises','defineProperty','8156rIGCGs','apply','2855NnBLKi','isExistsPath','@flosum/utils','1212VWTHMR','execute','throw','2364FMoBMj','21698631qokTmt'];_0x4a7b=function(){return _0x5e7760;};return _0x4a7b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4317a8=_0x3b12;(function(_0x3c0152,_0x174258){const _0x3528ea=_0x3b12,_0x129293=_0x3c0152();while(!![]){try{const _0x201870=-parseInt(_0x3528ea(0xb1))/0x1+parseInt(_0x3528ea(0xa1))/0x2*(parseInt(_0x3528ea(0xb0))/0x3)+parseInt(_0x3528ea(0xb8))/0x4*(-parseInt(_0x3528ea(0xba))/0x5)+parseInt(_0x3528ea(0x9e))/0x6+parseInt(_0x3528ea(0xaf))/0x7*(parseInt(_0x3528ea(0xb4))/0x8)+-parseInt(_0x3528ea(0xa9))/0x9*(-parseInt(_0x3528ea(0xbd))/0xa)+parseInt(_0x3528ea(0xa3))/0xb*(-parseInt(_0x3528ea(0xa7))/0xc);if(_0x201870===_0x174258)break;else _0x129293['push'](_0x129293['shift']());}catch(_0x21d08d){_0x129293['push'](_0x129293['shift']());}}}(_0x15a0,0x8731c));function _0x3b12(_0x1a3a43,_0x193194){const _0x15a087=_0x15a0();return _0x3b12=function(_0x3b12d2,_0x12e6db){_0x3b12d2=_0x3b12d2-0x9b;let _0x385f99=_0x15a087[_0x3b12d2];return _0x385f99;},_0x3b12(_0x1a3a43,_0x193194);}var __awaiter=this&&this[_0x4317a8(0xb2)]||function(_0x3b0c3d,_0x3c5dd2,_0x1c500c,_0x512cda){function _0x117f5e(_0x28aabc){return _0x28aabc instanceof _0x1c500c?_0x28aabc:new _0x1c500c(function(_0x2f32e7){_0x2f32e7(_0x28aabc);});}return new(_0x1c500c||(_0x1c500c=Promise))(function(_0x55d232,_0x9433ca){const _0xc9a4f8=_0x3b12;function _0xca8e78(_0x506207){const _0x478d78=_0x3b12;try{_0x2963b4(_0x512cda[_0x478d78(0xb5)](_0x506207));}catch(_0x54411a){_0x9433ca(_0x54411a);}}function _0xbbf4a0(_0x22f97d){try{_0x2963b4(_0x512cda['throw'](_0x22f97d));}catch(_0x478609){_0x9433ca(_0x478609);}}function _0x2963b4(_0x62467c){const _0x4be894=_0x3b12;_0x62467c[_0x4be894(0xa5)]?_0x55d232(_0x62467c['value']):_0x117f5e(_0x62467c[_0x4be894(0x9d)])[_0x4be894(0xad)](_0xca8e78,_0xbbf4a0);}_0x2963b4((_0x512cda=_0x512cda[_0xc9a4f8(0xb6)](_0x3b0c3d,_0x3c5dd2||[]))[_0xc9a4f8(0xb5)]());});},__importDefault=this&&this[_0x4317a8(0xa0)]||function(_0x114534){const _0x437ce4=_0x4317a8;return _0x114534&&_0x114534[_0x437ce4(0xc1)]?_0x114534:{'default':_0x114534};};Object[_0x4317a8(0xab)](exports,_0x4317a8(0xc1),{'value':!![]}),exports[_0x4317a8(0xa6)]=void 0x0;function _0x15a0(){const _0x4cffd4=['apply','posix','2812IRCQxH','join','3080wwxCUk','upload','@aws-sdk/lib-storage','2867360KqNFMV','bucketName','s3Client','sep','__esModule','secretAccessKey','split','value','1555356mcAQdD','../init','__importDefault','215878LIDIoX','default','11vuOShY','region','done','AwsS3Deploy','367176LncTJY','HttpHandler','9Vcafue','Upload','defineProperty','S3Client','then','credentials','24241wCPekI','24xrqilX','603315azVbyQ','__awaiter','execute','488IrsMnP','next'];_0x15a0=function(){return _0x4cffd4;};return _0x15a0();}const path_1=__importDefault(require('path')),_1=require('./'),client_s3_1=require('@aws-sdk/client-s3'),init_1=require(_0x4317a8(0x9f)),lib_storage_1=require(_0x4317a8(0xbc));class AwsS3Deploy extends _1['BaseDeploy']{constructor(_0x35d6a9,_0x1d0586){const _0x50ec8d=_0x4317a8;super(_0x35d6a9),this[_0x50ec8d(0xae)]=_0x35d6a9,this['storageClass']=_0x1d0586,this['s3Client']=new client_s3_1[(_0x50ec8d(0xac))]({'region':this[_0x50ec8d(0xae)][_0x50ec8d(0xa4)],'credentials':{'accessKeyId':this[_0x50ec8d(0xae)]['accessKeyId'],'secretAccessKey':this['credentials'][_0x50ec8d(0x9b)]},'requestHandler':new init_1[(_0x50ec8d(0xa8))]()});}[_0x4317a8(0xbb)](_0x3f6afa,_0x5d13de){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x12648a=_0x3b12,_0x219d3e=new lib_storage_1[(_0x12648a(0xaa))]({'client':this[_0x12648a(0xbf)],'params':{'Bucket':this[_0x12648a(0xae)][_0x12648a(0xbe)],'Key':_0x5d13de,'Body':_0x3f6afa,'StorageClass':this['storageClass']}});yield _0x219d3e[_0x12648a(0xa5)]();});}[_0x4317a8(0xb3)](_0x4f6135,_0x3b2396){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x161866=_0x3b12;try{const _0x584845=_0x3b2396[_0x161866(0x9c)](path_1[_0x161866(0xa2)][_0x161866(0xc0)])[_0x161866(0xb9)](path_1[_0x161866(0xa2)][_0x161866(0xb7)][_0x161866(0xc0)]);yield this[_0x161866(0xbb)](_0x4f6135,_0x584845);}catch(_0x3c4f27){throw _0x3c4f27;}});}}exports[_0x4317a8(0xa6)]=AwsS3Deploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x4f793e=_0x47a0;(function(_0x2be26d,_0x35e4fc){var _0x31a6f1=_0x47a0,_0x22753=_0x2be26d();while(!![]){try{var _0x5143ed=-parseInt(_0x31a6f1(0x18d))/0x1+parseInt(_0x31a6f1(0x191))/0x2*(-parseInt(_0x31a6f1(0x18f))/0x3)+-parseInt(_0x31a6f1(0x186))/0x4+parseInt(_0x31a6f1(0x190))/0x5+parseInt(_0x31a6f1(0x184))/0x6*(parseInt(_0x31a6f1(0x187))/0x7)+-parseInt(_0x31a6f1(0x18e))/0x8*(parseInt(_0x31a6f1(0x188))/0x9)+-parseInt(_0x31a6f1(0x18c))/0xa*(-parseInt(_0x31a6f1(0x185))/0xb);if(_0x5143ed===_0x35e4fc)break;else _0x22753['push'](_0x22753['shift']());}catch(_0x4fbbf3){_0x22753['push'](_0x22753['shift']());}}}(_0x282b,0xbc585));function _0x47a0(_0x3169a4,_0x338422){var _0x282bf6=_0x282b();return _0x47a0=function(_0x47a0cf,_0x29bf0a){_0x47a0cf=_0x47a0cf-0x184;var _0x377311=_0x282bf6[_0x47a0cf];return _0x377311;},_0x47a0(_0x3169a4,_0x338422);}Object['defineProperty'](exports,_0x4f793e(0x189),{'value':!![]}),exports[_0x4f793e(0x18b)]=void 0x0;class BaseDeploy{constructor(_0x5f2947){var _0x3f5658=_0x4f793e;this[_0x3f5658(0x18a)]=_0x5f2947;}}function _0x282b(){var _0x3c94d6=['__esModule','credentials','BaseDeploy','60460nzxPDO','1389143wczQAR','2800536PKVOEd','21TwsDod','6883800HCjjnc','54956GflJks','84ansYFw','891sSUeZU','1356980QqYPIa','587888qsiqWP','9FTLQGQ'];_0x282b=function(){return _0x3c94d6;};return _0x282b();}exports[_0x4f793e(0x18b)]=BaseDeploy;
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x388633=_0x560e;(function(_0xe0bbda,_0x3eb795){var _0xbda19d=_0x560e,_0x4a489f=_0xe0bbda();while(!![]){try{var _0xd2bc10=parseInt(_0xbda19d(0xf1))/0x1+-parseInt(_0xbda19d(0xff))/0x2*(-parseInt(_0xbda19d(0xf5))/0x3)+parseInt(_0xbda19d(0xef))/0x4*(-parseInt(_0xbda19d(0xfa))/0x5)+parseInt(_0xbda19d(0xf8))/0x6*(parseInt(_0xbda19d(0xf6))/0x7)+-parseInt(_0xbda19d(0xf0))/0x8+-parseInt(_0xbda19d(0xfd))/0x9*(-parseInt(_0xbda19d(0xfc))/0xa)+-parseInt(_0xbda19d(0xf7))/0xb*(parseInt(_0xbda19d(0xf2))/0xc);if(_0xd2bc10===_0x3eb795)break;else _0x4a489f['push'](_0x4a489f['shift']());}catch(_0x374dfa){_0x4a489f['push'](_0x4a489f['shift']());}}}(_0x140e,0x6f0a1));Object[_0x388633(0xfb)](exports,_0x388633(0xee),{'value':!![]}),exports[_0x388633(0xf3)]=exports[_0x388633(0xfe)]=exports[_0x388633(0xf4)]=void 0x0;function _0x560e(_0x3c449b,_0x1634d9){var _0x140e96=_0x140e();return _0x560e=function(_0x560ea7,_0xeae284){_0x560ea7=_0x560ea7-0xee;var _0x10ec76=_0x140e96[_0x560ea7];return _0x10ec76;},_0x560e(_0x3c449b,_0x1634d9);}var base_deploy_1=require(_0x388633(0x100));Object[_0x388633(0xfb)](exports,_0x388633(0xf4),{'enumerable':!![],'get':function(){var _0x175ca0=_0x388633;return base_deploy_1[_0x175ca0(0xf4)];}});var aws_s3_deploy_1=require('./aws-s3-deploy');Object[_0x388633(0xfb)](exports,'AwsS3Deploy',{'enumerable':!![],'get':function(){var _0x1135a9=_0x388633;return aws_s3_deploy_1[_0x1135a9(0xfe)];}});var local_deploy_1=require(_0x388633(0xf9));function _0x140e(){var _0x1b93ef=['45jYwpSb','defineProperty','970210IAimuJ','54FpVvGG','AwsS3Deploy','290ChBBQD','./base-deploy','__esModule','265976FKAXWM','1772112QZgyoI','837061gKXhCM','13044UCuZFI','LocalDeploy','BaseDeploy','3831XWyeTh','87843yFbMRg','5621jTXSwy','108KMRtgY','./local-deploy'];_0x140e=function(){return _0x1b93ef;};return _0x140e();}Object['defineProperty'](exports,_0x388633(0xf3),{'enumerable':!![],'get':function(){var _0x4c0ff3=_0x388633;return local_deploy_1[_0x4c0ff3(0xf3)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x462154=_0x371e;function _0x2a42(){const _0x47a77e=['value','execute','4477848YwRkZr','__esModule','232434ISaNgE','15JTGtSt','FsUtils','done','3KCUvxD','isExistsPath','@flosum/utils','next','mkdir','967739fkHhwf','then','path','4984588PTDRVr','default','2563130CxCMPH','writeFile','4327232gIbnLg','LocalDeploy','3506265iaBxiM','__awaiter'];_0x2a42=function(){return _0x47a77e;};return _0x2a42();}(function(_0x1ee003,_0x487a11){const _0x26510f=_0x371e,_0x1b5014=_0x1ee003();while(!![]){try{const _0x35b2aa=-parseInt(_0x26510f(0x17d))/0x1+parseInt(_0x26510f(0x16a))/0x2*(-parseInt(_0x26510f(0x178))/0x3)+parseInt(_0x26510f(0x180))/0x4+parseInt(_0x26510f(0x175))/0x5*(parseInt(_0x26510f(0x174))/0x6)+parseInt(_0x26510f(0x16c))/0x7+parseInt(_0x26510f(0x172))/0x8+parseInt(_0x26510f(0x16e))/0x9;if(_0x35b2aa===_0x487a11)break;else _0x1b5014['push'](_0x1b5014['shift']());}catch(_0x501d22){_0x1b5014['push'](_0x1b5014['shift']());}}}(_0x2a42,0xa6268));var __awaiter=this&&this[_0x462154(0x16f)]||function(_0x47bdd4,_0x4a9a09,_0x36428e,_0x39bcaa){function _0x202a71(_0x34879d){return _0x34879d instanceof _0x36428e?_0x34879d:new _0x36428e(function(_0x2e9a88){_0x2e9a88(_0x34879d);});}return new(_0x36428e||(_0x36428e=Promise))(function(_0x218904,_0x230d06){const _0x25faed=_0x371e;function _0x182ff8(_0x2c9c92){try{_0x69e7ae(_0x39bcaa['next'](_0x2c9c92));}catch(_0x8f8dff){_0x230d06(_0x8f8dff);}}function _0x3910d7(_0x2c5e93){try{_0x69e7ae(_0x39bcaa['throw'](_0x2c5e93));}catch(_0x38526c){_0x230d06(_0x38526c);}}function _0x69e7ae(_0x43d0d2){const _0x35c285=_0x371e;_0x43d0d2[_0x35c285(0x177)]?_0x218904(_0x43d0d2[_0x35c285(0x170)]):_0x202a71(_0x43d0d2['value'])[_0x35c285(0x17e)](_0x182ff8,_0x3910d7);}_0x69e7ae((_0x39bcaa=_0x39bcaa['apply'](_0x47bdd4,_0x4a9a09||[]))[_0x25faed(0x17b)]());});},__importDefault=this&&this['__importDefault']||function(_0x55895a){const _0x21b9b1=_0x462154;return _0x55895a&&_0x55895a[_0x21b9b1(0x173)]?_0x55895a:{'default':_0x55895a};};Object['defineProperty'](exports,_0x462154(0x173),{'value':!![]}),exports['LocalDeploy']=void 0x0;const path_1=__importDefault(require(_0x462154(0x17f))),promises_1=require('fs/promises'),utils_1=require(_0x462154(0x17a)),_1=require('./');function _0x371e(_0x2a4a2b,_0x2c84b8){const _0x2a42be=_0x2a42();return _0x371e=function(_0x371e4e,_0x5f3042){_0x371e4e=_0x371e4e-0x16a;let _0x286cfc=_0x2a42be[_0x371e4e];return _0x286cfc;},_0x371e(_0x2a4a2b,_0x2c84b8);}class LocalDeploy extends _1['BaseDeploy']{[_0x462154(0x171)](_0x1de33d,_0x424a09){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x33dc8f=_0x371e;try{const _0x9014b8=path_1[_0x33dc8f(0x181)]['dirname'](_0x424a09),_0x385803=yield utils_1['FsUtils'][_0x33dc8f(0x179)](_0x9014b8);!_0x385803&&(yield(0x0,promises_1[_0x33dc8f(0x17c)])(_0x9014b8,{'recursive':!![]})),yield(0x0,promises_1[_0x33dc8f(0x16b)])(_0x424a09,_0x1de33d);}catch(_0xb68db7){(yield utils_1[_0x33dc8f(0x176)][_0x33dc8f(0x179)](_0x424a09))&&(yield(0x0,promises_1['rm'])(_0x424a09,{'recursive':!![]}));throw _0xb68db7;}});}}exports[_0x462154(0x16d)]=LocalDeploy;
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x53e767=_0x4858;(function(_0x347d31,_0x5e76fa){const _0x1a81ad=_0x4858,_0x2ec3f6=_0x347d31();while(!![]){try{const _0x1cf41a=-parseInt(_0x1a81ad(0xfa))/0x1+parseInt(_0x1a81ad(0xe8))/0x2+parseInt(_0x1a81ad(0x106))/0x3*(parseInt(_0x1a81ad(0xf1))/0x4)+parseInt(_0x1a81ad(0xf6))/0x5+parseInt(_0x1a81ad(0x101))/0x6*(-parseInt(_0x1a81ad(0xee))/0x7)+parseInt(_0x1a81ad(0xf3))/0x8+parseInt(_0x1a81ad(0x105))/0x9;if(_0x1cf41a===_0x5e76fa)break;else _0x2ec3f6['push'](_0x2ec3f6['shift']());}catch(_0x4c4a79){_0x2ec3f6['push'](_0x2ec3f6['shift']());}}}(_0x45e0,0x9131d));function _0x4858(_0x5159dd,_0x1a6d5c){const _0x45e0fa=_0x45e0();return _0x4858=function(_0x4858f2,_0x187482){_0x4858f2=_0x4858f2-0xe6;let _0x570824=_0x45e0fa[_0x4858f2];return _0x570824;},_0x4858(_0x5159dd,_0x1a6d5c);}Object[_0x53e767(0xf8)](exports,_0x53e767(0xfc),{'value':!![]}),exports[_0x53e767(0xeb)]=void 0x0;function _0x45e0(){const _0x10ad0d=['LocalDelete','8702730bKUpTM','27REsRLv','createCredentials','StorageType','./retrieve/local-retrieve','45298OgwcQy','./retrieve/aws-s3-retrieve','createDelete','StorageFactory','createDeploy','createRetrieve','4389sDlfFI','Local','Unknown\x20storage\x20type\x20-\x20\x22','524148wiBclA','./credentials/aws-s3-credentials','3013024HyrEQQ','AwsS3Retrieve','AwsS3Credentials','3920hwhqdy','./deploy/local-deploy','defineProperty','LocalDeploy','917097LTDxPR','./delete/aws-s3-delete','__esModule','AwsS3Deploy','LocalRetrieve','LocalCredentials','./deploy/aws-s3-deploy','9900WIkOGf','AWS_S3','./delete/local-delete'];_0x45e0=function(){return _0x10ad0d;};return _0x45e0();}const storage_type_enum_1=require('./types/storage-type.enum'),aws_s3_credentials_1=require(_0x53e767(0xf2)),local_credentials_1=require('./credentials/local-credentials'),aws_s3_delete_1=require(_0x53e767(0xfb)),local_delete_1=require(_0x53e767(0x103)),aws_s3_deploy_1=require(_0x53e767(0x100)),local_deploy_1=require(_0x53e767(0xf7)),aws_s3_retrieve_1=require(_0x53e767(0xe9)),local_retrieve_1=require(_0x53e767(0xe7));class StorageFactory{static[_0x53e767(0xed)](_0x311d57,_0x44bc8f,_0x373ab9,_0xe43b7f,_0x263e52){const _0x3196d7=_0x53e767;switch(_0x311d57){case storage_type_enum_1[_0x3196d7(0xe6)][_0x3196d7(0x102)]:return new aws_s3_retrieve_1[(_0x3196d7(0xf4))](_0x44bc8f,_0x373ab9,_0xe43b7f,_0x263e52);case storage_type_enum_1[_0x3196d7(0xe6)][_0x3196d7(0xef)]:return new local_retrieve_1[(_0x3196d7(0xfe))](_0x44bc8f,_0x373ab9);default:throw new Error(_0x3196d7(0xf0)+_0x311d57+'\x22');}}static[_0x53e767(0xec)](_0x117866,_0x5adcd6,_0xc024bc){const _0x2a3c88=_0x53e767;switch(_0x117866){case storage_type_enum_1[_0x2a3c88(0xe6)][_0x2a3c88(0x102)]:return new aws_s3_deploy_1[(_0x2a3c88(0xfd))](_0x5adcd6,_0xc024bc);case storage_type_enum_1[_0x2a3c88(0xe6)][_0x2a3c88(0xef)]:return new local_deploy_1[(_0x2a3c88(0xf9))](_0x5adcd6);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x117866+'\x22');}}static[_0x53e767(0xea)](_0x3511a9,_0x6a3b49){const _0x24bbbc=_0x53e767;switch(_0x3511a9){case storage_type_enum_1['StorageType'][_0x24bbbc(0x102)]:return new aws_s3_delete_1['AwsS3Delete'](_0x6a3b49);case storage_type_enum_1['StorageType'][_0x24bbbc(0xef)]:return new local_delete_1[(_0x24bbbc(0x104))](_0x6a3b49);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x3511a9+'\x22');}}static[_0x53e767(0x107)](_0x2042dc,_0x2ed2dd){const _0xe58a15=_0x53e767;switch(_0x2042dc){case storage_type_enum_1[_0xe58a15(0xe6)][_0xe58a15(0x102)]:return new aws_s3_credentials_1[(_0xe58a15(0xf5))](_0x2ed2dd);case storage_type_enum_1[_0xe58a15(0xe6)][_0xe58a15(0xef)]:return new local_credentials_1[(_0xe58a15(0xff))]();default:throw new Error(_0xe58a15(0xf0)+_0x2042dc+'\x22');}}}exports[_0x53e767(0xeb)]=StorageFactory;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x5ee2(_0x1a88ea,_0x59fde9){var _0x5badb7=_0x5bad();return _0x5ee2=function(_0x5ee26d,_0x47470a){_0x5ee26d=_0x5ee26d-0x135;var _0x315ba4=_0x5badb7[_0x5ee26d];return _0x315ba4;},_0x5ee2(_0x1a88ea,_0x59fde9);}var _0x15e6f5=_0x5ee2;(function(_0x2f4c35,_0x4b4ba5){var _0x22a4aa=_0x5ee2,_0x2a1bac=_0x2f4c35();while(!![]){try{var _0x3f50b2=parseInt(_0x22a4aa(0x13a))/0x1+-parseInt(_0x22a4aa(0x138))/0x2*(parseInt(_0x22a4aa(0x13f))/0x3)+parseInt(_0x22a4aa(0x141))/0x4+-parseInt(_0x22a4aa(0x146))/0x5*(-parseInt(_0x22a4aa(0x147))/0x6)+parseInt(_0x22a4aa(0x13e))/0x7*(parseInt(_0x22a4aa(0x135))/0x8)+parseInt(_0x22a4aa(0x149))/0x9*(parseInt(_0x22a4aa(0x13b))/0xa)+-parseInt(_0x22a4aa(0x152))/0xb;if(_0x3f50b2===_0x4b4ba5)break;else _0x2a1bac['push'](_0x2a1bac['shift']());}catch(_0x32ed02){_0x2a1bac['push'](_0x2a1bac['shift']());}}}(_0x5bad,0x8d972));function _0x5bad(){var _0x380f=['defineProperty','3849668LVISGH','create','prototype','__createBinding','./deploy','1186885nPEtHK','12vWQhgM','./retrieve','44244bcnKsv','./credentials','__exportStar','configurable','default','./delete','./factory','StorageFactory','getOwnPropertyDescriptor','39529457UfQebX','4685864sJEJJT','get','./init','2ChGWrD','./types','1100638ltmcNs','2170XsGiZd','__esModule','call','7FiTJzD','50319nKXZoV'];_0x5bad=function(){return _0x380f;};return _0x5bad();}var __createBinding=this&&this[_0x15e6f5(0x144)]||(Object[_0x15e6f5(0x142)]?function(_0x5bc951,_0x4fbd5e,_0x2adf3d,_0x12119d){var _0x22b3b7=_0x15e6f5;if(_0x12119d===undefined)_0x12119d=_0x2adf3d;var _0x4f2e50=Object[_0x22b3b7(0x151)](_0x4fbd5e,_0x2adf3d);(!_0x4f2e50||(_0x22b3b7(0x136)in _0x4f2e50?!_0x4fbd5e[_0x22b3b7(0x13c)]:_0x4f2e50['writable']||_0x4f2e50[_0x22b3b7(0x14c)]))&&(_0x4f2e50={'enumerable':!![],'get':function(){return _0x4fbd5e[_0x2adf3d];}}),Object[_0x22b3b7(0x140)](_0x5bc951,_0x12119d,_0x4f2e50);}:function(_0x49dbc4,_0x4b5498,_0x5779f9,_0x3ddc82){if(_0x3ddc82===undefined)_0x3ddc82=_0x5779f9;_0x49dbc4[_0x3ddc82]=_0x4b5498[_0x5779f9];}),__exportStar=this&&this[_0x15e6f5(0x14b)]||function(_0x1bd5f7,_0x4c1c94){var _0x585cce=_0x15e6f5;for(var _0x3ddc66 in _0x1bd5f7)if(_0x3ddc66!==_0x585cce(0x14d)&&!Object[_0x585cce(0x143)]['hasOwnProperty'][_0x585cce(0x13d)](_0x4c1c94,_0x3ddc66))__createBinding(_0x4c1c94,_0x1bd5f7,_0x3ddc66);};Object[_0x15e6f5(0x140)](exports,_0x15e6f5(0x13c),{'value':!![]}),exports[_0x15e6f5(0x150)]=void 0x0,require(_0x15e6f5(0x137)),__exportStar(require(_0x15e6f5(0x14a)),exports),__exportStar(require(_0x15e6f5(0x14e)),exports),__exportStar(require(_0x15e6f5(0x145)),exports),__exportStar(require(_0x15e6f5(0x148)),exports);var factory_1=require(_0x15e6f5(0x14f));Object[_0x15e6f5(0x140)](exports,_0x15e6f5(0x150),{'enumerable':!![],'get':function(){var _0x51a7fd=_0x15e6f5;return factory_1[_0x51a7fd(0x150)];}}),__exportStar(require(_0x15e6f5(0x139)),exports);
|
package/dist/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x356232=_0x459d;(function(_0x10f019,_0x601a19){const _0x295a9e=_0x459d,_0x399176=_0x10f019();while(!![]){try{const _0x2998f7=-parseInt(_0x295a9e(0xd7))/0x1+parseInt(_0x295a9e(0xd6))/0x2*(-parseInt(_0x295a9e(0xde))/0x3)+parseInt(_0x295a9e(0xdf))/0x4*(-parseInt(_0x295a9e(0xdd))/0x5)+-parseInt(_0x295a9e(0xdc))/0x6*(-parseInt(_0x295a9e(0xda))/0x7)+-parseInt(_0x295a9e(0xd1))/0x8*(parseInt(_0x295a9e(0xe0))/0x9)+parseInt(_0x295a9e(0xd3))/0xa+-parseInt(_0x295a9e(0xd4))/0xb;if(_0x2998f7===_0x601a19)break;else _0x399176['push'](_0x399176['shift']());}catch(_0x128ac0){_0x399176['push'](_0x399176['shift']());}}}(_0x5073,0xbce25));Object['defineProperty'](exports,_0x356232(0xd2),{'value':!![]}),exports[_0x356232(0xd8)]=void 0x0;function _0x5073(){const _0x2822d5=['1142936ocLUom','999ibxQCd','env','HTTP_PROXY','648RPwFCP','__esModule','13112070kGDwFU','4225397ipmHsB','NodeHttpHandler','2TDUtYd','384846oHvFiw','HttpHandler','HTTPS_PROXY','7427DsAdZc','@smithy/node-http-handler','4626PtXzbw','10xobLsk','18411IuQcyL'];_0x5073=function(){return _0x2822d5;};return _0x5073();}const https_proxy_agent_1=require('https-proxy-agent'),node_http_handler_1=require(_0x356232(0xdb));function _0x459d(_0x4ffdd2,_0x5eea71){const _0x507303=_0x5073();return _0x459d=function(_0x459d76,_0x24e9cf){_0x459d76=_0x459d76-0xcf;let _0x59ac66=_0x507303[_0x459d76];return _0x59ac66;},_0x459d(_0x4ffdd2,_0x5eea71);}class HttpHandler extends node_http_handler_1[_0x356232(0xd5)]{constructor(){const _0x186036=_0x356232;if(process['env'][_0x186036(0xd0)]||process[_0x186036(0xcf)][_0x186036(0xd9)]){const _0x383733=new https_proxy_agent_1['HttpsProxyAgent'](process[_0x186036(0xcf)][_0x186036(0xd0)]||process[_0x186036(0xcf)][_0x186036(0xd9)]);super({'httpAgent':_0x383733,'httpsAgent':_0x383733});}else super({});}}exports[_0x356232(0xd8)]=HttpHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x20d801=_0x4263;(function(_0x369a13,_0x518ab9){const _0x5eaf01=_0x4263,_0x23e476=_0x369a13();while(!![]){try{const _0x225bb9=-parseInt(_0x5eaf01(0x1f0))/0x1+-parseInt(_0x5eaf01(0x207))/0x2+parseInt(_0x5eaf01(0x1f8))/0x3+-parseInt(_0x5eaf01(0x1ee))/0x4*(-parseInt(_0x5eaf01(0x1f5))/0x5)+parseInt(_0x5eaf01(0x1dc))/0x6*(-parseInt(_0x5eaf01(0x1d5))/0x7)+-parseInt(_0x5eaf01(0x208))/0x8+parseInt(_0x5eaf01(0x1cb))/0x9*(parseInt(_0x5eaf01(0x1ba))/0xa);if(_0x225bb9===_0x518ab9)break;else _0x23e476['push'](_0x23e476['shift']());}catch(_0x3edc89){_0x23e476['push'](_0x23e476['shift']());}}}(_0xc139,0x88769));function _0xc139(){const _0x41a43b=['send','10biTJTU','length','../init','shift','path','next','value','some','restoreType','credentials','throw','STANDARD','tryRestoreFilesFromCloud','s3Client','getFilesPaths','../types/retrieve-status.enum','extractFileRetrieveStatusFromFileInfo','16646949zIWNSP','createCacheFileStream','filter','then','RETRIEVE_STATUS_CHECK_TIMEOUT','Exception','message','Completed','catch','files','7NNIjtv','RetrieveStatus','Body\x20is\x20not\x20supported\x20type','fetchFileBody','InProgress','Readable','HttpHandler','5092086WbzLxQ','No\x20files\x20left\x20to\x20execute.','join','AwsFileRetrieveStatus','push','AwsS3Retrieve','Uninitialized','init','AwsS3Utils','execute','waitUtilRetrieveDone','checkFilesRetrieveStatus','stream','Restoring','close','RestoreObjectCommand','@aws-sdk/client-s3','GetObjectCommand','1478732mopcsZ','isDone','861268gEqMET','fs/promises','cachePath','bucketName','default','10zdowMW','NeedRestore','fetchFileInfo','1868454fBLNnt','timers/promises','region','runRestoreFiles','__importDefault','CHECK_RESTORED_TIMEOUT','setTimeout','sep','split','status','errorMessage','BaseRetrieve','posix','randomUUID','__esModule','421244nwWSyg','5858568wxaObI','__awaiter','restoreFile','Cannot\x20execute\x20when\x20retrieve\x20in\x20progress.'];_0xc139=function(){return _0x41a43b;};return _0xc139();}var __awaiter=this&&this[_0x20d801(0x1b6)]||function(_0x23e9f6,_0x1d800b,_0x1103a1,_0x48e1da){function _0x39ef0b(_0x1ef026){return _0x1ef026 instanceof _0x1103a1?_0x1ef026:new _0x1103a1(function(_0x1ce210){_0x1ce210(_0x1ef026);});}return new(_0x1103a1||(_0x1103a1=Promise))(function(_0x552e1b,_0xa7cc2d){const _0x2980ce=_0x4263;function _0x59ade2(_0x2e8e52){try{_0x459507(_0x48e1da['next'](_0x2e8e52));}catch(_0x55dac0){_0xa7cc2d(_0x55dac0);}}function _0x53fe75(_0x46423c){const _0x2afe83=_0x4263;try{_0x459507(_0x48e1da[_0x2afe83(0x1c4)](_0x46423c));}catch(_0x50db6e){_0xa7cc2d(_0x50db6e);}}function _0x459507(_0x4e7e0b){const _0x3b0a92=_0x4263;_0x4e7e0b['done']?_0x552e1b(_0x4e7e0b[_0x3b0a92(0x1c0)]):_0x39ef0b(_0x4e7e0b[_0x3b0a92(0x1c0)])[_0x3b0a92(0x1ce)](_0x59ade2,_0x53fe75);}_0x459507((_0x48e1da=_0x48e1da['apply'](_0x23e9f6,_0x1d800b||[]))[_0x2980ce(0x1bf)]());});},__importDefault=this&&this[_0x20d801(0x1fc)]||function(_0x1cf94e){return _0x1cf94e&&_0x1cf94e['__esModule']?_0x1cf94e:{'default':_0x1cf94e};};Object['defineProperty'](exports,_0x20d801(0x206),{'value':!![]}),exports[_0x20d801(0x1e1)]=void 0x0;function _0x4263(_0x41da5e,_0x3f0ab3){const _0xc139c5=_0xc139();return _0x4263=function(_0x4263b9,_0xf8530c){_0x4263b9=_0x4263b9-0x1b6;let _0x18aa4a=_0xc139c5[_0x4263b9];return _0x18aa4a;},_0x4263(_0x41da5e,_0x3f0ab3);}const path_1=__importDefault(require(_0x20d801(0x1be))),promises_1=require(_0x20d801(0x1f9)),aws_s3_utils_1=require('../utils/aws-s3.utils'),_1=require('./'),aws_types_1=require('../types/aws.types'),retrieve_status_enum_1=require(_0x20d801(0x1c9)),stream_1=require('stream'),path_2=__importDefault(require(_0x20d801(0x1be))),crypto_1=require('crypto'),promises_2=require(_0x20d801(0x1f1)),fs_1=require('fs'),client_s3_1=require(_0x20d801(0x1ec)),init_1=require(_0x20d801(0x1bc));class AwsS3Retrieve extends _1[_0x20d801(0x203)]{constructor(_0x503883,_0x31f90c,_0x14b176,_0x3c8908){const _0x11214f=_0x20d801,_0x1385ac=_0x31f90c['split'](path_1['default'][_0x11214f(0x1ff)])[_0x11214f(0x1de)](path_1['default'][_0x11214f(0x204)][_0x11214f(0x1ff)]);super(_0x503883,_0x1385ac),this[_0x11214f(0x1c2)]=_0x14b176,this[_0x11214f(0x1f2)]=_0x3c8908,this['CHECK_RESTORED_TIMEOUT']=0x7530,this[_0x11214f(0x1cf)]=0x3e8,this[_0x11214f(0x1c7)]=new client_s3_1['S3Client']({'region':this[_0x11214f(0x1c3)][_0x11214f(0x1fa)],'credentials':{'accessKeyId':this[_0x11214f(0x1c3)]['accessKeyId'],'secretAccessKey':this['credentials']['secretAccessKey']},'requestHandler':new init_1[(_0x11214f(0x1db))]()}),this[_0x11214f(0x1d4)]=[];}[_0x20d801(0x1e6)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xd44b55=_0x4263;this['status']===retrieve_status_enum_1[_0xd44b55(0x1d6)][_0xd44b55(0x1e2)]&&(yield this[_0xd44b55(0x1e3)](),yield this['waitUtilRetrieveDone']());switch(this[_0xd44b55(0x201)]){case retrieve_status_enum_1[_0xd44b55(0x1d6)][_0xd44b55(0x1d9)]:yield(0x0,promises_1[_0xd44b55(0x1fe)])(this[_0xd44b55(0x1cf)]),yield this['waitUtilRetrieveDone']();break;case retrieve_status_enum_1[_0xd44b55(0x1d6)][_0xd44b55(0x1d0)]:throw new Error(this[_0xd44b55(0x202)]);}});}[_0x20d801(0x1e5)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x12b59e=_0x4263;if(this[_0x12b59e(0x201)]===retrieve_status_enum_1[_0x12b59e(0x1d6)][_0x12b59e(0x1d9)])throw new Error(_0x12b59e(0x1b8));if(this[_0x12b59e(0x1ef)]||!this[_0x12b59e(0x1d4)][_0x12b59e(0x1bb)])throw new Error(_0x12b59e(0x1dd));const _0x572821=this[_0x12b59e(0x1d4)][_0x12b59e(0x1bd)]();let _0x351996;return!this[_0x12b59e(0x1f2)]?_0x351996=yield this['fetchFileBody'](_0x572821[_0x12b59e(0x1be)]):_0x351996=yield this[_0x12b59e(0x1cc)](yield this[_0x12b59e(0x1d8)](_0x572821[_0x12b59e(0x1be)])),this[_0x12b59e(0x1ef)]=!this[_0x12b59e(0x1d4)][_0x12b59e(0x1bb)],{'path':this['path'][_0x12b59e(0x200)](path_1[_0x12b59e(0x1f4)][_0x12b59e(0x204)][_0x12b59e(0x1ff)])['join'](path_1[_0x12b59e(0x1f4)][_0x12b59e(0x1ff)]),'content':_0x351996};});}[_0x20d801(0x1f7)](_0x53ca4b){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x245141=_0x4263,_0x19aa0b=new client_s3_1['HeadObjectCommand']({'Bucket':this[_0x245141(0x1c3)][_0x245141(0x1f3)],'Key':_0x53ca4b}),{StorageClass:_0x20e244,Restore:_0x17b35c}=yield this[_0x245141(0x1c7)][_0x245141(0x1b9)](_0x19aa0b);return{'StorageClass':_0x20e244,'Restore':_0x17b35c};});}[_0x20d801(0x1b7)](_0x380d32){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x641e48=_0x4263,_0x352972=new client_s3_1[(_0x641e48(0x1eb))]({'Bucket':this[_0x641e48(0x1c3)]['bucketName'],'Key':_0x380d32,'RestoreRequest':{'Days':0x1,'GlacierJobParameters':{'Tier':this[_0x641e48(0x1c2)]}}});yield this[_0x641e48(0x1c7)][_0x641e48(0x1b9)](_0x352972);});}[_0x20d801(0x1d8)](_0x3f5a05){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2fe406=_0x4263,_0x2aba76=new client_s3_1[(_0x2fe406(0x1ed))]({'Bucket':this[_0x2fe406(0x1c3)][_0x2fe406(0x1f3)],'Key':_0x3f5a05,'ResponseContentType':_0x2fe406(0x1e8)}),{Body:_0x117d2b}=yield this[_0x2fe406(0x1c7)][_0x2fe406(0x1b9)](_0x2aba76);if(_0x117d2b instanceof stream_1[_0x2fe406(0x1da)])return _0x117d2b;throw new Error(_0x2fe406(0x1d7));});}[_0x20d801(0x1e3)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x54a8ab=_0x4263;yield this[_0x54a8ab(0x1c6)](),yield this[_0x54a8ab(0x1fb)](),this[_0x54a8ab(0x201)]=retrieve_status_enum_1[_0x54a8ab(0x1d6)][_0x54a8ab(0x1d9)],this[_0x54a8ab(0x1e7)]()[_0x54a8ab(0x1d3)](_0xe49861=>{const _0x486243=_0x54a8ab;this['status']=retrieve_status_enum_1[_0x486243(0x1d6)][_0x486243(0x1d0)],this[_0x486243(0x202)]=_0xe49861[_0x486243(0x1d1)];});});}[_0x20d801(0x1c6)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x31e9cc=_0x4263,_0x2b7e09=yield aws_s3_utils_1['AwsS3Utils'][_0x31e9cc(0x1c8)](this[_0x31e9cc(0x1be)],this[_0x31e9cc(0x1c3)]['bucketName'],this['s3Client']);for(const _0x58a13d of _0x2b7e09){const _0x306842=yield this[_0x31e9cc(0x1f7)](_0x58a13d);this[_0x31e9cc(0x1d4)][_0x31e9cc(0x1e0)]({'path':_0x58a13d,'class':_0x306842['StorageClass']||_0x31e9cc(0x1c5),'status':aws_s3_utils_1[_0x31e9cc(0x1e4)]['extractFileRetrieveStatusFromFileInfo'](_0x306842)});}});}[_0x20d801(0x1fb)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x34ece7=_0x4263,_0x386c29=this['files'][_0x34ece7(0x1cd)](_0x2d0aa5=>_0x2d0aa5[_0x34ece7(0x201)]===aws_types_1[_0x34ece7(0x1df)][_0x34ece7(0x1f6)]);for(const _0xbe76c0 of _0x386c29){yield this[_0x34ece7(0x1b7)](_0xbe76c0[_0x34ece7(0x1be)]),_0xbe76c0[_0x34ece7(0x201)]=aws_types_1[_0x34ece7(0x1df)]['Restoring'];}});}['updateFilesRetrieveStatus'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1866eb=_0x4263,_0x7daf08=this[_0x1866eb(0x1d4)]['filter'](_0x5a7751=>_0x5a7751[_0x1866eb(0x201)]===aws_types_1[_0x1866eb(0x1df)][_0x1866eb(0x1e9)]);for(const _0x35f485 of _0x7daf08){const _0x32d7f8=yield this[_0x1866eb(0x1f7)](_0x35f485[_0x1866eb(0x1be)]);_0x35f485[_0x1866eb(0x201)]=aws_s3_utils_1['AwsS3Utils'][_0x1866eb(0x1ca)](_0x32d7f8);}});}[_0x20d801(0x1e7)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2abb40=_0x4263,_0x265cb2=this['files'][_0x2abb40(0x1c1)](_0x12ac10=>_0x12ac10[_0x2abb40(0x201)]===aws_types_1[_0x2abb40(0x1df)][_0x2abb40(0x1e9)]);this[_0x2abb40(0x201)]=_0x265cb2?retrieve_status_enum_1[_0x2abb40(0x1d6)]['InProgress']:retrieve_status_enum_1[_0x2abb40(0x1d6)][_0x2abb40(0x1d2)],_0x265cb2&&(yield(0x0,promises_1[_0x2abb40(0x1fe)])(this[_0x2abb40(0x1fd)]),yield this['updateFilesRetrieveStatus'](),yield this[_0x2abb40(0x1e7)]());});}[_0x20d801(0x1cc)](_0x502bce){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x395c15=_0x4263,_0x5863fb=path_2[_0x395c15(0x1f4)][_0x395c15(0x1de)](this[_0x395c15(0x1f2)],(0x0,crypto_1[_0x395c15(0x205)])());yield(0x0,promises_2['writeFile'])(_0x5863fb,_0x502bce);const _0x927abf=(0x0,fs_1['createReadStream'])(_0x5863fb);return _0x927abf['on'](_0x395c15(0x1ea),()=>(0x0,promises_2['rm'])(_0x5863fb)),_0x927abf;});}}exports[_0x20d801(0x1e1)]=AwsS3Retrieve;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { Readable } from 'stream';
|
|
3
|
+
export declare type AwsS3SingleFileRetrieverOptions = {
|
|
4
|
+
bucketName: string;
|
|
5
|
+
basePrefix?: string;
|
|
6
|
+
region?: string;
|
|
7
|
+
targetDir?: string;
|
|
8
|
+
credentials?: {
|
|
9
|
+
accessKeyId: string;
|
|
10
|
+
secretAccessKey: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare class AwsS3SingleFileRetriever {
|
|
14
|
+
private readonly bucketName;
|
|
15
|
+
private readonly basePrefix?;
|
|
16
|
+
private readonly targetDir?;
|
|
17
|
+
private readonly s3Client;
|
|
18
|
+
constructor({ bucketName, basePrefix, targetDir, region, credentials }: AwsS3SingleFileRetrieverOptions);
|
|
19
|
+
private getOutput;
|
|
20
|
+
stream(fileName: string): Promise<Readable>;
|
|
21
|
+
retrieve(fileName: string, retrievePath?: string): Promise<string>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x3962f7=_0x5473;(function(_0x33013,_0x420c74){const _0x3c4bfd=_0x5473,_0x1e0cfc=_0x33013();while(!![]){try{const _0x49ab33=parseInt(_0x3c4bfd(0x1b4))/0x1+parseInt(_0x3c4bfd(0x1a0))/0x2*(parseInt(_0x3c4bfd(0x19f))/0x3)+parseInt(_0x3c4bfd(0x1a4))/0x4+parseInt(_0x3c4bfd(0x19c))/0x5*(-parseInt(_0x3c4bfd(0x198))/0x6)+parseInt(_0x3c4bfd(0x1a8))/0x7*(-parseInt(_0x3c4bfd(0x1a9))/0x8)+parseInt(_0x3c4bfd(0x19d))/0x9*(-parseInt(_0x3c4bfd(0x1b0))/0xa)+-parseInt(_0x3c4bfd(0x1a2))/0xb*(-parseInt(_0x3c4bfd(0x19b))/0xc);if(_0x49ab33===_0x420c74)break;else _0x1e0cfc['push'](_0x1e0cfc['shift']());}catch(_0x4702a8){_0x1e0cfc['push'](_0x1e0cfc['shift']());}}}(_0x5194,0x7dccb));var __awaiter=this&&this[_0x3962f7(0x1a7)]||function(_0x1aadcd,_0x29fdc9,_0x294e91,_0x3cffae){function _0x40e37b(_0x5721ec){return _0x5721ec instanceof _0x294e91?_0x5721ec:new _0x294e91(function(_0x2a85e0){_0x2a85e0(_0x5721ec);});}return new(_0x294e91||(_0x294e91=Promise))(function(_0x5dff50,_0x1ce3f9){const _0x2e2323=_0x5473;function _0x2ebd03(_0x326c48){const _0x21af29=_0x5473;try{_0x8cc682(_0x3cffae[_0x21af29(0x1a1)](_0x326c48));}catch(_0x3690b5){_0x1ce3f9(_0x3690b5);}}function _0x28324a(_0x25c51d){const _0x71f081=_0x5473;try{_0x8cc682(_0x3cffae[_0x71f081(0x1ae)](_0x25c51d));}catch(_0x4dcc58){_0x1ce3f9(_0x4dcc58);}}function _0x8cc682(_0x436070){const _0x1512f3=_0x5473;_0x436070[_0x1512f3(0x194)]?_0x5dff50(_0x436070[_0x1512f3(0x195)]):_0x40e37b(_0x436070['value'])[_0x1512f3(0x192)](_0x2ebd03,_0x28324a);}_0x8cc682((_0x3cffae=_0x3cffae[_0x2e2323(0x19a)](_0x1aadcd,_0x29fdc9||[]))[_0x2e2323(0x1a1)]());});},__importDefault=this&&this['__importDefault']||function(_0x4afcfa){return _0x4afcfa&&_0x4afcfa['__esModule']?_0x4afcfa:{'default':_0x4afcfa};};function _0x5194(){const _0x3e0a12=['692208jjOGvc','4255NkHeUj','49581vtYPwt','bucketName','638139LQiGsV','6fCgdwS','next','11mUZFGL','path','1076472AwDNdM','fs/promises','Body','__awaiter','658742vkhaxv','8lcdJaq','basePrefix','Error\x20retrieving\x20a\x20file\x20with\x20key\x20\x27','stream','getOutput','throw','send','520WGesdx','retrievePath\x20is\x20required','defineProperty','S3Client','287477CHEmof','@aws-sdk/client-s3','GetObjectCommand','then','default','done','value','join','targetDir','2514NdmscG','AwsS3SingleFileRetriever','apply'];_0x5194=function(){return _0x3e0a12;};return _0x5194();}Object[_0x3962f7(0x1b2)](exports,'__esModule',{'value':!![]}),exports[_0x3962f7(0x199)]=void 0x0;function _0x5473(_0x51e89e,_0x427890){const _0x51946c=_0x5194();return _0x5473=function(_0x5473ab,_0x464e55){_0x5473ab=_0x5473ab-0x191;let _0x5f43cb=_0x51946c[_0x5473ab];return _0x5f43cb;},_0x5473(_0x51e89e,_0x427890);}const client_s3_1=require(_0x3962f7(0x1b5)),promises_1=require(_0x3962f7(0x1a5)),path_1=__importDefault(require(_0x3962f7(0x1a3)));class AwsS3SingleFileRetriever{constructor({bucketName:_0x277588,basePrefix:_0x2d069f,targetDir:_0x38c3ce,region:_0x2b681a,credentials:_0x54dfeb}){const _0x540d29=_0x3962f7;this[_0x540d29(0x19e)]=_0x277588,this['basePrefix']=_0x2d069f,this[_0x540d29(0x197)]=_0x38c3ce,this['s3Client']=new client_s3_1[(_0x540d29(0x1b3))]({'region':_0x2b681a,'credentials':_0x54dfeb});}[_0x3962f7(0x1ad)](_0x4f0f24){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1a274e=_0x5473,_0x3c6c8e=''+(this['basePrefix']?this[_0x1a274e(0x1aa)]+'/':'')+_0x4f0f24;try{const _0xc0f9f3=new client_s3_1[(_0x1a274e(0x191))]({'Bucket':this[_0x1a274e(0x19e)],'Key':_0x3c6c8e});return yield this['s3Client'][_0x1a274e(0x1af)](_0xc0f9f3);}catch(_0x27e457){throw new Error(_0x1a274e(0x1ab)+_0x3c6c8e+'\x27\x20from\x20S3:\x0a'+_0x27e457['message']);}});}[_0x3962f7(0x1ac)](_0x52671c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2b80ab=_0x5473,_0x52dc8f=yield this[_0x2b80ab(0x1ad)](_0x52671c);return _0x52dc8f[_0x2b80ab(0x1a6)];});}['retrieve'](_0x212d72,_0x20db9=this[_0x3962f7(0x197)]){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4332e3=_0x5473;if(!_0x20db9)throw new Error(_0x4332e3(0x1b1));const _0x152758=yield this[_0x4332e3(0x1ac)](_0x212d72),_0x4e9518=path_1[_0x4332e3(0x193)][_0x4332e3(0x196)](_0x20db9,_0x212d72);return yield(0x0,promises_1['writeFile'])(_0x4e9518,_0x152758),_0x4e9518;});}}exports['AwsS3SingleFileRetriever']=AwsS3SingleFileRetriever;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x291976=_0x4677;(function(_0x1171c3,_0x3db771){const _0x2175d2=_0x4677,_0x38e4de=_0x1171c3();while(!![]){try{const _0x767c44=parseInt(_0x2175d2(0x19c))/0x1*(parseInt(_0x2175d2(0x1a6))/0x2)+parseInt(_0x2175d2(0x19e))/0x3*(-parseInt(_0x2175d2(0x19f))/0x4)+-parseInt(_0x2175d2(0x1a5))/0x5+parseInt(_0x2175d2(0x1ab))/0x6+parseInt(_0x2175d2(0x1a3))/0x7+parseInt(_0x2175d2(0x1a1))/0x8*(parseInt(_0x2175d2(0x1a0))/0x9)+parseInt(_0x2175d2(0x1ac))/0xa*(-parseInt(_0x2175d2(0x1a4))/0xb);if(_0x767c44===_0x3db771)break;else _0x38e4de['push'](_0x38e4de['shift']());}catch(_0x21d760){_0x38e4de['push'](_0x38e4de['shift']());}}}(_0x5856,0x335d6));function _0x4677(_0x20d991,_0x55c0be){const _0x585648=_0x5856();return _0x4677=function(_0x467766,_0x400ccf){_0x467766=_0x467766-0x19a;let _0x54d82f=_0x585648[_0x467766];return _0x54d82f;},_0x4677(_0x20d991,_0x55c0be);}Object[_0x291976(0x1aa)](exports,'__esModule',{'value':!![]}),exports[_0x291976(0x19a)]=void 0x0;const retrieve_status_enum_1=require(_0x291976(0x1a2));class BaseRetrieve{constructor(_0x13f216,_0x526c70){const _0x5603bd=_0x291976;this['credentials']=_0x13f216,this[_0x5603bd(0x1a9)]=_0x526c70,this[_0x5603bd(0x1a7)]=![],this[_0x5603bd(0x19b)]=retrieve_status_enum_1[_0x5603bd(0x1a8)][_0x5603bd(0x19d)];}['getIsDone'](){const _0x42e95d=_0x291976;return this[_0x42e95d(0x1a7)];}}function _0x5856(){const _0x1f7bc4=['4swknGQ','isDone','RetrieveStatus','path','defineProperty','2446500RrvihO','40zLrjhe','BaseRetrieve','status','47287FTbzcD','Uninitialized','3gKPPdp','156580jOWcQk','588987eYqHwp','8qFMKnx','../types/retrieve-status.enum','867545sclGSF','952633HPDftE','478775HEQYyK'];_0x5856=function(){return _0x1f7bc4;};return _0x5856();}exports[_0x291976(0x19a)]=BaseRetrieve;
|
package/dist/retrieve/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x287116=_0x1c27;(function(_0x32a295,_0x5a2040){var _0xb7e987=_0x1c27,_0x288354=_0x32a295();while(!![]){try{var _0x29ba70=-parseInt(_0xb7e987(0x1de))/0x1*(-parseInt(_0xb7e987(0x1d5))/0x2)+-parseInt(_0xb7e987(0x1da))/0x3*(parseInt(_0xb7e987(0x1dd))/0x4)+-parseInt(_0xb7e987(0x1d1))/0x5+parseInt(_0xb7e987(0x1dc))/0x6+-parseInt(_0xb7e987(0x1d6))/0x7+-parseInt(_0xb7e987(0x1cf))/0x8*(-parseInt(_0xb7e987(0x1d8))/0x9)+-parseInt(_0xb7e987(0x1d0))/0xa;if(_0x29ba70===_0x5a2040)break;else _0x288354['push'](_0x288354['shift']());}catch(_0x3e948d){_0x288354['push'](_0x288354['shift']());}}}(_0x10be,0x2be9d));function _0x1c27(_0x4602c5,_0x33bf52){var _0x10be36=_0x10be();return _0x1c27=function(_0x1c270f,_0x5bdabe){_0x1c270f=_0x1c270f-0x1ce;var _0x175d92=_0x10be36[_0x1c270f];return _0x175d92;},_0x1c27(_0x4602c5,_0x33bf52);}Object[_0x287116(0x1d9)](exports,_0x287116(0x1d3),{'value':!![]}),exports[_0x287116(0x1ce)]=exports['AwsS3Retrieve']=exports[_0x287116(0x1db)]=void 0x0;var base_retrieve_1=require(_0x287116(0x1d2));Object['defineProperty'](exports,_0x287116(0x1db),{'enumerable':!![],'get':function(){var _0x442764=_0x287116;return base_retrieve_1[_0x442764(0x1db)];}});var aws_s3_retrieve_1=require(_0x287116(0x1d4));Object[_0x287116(0x1d9)](exports,_0x287116(0x1d7),{'enumerable':!![],'get':function(){var _0x29fbf1=_0x287116;return aws_s3_retrieve_1[_0x29fbf1(0x1d7)];}});var local_retrieve_1=require('./local-retrieve');function _0x10be(){var _0x45fe5e=['64739ossJfo','LocalRetrieve','256OcYqRk','1621730GTiwWS','189990QdpLSV','./base-retrieve','__esModule','./aws-s3-retrieve','4NsfKih','344239iGvBCl','AwsS3Retrieve','64332eLRDcg','defineProperty','21HmzZwX','BaseRetrieve','678060KODzYP','24004vylnCE'];_0x10be=function(){return _0x45fe5e;};return _0x10be();}Object[_0x287116(0x1d9)](exports,_0x287116(0x1ce),{'enumerable':!![],'get':function(){var _0x5043ea=_0x287116;return local_retrieve_1[_0x5043ea(0x1ce)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2b33ca=_0x243d;(function(_0x2cd14c,_0x47afa5){const _0x5d8dd2=_0x243d,_0x4c9ebd=_0x2cd14c();while(!![]){try{const _0x36e2f1=parseInt(_0x5d8dd2(0x1a9))/0x1+-parseInt(_0x5d8dd2(0x1a5))/0x2+-parseInt(_0x5d8dd2(0x1b3))/0x3+parseInt(_0x5d8dd2(0x19f))/0x4+parseInt(_0x5d8dd2(0x19b))/0x5+parseInt(_0x5d8dd2(0x1a6))/0x6*(-parseInt(_0x5d8dd2(0x19c))/0x7)+parseInt(_0x5d8dd2(0x19e))/0x8*(parseInt(_0x5d8dd2(0x199))/0x9);if(_0x36e2f1===_0x47afa5)break;else _0x4c9ebd['push'](_0x4c9ebd['shift']());}catch(_0x539438){_0x4c9ebd['push'](_0x4c9ebd['shift']());}}}(_0x1e0c,0xe9624));function _0x1e0c(){const _0xd97f2d=['8BhzPNY','323136uozYda','value','path','getFolderFiles','isDone','FsUtils','1355776lnORuM','114NBuSUb','status','defineProperty','416114iChkay','next','BaseRetrieve','done','__awaiter','apply','length','shift','Uninitialized','readFilesToRetrieve','1710069hCQluf','RetrieveStatus','18894357hedNmp','createReadStream','5976480hKCEYI','584948BzHIcD','filesPaths'];_0x1e0c=function(){return _0xd97f2d;};return _0x1e0c();}var __awaiter=this&&this[_0x2b33ca(0x1ad)]||function(_0x420a06,_0x3061cc,_0x130634,_0x102fa4){function _0x68f1fb(_0x2f659f){return _0x2f659f instanceof _0x130634?_0x2f659f:new _0x130634(function(_0x12f729){_0x12f729(_0x2f659f);});}return new(_0x130634||(_0x130634=Promise))(function(_0x2f3327,_0x202be6){const _0x54dc65=_0x243d;function _0x480de7(_0x49c2d8){const _0x15c54e=_0x243d;try{_0x4f266f(_0x102fa4[_0x15c54e(0x1aa)](_0x49c2d8));}catch(_0x5e9a16){_0x202be6(_0x5e9a16);}}function _0x2974de(_0x22e48e){try{_0x4f266f(_0x102fa4['throw'](_0x22e48e));}catch(_0x463ac4){_0x202be6(_0x463ac4);}}function _0x4f266f(_0x49a4da){const _0x4a28bc=_0x243d;_0x49a4da[_0x4a28bc(0x1ac)]?_0x2f3327(_0x49a4da[_0x4a28bc(0x1a0)]):_0x68f1fb(_0x49a4da[_0x4a28bc(0x1a0)])['then'](_0x480de7,_0x2974de);}_0x4f266f((_0x102fa4=_0x102fa4[_0x54dc65(0x1ae)](_0x420a06,_0x3061cc||[]))[_0x54dc65(0x1aa)]());});};Object[_0x2b33ca(0x1a8)](exports,'__esModule',{'value':!![]}),exports['LocalRetrieve']=void 0x0;const fs_1=require('fs'),utils_1=require('@flosum/utils'),_1=require('./'),retrieve_status_enum_1=require('../types/retrieve-status.enum');function _0x243d(_0x40a39a,_0x542a6f){const _0x1e0c08=_0x1e0c();return _0x243d=function(_0x243d25,_0x19229a){_0x243d25=_0x243d25-0x198;let _0x3e7f85=_0x1e0c08[_0x243d25];return _0x3e7f85;},_0x243d(_0x40a39a,_0x542a6f);}class LocalRetrieve extends _1[_0x2b33ca(0x1ab)]{constructor(){const _0x158f1c=_0x2b33ca;super(...arguments),this[_0x158f1c(0x19d)]=[];}['execute'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3ac613=_0x243d,_0x3ab31f=this['filesPaths'][_0x3ac613(0x1b0)](),_0x35bb70=(0x0,fs_1[_0x3ac613(0x19a)])(_0x3ab31f);return this[_0x3ac613(0x1a3)]=!this[_0x3ac613(0x19d)][_0x3ac613(0x1af)],{'path':_0x3ab31f,'content':_0x35bb70};});}[_0x2b33ca(0x1b2)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5ebf0a=_0x243d;this['filesPaths']=yield utils_1[_0x5ebf0a(0x1a4)][_0x5ebf0a(0x1a2)](this[_0x5ebf0a(0x1a1)]);});}['waitUtilRetrieveDone'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xd16255=_0x243d;this[_0xd16255(0x1a7)]===retrieve_status_enum_1[_0xd16255(0x198)][_0xd16255(0x1b1)]&&(yield this[_0xd16255(0x1b2)](),this['status']=retrieve_status_enum_1[_0xd16255(0x198)]['Completed']);});}}exports['LocalRetrieve']=LocalRetrieve;
|
package/dist/types/aws.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2deb51=_0x34d6;(function(_0x12b292,_0x3b50be){var _0x4cd6fc=_0x34d6,_0x2f16ca=_0x12b292();while(!![]){try{var _0x171ace=parseInt(_0x4cd6fc(0x126))/0x1*(-parseInt(_0x4cd6fc(0x131))/0x2)+parseInt(_0x4cd6fc(0x12b))/0x3*(parseInt(_0x4cd6fc(0x128))/0x4)+-parseInt(_0x4cd6fc(0x12f))/0x5+-parseInt(_0x4cd6fc(0x129))/0x6+parseInt(_0x4cd6fc(0x133))/0x7*(-parseInt(_0x4cd6fc(0x12e))/0x8)+parseInt(_0x4cd6fc(0x127))/0x9+parseInt(_0x4cd6fc(0x12c))/0xa;if(_0x171ace===_0x3b50be)break;else _0x2f16ca['push'](_0x2f16ca['shift']());}catch(_0x4d2a53){_0x2f16ca['push'](_0x2f16ca['shift']());}}}(_0x346d,0xa06fd));function _0x346d(){var _0x4124be=['66596dEiozm','6298662pXAoJB','defineProperty','57Seiyif','12220960TrKSPQ','Available','2456sXykCr','292630GrSmpw','AwsFileRetrieveStatus','354306dftIlU','Restoring','16870vpjVGw','NeedRestore','1cxHVuw','10296432GpIXfF'];_0x346d=function(){return _0x4124be;};return _0x346d();}Object[_0x2deb51(0x12a)](exports,'__esModule',{'value':!![]}),exports['AwsFileRetrieveStatus']=void 0x0;function _0x34d6(_0x432ab5,_0x39e014){var _0x346d60=_0x346d();return _0x34d6=function(_0x34d68f,_0x12cadc){_0x34d68f=_0x34d68f-0x125;var _0x3632be=_0x346d60[_0x34d68f];return _0x3632be;},_0x34d6(_0x432ab5,_0x39e014);}var AwsFileRetrieveStatus;(function(_0x209689){var _0x586dcb=_0x2deb51;_0x209689[_0x586dcb(0x12d)]=_0x586dcb(0x12d),_0x209689['Restoring']=_0x586dcb(0x132),_0x209689[_0x586dcb(0x125)]='NeedRestore';}(AwsFileRetrieveStatus=exports[_0x2deb51(0x130)]||(exports[_0x2deb51(0x130)]={})));
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x4c7bad=_0x5d5f;(function(_0x5a5c5b,_0x562eb7){var _0xbfba90=_0x5d5f,_0x32ac03=_0x5a5c5b();while(!![]){try{var _0x2cbf5e=-parseInt(_0xbfba90(0x17b))/0x1*(parseInt(_0xbfba90(0x174))/0x2)+-parseInt(_0xbfba90(0x17e))/0x3*(-parseInt(_0xbfba90(0x182))/0x4)+-parseInt(_0xbfba90(0x181))/0x5+parseInt(_0xbfba90(0x176))/0x6+parseInt(_0xbfba90(0x17d))/0x7+-parseInt(_0xbfba90(0x175))/0x8*(parseInt(_0xbfba90(0x179))/0x9)+-parseInt(_0xbfba90(0x17c))/0xa*(-parseInt(_0xbfba90(0x17f))/0xb);if(_0x2cbf5e===_0x562eb7)break;else _0x32ac03['push'](_0x32ac03['shift']());}catch(_0x100392){_0x32ac03['push'](_0x32ac03['shift']());}}}(_0xd186,0xbe075));Object[_0x4c7bad(0x177)](exports,_0x4c7bad(0x178),{'value':!![]}),exports[_0x4c7bad(0x180)]=void 0x0;function _0x5d5f(_0x49b815,_0x4ecb21){var _0xd186f2=_0xd186();return _0x5d5f=function(_0x5d5f70,_0x10943e){_0x5d5f70=_0x5d5f70-0x174;var _0x3ceebc=_0xd186f2[_0x5d5f70];return _0x3ceebc;},_0x5d5f(_0x49b815,_0x4ecb21);}function _0xd186(){var _0x208ab=['501sRjIIb','11cKotVH','StorageType','6591290iZgihx','24044gwPGAz','346BJsEve','7508184syVZLL','3810246LPnXwo','defineProperty','__esModule','9ygtjLf','./storage-type.enum','7700OSGYzJ','16358410BegXMH','7647633OFHgrC'];_0xd186=function(){return _0x208ab;};return _0xd186();}var storage_type_enum_1=require(_0x4c7bad(0x17a));Object[_0x4c7bad(0x177)](exports,_0x4c7bad(0x180),{'enumerable':!![],'get':function(){return storage_type_enum_1['StorageType'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x374ce9=_0x21d2;function _0x21d2(_0x329fba,_0x44bf18){var _0x5779fd=_0x5779();return _0x21d2=function(_0x21d2ec,_0x173ace){_0x21d2ec=_0x21d2ec-0xdd;var _0x5708e7=_0x5779fd[_0x21d2ec];return _0x5708e7;},_0x21d2(_0x329fba,_0x44bf18);}(function(_0xcc1691,_0x4299b0){var _0x340f36=_0x21d2,_0xb80422=_0xcc1691();while(!![]){try{var _0x52a6ad=-parseInt(_0x340f36(0xe7))/0x1*(-parseInt(_0x340f36(0xde))/0x2)+parseInt(_0x340f36(0xe3))/0x3*(-parseInt(_0x340f36(0xdf))/0x4)+-parseInt(_0x340f36(0xdd))/0x5*(parseInt(_0x340f36(0xe8))/0x6)+parseInt(_0x340f36(0xea))/0x7+parseInt(_0x340f36(0xe2))/0x8*(parseInt(_0x340f36(0xe9))/0x9)+-parseInt(_0x340f36(0xe4))/0xa*(parseInt(_0x340f36(0xe1))/0xb)+parseInt(_0x340f36(0xe6))/0xc*(-parseInt(_0x340f36(0xeb))/0xd);if(_0x52a6ad===_0x4299b0)break;else _0xb80422['push'](_0xb80422['shift']());}catch(_0x2c5824){_0xb80422['push'](_0xb80422['shift']());}}}(_0x5779,0x3eaab));Object[_0x374ce9(0xe5)](exports,_0x374ce9(0xe0),{'value':!![]});function _0x5779(){var _0x4b923b=['240080Xfcwwv','defineProperty','11604TRmtnc','26QbJesP','6FNzrzb','2465091SgkBHQ','2129512MTtSUY','4407dJpPpt','238885hFFOtu','30960sjNjIe','264daBOZK','__esModule','154lNAfvx','8lBnEqN','555aDOlTW'];_0x5779=function(){return _0x4b923b;};return _0x5779();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x1bdb6f=_0x508f;(function(_0x4069bd,_0xc662a3){var _0x20fa2b=_0x508f,_0xf805b1=_0x4069bd();while(!![]){try{var _0x5ddb9e=-parseInt(_0x20fa2b(0x84))/0x1+-parseInt(_0x20fa2b(0x89))/0x2*(parseInt(_0x20fa2b(0x82))/0x3)+-parseInt(_0x20fa2b(0x86))/0x4*(parseInt(_0x20fa2b(0x80))/0x5)+-parseInt(_0x20fa2b(0x7a))/0x6*(-parseInt(_0x20fa2b(0x88))/0x7)+-parseInt(_0x20fa2b(0x7d))/0x8+-parseInt(_0x20fa2b(0x83))/0x9+-parseInt(_0x20fa2b(0x85))/0xa*(-parseInt(_0x20fa2b(0x7f))/0xb);if(_0x5ddb9e===_0xc662a3)break;else _0xf805b1['push'](_0xf805b1['shift']());}catch(_0xb47ba8){_0xf805b1['push'](_0xf805b1['shift']());}}}(_0x5602,0xa5912));function _0x5602(){var _0x1a0776=['507511aEMJyd','1410Iormpr','40XdGabY','Uninitialized','5650057aBsOVC','6hNEUpb','6ZzLjgW','Exception','Completed','8589616JeLykw','RetrieveStatus','276485bHSzfE','551525MIbXsg','__esModule','647949bytaHQ','3067308IzMQAh'];_0x5602=function(){return _0x1a0776;};return _0x5602();}Object['defineProperty'](exports,_0x1bdb6f(0x81),{'value':!![]}),exports[_0x1bdb6f(0x7e)]=void 0x0;function _0x508f(_0x8259c,_0x12f7db){var _0x560299=_0x5602();return _0x508f=function(_0x508f7f,_0x47be92){_0x508f7f=_0x508f7f-0x7a;var _0xc218c5=_0x560299[_0x508f7f];return _0xc218c5;},_0x508f(_0x8259c,_0x12f7db);}var RetrieveStatus;(function(_0x1dbb85){var _0x439dc8=_0x1bdb6f;_0x1dbb85[_0x439dc8(0x87)]=_0x439dc8(0x87),_0x1dbb85['InProgress']='In\x20Progress',_0x1dbb85[_0x439dc8(0x7c)]=_0x439dc8(0x7c),_0x1dbb85[_0x439dc8(0x7b)]=_0x439dc8(0x7b);}(RetrieveStatus=exports[_0x1bdb6f(0x7e)]||(exports[_0x1bdb6f(0x7e)]={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x5a74(){var _0xd3c13b=['2670805lvVrHD','9IipdJV','8qMEdcK','1404994DlZbkT','42307030mAeRbV','__esModule','10374704kShPGa','3133488UHtaiB','1466469wBWgsd','1523964amiGkV','StorageType','Local','7NiaXOQ'];_0x5a74=function(){return _0xd3c13b;};return _0x5a74();}var _0x23b731=_0x128e;function _0x128e(_0x2de9f7,_0x47b353){var _0x5a7404=_0x5a74();return _0x128e=function(_0x128e5c,_0x2f07e7){_0x128e5c=_0x128e5c-0x160;var _0x1b4c29=_0x5a7404[_0x128e5c];return _0x1b4c29;},_0x128e(_0x2de9f7,_0x47b353);}(function(_0x506b41,_0x3bf05b){var _0x1f8c02=_0x128e,_0x2212ae=_0x506b41();while(!![]){try{var _0x34341b=-parseInt(_0x1f8c02(0x163))/0x1+-parseInt(_0x1f8c02(0x167))/0x2+-parseInt(_0x1f8c02(0x168))/0x3+-parseInt(_0x1f8c02(0x162))/0x4*(-parseInt(_0x1f8c02(0x160))/0x5)+parseInt(_0x1f8c02(0x169))/0x6+parseInt(_0x1f8c02(0x16c))/0x7*(-parseInt(_0x1f8c02(0x166))/0x8)+-parseInt(_0x1f8c02(0x161))/0x9*(-parseInt(_0x1f8c02(0x164))/0xa);if(_0x34341b===_0x3bf05b)break;else _0x2212ae['push'](_0x2212ae['shift']());}catch(_0x422113){_0x2212ae['push'](_0x2212ae['shift']());}}}(_0x5a74,0xc23e4));Object['defineProperty'](exports,_0x23b731(0x165),{'value':!![]}),exports[_0x23b731(0x16a)]=void 0x0;var StorageType;(function(_0x2aa3dd){var _0x93adbf=_0x23b731;_0x2aa3dd[_0x93adbf(0x16b)]='Local',_0x2aa3dd['AWS_S3']='AWS_S3';}(StorageType=exports['StorageType']||(exports['StorageType']={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x73e9(){const _0x2f3424=['Available','Key','next','../types/aws.types','send','getFilesPaths','6406806kVqCxp','AwsS3Utils','632977oaPdfU','Restore','includes','done','594GCtEIC','value','Restoring','extractFileRetrieveStatusFromRestoreField','2712qOiirh','7391048WuvYDj','NeedRestore','1876184wKtZcr','11402829ueMLqz','ListObjectsCommand','false','GLACIER_IR','__esModule','then','AwsFileRetrieveStatus','GLACIER','@aws-sdk/client-s3','489ePIoDg','push','apply','DEEP_ARCHIVE','StorageClass','defineProperty','440sTfLSa'];_0x73e9=function(){return _0x2f3424;};return _0x73e9();}const _0x213d43=_0x4ee0;(function(_0x3d6eb3,_0x50c71b){const _0x5bfe9b=_0x4ee0,_0x465bc9=_0x3d6eb3();while(!![]){try{const _0xc027dd=parseInt(_0x5bfe9b(0xc6))/0x1+parseInt(_0x5bfe9b(0xce))/0x2*(-parseInt(_0x5bfe9b(0xdb))/0x3)+-parseInt(_0x5bfe9b(0xd1))/0x4+-parseInt(_0x5bfe9b(0xbd))/0x5*(-parseInt(_0x5bfe9b(0xca))/0x6)+parseInt(_0x5bfe9b(0xc4))/0x7+parseInt(_0x5bfe9b(0xcf))/0x8+-parseInt(_0x5bfe9b(0xd2))/0x9;if(_0xc027dd===_0x50c71b)break;else _0x465bc9['push'](_0x465bc9['shift']());}catch(_0x61f689){_0x465bc9['push'](_0x465bc9['shift']());}}}(_0x73e9,0x7fdfd));function _0x4ee0(_0x10f47b,_0x31e147){const _0x73e93e=_0x73e9();return _0x4ee0=function(_0x4ee022,_0x58597d){_0x4ee022=_0x4ee022-0xb8;let _0x3436ec=_0x73e93e[_0x4ee022];return _0x3436ec;},_0x4ee0(_0x10f47b,_0x31e147);}var __awaiter=this&&this['__awaiter']||function(_0xf3b2fd,_0x145824,_0x528ca3,_0x56380f){function _0x502bf7(_0x4333ea){return _0x4333ea instanceof _0x528ca3?_0x4333ea:new _0x528ca3(function(_0x22b4c4){_0x22b4c4(_0x4333ea);});}return new(_0x528ca3||(_0x528ca3=Promise))(function(_0x3b7771,_0x107ec0){const _0x54f8a8=_0x4ee0;function _0x220a07(_0x5ea7a5){const _0x7d8ec8=_0x4ee0;try{_0xedf353(_0x56380f[_0x7d8ec8(0xc0)](_0x5ea7a5));}catch(_0x1b156e){_0x107ec0(_0x1b156e);}}function _0x2bc292(_0x51dba9){try{_0xedf353(_0x56380f['throw'](_0x51dba9));}catch(_0x366881){_0x107ec0(_0x366881);}}function _0xedf353(_0x142368){const _0xaea06=_0x4ee0;_0x142368[_0xaea06(0xc9)]?_0x3b7771(_0x142368[_0xaea06(0xcb)]):_0x502bf7(_0x142368[_0xaea06(0xcb)])[_0xaea06(0xd7)](_0x220a07,_0x2bc292);}_0xedf353((_0x56380f=_0x56380f[_0x54f8a8(0xb9)](_0xf3b2fd,_0x145824||[]))[_0x54f8a8(0xc0)]());});};Object[_0x213d43(0xbc)](exports,_0x213d43(0xd6),{'value':!![]}),exports[_0x213d43(0xc5)]=void 0x0;const aws_types_1=require(_0x213d43(0xc1)),client_s3_1=require(_0x213d43(0xda)),ARCHIVE_TYPES=[_0x213d43(0xd9),_0x213d43(0xd5),_0x213d43(0xba)];class AwsS3Utils{static['extractFileRetrieveStatusFromFileInfo'](_0x30f4ec){const _0x4ca039=_0x213d43;if(ARCHIVE_TYPES[_0x4ca039(0xc8)](_0x30f4ec[_0x4ca039(0xbb)])){if(_0x30f4ec[_0x4ca039(0xc7)])return AwsS3Utils[_0x4ca039(0xcd)](_0x30f4ec[_0x4ca039(0xc7)]);return aws_types_1[_0x4ca039(0xd8)][_0x4ca039(0xd0)];}return aws_types_1[_0x4ca039(0xd8)][_0x4ca039(0xbe)];}static[_0x213d43(0xcd)](_0x2dbd76){const _0x3cc375=_0x213d43,_0x407d6f=/ongoing-request="([^"]+)"/,_0x275d1f=_0x2dbd76['match'](_0x407d6f);return _0x275d1f[0x1]===_0x3cc375(0xd4)?aws_types_1[_0x3cc375(0xd8)][_0x3cc375(0xbe)]:aws_types_1['AwsFileRetrieveStatus'][_0x3cc375(0xcc)];}static[_0x213d43(0xc3)](_0x5a1e49,_0x31c9fe,_0x60e7e8){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x27e764=_0x4ee0,_0x170d1f=[];let _0x2a3033,_0x1c44cd=null;do{const _0x410236=new client_s3_1[(_0x27e764(0xd3))]({'Bucket':_0x31c9fe,'Prefix':_0x5a1e49,'Marker':_0x1c44cd}),{Contents:_0x12aa2a,IsTruncated:_0x17e59e}=yield _0x60e7e8[_0x27e764(0xc2)](_0x410236);if(!_0x12aa2a)return _0x170d1f;for(const _0x3285a8 of _0x12aa2a){_0x170d1f[_0x27e764(0xb8)](_0x3285a8[_0x27e764(0xbf)]);}_0x2a3033=_0x17e59e,_0x2a3033&&(_0x1c44cd=_0x12aa2a['at'](-0x1)['Key']);}while(_0x2a3033);return _0x170d1f;});}}exports[_0x213d43(0xc5)]=AwsS3Utils;
|