@flosum/storages 1.0.15 → 1.0.17-beta.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.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/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';const
|
|
1
|
+
'use strict';const _0x342068=_0x3364;(function(_0x3024a8,_0x3adc90){const _0x3770ef=_0x3364,_0x1a93f5=_0x3024a8();while(!![]){try{const _0x495a3a=parseInt(_0x3770ef(0x1aa))/0x1+parseInt(_0x3770ef(0x1a1))/0x2+-parseInt(_0x3770ef(0x1a7))/0x3*(-parseInt(_0x3770ef(0x1b1))/0x4)+-parseInt(_0x3770ef(0x1a0))/0x5+-parseInt(_0x3770ef(0x19d))/0x6*(-parseInt(_0x3770ef(0x1ab))/0x7)+parseInt(_0x3770ef(0x195))/0x8+parseInt(_0x3770ef(0x19e))/0x9*(-parseInt(_0x3770ef(0x19f))/0xa);if(_0x495a3a===_0x3adc90)break;else _0x1a93f5['push'](_0x1a93f5['shift']());}catch(_0x5b8bb8){_0x1a93f5['push'](_0x1a93f5['shift']());}}}(_0x5aac,0x38a01));var __awaiter=this&&this['__awaiter']||function(_0x35dba,_0x3dfb48,_0x4b450f,_0x538eb7){function _0x189f8a(_0x582dcf){return _0x582dcf instanceof _0x4b450f?_0x582dcf:new _0x4b450f(function(_0x370e61){_0x370e61(_0x582dcf);});}return new(_0x4b450f||(_0x4b450f=Promise))(function(_0x5f4dd4,_0x1e1b37){const _0x1b677f=_0x3364;function _0x6a5e6e(_0x5b91f0){const _0x5e3a14=_0x3364;try{_0x526b87(_0x538eb7[_0x5e3a14(0x199)](_0x5b91f0));}catch(_0x47c596){_0x1e1b37(_0x47c596);}}function _0x53b73b(_0x3c1c3d){const _0x23f2b9=_0x3364;try{_0x526b87(_0x538eb7[_0x23f2b9(0x1ac)](_0x3c1c3d));}catch(_0x1ad709){_0x1e1b37(_0x1ad709);}}function _0x526b87(_0x274cfe){const _0x17af93=_0x3364;_0x274cfe[_0x17af93(0x192)]?_0x5f4dd4(_0x274cfe[_0x17af93(0x1a9)]):_0x189f8a(_0x274cfe[_0x17af93(0x1a9)])[_0x17af93(0x196)](_0x6a5e6e,_0x53b73b);}_0x526b87((_0x538eb7=_0x538eb7[_0x1b677f(0x19a)](_0x35dba,_0x3dfb48||[]))[_0x1b677f(0x199)]());});};function _0x3364(_0x2d4b9b,_0x5cf753){const _0x5aac79=_0x5aac();return _0x3364=function(_0x33640d,_0x36a454){_0x33640d=_0x33640d-0x190;let _0xf4fab8=_0x5aac79[_0x33640d];return _0xf4fab8;},_0x3364(_0x2d4b9b,_0x5cf753);}Object[_0x342068(0x1a4)](exports,_0x342068(0x1a6),{'value':!![]}),exports[_0x342068(0x194)]=void 0x0;function _0x5aac(){const _0x2b11e8=['110920vgxlbv','then','S3Client','send','next','apply','HeadBucketCommand','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','2555586ddLpZD','1521mNTYNl','29270dWFeIR','1836430bhwEmr','521044puXlGq','secretAccessKey','region','defineProperty','HttpHandler','__esModule','2427jHHDKI','credentials','value','324803ePkibv','7QfJAZS','throw','message','BaseCredentials','s3Client','validate','340EFUspa','bucketName','accessKeyId','done','@aws-sdk/client-s3','AwsS3Credentials'];_0x5aac=function(){return _0x2b11e8;};return _0x5aac();}const base_credentials_1=require('./base-credentials'),client_s3_1=require(_0x342068(0x193)),init_1=require('../init');class AwsS3Credentials extends base_credentials_1[_0x342068(0x1ae)]{constructor(){const _0x3c8cd5=_0x342068;super(...arguments),this['s3Client']=new client_s3_1[(_0x3c8cd5(0x197))]({'region':this[_0x3c8cd5(0x1a8)][_0x3c8cd5(0x1a3)],'credentials':{'accessKeyId':this[_0x3c8cd5(0x1a8)][_0x3c8cd5(0x191)],'secretAccessKey':this['credentials'][_0x3c8cd5(0x1a2)]},'requestHandler':new init_1[(_0x3c8cd5(0x1a5))]()});}get['accessKeyId'](){const _0x5c36e3=_0x342068;return this[_0x5c36e3(0x1a8)]['accessKeyId'];}get[_0x342068(0x1a2)](){const _0x3c43ed=_0x342068;return this[_0x3c43ed(0x1a8)][_0x3c43ed(0x1a2)];}get[_0x342068(0x190)](){const _0x52c5b9=_0x342068;return this['credentials'][_0x52c5b9(0x190)];}get[_0x342068(0x1a3)](){const _0x57f5cd=_0x342068;return this[_0x57f5cd(0x1a8)]['region'];}[_0x342068(0x1b0)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4cf0a8=_0x3364;try{const _0x45d30c=new client_s3_1[(_0x4cf0a8(0x19b))]({'Bucket':this[_0x4cf0a8(0x1a8)][_0x4cf0a8(0x190)]});yield this[_0x4cf0a8(0x1af)][_0x4cf0a8(0x198)](_0x45d30c);}catch(_0x4c4dc9){throw new Error(_0x4cf0a8(0x19c)+_0x4c4dc9[_0x4cf0a8(0x1ad)]);}});}['getCredentials'](_0x44bdbf=![]){const _0x159962=_0x342068;if(_0x44bdbf)return{'bucketName':this['credentials']['bucketName']};return this[_0x159962(0x1a8)];}}exports['AwsS3Credentials']=AwsS3Credentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1469a6=_0xeacd;(function(_0xb20795,_0x1923b4){var _0x84b692=_0xeacd,_0x29eeaf=_0xb20795();while(!![]){try{var _0x30ea76=-parseInt(_0x84b692(0x74))/0x1+parseInt(_0x84b692(0x78))/0x2*(parseInt(_0x84b692(0x72))/0x3)+parseInt(_0x84b692(0x6e))/0x4+-parseInt(_0x84b692(0x77))/0x5*(-parseInt(_0x84b692(0x75))/0x6)+parseInt(_0x84b692(0x70))/0x7+parseInt(_0x84b692(0x6f))/0x8+parseInt(_0x84b692(0x6c))/0x9*(-parseInt(_0x84b692(0x6b))/0xa);if(_0x30ea76===_0x1923b4)break;else _0x29eeaf['push'](_0x29eeaf['shift']());}catch(_0xa8b80f){_0x29eeaf['push'](_0x29eeaf['shift']());}}}(_0x4c98,0x466d0));function _0xeacd(_0x194f09,_0x21b4c3){var _0x4c984f=_0x4c98();return _0xeacd=function(_0xeacdb2,_0x549198){_0xeacdb2=_0xeacdb2-0x6b;var _0x5a422f=_0x4c984f[_0xeacdb2];return _0x5a422f;},_0xeacd(_0x194f09,_0x21b4c3);}Object['defineProperty'](exports,_0x1469a6(0x76),{'value':!![]}),exports[_0x1469a6(0x6d)]=void 0x0;class BaseCredentials{constructor(_0x42b28f){var _0x1ac66a=_0x1469a6;this[_0x1ac66a(0x73)]=_0x42b28f,this['credentials']=this[_0x1ac66a(0x73)]?JSON[_0x1ac66a(0x71)](this[_0x1ac66a(0x73)]):null;}}function _0x4c98(){var _0x2e6a97=['rawCredentials','416464jGZyOl','7044fmmdxF','__esModule','695VYVvhk','314DKjOJn','50tSQozj','731547bQLYpa','BaseCredentials','2009004PaXeLF','2109168ccrqfw','142751OAdHfQ','parse','3093oRCqrX'];_0x4c98=function(){return _0x2e6a97;};return _0x4c98();}exports['BaseCredentials']=BaseCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x3aeee1=_0x52d9;(function(_0x1a6d0a,_0x277ca1){var _0x138ff0=_0x52d9,_0x12f6cb=_0x1a6d0a();while(!![]){try{var _0x2fcebb=-parseInt(_0x138ff0(0x19c))/0x1*(-parseInt(_0x138ff0(0x198))/0x2)+-parseInt(_0x138ff0(0x19d))/0x3+-parseInt(_0x138ff0(0x199))/0x4*(parseInt(_0x138ff0(0x195))/0x5)+-parseInt(_0x138ff0(0x19a))/0x6*(parseInt(_0x138ff0(0x194))/0x7)+parseInt(_0x138ff0(0x19e))/0x8*(parseInt(_0x138ff0(0x196))/0x9)+-parseInt(_0x138ff0(0x1a1))/0xa*(-parseInt(_0x138ff0(0x19f))/0xb)+-parseInt(_0x138ff0(0x192))/0xc;if(_0x2fcebb===_0x277ca1)break;else _0x12f6cb['push'](_0x12f6cb['shift']());}catch(_0x10d73f){_0x12f6cb['push'](_0x12f6cb['shift']());}}}(_0x4e15,0x46d70));Object[_0x3aeee1(0x1a0)](exports,'__esModule',{'value':!![]}),exports[_0x3aeee1(0x190)]=exports[_0x3aeee1(0x19b)]=exports[_0x3aeee1(0x191)]=void 0x0;var base_credentials_1=require(_0x3aeee1(0x197));Object[_0x3aeee1(0x1a0)](exports,_0x3aeee1(0x191),{'enumerable':!![],'get':function(){var _0x131fdd=_0x3aeee1;return base_credentials_1[_0x131fdd(0x191)];}});var aws_s3_credentials_1=require(_0x3aeee1(0x1a2));Object[_0x3aeee1(0x1a0)](exports,_0x3aeee1(0x19b),{'enumerable':!![],'get':function(){var _0x3957d7=_0x3aeee1;return aws_s3_credentials_1[_0x3957d7(0x19b)];}});function _0x52d9(_0xe29f27,_0x4a7b96){var _0x4e1577=_0x4e15();return _0x52d9=function(_0x52d90a,_0x1f0bed){_0x52d90a=_0x52d90a-0x190;var _0x376df0=_0x4e1577[_0x52d90a];return _0x376df0;},_0x52d9(_0xe29f27,_0x4a7b96);}var local_credentials_1=require(_0x3aeee1(0x193));function _0x4e15(){var _0x253588=['937433yQKdNR','5BItOCp','63VBMypo','./base-credentials','1106934ntcEMF','39348kdVFsA','18HCLois','AwsS3Credentials','1SBaBKD','299874AXuxgq','139696xEaxeE','11DIyxCX','defineProperty','2871720CAJWek','./aws-s3-credentials','LocalCredentials','BaseCredentials','1933932AUFXOI','./local-credentials'];_0x4e15=function(){return _0x253588;};return _0x4e15();}Object['defineProperty'](exports,_0x3aeee1(0x190),{'enumerable':!![],'get':function(){var _0x1f7d0f=_0x3aeee1;return local_credentials_1[_0x1f7d0f(0x190)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1b0ad5=_0x5bbb;(function(_0xc1deec,_0x1dfbba){const _0x4b0674=_0x5bbb,_0x387d98=_0xc1deec();while(!![]){try{const _0x30ee33=-parseInt(_0x4b0674(0xa2))/0x1+-parseInt(_0x4b0674(0xab))/0x2*(-parseInt(_0x4b0674(0xa6))/0x3)+parseInt(_0x4b0674(0xaa))/0x4+parseInt(_0x4b0674(0xa3))/0x5*(parseInt(_0x4b0674(0xa7))/0x6)+parseInt(_0x4b0674(0xa1))/0x7*(parseInt(_0x4b0674(0xa0))/0x8)+parseInt(_0x4b0674(0x9f))/0x9+-parseInt(_0x4b0674(0xa8))/0xa;if(_0x30ee33===_0x1dfbba)break;else _0x387d98['push'](_0x387d98['shift']());}catch(_0xeca953){_0x387d98['push'](_0x387d98['shift']());}}}(_0x2efb,0x26580));Object[_0x1b0ad5(0x9e)](exports,_0x1b0ad5(0xa4),{'value':!![]}),exports['LocalCredentials']=void 0x0;function _0x5bbb(_0x17f3db,_0x243da4){const _0x2efb55=_0x2efb();return _0x5bbb=function(_0x5bbbde,_0x494fd5){_0x5bbbde=_0x5bbbde-0x9e;let _0x5ce2a0=_0x2efb55[_0x5bbbde];return _0x5ce2a0;},_0x5bbb(_0x17f3db,_0x243da4);}const base_credentials_1=require(_0x1b0ad5(0xa5));class LocalCredentials extends base_credentials_1[_0x1b0ad5(0xa9)]{['getCredentials'](){return null;}['validate'](){const _0x52a5b1=_0x1b0ad5;return Promise[_0x52a5b1(0xac)](undefined);}}exports['LocalCredentials']=LocalCredentials;function _0x2efb(){const _0x55083=['defineProperty','1094247uMmdBV','5336JahDcu','1428LqKBmQ','13825Ztpxqw','355dViauP','__esModule','./base-credentials','54Wrinbf','21462XskVJU','8498330JsXXBH','BaseCredentials','933848tumRxu','30626YqGPMr','resolve'];_0x2efb=function(){return _0x55083;};return _0x2efb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x38c39d=_0x2bea;(function(_0x3fd377,_0x2dd11e){const _0x600f99=_0x2bea,_0x52c3e6=_0x3fd377();while(!![]){try{const _0x595144=-parseInt(_0x600f99(0xc0))/0x1+parseInt(_0x600f99(0xc3))/0x2*(parseInt(_0x600f99(0xc2))/0x3)+parseInt(_0x600f99(0xae))/0x4+parseInt(_0x600f99(0xb5))/0x5*(parseInt(_0x600f99(0x9a))/0x6)+-parseInt(_0x600f99(0x9d))/0x7*(parseInt(_0x600f99(0xbb))/0x8)+parseInt(_0x600f99(0xa6))/0x9+-parseInt(_0x600f99(0xb6))/0xa*(parseInt(_0x600f99(0x9e))/0xb);if(_0x595144===_0x2dd11e)break;else _0x52c3e6['push'](_0x52c3e6['shift']());}catch(_0x184ca2){_0x52c3e6['push'](_0x52c3e6['shift']());}}}(_0x4118,0x2cacc));function _0x4118(){const _0x96869b=['BaseDelete','ArrayUtils','../utils/aws-s3.utils','next','@aws-sdk/client-s3','region','23875VYhlFT','1300zRPeNC','bucketName','secretAccessKey','execute','getFilesPaths','8MzNQnn','send','posix','split','../init','98046YPmBHp','map','6RiUKWF','20914xLZOiZ','splitOnChunks','apply','390uxpFdE','@flosum-service/utils','HttpHandler','155491RRtBvc','42493KKWQoN','throw','__esModule','default','s3Client','path','AwsS3Delete','DeleteObjectsCommand','1625067XizUFY','OBJECTS_PER_CHUNK','AwsS3Utils','value','credentials','__awaiter','__importDefault','defineProperty','1174340Mholjl'];_0x4118=function(){return _0x96869b;};return _0x4118();}var __awaiter=this&&this[_0x38c39d(0xab)]||function(_0x28540d,_0x3a896d,_0x20477a,_0x40083a){function _0x1869fb(_0x1c983a){return _0x1c983a instanceof _0x20477a?_0x1c983a:new _0x20477a(function(_0xe22340){_0xe22340(_0x1c983a);});}return new(_0x20477a||(_0x20477a=Promise))(function(_0x5d6af0,_0x2cf5a2){const _0x347422=_0x2bea;function _0xfd7d83(_0x3d69d9){const _0x47cc54=_0x2bea;try{_0x16677f(_0x40083a[_0x47cc54(0xb2)](_0x3d69d9));}catch(_0x4c5bb5){_0x2cf5a2(_0x4c5bb5);}}function _0x5888bd(_0x500993){const _0x47f618=_0x2bea;try{_0x16677f(_0x40083a[_0x47f618(0x9f)](_0x500993));}catch(_0x586a2){_0x2cf5a2(_0x586a2);}}function _0x16677f(_0x1156a3){const _0x15930a=_0x2bea;_0x1156a3['done']?_0x5d6af0(_0x1156a3[_0x15930a(0xa9)]):_0x1869fb(_0x1156a3[_0x15930a(0xa9)])['then'](_0xfd7d83,_0x5888bd);}_0x16677f((_0x40083a=_0x40083a[_0x347422(0x99)](_0x28540d,_0x3a896d||[]))['next']());});},__importDefault=this&&this[_0x38c39d(0xac)]||function(_0x182a23){return _0x182a23&&_0x182a23['__esModule']?_0x182a23:{'default':_0x182a23};};Object[_0x38c39d(0xad)](exports,_0x38c39d(0xa0),{'value':!![]}),exports[_0x38c39d(0xa4)]=void 0x0;function _0x2bea(_0x48c1e0,_0x4380a1){const _0x4118bd=_0x4118();return _0x2bea=function(_0x2beaf4,_0x22f784){_0x2beaf4=_0x2beaf4-0x99;let _0x47a3ab=_0x4118bd[_0x2beaf4];return _0x47a3ab;},_0x2bea(_0x48c1e0,_0x4380a1);}const path_1=__importDefault(require(_0x38c39d(0xa3))),utils_1=require(_0x38c39d(0x9b)),aws_s3_utils_1=require(_0x38c39d(0xb1)),_1=require('./'),client_s3_1=require(_0x38c39d(0xb3)),init_1=require(_0x38c39d(0xbf));class AwsS3Delete extends _1[_0x38c39d(0xaf)]{constructor(_0x32b37a){const _0xbafaef=_0x38c39d;super(_0x32b37a),this[_0xbafaef(0xaa)]=_0x32b37a,this[_0xbafaef(0xa7)]=0x3e8,this[_0xbafaef(0xa2)]=new client_s3_1['S3Client']({'region':this[_0xbafaef(0xaa)][_0xbafaef(0xb4)],'credentials':{'accessKeyId':this['credentials']['accessKeyId'],'secretAccessKey':this[_0xbafaef(0xaa)][_0xbafaef(0xb8)]},'requestHandler':new init_1[(_0xbafaef(0x9c))]()});}[_0x38c39d(0xb9)](_0x269c8c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x14f4c1=_0x2bea,_0x1ad2cc=_0x269c8c[_0x14f4c1(0xbe)](path_1['default']['sep'])['join'](path_1[_0x14f4c1(0xa1)][_0x14f4c1(0xbd)]['sep']),_0x21c8c5=yield aws_s3_utils_1[_0x14f4c1(0xa8)][_0x14f4c1(0xba)](_0x1ad2cc,this[_0x14f4c1(0xaa)]['bucketName'],this['s3Client']),_0x583f56=utils_1[_0x14f4c1(0xb0)][_0x14f4c1(0xc4)](_0x21c8c5,this[_0x14f4c1(0xa7)]);for(const _0x80a67e of _0x583f56){const _0x19d46b=_0x80a67e[_0x14f4c1(0xc1)](_0x2e3846=>({'Key':_0x2e3846})),_0x4bd044=new client_s3_1[(_0x14f4c1(0xa5))]({'Bucket':this[_0x14f4c1(0xaa)][_0x14f4c1(0xb7)],'Delete':{'Objects':_0x19d46b}});yield this[_0x14f4c1(0xa2)][_0x14f4c1(0xbc)](_0x4bd044);}});}}exports[_0x38c39d(0xa4)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x952b(){var _0x1d6b26=['20547NKjPaE','2bYYGLm','712MaXJJo','credentials','14242356BYKsHV','61544lWcZjv','5170UlajOP','11fLFJAN','63327ZfTKoX','134039izcEqA','6VEeHtO','defineProperty','26RQvHiJ','76NDSAFH','5445590yCQAvl','BaseDelete','__esModule','4447324ScBxsR'];_0x952b=function(){return _0x1d6b26;};return _0x952b();}var _0x1d394a=_0x26ad;(function(_0x3b0547,_0x7b84e5){var _0xf6568d=_0x26ad,_0x57cf2a=_0x3b0547();while(!![]){try{var _0x261365=parseInt(_0xf6568d(0x70))/0x1*(-parseInt(_0xf6568d(0x7a))/0x2)+-parseInt(_0xf6568d(0x6f))/0x3*(-parseInt(_0xf6568d(0x74))/0x4)+-parseInt(_0xf6568d(0x75))/0x5*(parseInt(_0xf6568d(0x71))/0x6)+-parseInt(_0xf6568d(0x7e))/0x7*(-parseInt(_0xf6568d(0x7b))/0x8)+-parseInt(_0xf6568d(0x79))/0x9*(parseInt(_0xf6568d(0x7f))/0xa)+parseInt(_0xf6568d(0x6e))/0xb*(parseInt(_0xf6568d(0x7d))/0xc)+-parseInt(_0xf6568d(0x73))/0xd*(-parseInt(_0xf6568d(0x78))/0xe);if(_0x261365===_0x7b84e5)break;else _0x57cf2a['push'](_0x57cf2a['shift']());}catch(_0x447b22){_0x57cf2a['push'](_0x57cf2a['shift']());}}}(_0x952b,0x930ae));Object[_0x1d394a(0x72)](exports,_0x1d394a(0x77),{'value':!![]}),exports[_0x1d394a(0x76)]=void 0x0;class BaseDelete{constructor(_0x43dad1){var _0x59632f=_0x1d394a;this[_0x59632f(0x7c)]=_0x43dad1;}}function _0x26ad(_0x3c93c6,_0x7678f3){var _0x952b3a=_0x952b();return _0x26ad=function(_0x26ad9e,_0x2889ac){_0x26ad9e=_0x26ad9e-0x6e;var _0x10fc78=_0x952b3a[_0x26ad9e];return _0x10fc78;},_0x26ad(_0x3c93c6,_0x7678f3);}exports[_0x1d394a(0x76)]=BaseDelete;
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x202d9a=_0x1594;(function(_0x5345b4,_0x39c30b){var _0x3d85ed=_0x1594,_0x5b6a87=_0x5345b4();while(!![]){try{var _0x450777=parseInt(_0x3d85ed(0x1ed))/0x1*(parseInt(_0x3d85ed(0x1f7))/0x2)+parseInt(_0x3d85ed(0x1fc))/0x3*(-parseInt(_0x3d85ed(0x1fb))/0x4)+parseInt(_0x3d85ed(0x1f4))/0x5+parseInt(_0x3d85ed(0x1f9))/0x6*(parseInt(_0x3d85ed(0x1ee))/0x7)+parseInt(_0x3d85ed(0x1eb))/0x8*(-parseInt(_0x3d85ed(0x1f2))/0x9)+parseInt(_0x3d85ed(0x1f1))/0xa*(-parseInt(_0x3d85ed(0x1ef))/0xb)+parseInt(_0x3d85ed(0x1f3))/0xc;if(_0x450777===_0x39c30b)break;else _0x5b6a87['push'](_0x5b6a87['shift']());}catch(_0x491851){_0x5b6a87['push'](_0x5b6a87['shift']());}}}(_0x361e,0x8ec04));function _0x1594(_0x436633,_0x2ef2f3){var _0x361e2e=_0x361e();return _0x1594=function(_0x1594d8,_0x277214){_0x1594d8=_0x1594d8-0x1eb;var _0x3c0480=_0x361e2e[_0x1594d8];return _0x3c0480;},_0x1594(_0x436633,_0x2ef2f3);}Object[_0x202d9a(0x1f0)](exports,_0x202d9a(0x1f5),{'value':!![]}),exports[_0x202d9a(0x1ec)]=exports[_0x202d9a(0x1fa)]=exports[_0x202d9a(0x1f6)]=void 0x0;function _0x361e(){var _0x721aad=['144IZUsXp','LocalDelete','9wEzbPc','105bgMxLR','6097014xjEXlf','defineProperty','10iOLOej','25236WXXYtL','3896544gXcCiR','2170585dtGOSs','__esModule','BaseDelete','28938QSpztO','./base-delete','280842FfbVLl','AwsS3Delete','12652lsKCKO','381pOApwT'];_0x361e=function(){return _0x721aad;};return _0x361e();}var base_delete_1=require(_0x202d9a(0x1f8));Object[_0x202d9a(0x1f0)](exports,_0x202d9a(0x1f6),{'enumerable':!![],'get':function(){var _0x17917c=_0x202d9a;return base_delete_1[_0x17917c(0x1f6)];}});var aws_s3_delete_1=require('./aws-s3-delete');Object[_0x202d9a(0x1f0)](exports,_0x202d9a(0x1fa),{'enumerable':!![],'get':function(){var _0x35ca3d=_0x202d9a;return aws_s3_delete_1[_0x35ca3d(0x1fa)];}});var local_delete_1=require('./local-delete');Object['defineProperty'](exports,_0x202d9a(0x1ec),{'enumerable':!![],'get':function(){return local_delete_1['LocalDelete'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x31e65d=_0x6520;(function(_0x2bf953,_0x45b882){const _0xe33b2a=_0x6520,_0x5dd39e=_0x2bf953();while(!![]){try{const _0x1d2bff=parseInt(_0xe33b2a(0x1a0))/0x1+-parseInt(_0xe33b2a(0x1a1))/0x2+parseInt(_0xe33b2a(0x196))/0x3+parseInt(_0xe33b2a(0x19f))/0x4+parseInt(_0xe33b2a(0x19c))/0x5+parseInt(_0xe33b2a(0x198))/0x6+-parseInt(_0xe33b2a(0x1a9))/0x7*(parseInt(_0xe33b2a(0x1a2))/0x8);if(_0x1d2bff===_0x45b882)break;else _0x5dd39e['push'](_0x5dd39e['shift']());}catch(_0x19eca3){_0x5dd39e['push'](_0x5dd39e['shift']());}}}(_0x5c67,0xac5f4));var __awaiter=this&&this[_0x31e65d(0x1a6)]||function(_0x133d71,_0x3af1cf,_0x32a307,_0x5c31e5){function _0x2ba317(_0x45b07f){return _0x45b07f instanceof _0x32a307?_0x45b07f:new _0x32a307(function(_0x1fcc86){_0x1fcc86(_0x45b07f);});}return new(_0x32a307||(_0x32a307=Promise))(function(_0x3380a1,_0xca2871){const _0x554fea=_0x6520;function _0x14801e(_0x176778){const _0x8b8b5=_0x6520;try{_0x2d1fb9(_0x5c31e5[_0x8b8b5(0x1a4)](_0x176778));}catch(_0x34aadc){_0xca2871(_0x34aadc);}}function _0x55b7bb(_0x40fef9){const _0x32a276=_0x6520;try{_0x2d1fb9(_0x5c31e5[_0x32a276(0x195)](_0x40fef9));}catch(_0x9396b){_0xca2871(_0x9396b);}}function _0x2d1fb9(_0x537394){const _0x1a25e0=_0x6520;_0x537394[_0x1a25e0(0x19b)]?_0x3380a1(_0x537394[_0x1a25e0(0x199)]):_0x2ba317(_0x537394['value'])['then'](_0x14801e,_0x55b7bb);}_0x2d1fb9((_0x5c31e5=_0x5c31e5[_0x554fea(0x19d)](_0x133d71,_0x3af1cf||[]))['next']());});};function _0x5c67(){const _0x1ca996=['defineProperty','FsUtils','3733051stDGrS','throw','1446948feRmNq','@flosum-service/utils','6734934YYicJJ','value','__esModule','done','4466855xWMOLs','apply','execute','2335416UiaTxe','485765icEqNJ','390588FTcXgP','40Jcridm','isExistsPath','next','BaseDelete','__awaiter'];_0x5c67=function(){return _0x1ca996;};return _0x5c67();}Object[_0x31e65d(0x1a7)](exports,_0x31e65d(0x19a),{'value':!![]}),exports['LocalDelete']=void 0x0;const promises_1=require('fs/promises'),utils_1=require(_0x31e65d(0x197)),_1=require('./');function _0x6520(_0x26c2b0,_0x24f742){const _0x5c6708=_0x5c67();return _0x6520=function(_0x652002,_0x528620){_0x652002=_0x652002-0x195;let _0x5c8a2c=_0x5c6708[_0x652002];return _0x5c8a2c;},_0x6520(_0x26c2b0,_0x24f742);}class LocalDelete extends _1[_0x31e65d(0x1a5)]{[_0x31e65d(0x19e)](_0x987338){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x50f30a=_0x6520;if(yield utils_1[_0x50f30a(0x1a8)][_0x50f30a(0x1a3)](_0x987338))yield(0x0,promises_1['rm'])(_0x987338,{'recursive':!![]});});}}exports['LocalDelete']=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x522b0a=_0x2e93;(function(_0x36232d,_0x1328bc){const _0x459b2f=_0x2e93,_0x5bb5cc=_0x36232d();while(!![]){try{const _0x4c84b6=parseInt(_0x459b2f(0x123))/0x1*(-parseInt(_0x459b2f(0x103))/0x2)+parseInt(_0x459b2f(0x11d))/0x3*(parseInt(_0x459b2f(0x116))/0x4)+-parseInt(_0x459b2f(0x10d))/0x5+-parseInt(_0x459b2f(0x10f))/0x6*(-parseInt(_0x459b2f(0x126))/0x7)+parseInt(_0x459b2f(0x125))/0x8+-parseInt(_0x459b2f(0x119))/0x9+-parseInt(_0x459b2f(0x105))/0xa;if(_0x4c84b6===_0x1328bc)break;else _0x5bb5cc['push'](_0x5bb5cc['shift']());}catch(_0x45f74c){_0x5bb5cc['push'](_0x5bb5cc['shift']());}}}(_0x3072,0x5fb96));var __awaiter=this&&this[_0x522b0a(0x121)]||function(_0x341d17,_0x27229f,_0x4a5042,_0x6f33b6){function _0x40cc15(_0x186cef){return _0x186cef instanceof _0x4a5042?_0x186cef:new _0x4a5042(function(_0x2cdb8e){_0x2cdb8e(_0x186cef);});}return new(_0x4a5042||(_0x4a5042=Promise))(function(_0x534d56,_0x519cc0){const _0x307818=_0x2e93;function _0x491d6e(_0x9c2fcf){const _0x189b94=_0x2e93;try{_0x1a1312(_0x6f33b6[_0x189b94(0x108)](_0x9c2fcf));}catch(_0x33f0b7){_0x519cc0(_0x33f0b7);}}function _0x420f56(_0x1b6dbb){const _0x33f298=_0x2e93;try{_0x1a1312(_0x6f33b6[_0x33f298(0x106)](_0x1b6dbb));}catch(_0x1089f9){_0x519cc0(_0x1089f9);}}function _0x1a1312(_0x17fc52){const _0x2ba5dc=_0x2e93;_0x17fc52[_0x2ba5dc(0x124)]?_0x534d56(_0x17fc52['value']):_0x40cc15(_0x17fc52['value'])['then'](_0x491d6e,_0x420f56);}_0x1a1312((_0x6f33b6=_0x6f33b6[_0x307818(0x111)](_0x341d17,_0x27229f||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0xabd8df){const _0x3216de=_0x522b0a;return _0xabd8df&&_0xabd8df[_0x3216de(0x11f)]?_0xabd8df:{'default':_0xabd8df};};Object[_0x522b0a(0x110)](exports,_0x522b0a(0x11f),{'value':!![]}),exports[_0x522b0a(0x10b)]=void 0x0;const path_1=__importDefault(require('path')),_1=require('./'),client_s3_1=require(_0x522b0a(0x104)),init_1=require(_0x522b0a(0x11c)),lib_storage_1=require(_0x522b0a(0x10c));class AwsS3Deploy extends _1['BaseDeploy']{constructor(_0x2f4845,_0x166703){const _0x2aeb8e=_0x522b0a;super(_0x2f4845),this[_0x2aeb8e(0x10a)]=_0x2f4845,this[_0x2aeb8e(0x109)]=_0x166703,this['s3Client']=new client_s3_1[(_0x2aeb8e(0x11a))]({'region':this[_0x2aeb8e(0x10a)]['region'],'credentials':{'accessKeyId':this[_0x2aeb8e(0x10a)][_0x2aeb8e(0x107)],'secretAccessKey':this[_0x2aeb8e(0x10a)][_0x2aeb8e(0x120)]},'requestHandler':new init_1[(_0x2aeb8e(0x118))]()});}[_0x522b0a(0x113)](_0x415f38,_0x1ec891){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x140ac9=_0x2e93,_0x25814e=new lib_storage_1[(_0x140ac9(0x117))]({'client':this['s3Client'],'params':{'Bucket':this[_0x140ac9(0x10a)][_0x140ac9(0x11e)],'Key':_0x1ec891,'Body':_0x415f38,'StorageClass':this[_0x140ac9(0x109)]}});yield _0x25814e[_0x140ac9(0x124)]();});}[_0x522b0a(0x114)](_0x2a2048,_0x2606e1){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x46cc2b=_0x2e93;try{const _0x30a987=_0x2606e1[_0x46cc2b(0x11b)](path_1[_0x46cc2b(0x115)][_0x46cc2b(0x10e)])[_0x46cc2b(0x112)](path_1['default'][_0x46cc2b(0x122)][_0x46cc2b(0x10e)]);yield this[_0x46cc2b(0x113)](_0x2a2048,_0x30a987);}catch(_0x54d9a3){throw _0x54d9a3;}});}}function _0x3072(){const _0x2dfa71=['AwsS3Deploy','@aws-sdk/lib-storage','3041750axfEDt','sep','42DlJass','defineProperty','apply','join','upload','execute','default','7768YGYuGo','Upload','HttpHandler','4494528IjFCmk','S3Client','split','../init','552vybHvz','bucketName','__esModule','secretAccessKey','__awaiter','posix','27397KdIqXj','done','5576176BBskJP','710458eKeemA','12bRkFgx','@aws-sdk/client-s3','1005980XzNhRY','throw','accessKeyId','next','storageClass','credentials'];_0x3072=function(){return _0x2dfa71;};return _0x3072();}function _0x2e93(_0x4f00c3,_0x5239f8){const _0x3072d0=_0x3072();return _0x2e93=function(_0x2e93c9,_0x343fee){_0x2e93c9=_0x2e93c9-0x103;let _0xf3c199=_0x3072d0[_0x2e93c9];return _0xf3c199;},_0x2e93(_0x4f00c3,_0x5239f8);}exports[_0x522b0a(0x10b)]=AwsS3Deploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x48d779=_0x3a7c;(function(_0x537656,_0x45ae93){var _0xf2a5b5=_0x3a7c,_0x2bfca9=_0x537656();while(!![]){try{var _0x26a3d3=parseInt(_0xf2a5b5(0x8d))/0x1*(-parseInt(_0xf2a5b5(0x84))/0x2)+-parseInt(_0xf2a5b5(0x83))/0x3+parseInt(_0xf2a5b5(0x82))/0x4+parseInt(_0xf2a5b5(0x8a))/0x5*(parseInt(_0xf2a5b5(0x81))/0x6)+-parseInt(_0xf2a5b5(0x86))/0x7*(-parseInt(_0xf2a5b5(0x88))/0x8)+-parseInt(_0xf2a5b5(0x80))/0x9*(-parseInt(_0xf2a5b5(0x87))/0xa)+parseInt(_0xf2a5b5(0x8b))/0xb*(-parseInt(_0xf2a5b5(0x8e))/0xc);if(_0x26a3d3===_0x45ae93)break;else _0x2bfca9['push'](_0x2bfca9['shift']());}catch(_0x33dac7){_0x2bfca9['push'](_0x2bfca9['shift']());}}}(_0x22a5,0x32f85));function _0x3a7c(_0x290c79,_0x4e8606){var _0x22a534=_0x22a5();return _0x3a7c=function(_0x3a7c18,_0x22c1c6){_0x3a7c18=_0x3a7c18-0x7f;var _0x59bfff=_0x22a534[_0x3a7c18];return _0x59bfff;},_0x3a7c(_0x290c79,_0x4e8606);}function _0x22a5(){var _0x1360d5=['2126lnyUMY','credentials','7WLvyND','10kvlvGQ','1360616YcFEcy','__esModule','35115EnMaUJ','638EmEtqN','defineProperty','238krHqQE','61968VgduNK','BaseDeploy','3684537OlUkrB','72bTKYYp','1350888eFyGQE','720567NlCluz'];_0x22a5=function(){return _0x1360d5;};return _0x22a5();}Object[_0x48d779(0x8c)](exports,_0x48d779(0x89),{'value':!![]}),exports['BaseDeploy']=void 0x0;class BaseDeploy{constructor(_0x5b4366){var _0x58f07b=_0x48d779;this[_0x58f07b(0x85)]=_0x5b4366;}}exports[_0x48d779(0x7f)]=BaseDeploy;
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x493b86=_0x2b16;(function(_0x4a50ec,_0x3b8159){var _0x247215=_0x2b16,_0x5ee3c4=_0x4a50ec();while(!![]){try{var _0x3486bb=parseInt(_0x247215(0x18b))/0x1+parseInt(_0x247215(0x181))/0x2*(parseInt(_0x247215(0x180))/0x3)+parseInt(_0x247215(0x18c))/0x4+parseInt(_0x247215(0x186))/0x5+parseInt(_0x247215(0x18d))/0x6*(parseInt(_0x247215(0x18a))/0x7)+-parseInt(_0x247215(0x18e))/0x8*(parseInt(_0x247215(0x18f))/0x9)+-parseInt(_0x247215(0x187))/0xa;if(_0x3486bb===_0x3b8159)break;else _0x5ee3c4['push'](_0x5ee3c4['shift']());}catch(_0x3039ce){_0x5ee3c4['push'](_0x5ee3c4['shift']());}}}(_0x5958,0x4f495));Object[_0x493b86(0x185)](exports,_0x493b86(0x188),{'value':!![]}),exports['LocalDeploy']=exports[_0x493b86(0x184)]=exports['BaseDeploy']=void 0x0;var base_deploy_1=require('./base-deploy');Object['defineProperty'](exports,'BaseDeploy',{'enumerable':!![],'get':function(){return base_deploy_1['BaseDeploy'];}});var aws_s3_deploy_1=require(_0x493b86(0x189));function _0x2b16(_0x15d625,_0x407636){var _0x5958d2=_0x5958();return _0x2b16=function(_0x2b161c,_0x1c789f){_0x2b161c=_0x2b161c-0x180;var _0x4404b3=_0x5958d2[_0x2b161c];return _0x4404b3;},_0x2b16(_0x15d625,_0x407636);}Object['defineProperty'](exports,_0x493b86(0x184),{'enumerable':!![],'get':function(){var _0x175826=_0x493b86;return aws_s3_deploy_1[_0x175826(0x184)];}});var local_deploy_1=require(_0x493b86(0x182));Object[_0x493b86(0x185)](exports,_0x493b86(0x183),{'enumerable':!![],'get':function(){var _0xda59c0=_0x493b86;return local_deploy_1[_0xda59c0(0x183)];}});function _0x5958(){var _0x2bb893=['1155928kFJscz','6igMGgf','952096nPCnNl','9Cqmygc','219swCqss','13426wFWwZk','./local-deploy','LocalDeploy','AwsS3Deploy','defineProperty','69600mTRlLN','12899800dFOUEt','__esModule','./aws-s3-deploy','3109547QPkYmZ','496577dYhhxZ'];_0x5958=function(){return _0x2bb893;};return _0x5958();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x86ad34=_0x13f0;(function(_0x5aa5eb,_0x1572a5){const _0x213823=_0x13f0,_0x508ead=_0x5aa5eb();while(!![]){try{const _0x100640=parseInt(_0x213823(0xb3))/0x1*(-parseInt(_0x213823(0xa0))/0x2)+parseInt(_0x213823(0xa8))/0x3*(parseInt(_0x213823(0x9d))/0x4)+parseInt(_0x213823(0xb2))/0x5*(-parseInt(_0x213823(0xa2))/0x6)+parseInt(_0x213823(0x9b))/0x7*(parseInt(_0x213823(0x9c))/0x8)+-parseInt(_0x213823(0xab))/0x9+-parseInt(_0x213823(0xa9))/0xa*(parseInt(_0x213823(0xa4))/0xb)+parseInt(_0x213823(0xae))/0xc;if(_0x100640===_0x1572a5)break;else _0x508ead['push'](_0x508ead['shift']());}catch(_0x3d48c7){_0x508ead['push'](_0x508ead['shift']());}}}(_0xdf0a,0xe0cae));var __awaiter=this&&this[_0x86ad34(0x99)]||function(_0x1f89e1,_0x52655d,_0x5a911f,_0x1ab004){function _0x15b254(_0x5eef1b){return _0x5eef1b instanceof _0x5a911f?_0x5eef1b:new _0x5a911f(function(_0x5e440b){_0x5e440b(_0x5eef1b);});}return new(_0x5a911f||(_0x5a911f=Promise))(function(_0x4d877b,_0x4a97a3){const _0xab79b=_0x13f0;function _0x503105(_0x36edc6){try{_0x57b03e(_0x1ab004['next'](_0x36edc6));}catch(_0x54d1f0){_0x4a97a3(_0x54d1f0);}}function _0x195d12(_0x58e47c){const _0x3f23ec=_0x13f0;try{_0x57b03e(_0x1ab004[_0x3f23ec(0x9e)](_0x58e47c));}catch(_0x336e59){_0x4a97a3(_0x336e59);}}function _0x57b03e(_0x136188){const _0x437496=_0x13f0;_0x136188[_0x437496(0xa5)]?_0x4d877b(_0x136188['value']):_0x15b254(_0x136188['value'])[_0x437496(0x9f)](_0x503105,_0x195d12);}_0x57b03e((_0x1ab004=_0x1ab004[_0xab79b(0xb0)](_0x1f89e1,_0x52655d||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0x1404e4){const _0x374c8d=_0x86ad34;return _0x1404e4&&_0x1404e4[_0x374c8d(0xaf)]?_0x1404e4:{'default':_0x1404e4};};Object[_0x86ad34(0xa3)](exports,_0x86ad34(0xaf),{'value':!![]}),exports[_0x86ad34(0xad)]=void 0x0;const path_1=__importDefault(require(_0x86ad34(0xa1))),promises_1=require(_0x86ad34(0x9a)),utils_1=require('@flosum-service/utils'),_1=require('./');class LocalDeploy extends _1[_0x86ad34(0xb1)]{['execute'](_0x6cfed1,_0x1345f0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3b0ed2=_0x13f0;try{const _0x46c94f=path_1['default']['dirname'](_0x1345f0),_0x2c2923=yield utils_1[_0x3b0ed2(0xa6)]['isExistsPath'](_0x46c94f);!_0x2c2923&&(yield(0x0,promises_1[_0x3b0ed2(0xaa)])(_0x46c94f,{'recursive':!![]})),yield(0x0,promises_1[_0x3b0ed2(0xa7)])(_0x1345f0,_0x6cfed1);}catch(_0x266255){(yield utils_1[_0x3b0ed2(0xa6)][_0x3b0ed2(0xac)](_0x1345f0))&&(yield(0x0,promises_1['rm'])(_0x1345f0,{'recursive':!![]}));throw _0x266255;}});}}exports[_0x86ad34(0xad)]=LocalDeploy;function _0x13f0(_0x45794c,_0x976109){const _0xdf0a57=_0xdf0a();return _0x13f0=function(_0x13f0be,_0x57987d){_0x13f0be=_0x13f0be-0x99;let _0x198f3f=_0xdf0a57[_0x13f0be];return _0x198f3f;},_0x13f0(_0x45794c,_0x976109);}function _0xdf0a(){const _0x58c173=['5232324ktuNbm','__esModule','apply','BaseDeploy','38480KolqVv','15758zodGFA','__awaiter','fs/promises','995897pTtAfw','80WjwZDK','280wmrmRb','throw','then','98jMQxOQ','path','948fDHhtx','defineProperty','11aKgVFR','done','FsUtils','writeFile','48018qhbfKb','152010lWwbgZ','mkdir','495864nICfFp','isExistsPath','LocalDeploy'];_0xdf0a=function(){return _0x58c173;};return _0xdf0a();}
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x404c94=_0x5c21;function _0x5c21(_0x3a4c80,_0x48dc9d){const _0x599474=_0x5994();return _0x5c21=function(_0x5c219c,_0x4705a4){_0x5c219c=_0x5c219c-0x1b8;let _0x94edc6=_0x599474[_0x5c219c];return _0x94edc6;},_0x5c21(_0x3a4c80,_0x48dc9d);}(function(_0x16bd4b,_0x462324){const _0x2b0e78=_0x5c21,_0x4de489=_0x16bd4b();while(!![]){try{const _0x322af3=-parseInt(_0x2b0e78(0x1c8))/0x1*(parseInt(_0x2b0e78(0x1d0))/0x2)+-parseInt(_0x2b0e78(0x1c6))/0x3*(parseInt(_0x2b0e78(0x1b8))/0x4)+-parseInt(_0x2b0e78(0x1cc))/0x5+parseInt(_0x2b0e78(0x1bc))/0x6+-parseInt(_0x2b0e78(0x1d2))/0x7*(-parseInt(_0x2b0e78(0x1d4))/0x8)+-parseInt(_0x2b0e78(0x1ca))/0x9+-parseInt(_0x2b0e78(0x1d8))/0xa*(-parseInt(_0x2b0e78(0x1ba))/0xb);if(_0x322af3===_0x462324)break;else _0x4de489['push'](_0x4de489['shift']());}catch(_0x27d480){_0x4de489['push'](_0x4de489['shift']());}}}(_0x5994,0xc2aa7));Object[_0x404c94(0x1c7)](exports,'__esModule',{'value':!![]}),exports[_0x404c94(0x1c0)]=void 0x0;const storage_type_enum_1=require(_0x404c94(0x1c9)),aws_s3_credentials_1=require('./credentials/aws-s3-credentials'),local_credentials_1=require(_0x404c94(0x1c4)),aws_s3_delete_1=require(_0x404c94(0x1b9)),local_delete_1=require(_0x404c94(0x1bd)),aws_s3_deploy_1=require(_0x404c94(0x1cb)),local_deploy_1=require(_0x404c94(0x1bf)),aws_s3_retrieve_1=require('./retrieve/aws-s3-retrieve'),local_retrieve_1=require('./retrieve/local-retrieve');function _0x5994(){const _0x3be1be=['AWS_S3','createDeploy','StorageType','8740tqFbDX','4XwRkMJ','./delete/aws-s3-delete','26554KJiCoJ','LocalCredentials','8179092EzLCoR','./delete/local-delete','AwsS3Retrieve','./deploy/local-deploy','StorageFactory','Unknown\x20storage\x20type\x20-\x20\x22','Local','AwsS3Delete','./credentials/local-credentials','LocalDeploy','996993AoomrO','defineProperty','1egnwQJ','./types/storage-type.enum','9434205wAraJD','./deploy/aws-s3-deploy','3996950elrUmt','createRetrieve','createCredentials','AwsS3Deploy','2492134cnMXsR','LocalDelete','5252562GKaTyC','AwsS3Credentials','8VwuNNi'];_0x5994=function(){return _0x3be1be;};return _0x5994();}class StorageFactory{static[_0x404c94(0x1cd)](_0x19c564,_0x5aaab3,_0x5308f3,_0x2b782a,_0x48e60c){const _0x248660=_0x404c94;switch(_0x19c564){case storage_type_enum_1['StorageType'][_0x248660(0x1d5)]:return new aws_s3_retrieve_1[(_0x248660(0x1be))](_0x5aaab3,_0x5308f3,_0x2b782a,_0x48e60c);case storage_type_enum_1[_0x248660(0x1d7)][_0x248660(0x1c2)]:return new local_retrieve_1['LocalRetrieve'](_0x5aaab3,_0x5308f3);default:throw new Error(_0x248660(0x1c1)+_0x19c564+'\x22');}}static[_0x404c94(0x1d6)](_0x2be5a9,_0x5cf40e,_0x4bb61b){const _0x2ae1e2=_0x404c94;switch(_0x2be5a9){case storage_type_enum_1[_0x2ae1e2(0x1d7)][_0x2ae1e2(0x1d5)]:return new aws_s3_deploy_1[(_0x2ae1e2(0x1cf))](_0x5cf40e,_0x4bb61b);case storage_type_enum_1['StorageType'][_0x2ae1e2(0x1c2)]:return new local_deploy_1[(_0x2ae1e2(0x1c5))](_0x5cf40e);default:throw new Error(_0x2ae1e2(0x1c1)+_0x2be5a9+'\x22');}}static['createDelete'](_0x4ae3b2,_0x283af5){const _0x40bf98=_0x404c94;switch(_0x4ae3b2){case storage_type_enum_1['StorageType']['AWS_S3']:return new aws_s3_delete_1[(_0x40bf98(0x1c3))](_0x283af5);case storage_type_enum_1[_0x40bf98(0x1d7)][_0x40bf98(0x1c2)]:return new local_delete_1[(_0x40bf98(0x1d1))](_0x283af5);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x4ae3b2+'\x22');}}static[_0x404c94(0x1ce)](_0x59979f,_0x1d2119){const _0x100275=_0x404c94;switch(_0x59979f){case storage_type_enum_1[_0x100275(0x1d7)][_0x100275(0x1d5)]:return new aws_s3_credentials_1[(_0x100275(0x1d3))](_0x1d2119);case storage_type_enum_1[_0x100275(0x1d7)]['Local']:return new local_credentials_1[(_0x100275(0x1bb))]();default:throw new Error(_0x100275(0x1c1)+_0x59979f+'\x22');}}}exports[_0x404c94(0x1c0)]=StorageFactory;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x1623f1=_0xc44a;(function(_0x104b16,_0x5e8c5d){var _0xb074a3=_0xc44a,_0x4816cc=_0x104b16();while(!![]){try{var _0x1a46b4=-parseInt(_0xb074a3(0x1ce))/0x1*(-parseInt(_0xb074a3(0x1be))/0x2)+-parseInt(_0xb074a3(0x1d3))/0x3+parseInt(_0xb074a3(0x1cf))/0x4+-parseInt(_0xb074a3(0x1bf))/0x5+-parseInt(_0xb074a3(0x1c0))/0x6*(parseInt(_0xb074a3(0x1c1))/0x7)+-parseInt(_0xb074a3(0x1d0))/0x8+parseInt(_0xb074a3(0x1c8))/0x9;if(_0x1a46b4===_0x5e8c5d)break;else _0x4816cc['push'](_0x4816cc['shift']());}catch(_0xb525d1){_0x4816cc['push'](_0x4816cc['shift']());}}}(_0x4416,0xca7f5));function _0x4416(){var _0x57da6b=['2709ijBlUU','hasOwnProperty','defineProperty','./credentials','prototype','StorageFactory','./factory','18511578ZexjmW','__exportStar','__esModule','call','configurable','./types','183hjogTy','5267340pUeNta','7657576qIxAbz','./delete','create','1155204yIvSee','./init','getOwnPropertyDescriptor','./retrieve','get','1466KBNMBv','2986695tFfIBf','11454GQsFHv'];_0x4416=function(){return _0x57da6b;};return _0x4416();}function _0xc44a(_0x443fc7,_0x1119e3){var _0x4416a9=_0x4416();return _0xc44a=function(_0xc44ab6,_0x539acb){_0xc44ab6=_0xc44ab6-0x1be;var _0x475a83=_0x4416a9[_0xc44ab6];return _0x475a83;},_0xc44a(_0x443fc7,_0x1119e3);}var __createBinding=this&&this['__createBinding']||(Object[_0x1623f1(0x1d2)]?function(_0x1ebaa2,_0x2eec29,_0x239301,_0x4bb7d9){var _0x11322d=_0x1623f1;if(_0x4bb7d9===undefined)_0x4bb7d9=_0x239301;var _0x1cc43d=Object[_0x11322d(0x1d5)](_0x2eec29,_0x239301);(!_0x1cc43d||(_0x11322d(0x1d7)in _0x1cc43d?!_0x2eec29[_0x11322d(0x1ca)]:_0x1cc43d['writable']||_0x1cc43d[_0x11322d(0x1cc)]))&&(_0x1cc43d={'enumerable':!![],'get':function(){return _0x2eec29[_0x239301];}}),Object[_0x11322d(0x1c3)](_0x1ebaa2,_0x4bb7d9,_0x1cc43d);}:function(_0x24644d,_0x15aa01,_0x49a91c,_0x144ecf){if(_0x144ecf===undefined)_0x144ecf=_0x49a91c;_0x24644d[_0x144ecf]=_0x15aa01[_0x49a91c];}),__exportStar=this&&this[_0x1623f1(0x1c9)]||function(_0xded64d,_0x30c4ff){var _0x1363e8=_0x1623f1;for(var _0x3480b3 in _0xded64d)if(_0x3480b3!=='default'&&!Object[_0x1363e8(0x1c5)][_0x1363e8(0x1c2)][_0x1363e8(0x1cb)](_0x30c4ff,_0x3480b3))__createBinding(_0x30c4ff,_0xded64d,_0x3480b3);};Object[_0x1623f1(0x1c3)](exports,'__esModule',{'value':!![]}),exports[_0x1623f1(0x1c6)]=void 0x0,require(_0x1623f1(0x1d4)),__exportStar(require(_0x1623f1(0x1c4)),exports),__exportStar(require(_0x1623f1(0x1d1)),exports),__exportStar(require('./deploy'),exports),__exportStar(require(_0x1623f1(0x1d6)),exports);var factory_1=require(_0x1623f1(0x1c7));Object[_0x1623f1(0x1c3)](exports,_0x1623f1(0x1c6),{'enumerable':!![],'get':function(){var _0x526144=_0x1623f1;return factory_1[_0x526144(0x1c6)];}}),__exportStar(require(_0x1623f1(0x1cd)),exports);
|
package/dist/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x448b(_0x34c8c2,_0x18dfdd){const _0x30c030=_0x30c0();return _0x448b=function(_0x448b00,_0x4f8b0c){_0x448b00=_0x448b00-0x191;let _0x299fdd=_0x30c030[_0x448b00];return _0x299fdd;},_0x448b(_0x34c8c2,_0x18dfdd);}const _0x2eba58=_0x448b;(function(_0x143bcc,_0x55dfa6){const _0x1b6c15=_0x448b,_0xb1957=_0x143bcc();while(!![]){try{const _0x5073f3=parseInt(_0x1b6c15(0x197))/0x1+-parseInt(_0x1b6c15(0x191))/0x2*(parseInt(_0x1b6c15(0x19a))/0x3)+-parseInt(_0x1b6c15(0x19d))/0x4+parseInt(_0x1b6c15(0x1a1))/0x5*(parseInt(_0x1b6c15(0x196))/0x6)+parseInt(_0x1b6c15(0x192))/0x7*(parseInt(_0x1b6c15(0x19f))/0x8)+parseInt(_0x1b6c15(0x19c))/0x9+-parseInt(_0x1b6c15(0x195))/0xa;if(_0x5073f3===_0x55dfa6)break;else _0xb1957['push'](_0xb1957['shift']());}catch(_0x11a8b8){_0xb1957['push'](_0xb1957['shift']());}}}(_0x30c0,0xc9e20));Object[_0x2eba58(0x19e)](exports,_0x2eba58(0x1a0),{'value':!![]}),exports['HttpHandler']=void 0x0;const https_proxy_agent_1=require(_0x2eba58(0x19b)),node_http_handler_1=require('@smithy/node-http-handler');class HttpHandler extends node_http_handler_1[_0x2eba58(0x194)]{constructor(){const _0x126da0=_0x2eba58;if(process['env'][_0x126da0(0x193)]||process[_0x126da0(0x1a2)][_0x126da0(0x198)]){const _0x3370d2=new https_proxy_agent_1[(_0x126da0(0x199))](process[_0x126da0(0x1a2)][_0x126da0(0x193)]||process[_0x126da0(0x1a2)][_0x126da0(0x198)]);super({'httpAgent':_0x3370d2,'httpsAgent':_0x3370d2});}else super({});}}function _0x30c0(){const _0x2bbb0b=['5364PYMKSq','1034549xCoAWk','HTTPS_PROXY','HttpsProxyAgent','2534739aUDPSl','https-proxy-agent','1687878YLLTmo','2637760DLGvyf','defineProperty','8LDNZiI','__esModule','965kOtxMb','env','2pHmNUJ','10231046XulMke','HTTP_PROXY','NodeHttpHandler','5249460reyixH'];_0x30c0=function(){return _0x2bbb0b;};return _0x30c0();}exports['HttpHandler']=HttpHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x31acc9=_0x46e9;(function(_0x3bf77f,_0x574bc4){const _0x18e319=_0x46e9,_0x545abb=_0x3bf77f();while(!![]){try{const _0x47c91e=-parseInt(_0x18e319(0x10a))/0x1+-parseInt(_0x18e319(0x10f))/0x2*(-parseInt(_0x18e319(0x118))/0x3)+parseInt(_0x18e319(0x12a))/0x4+parseInt(_0x18e319(0x107))/0x5+-parseInt(_0x18e319(0x10e))/0x6*(parseInt(_0x18e319(0x113))/0x7)+parseInt(_0x18e319(0x140))/0x8*(parseInt(_0x18e319(0x114))/0x9)+parseInt(_0x18e319(0x13e))/0xa*(-parseInt(_0x18e319(0x12d))/0xb);if(_0x47c91e===_0x574bc4)break;else _0x545abb['push'](_0x545abb['shift']());}catch(_0x559277){_0x545abb['push'](_0x545abb['shift']());}}}(_0x2d89,0x2089b));var __awaiter=this&&this[_0x31acc9(0x108)]||function(_0x4cf764,_0x1bdeae,_0x65c6b7,_0x451890){function _0x1370cf(_0x11a3ee){return _0x11a3ee instanceof _0x65c6b7?_0x11a3ee:new _0x65c6b7(function(_0x46d341){_0x46d341(_0x11a3ee);});}return new(_0x65c6b7||(_0x65c6b7=Promise))(function(_0x211ebc,_0x1d7251){const _0x569ca5=_0x46e9;function _0x527534(_0x34d36f){const _0x5aa8e0=_0x46e9;try{_0x4e2601(_0x451890[_0x5aa8e0(0xf8)](_0x34d36f));}catch(_0x5c984f){_0x1d7251(_0x5c984f);}}function _0x309166(_0xcf12f3){const _0x52d9ad=_0x46e9;try{_0x4e2601(_0x451890[_0x52d9ad(0x120)](_0xcf12f3));}catch(_0x3733d9){_0x1d7251(_0x3733d9);}}function _0x4e2601(_0x348e96){const _0x31b3fa=_0x46e9;_0x348e96[_0x31b3fa(0x13a)]?_0x211ebc(_0x348e96[_0x31b3fa(0x13d)]):_0x1370cf(_0x348e96[_0x31b3fa(0x13d)])[_0x31b3fa(0x109)](_0x527534,_0x309166);}_0x4e2601((_0x451890=_0x451890[_0x569ca5(0x149)](_0x4cf764,_0x1bdeae||[]))[_0x569ca5(0xf8)]());});},__importDefault=this&&this[_0x31acc9(0x103)]||function(_0x2a09f1){const _0x409579=_0x31acc9;return _0x2a09f1&&_0x2a09f1[_0x409579(0x136)]?_0x2a09f1:{'default':_0x2a09f1};};Object[_0x31acc9(0xfd)](exports,_0x31acc9(0x136),{'value':!![]}),exports[_0x31acc9(0x143)]=void 0x0;const path_1=__importDefault(require(_0x31acc9(0x116))),promises_1=require(_0x31acc9(0xfa)),aws_s3_utils_1=require(_0x31acc9(0x119)),_1=require('./'),aws_types_1=require(_0x31acc9(0x13c)),retrieve_status_enum_1=require('../types/retrieve-status.enum'),stream_1=require('stream'),path_2=__importDefault(require(_0x31acc9(0x116))),crypto_1=require(_0x31acc9(0x137)),promises_2=require(_0x31acc9(0x146)),fs_1=require('fs'),client_s3_1=require(_0x31acc9(0xf5)),init_1=require(_0x31acc9(0x14c));function _0x46e9(_0x5df27e,_0x441cbb){const _0x2d89f4=_0x2d89();return _0x46e9=function(_0x46e9c5,_0x519b2d){_0x46e9c5=_0x46e9c5-0xf4;let _0x445a13=_0x2d89f4[_0x46e9c5];return _0x445a13;},_0x46e9(_0x5df27e,_0x441cbb);}class AwsS3Retrieve extends _1[_0x31acc9(0x147)]{constructor(_0x49c642,_0x2e57b9,_0x45fd4b,_0xd67b45){const _0x483fec=_0x31acc9,_0x356920=_0x2e57b9['split'](path_1[_0x483fec(0x124)][_0x483fec(0x12c)])[_0x483fec(0x11a)](path_1['default']['posix'][_0x483fec(0x12c)]);super(_0x49c642,_0x356920),this['restoreType']=_0x45fd4b,this['cachePath']=_0xd67b45,this[_0x483fec(0x14b)]=0x7530,this[_0x483fec(0x102)]=0x3e8,this[_0x483fec(0x110)]=new client_s3_1[(_0x483fec(0x115))]({'region':this[_0x483fec(0x133)][_0x483fec(0x13b)],'credentials':{'accessKeyId':this[_0x483fec(0x133)][_0x483fec(0x101)],'secretAccessKey':this[_0x483fec(0x133)][_0x483fec(0x11b)]},'requestHandler':new init_1[(_0x483fec(0xf7))]()}),this[_0x483fec(0x126)]=[];}[_0x31acc9(0x13f)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5dcd6a=_0x46e9;this[_0x5dcd6a(0x111)]===retrieve_status_enum_1[_0x5dcd6a(0x145)][_0x5dcd6a(0x134)]&&(yield this[_0x5dcd6a(0xf9)](),yield this[_0x5dcd6a(0x13f)]());switch(this[_0x5dcd6a(0x111)]){case retrieve_status_enum_1['RetrieveStatus']['InProgress']:yield(0x0,promises_1['setTimeout'])(this['RETRIEVE_STATUS_CHECK_TIMEOUT']),yield this['waitUtilRetrieveDone']();break;case retrieve_status_enum_1[_0x5dcd6a(0x145)][_0x5dcd6a(0x131)]:throw new Error(this['errorMessage']);}});}[_0x31acc9(0x130)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x26f3d4=_0x46e9;if(this[_0x26f3d4(0x111)]===retrieve_status_enum_1['RetrieveStatus']['InProgress'])throw new Error(_0x26f3d4(0xfe));if(this[_0x26f3d4(0x12e)]||!this[_0x26f3d4(0x126)]['length'])throw new Error(_0x26f3d4(0x132));const _0x515c1c=this[_0x26f3d4(0x126)][_0x26f3d4(0x127)]();let _0x2c9e59;return!this[_0x26f3d4(0x100)]?_0x2c9e59=yield this['fetchFileBody'](_0x515c1c[_0x26f3d4(0x116)]):_0x2c9e59=yield this[_0x26f3d4(0x11e)](yield this[_0x26f3d4(0x128)](_0x515c1c[_0x26f3d4(0x116)])),this[_0x26f3d4(0x12e)]=!this[_0x26f3d4(0x126)][_0x26f3d4(0x10c)],{'path':this['path']['split'](path_1[_0x26f3d4(0x124)][_0x26f3d4(0xfc)]['sep'])[_0x26f3d4(0x11a)](path_1[_0x26f3d4(0x124)][_0x26f3d4(0x12c)]),'content':_0x2c9e59};});}[_0x31acc9(0x11f)](_0x3d9ac0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5b9510=_0x46e9,_0x59ffaf=new client_s3_1[(_0x5b9510(0x105))]({'Bucket':this[_0x5b9510(0x133)][_0x5b9510(0xfb)],'Key':_0x3d9ac0}),{StorageClass:_0x2fe481,Restore:_0xac5f94}=yield this[_0x5b9510(0x110)]['send'](_0x59ffaf);return{'StorageClass':_0x2fe481,'Restore':_0xac5f94};});}['restoreFile'](_0x3a498c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xee61e=_0x46e9,_0x5cb85b=new client_s3_1[(_0xee61e(0x104))]({'Bucket':this[_0xee61e(0x133)]['bucketName'],'Key':_0x3a498c,'RestoreRequest':{'Days':0x1,'GlacierJobParameters':{'Tier':this[_0xee61e(0x135)]}}});yield this[_0xee61e(0x110)][_0xee61e(0x121)](_0x5cb85b);});}[_0x31acc9(0x128)](_0x5ba19e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xff3553=_0x46e9,_0x2e4fce=new client_s3_1['GetObjectCommand']({'Bucket':this[_0xff3553(0x133)][_0xff3553(0xfb)],'Key':_0x5ba19e,'ResponseContentType':'stream'}),{Body:_0x396788}=yield this[_0xff3553(0x110)][_0xff3553(0x121)](_0x2e4fce);if(_0x396788 instanceof stream_1[_0xff3553(0x12b)])return _0x396788;throw new Error(_0xff3553(0xf6));});}[_0x31acc9(0xf9)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1b1c68=_0x46e9;yield this[_0x1b1c68(0x141)](),yield this[_0x1b1c68(0x138)](),this['status']=retrieve_status_enum_1[_0x1b1c68(0x145)][_0x1b1c68(0x11d)],this[_0x1b1c68(0x106)]()[_0x1b1c68(0x14a)](_0x4ed9ad=>{const _0x39ed01=_0x1b1c68;this['status']=retrieve_status_enum_1[_0x39ed01(0x145)][_0x39ed01(0x131)],this[_0x39ed01(0x148)]=_0x4ed9ad[_0x39ed01(0xf4)];});});}[_0x31acc9(0x141)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x51266a=_0x46e9,_0xce71ec=yield aws_s3_utils_1[_0x51266a(0x11c)][_0x51266a(0x122)](this['path'],this['credentials'][_0x51266a(0xfb)],this[_0x51266a(0x110)]);for(const _0x8bf29b of _0xce71ec){const _0x22821c=yield this[_0x51266a(0x11f)](_0x8bf29b);this[_0x51266a(0x126)]['push']({'path':_0x8bf29b,'class':_0x22821c[_0x51266a(0x10d)]||_0x51266a(0x129),'status':aws_s3_utils_1[_0x51266a(0x11c)]['extractFileRetrieveStatusFromFileInfo'](_0x22821c)});}});}[_0x31acc9(0x138)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x8fa943=_0x46e9,_0x1c345b=this[_0x8fa943(0x126)][_0x8fa943(0x10b)](_0x258d4d=>_0x258d4d[_0x8fa943(0x111)]===aws_types_1[_0x8fa943(0x142)]['NeedRestore']);for(const _0x44197e of _0x1c345b){yield this['restoreFile'](_0x44197e[_0x8fa943(0x116)]),_0x44197e[_0x8fa943(0x111)]=aws_types_1[_0x8fa943(0x142)]['Restoring'];}});}['updateFilesRetrieveStatus'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2342d0=_0x46e9,_0x4b826c=this[_0x2342d0(0x126)][_0x2342d0(0x10b)](_0x85571d=>_0x85571d['status']===aws_types_1[_0x2342d0(0x142)][_0x2342d0(0x112)]);for(const _0x30b35f of _0x4b826c){const _0x28d0e2=yield this[_0x2342d0(0x11f)](_0x30b35f['path']);_0x30b35f[_0x2342d0(0x111)]=aws_s3_utils_1[_0x2342d0(0x11c)][_0x2342d0(0x125)](_0x28d0e2);}});}[_0x31acc9(0x106)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x13a706=_0x46e9,_0x4f3bb0=this[_0x13a706(0x126)][_0x13a706(0x144)](_0x4b4f55=>_0x4b4f55[_0x13a706(0x111)]===aws_types_1[_0x13a706(0x142)]['Restoring']);this['status']=_0x4f3bb0?retrieve_status_enum_1[_0x13a706(0x145)][_0x13a706(0x11d)]:retrieve_status_enum_1[_0x13a706(0x145)][_0x13a706(0x123)],_0x4f3bb0&&(yield(0x0,promises_1['setTimeout'])(this[_0x13a706(0x14b)]),yield this['updateFilesRetrieveStatus'](),yield this[_0x13a706(0x106)]());});}['createCacheFileStream'](_0xcd584c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x591428=_0x46e9,_0x48b882=path_2[_0x591428(0x124)][_0x591428(0x11a)](this[_0x591428(0x100)],(0x0,crypto_1[_0x591428(0x117)])());yield(0x0,promises_2[_0x591428(0x12f)])(_0x48b882,_0xcd584c);const _0x5bfa20=(0x0,fs_1[_0x591428(0x139)])(_0x48b882);return _0x5bfa20['on'](_0x591428(0xff),()=>(0x0,promises_2['rm'])(_0x48b882)),_0x5bfa20;});}}exports[_0x31acc9(0x143)]=AwsS3Retrieve;function _0x2d89(){const _0x489be1=['Exception','No\x20files\x20left\x20to\x20execute.','credentials','Uninitialized','restoreType','__esModule','crypto','runRestoreFiles','createReadStream','done','region','../types/aws.types','value','1548880wevXZX','waitUtilRetrieveDone','95792FcoZhJ','tryRestoreFilesFromCloud','AwsFileRetrieveStatus','AwsS3Retrieve','some','RetrieveStatus','fs/promises','BaseRetrieve','errorMessage','apply','catch','CHECK_RESTORED_TIMEOUT','../init','message','@aws-sdk/client-s3','Body\x20is\x20not\x20supported\x20type','HttpHandler','next','init','timers/promises','bucketName','posix','defineProperty','Cannot\x20execute\x20when\x20retrieve\x20in\x20progress.','close','cachePath','accessKeyId','RETRIEVE_STATUS_CHECK_TIMEOUT','__importDefault','RestoreObjectCommand','HeadObjectCommand','checkFilesRetrieveStatus','686495KfjNwm','__awaiter','then','73315bSJlxk','filter','length','StorageClass','30PtFXVX','1318IhadMf','s3Client','status','Restoring','178465PlZyhN','117FJxuxV','S3Client','path','randomUUID','651lbNwUn','../utils/aws-s3.utils','join','secretAccessKey','AwsS3Utils','InProgress','createCacheFileStream','fetchFileInfo','throw','send','getFilesPaths','Completed','default','extractFileRetrieveStatusFromFileInfo','files','shift','fetchFileBody','STANDARD','831508VaGrmD','Readable','sep','22mdgYTY','isDone','writeFile','execute'];_0x2d89=function(){return _0x489be1;};return _0x2d89();}
|
|
1
|
+
'use strict';const _0x1aca8c=_0x3f5b;function _0x1a60(){const _0x2e104d=['region','restoreFile','STANDARD','7305rOTZTm','errorMessage','isDone','13782ANwUFJ','message','AwsS3Utils','updateFilesRetrieveStatus','5181451EuvYDY','36zzzFnr','fs/promises','waitUtilRetrieveDone','default','length','../init','push','writeFile','status','createCacheFileStream','Body\x20is\x20not\x20supported\x20type','__esModule','@aws-sdk/client-s3','Restoring','CHECK_RESTORED_TIMEOUT','HttpHandler','../types/retrieve-status.enum','RETRIEVE_STATUS_CHECK_TIMEOUT','Completed','runRestoreFiles','__awaiter','restoreType','some','../types/aws.types','s3Client','8406228QQXXcI','fetchFileBody','next','send','throw','NeedRestore','getFilesPaths','stream','336LZabdF','StorageClass','1313240GuROun','Exception','files','then','secretAccessKey','GetObjectCommand','join','done','init','crypto','570183aSoqcq','BaseRetrieve','extractFileRetrieveStatusFromFileInfo','credentials','checkFilesRetrieveStatus','16ekJEWd','filter','accessKeyId','catch','posix','InProgress','cachePath','21nQAEZn','createReadStream','__importDefault','10jeAbNk','close','setTimeout','bucketName','AwsS3Retrieve','split','716705rQxQKn','value','sep','AwsFileRetrieveStatus','fetchFileInfo','RetrieveStatus','path','shift','randomUUID'];_0x1a60=function(){return _0x2e104d;};return _0x1a60();}(function(_0x231218,_0x168162){const _0x28c874=_0x3f5b,_0x50137f=_0x231218();while(!![]){try{const _0xe33279=parseInt(_0x28c874(0xc8))/0x1+-parseInt(_0x28c874(0xbc))/0x2*(-parseInt(_0x28c874(0xe9))/0x3)+-parseInt(_0x28c874(0xcd))/0x4*(-parseInt(_0x28c874(0xdd))/0x5)+-parseInt(_0x28c874(0xec))/0x6*(-parseInt(_0x28c874(0xd4))/0x7)+-parseInt(_0x28c874(0xbe))/0x8*(parseInt(_0x28c874(0x9b))/0x9)+-parseInt(_0x28c874(0xd7))/0xa*(-parseInt(_0x28c874(0xf0))/0xb)+-parseInt(_0x28c874(0xb4))/0xc;if(_0xe33279===_0x168162)break;else _0x50137f['push'](_0x50137f['shift']());}catch(_0x25a9e1){_0x50137f['push'](_0x50137f['shift']());}}}(_0x1a60,0xa468c));var __awaiter=this&&this[_0x1aca8c(0xaf)]||function(_0x9828e9,_0x347564,_0x61bfaf,_0x55293a){function _0xd30b8a(_0x2eba13){return _0x2eba13 instanceof _0x61bfaf?_0x2eba13:new _0x61bfaf(function(_0xab0a59){_0xab0a59(_0x2eba13);});}return new(_0x61bfaf||(_0x61bfaf=Promise))(function(_0x46813f,_0x487843){const _0x4a3079=_0x3f5b;function _0x158470(_0x316222){const _0x21f830=_0x3f5b;try{_0x1d0687(_0x55293a[_0x21f830(0xb6)](_0x316222));}catch(_0x324ff7){_0x487843(_0x324ff7);}}function _0x229ef5(_0x544a10){const _0x225bc2=_0x3f5b;try{_0x1d0687(_0x55293a[_0x225bc2(0xb8)](_0x544a10));}catch(_0x5ca0b2){_0x487843(_0x5ca0b2);}}function _0x1d0687(_0x2f16f5){const _0x2e46d8=_0x3f5b;_0x2f16f5[_0x2e46d8(0xc5)]?_0x46813f(_0x2f16f5[_0x2e46d8(0xde)]):_0xd30b8a(_0x2f16f5['value'])[_0x2e46d8(0xc1)](_0x158470,_0x229ef5);}_0x1d0687((_0x55293a=_0x55293a['apply'](_0x9828e9,_0x347564||[]))[_0x4a3079(0xb6)]());});},__importDefault=this&&this[_0x1aca8c(0xd6)]||function(_0x12430b){const _0x5ca7bb=_0x1aca8c;return _0x12430b&&_0x12430b[_0x5ca7bb(0xa6)]?_0x12430b:{'default':_0x12430b};};Object['defineProperty'](exports,_0x1aca8c(0xa6),{'value':!![]}),exports[_0x1aca8c(0xdb)]=void 0x0;const path_1=__importDefault(require(_0x1aca8c(0xe3))),promises_1=require('timers/promises'),aws_s3_utils_1=require('../utils/aws-s3.utils'),_1=require('./'),aws_types_1=require(_0x1aca8c(0xb2)),retrieve_status_enum_1=require(_0x1aca8c(0xab)),stream_1=require(_0x1aca8c(0xbb)),path_2=__importDefault(require(_0x1aca8c(0xe3))),crypto_1=require(_0x1aca8c(0xc7)),promises_2=require(_0x1aca8c(0x9c)),fs_1=require('fs'),client_s3_1=require(_0x1aca8c(0xa7)),init_1=require(_0x1aca8c(0xa0));function _0x3f5b(_0x57ecff,_0x16fd95){const _0x1a6055=_0x1a60();return _0x3f5b=function(_0x3f5b5a,_0x1427e2){_0x3f5b5a=_0x3f5b5a-0x9b;let _0x17150c=_0x1a6055[_0x3f5b5a];return _0x17150c;},_0x3f5b(_0x57ecff,_0x16fd95);}class AwsS3Retrieve extends _1[_0x1aca8c(0xc9)]{constructor(_0x3e339b,_0x3c2f8a,_0x59b28e,_0x34589b){const _0x2ce9be=_0x1aca8c,_0x183396=_0x3c2f8a['split'](path_1[_0x2ce9be(0x9e)][_0x2ce9be(0xdf)])[_0x2ce9be(0xc4)](path_1[_0x2ce9be(0x9e)][_0x2ce9be(0xd1)][_0x2ce9be(0xdf)]);super(_0x3e339b,_0x183396),this[_0x2ce9be(0xb0)]=_0x59b28e,this[_0x2ce9be(0xd3)]=_0x34589b,this[_0x2ce9be(0xa9)]=0x7530,this[_0x2ce9be(0xac)]=0x3e8,this[_0x2ce9be(0xb3)]=new client_s3_1['S3Client']({'region':this[_0x2ce9be(0xcb)][_0x2ce9be(0xe6)],'credentials':{'accessKeyId':this[_0x2ce9be(0xcb)][_0x2ce9be(0xcf)],'secretAccessKey':this['credentials'][_0x2ce9be(0xc2)]},'requestHandler':new init_1[(_0x2ce9be(0xaa))]()}),this['files']=[];}['waitUtilRetrieveDone'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xc6f491=_0x3f5b;this['status']===retrieve_status_enum_1['RetrieveStatus']['Uninitialized']&&(yield this[_0xc6f491(0xc6)](),yield this[_0xc6f491(0x9d)]());switch(this[_0xc6f491(0xa3)]){case retrieve_status_enum_1[_0xc6f491(0xe2)][_0xc6f491(0xd2)]:yield(0x0,promises_1['setTimeout'])(this[_0xc6f491(0xac)]),yield this[_0xc6f491(0x9d)]();break;case retrieve_status_enum_1[_0xc6f491(0xe2)]['Exception']:throw new Error(this[_0xc6f491(0xea)]);}});}['execute'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x578974=_0x3f5b;if(this[_0x578974(0xa3)]===retrieve_status_enum_1[_0x578974(0xe2)][_0x578974(0xd2)])throw new Error('Cannot\x20execute\x20when\x20retrieve\x20in\x20progress.');if(this[_0x578974(0xeb)]||!this[_0x578974(0xc0)][_0x578974(0x9f)])throw new Error('No\x20files\x20left\x20to\x20execute.');const _0x543a68=this['files'][_0x578974(0xe4)]();let _0x4895d1;return!this[_0x578974(0xd3)]?_0x4895d1=yield this['fetchFileBody'](_0x543a68[_0x578974(0xe3)]):_0x4895d1=yield this[_0x578974(0xa4)](yield this[_0x578974(0xb5)](_0x543a68[_0x578974(0xe3)])),this['isDone']=!this['files'][_0x578974(0x9f)],{'path':this[_0x578974(0xe3)][_0x578974(0xdc)](path_1['default'][_0x578974(0xd1)][_0x578974(0xdf)])[_0x578974(0xc4)](path_1[_0x578974(0x9e)][_0x578974(0xdf)]),'content':_0x4895d1};});}['fetchFileInfo'](_0x521a13){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x48d0ce=_0x3f5b,_0x2701d7=new client_s3_1['HeadObjectCommand']({'Bucket':this[_0x48d0ce(0xcb)][_0x48d0ce(0xda)],'Key':_0x521a13}),{StorageClass:_0x14d129,Restore:_0x57ff33}=yield this[_0x48d0ce(0xb3)]['send'](_0x2701d7);return{'StorageClass':_0x14d129,'Restore':_0x57ff33};});}[_0x1aca8c(0xe7)](_0x4db9e3){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x48f4e4=_0x3f5b,_0x3c35ad=new client_s3_1['RestoreObjectCommand']({'Bucket':this['credentials'][_0x48f4e4(0xda)],'Key':_0x4db9e3,'RestoreRequest':{'Days':0x1,'GlacierJobParameters':{'Tier':this[_0x48f4e4(0xb0)]}}});yield this[_0x48f4e4(0xb3)][_0x48f4e4(0xb7)](_0x3c35ad);});}['fetchFileBody'](_0x4df2d1){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2dbb59=_0x3f5b,_0x1bfce5=new client_s3_1[(_0x2dbb59(0xc3))]({'Bucket':this['credentials'][_0x2dbb59(0xda)],'Key':_0x4df2d1,'ResponseContentType':'stream'}),{Body:_0x573df8}=yield this['s3Client']['send'](_0x1bfce5);if(_0x573df8 instanceof stream_1['Readable'])return _0x573df8;throw new Error(_0x2dbb59(0xa5));});}['init'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x125e4a=_0x3f5b;yield this['tryRestoreFilesFromCloud'](),yield this[_0x125e4a(0xae)](),this[_0x125e4a(0xa3)]=retrieve_status_enum_1[_0x125e4a(0xe2)][_0x125e4a(0xd2)],this['checkFilesRetrieveStatus']()[_0x125e4a(0xd0)](_0x1fe305=>{const _0x220bec=_0x125e4a;this[_0x220bec(0xa3)]=retrieve_status_enum_1[_0x220bec(0xe2)][_0x220bec(0xbf)],this['errorMessage']=_0x1fe305[_0x220bec(0xed)];});});}['tryRestoreFilesFromCloud'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x547cf9=_0x3f5b,_0x4d6e55=yield aws_s3_utils_1[_0x547cf9(0xee)][_0x547cf9(0xba)](this[_0x547cf9(0xe3)],this[_0x547cf9(0xcb)]['bucketName'],this[_0x547cf9(0xb3)]);for(const _0x5d58cf of _0x4d6e55){const _0xa57917=yield this[_0x547cf9(0xe1)](_0x5d58cf);this['files'][_0x547cf9(0xa1)]({'path':_0x5d58cf,'class':_0xa57917[_0x547cf9(0xbd)]||_0x547cf9(0xe8),'status':aws_s3_utils_1[_0x547cf9(0xee)][_0x547cf9(0xca)](_0xa57917)});}});}[_0x1aca8c(0xae)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x216d98=_0x3f5b,_0x252509=this['files']['filter'](_0x15f432=>_0x15f432[_0x216d98(0xa3)]===aws_types_1['AwsFileRetrieveStatus'][_0x216d98(0xb9)]);for(const _0x3d4fff of _0x252509){yield this['restoreFile'](_0x3d4fff[_0x216d98(0xe3)]),_0x3d4fff[_0x216d98(0xa3)]=aws_types_1[_0x216d98(0xe0)][_0x216d98(0xa8)];}});}[_0x1aca8c(0xef)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x38c078=_0x3f5b,_0x1a132b=this[_0x38c078(0xc0)][_0x38c078(0xce)](_0x5bfb66=>_0x5bfb66[_0x38c078(0xa3)]===aws_types_1['AwsFileRetrieveStatus'][_0x38c078(0xa8)]);for(const _0x19df85 of _0x1a132b){const _0x5e0ace=yield this[_0x38c078(0xe1)](_0x19df85[_0x38c078(0xe3)]);_0x19df85[_0x38c078(0xa3)]=aws_s3_utils_1['AwsS3Utils']['extractFileRetrieveStatusFromFileInfo'](_0x5e0ace);}});}[_0x1aca8c(0xcc)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4cce51=_0x3f5b,_0xf37aae=this[_0x4cce51(0xc0)][_0x4cce51(0xb1)](_0x19690e=>_0x19690e[_0x4cce51(0xa3)]===aws_types_1['AwsFileRetrieveStatus'][_0x4cce51(0xa8)]);this[_0x4cce51(0xa3)]=_0xf37aae?retrieve_status_enum_1['RetrieveStatus'][_0x4cce51(0xd2)]:retrieve_status_enum_1[_0x4cce51(0xe2)][_0x4cce51(0xad)],_0xf37aae&&(yield(0x0,promises_1[_0x4cce51(0xd9)])(this[_0x4cce51(0xa9)]),yield this[_0x4cce51(0xef)](),yield this[_0x4cce51(0xcc)]());});}[_0x1aca8c(0xa4)](_0xaf8598){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1a20b0=_0x3f5b,_0x51550b=path_2[_0x1a20b0(0x9e)][_0x1a20b0(0xc4)](this[_0x1a20b0(0xd3)],(0x0,crypto_1[_0x1a20b0(0xe5)])());yield(0x0,promises_2[_0x1a20b0(0xa2)])(_0x51550b,_0xaf8598);const _0x57344f=(0x0,fs_1[_0x1a20b0(0xd5)])(_0x51550b);return _0x57344f['on'](_0x1a20b0(0xd8),()=>(0x0,promises_2['rm'])(_0x51550b)),_0x57344f;});}}exports[_0x1aca8c(0xdb)]=AwsS3Retrieve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x163360=_0x2f14;(function(_0x29ad85,_0x12ea10){const _0x453019=_0x2f14,_0x1f578b=_0x29ad85();while(!![]){try{const _0x467903=-parseInt(_0x453019(0x81))/0x1+parseInt(_0x453019(0x87))/0x2+parseInt(_0x453019(0x7f))/0x3*(-parseInt(_0x453019(0x7e))/0x4)+parseInt(_0x453019(0x7b))/0x5+-parseInt(_0x453019(0x74))/0x6+parseInt(_0x453019(0x76))/0x7*(-parseInt(_0x453019(0x75))/0x8)+-parseInt(_0x453019(0x84))/0x9*(-parseInt(_0x453019(0x77))/0xa);if(_0x467903===_0x12ea10)break;else _0x1f578b['push'](_0x1f578b['shift']());}catch(_0x21d3ef){_0x1f578b['push'](_0x1f578b['shift']());}}}(_0x4706,0xa7010));function _0x2f14(_0x3b188b,_0x365d8e){const _0x470625=_0x4706();return _0x2f14=function(_0x2f1433,_0x1979b5){_0x2f1433=_0x2f1433-0x74;let _0x5b137b=_0x470625[_0x2f1433];return _0x5b137b;},_0x2f14(_0x3b188b,_0x365d8e);}Object[_0x163360(0x7a)](exports,_0x163360(0x7d),{'value':!![]}),exports['BaseRetrieve']=void 0x0;const retrieve_status_enum_1=require(_0x163360(0x79));class BaseRetrieve{constructor(_0x4b118b,_0x3d78fe){const _0x190e9e=_0x163360;this[_0x190e9e(0x7c)]=_0x4b118b,this[_0x190e9e(0x78)]=_0x3d78fe,this[_0x190e9e(0x83)]=![],this[_0x190e9e(0x85)]=retrieve_status_enum_1[_0x190e9e(0x86)][_0x190e9e(0x80)];}[_0x163360(0x82)](){const _0x5c1a8c=_0x163360;return this[_0x5c1a8c(0x83)];}}exports['BaseRetrieve']=BaseRetrieve;function _0x4706(){const _0x3a163a=['Uninitialized','1361809wOPzVq','getIsDone','isDone','342BxnedL','status','RetrieveStatus','2348898WqfaKN','1785090GuUHhq','185552LJFtKH','259veGecE','455720RDOSMw','path','../types/retrieve-status.enum','defineProperty','6503180povajD','credentials','__esModule','628Bfwqnv','19209BvhAHA'];_0x4706=function(){return _0x3a163a;};return _0x4706();}
|
package/dist/retrieve/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x37b25e=_0x358c;(function(_0x130335,_0x5bbb6d){var _0x2f92ec=_0x358c,_0x2feaad=_0x130335();while(!![]){try{var _0x4cb6fc=-parseInt(_0x2f92ec(0x84))/0x1*(-parseInt(_0x2f92ec(0x7f))/0x2)+parseInt(_0x2f92ec(0x88))/0x3*(parseInt(_0x2f92ec(0x81))/0x4)+parseInt(_0x2f92ec(0x80))/0x5+-parseInt(_0x2f92ec(0x82))/0x6+parseInt(_0x2f92ec(0x8b))/0x7+parseInt(_0x2f92ec(0x7e))/0x8*(parseInt(_0x2f92ec(0x7d))/0x9)+-parseInt(_0x2f92ec(0x85))/0xa;if(_0x4cb6fc===_0x5bbb6d)break;else _0x2feaad['push'](_0x2feaad['shift']());}catch(_0x374d30){_0x2feaad['push'](_0x2feaad['shift']());}}}(_0x1442,0x4fb25));Object[_0x37b25e(0x8a)](exports,'__esModule',{'value':!![]}),exports[_0x37b25e(0x83)]=exports[_0x37b25e(0x86)]=exports[_0x37b25e(0x89)]=void 0x0;var base_retrieve_1=require('./base-retrieve');Object[_0x37b25e(0x8a)](exports,_0x37b25e(0x89),{'enumerable':!![],'get':function(){var _0x4887dd=_0x37b25e;return base_retrieve_1[_0x4887dd(0x89)];}});var aws_s3_retrieve_1=require(_0x37b25e(0x87));Object['defineProperty'](exports,'AwsS3Retrieve',{'enumerable':!![],'get':function(){var _0x593d1b=_0x37b25e;return aws_s3_retrieve_1[_0x593d1b(0x86)];}});function _0x358c(_0x494bdc,_0x4fb287){var _0x1442a4=_0x1442();return _0x358c=function(_0x358cdc,_0x5decce){_0x358cdc=_0x358cdc-0x7d;var _0xbbc65b=_0x1442a4[_0x358cdc];return _0xbbc65b;},_0x358c(_0x494bdc,_0x4fb287);}var local_retrieve_1=require('./local-retrieve');Object['defineProperty'](exports,_0x37b25e(0x83),{'enumerable':!![],'get':function(){var _0x3e862a=_0x37b25e;return local_retrieve_1[_0x3e862a(0x83)];}});function _0x1442(){var _0x2f9143=['2044742HZpoel','6066SkMhZB','5096XyEmcP','26MMEZbk','3217540BUTXBd','644076VAErUm','3781638jqHmBA','LocalRetrieve','32563ImrnSc','9925800eLzbqn','AwsS3Retrieve','./aws-s3-retrieve','3CpjZFP','BaseRetrieve','defineProperty'];_0x1442=function(){return _0x2f9143;};return _0x1442();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x1e12(_0x1ff610,_0x5044d1){const _0x512361=_0x5123();return _0x1e12=function(_0x1e12ab,_0x38b995){_0x1e12ab=_0x1e12ab-0xe5;let _0x36eef6=_0x512361[_0x1e12ab];return _0x36eef6;},_0x1e12(_0x1ff610,_0x5044d1);}const _0x262d86=_0x1e12;(function(_0x14b910,_0x535d5d){const _0x415b99=_0x1e12,_0x365184=_0x14b910();while(!![]){try{const _0x25725a=-parseInt(_0x415b99(0xfe))/0x1*(-parseInt(_0x415b99(0xff))/0x2)+-parseInt(_0x415b99(0xf6))/0x3+-parseInt(_0x415b99(0xe6))/0x4+-parseInt(_0x415b99(0xeb))/0x5+-parseInt(_0x415b99(0xf1))/0x6*(parseInt(_0x415b99(0xed))/0x7)+-parseInt(_0x415b99(0xf3))/0x8+parseInt(_0x415b99(0xef))/0x9;if(_0x25725a===_0x535d5d)break;else _0x365184['push'](_0x365184['shift']());}catch(_0x1a02d0){_0x365184['push'](_0x365184['shift']());}}}(_0x5123,0xe11a9));function _0x5123(){const _0x2bdb33=['status','Completed','shift','1gFdNUU','1092526rnJchj','throw','filesPaths','RetrieveStatus','4920596CxPntd','__awaiter','value','isDone','apply','8512515fhAzXv','LocalRetrieve','2047479UbZFBY','Uninitialized','37378692VsFKJx','FsUtils','12BrBtji','execute','1351552ncvlcG','__esModule','getFolderFiles','272508EAqWNh','path','../types/retrieve-status.enum','length','readFilesToRetrieve'];_0x5123=function(){return _0x2bdb33;};return _0x5123();}var __awaiter=this&&this[_0x262d86(0xe7)]||function(_0x469b73,_0x568d9f,_0x1e248b,_0x30127a){function _0x45bf2a(_0x2a2bcf){return _0x2a2bcf instanceof _0x1e248b?_0x2a2bcf:new _0x1e248b(function(_0x269bdd){_0x269bdd(_0x2a2bcf);});}return new(_0x1e248b||(_0x1e248b=Promise))(function(_0x323992,_0x4f5156){const _0x58b7b8=_0x1e12;function _0x3b431d(_0x443d38){try{_0xc735de(_0x30127a['next'](_0x443d38));}catch(_0x59b3de){_0x4f5156(_0x59b3de);}}function _0x33b016(_0x3a261f){const _0x89d11c=_0x1e12;try{_0xc735de(_0x30127a[_0x89d11c(0x100)](_0x3a261f));}catch(_0x25ed67){_0x4f5156(_0x25ed67);}}function _0xc735de(_0x21e6a7){const _0xcf79ff=_0x1e12;_0x21e6a7['done']?_0x323992(_0x21e6a7[_0xcf79ff(0xe8)]):_0x45bf2a(_0x21e6a7[_0xcf79ff(0xe8)])['then'](_0x3b431d,_0x33b016);}_0xc735de((_0x30127a=_0x30127a[_0x58b7b8(0xea)](_0x469b73,_0x568d9f||[]))['next']());});};Object['defineProperty'](exports,_0x262d86(0xf4),{'value':!![]}),exports['LocalRetrieve']=void 0x0;const fs_1=require('fs'),utils_1=require('@flosum-service/utils'),_1=require('./'),retrieve_status_enum_1=require(_0x262d86(0xf8));class LocalRetrieve extends _1['BaseRetrieve']{constructor(){const _0xc6898c=_0x262d86;super(...arguments),this[_0xc6898c(0x101)]=[];}[_0x262d86(0xf2)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1866ca=_0x1e12,_0x3bea19=this['filesPaths'][_0x1866ca(0xfd)](),_0x3d2901=(0x0,fs_1['createReadStream'])(_0x3bea19);return this[_0x1866ca(0xe9)]=!this[_0x1866ca(0x101)][_0x1866ca(0xf9)],{'path':_0x3bea19,'content':_0x3d2901};});}['readFilesToRetrieve'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4e767f=_0x1e12;this[_0x4e767f(0x101)]=yield utils_1[_0x4e767f(0xf0)][_0x4e767f(0xf5)](this[_0x4e767f(0xf7)]);});}['waitUtilRetrieveDone'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1ae2cb=_0x1e12;this[_0x1ae2cb(0xfb)]===retrieve_status_enum_1[_0x1ae2cb(0xe5)][_0x1ae2cb(0xee)]&&(yield this[_0x1ae2cb(0xfa)](),this[_0x1ae2cb(0xfb)]=retrieve_status_enum_1[_0x1ae2cb(0xe5)][_0x1ae2cb(0xfc)]);});}}exports[_0x262d86(0xec)]=LocalRetrieve;
|
package/dist/types/aws.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x465a0c=_0x2a74;(function(_0x216f39,_0x32398d){var _0x458b47=_0x2a74,_0x1992b9=_0x216f39();while(!![]){try{var _0x5f2efe=parseInt(_0x458b47(0x14e))/0x1+-parseInt(_0x458b47(0x150))/0x2+-parseInt(_0x458b47(0x153))/0x3+parseInt(_0x458b47(0x148))/0x4*(-parseInt(_0x458b47(0x151))/0x5)+parseInt(_0x458b47(0x146))/0x6*(-parseInt(_0x458b47(0x154))/0x7)+-parseInt(_0x458b47(0x152))/0x8+-parseInt(_0x458b47(0x14d))/0x9*(-parseInt(_0x458b47(0x14b))/0xa);if(_0x5f2efe===_0x32398d)break;else _0x1992b9['push'](_0x1992b9['shift']());}catch(_0x3d8f01){_0x1992b9['push'](_0x1992b9['shift']());}}}(_0x2797,0xbbbd4));function _0x2a74(_0x163178,_0xbff1ab){var _0x2797db=_0x2797();return _0x2a74=function(_0x2a7434,_0x189673){_0x2a7434=_0x2a7434-0x146;var _0x33c309=_0x2797db[_0x2a7434];return _0x33c309;},_0x2a74(_0x163178,_0xbff1ab);}Object[_0x465a0c(0x14c)](exports,'__esModule',{'value':!![]}),exports[_0x465a0c(0x149)]=void 0x0;var AwsFileRetrieveStatus;function _0x2797(){var _0x36ca0c=['129735kEfMMF','2503352EuyUVi','3067911GCkHpQ','182WysLVQ','314544ZOnlik','NeedRestore','80rRSHLZ','AwsFileRetrieveStatus','Restoring','20HTsTWA','defineProperty','15300504uJOZrM','1231621xVsmdU','Available','1290466sOqyks'];_0x2797=function(){return _0x36ca0c;};return _0x2797();}(function(_0x2ea44f){var _0x3104b9=_0x465a0c;_0x2ea44f[_0x3104b9(0x14f)]=_0x3104b9(0x14f),_0x2ea44f[_0x3104b9(0x14a)]=_0x3104b9(0x14a),_0x2ea44f[_0x3104b9(0x147)]=_0x3104b9(0x147);}(AwsFileRetrieveStatus=exports[_0x465a0c(0x149)]||(exports['AwsFileRetrieveStatus']={})));
|
package/dist/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2f52c6=_0x4d7e;function _0x4d7e(_0x2514ba,_0x4999c3){var _0x2ad354=_0x2ad3();return _0x4d7e=function(_0x4d7e9f,_0x1ebbef){_0x4d7e9f=_0x4d7e9f-0x10c;var _0x4c469a=_0x2ad354[_0x4d7e9f];return _0x4c469a;},_0x4d7e(_0x2514ba,_0x4999c3);}function _0x2ad3(){var _0x47ca1d=['198780OotzVY','24fgjmyj','StorageType','111015RTzeyE','9XlnJZb','118606QpCfkS','335400CoSMLN','61130oqrhZS','99eEaFwp','12TWBEJW','113704IMORUl','defineProperty','./storage-type.enum','272377kaRpXj'];_0x2ad3=function(){return _0x47ca1d;};return _0x2ad3();}(function(_0x429b0e,_0xc9141c){var _0x197e00=_0x4d7e,_0x755bed=_0x429b0e();while(!![]){try{var _0x18a723=parseInt(_0x197e00(0x118))/0x1+-parseInt(_0x197e00(0x10c))/0x2+-parseInt(_0x197e00(0x10d))/0x3+parseInt(_0x197e00(0x116))/0x4*(-parseInt(_0x197e00(0x10e))/0x5)+parseInt(_0x197e00(0x110))/0x6*(parseInt(_0x197e00(0x114))/0x7)+-parseInt(_0x197e00(0x111))/0x8*(parseInt(_0x197e00(0x119))/0x9)+parseInt(_0x197e00(0x115))/0xa*(parseInt(_0x197e00(0x10f))/0xb);if(_0x18a723===_0xc9141c)break;else _0x755bed['push'](_0x755bed['shift']());}catch(_0x1d97b2){_0x755bed['push'](_0x755bed['shift']());}}}(_0x2ad3,0x1aa0b));Object[_0x2f52c6(0x112)](exports,'__esModule',{'value':!![]}),exports[_0x2f52c6(0x117)]=void 0x0;var storage_type_enum_1=require(_0x2f52c6(0x113));Object[_0x2f52c6(0x112)](exports,_0x2f52c6(0x117),{'enumerable':!![],'get':function(){var _0x1da3e2=_0x2f52c6;return storage_type_enum_1[_0x1da3e2(0x117)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x3d412f=_0x2e09;(function(_0x43fb04,_0x3a202e){var _0x2e9604=_0x2e09,_0x5effe9=_0x43fb04();while(!![]){try{var _0x24b02a=parseInt(_0x2e9604(0x10b))/0x1+parseInt(_0x2e9604(0x10a))/0x2+parseInt(_0x2e9604(0x109))/0x3*(-parseInt(_0x2e9604(0x106))/0x4)+-parseInt(_0x2e9604(0x102))/0x5*(parseInt(_0x2e9604(0x10d))/0x6)+-parseInt(_0x2e9604(0x104))/0x7*(-parseInt(_0x2e9604(0x10c))/0x8)+-parseInt(_0x2e9604(0x101))/0x9*(parseInt(_0x2e9604(0x107))/0xa)+parseInt(_0x2e9604(0x10e))/0xb*(parseInt(_0x2e9604(0x105))/0xc);if(_0x24b02a===_0x3a202e)break;else _0x5effe9['push'](_0x5effe9['shift']());}catch(_0x5d78d3){_0x5effe9['push'](_0x5effe9['shift']());}}}(_0x1829,0xa9a6d));function _0x2e09(_0x372856,_0x3263d9){var _0x182991=_0x1829();return _0x2e09=function(_0x2e09a2,_0x48fbd2){_0x2e09a2=_0x2e09a2-0x101;var _0x3783d2=_0x182991[_0x2e09a2];return _0x3783d2;},_0x2e09(_0x372856,_0x3263d9);}function _0x1829(){var _0x2da31e=['92404rAyJoJ','10CbnaLC','defineProperty','165mNEjew','1878440neaCOW','1364200sIZEqz','8kkvPIH','560928zevuXV','1513699mNwzae','6973929tWtXOh','60wxydBW','__esModule','7058303SPYKUV','48kfSKox'];_0x1829=function(){return _0x2da31e;};return _0x1829();}Object[_0x3d412f(0x108)](exports,_0x3d412f(0x103),{'value':!![]});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x2c20(_0x4e559f,_0x5b06bc){var _0x408425=_0x4084();return _0x2c20=function(_0x2c2051,_0x9c614c){_0x2c2051=_0x2c2051-0x1f4;var _0x435a42=_0x408425[_0x2c2051];return _0x435a42;},_0x2c20(_0x4e559f,_0x5b06bc);}var _0x19fbaa=_0x2c20;function _0x4084(){var _0x3b0ab1=['2853288pOYTgU','defineProperty','RetrieveStatus','27744957ADDPsd','Uninitialized','Completed','In\x20Progress','Exception','5058792kuHMct','353372KRijDg','5570505Nbecxn','23303aBwPOF','1zKVqQl','InProgress','9837USISfn','2856AbEVqY','__esModule'];_0x4084=function(){return _0x3b0ab1;};return _0x4084();}(function(_0x3b70ed,_0x71d702){var _0xe41b09=_0x2c20,_0xa30a23=_0x3b70ed();while(!![]){try{var _0x463397=parseInt(_0xe41b09(0x1fe))/0x1*(parseInt(_0xe41b09(0x1fb))/0x2)+-parseInt(_0xe41b09(0x200))/0x3+parseInt(_0xe41b09(0x203))/0x4+-parseInt(_0xe41b09(0x1fc))/0x5+-parseInt(_0xe41b09(0x1fa))/0x6+parseInt(_0xe41b09(0x1fd))/0x7*(-parseInt(_0xe41b09(0x201))/0x8)+parseInt(_0xe41b09(0x1f5))/0x9;if(_0x463397===_0x71d702)break;else _0xa30a23['push'](_0xa30a23['shift']());}catch(_0x521bf9){_0xa30a23['push'](_0xa30a23['shift']());}}}(_0x4084,0xc9208));Object[_0x19fbaa(0x204)](exports,_0x19fbaa(0x202),{'value':!![]}),exports['RetrieveStatus']=void 0x0;var RetrieveStatus;(function(_0x3f696d){var _0xb043a5=_0x19fbaa;_0x3f696d['Uninitialized']=_0xb043a5(0x1f6),_0x3f696d[_0xb043a5(0x1ff)]=_0xb043a5(0x1f8),_0x3f696d[_0xb043a5(0x1f7)]='Completed',_0x3f696d[_0xb043a5(0x1f9)]=_0xb043a5(0x1f9);}(RetrieveStatus=exports[_0x19fbaa(0x1f4)]||(exports[_0x19fbaa(0x1f4)]={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x2602dc=_0x5401;(function(_0x4434a6,_0x266bc5){var _0x37e4bd=_0x5401,_0x3e3f99=_0x4434a6();while(!![]){try{var _0x46a88b=parseInt(_0x37e4bd(0x1a4))/0x1*(parseInt(_0x37e4bd(0x1a7))/0x2)+parseInt(_0x37e4bd(0x1a5))/0x3+-parseInt(_0x37e4bd(0x1ad))/0x4*(-parseInt(_0x37e4bd(0x1a6))/0x5)+parseInt(_0x37e4bd(0x1aa))/0x6*(-parseInt(_0x37e4bd(0x1af))/0x7)+-parseInt(_0x37e4bd(0x1ac))/0x8+-parseInt(_0x37e4bd(0x1ab))/0x9*(parseInt(_0x37e4bd(0x1a9))/0xa)+-parseInt(_0x37e4bd(0x1b0))/0xb;if(_0x46a88b===_0x266bc5)break;else _0x3e3f99['push'](_0x3e3f99['shift']());}catch(_0x39d6d2){_0x3e3f99['push'](_0x3e3f99['shift']());}}}(_0x37c5,0x45341));function _0x5401(_0x58e8f9,_0x2c33a3){var _0x37c540=_0x37c5();return _0x5401=function(_0x5401aa,_0x32a48d){_0x5401aa=_0x5401aa-0x1a4;var _0x17e46b=_0x37c540[_0x5401aa];return _0x17e46b;},_0x5401(_0x58e8f9,_0x2c33a3);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['StorageType']=void 0x0;var StorageType;(function(_0x16e6ea){var _0x165d4a=_0x5401;_0x16e6ea[_0x165d4a(0x1b1)]=_0x165d4a(0x1b1),_0x16e6ea[_0x165d4a(0x1a8)]=_0x165d4a(0x1a8);}(StorageType=exports[_0x2602dc(0x1ae)]||(exports[_0x2602dc(0x1ae)]={})));function _0x37c5(){var _0x315a61=['2226466DwjhEH','Local','37624ToqgFV','1635168gTsrCp','19220MrbtmZ','28EFxcfG','AWS_S3','140dDOXbK','30zLSxwT','216207pFxzyn','3049704UCqHui','476iTYVsX','StorageType','456162KRfAem'];_0x37c5=function(){return _0x315a61;};return _0x37c5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x24a0e0=_0x1c0e;(function(_0x3a73f8,_0xf27bdc){const _0x236ff0=_0x1c0e,_0x4038fc=_0x3a73f8();while(!![]){try{const _0x437290=parseInt(_0x236ff0(0xd0))/0x1+parseInt(_0x236ff0(0xb4))/0x2*(parseInt(_0x236ff0(0xb9))/0x3)+-parseInt(_0x236ff0(0xcb))/0x4*(parseInt(_0x236ff0(0xc1))/0x5)+parseInt(_0x236ff0(0xc4))/0x6*(-parseInt(_0x236ff0(0xc7))/0x7)+-parseInt(_0x236ff0(0xbd))/0x8+-parseInt(_0x236ff0(0xbc))/0x9*(-parseInt(_0x236ff0(0xbe))/0xa)+-parseInt(_0x236ff0(0xc5))/0xb*(parseInt(_0x236ff0(0xaf))/0xc);if(_0x437290===_0xf27bdc)break;else _0x4038fc['push'](_0x4038fc['shift']());}catch(_0x4897db){_0x4038fc['push'](_0x4038fc['shift']());}}}(_0x8b7a,0x1cbad));var __awaiter=this&&this[_0x24a0e0(0xc3)]||function(_0x812f9a,_0x1b7d32,_0x3fd9fa,_0x119566){function _0x4da2bc(_0x1002bf){return _0x1002bf instanceof _0x3fd9fa?_0x1002bf:new _0x3fd9fa(function(_0x1521cf){_0x1521cf(_0x1002bf);});}return new(_0x3fd9fa||(_0x3fd9fa=Promise))(function(_0x2bcf44,_0x2ec1b4){const _0x441150=_0x1c0e;function _0x531a4d(_0x1bae37){const _0x5a0a8f=_0x1c0e;try{_0x5db26b(_0x119566[_0x5a0a8f(0xc0)](_0x1bae37));}catch(_0x17023e){_0x2ec1b4(_0x17023e);}}function _0x413978(_0x2b16bc){const _0x5958c9=_0x1c0e;try{_0x5db26b(_0x119566[_0x5958c9(0xcc)](_0x2b16bc));}catch(_0x5135b2){_0x2ec1b4(_0x5135b2);}}function _0x5db26b(_0x36c627){const _0x54a60e=_0x1c0e;_0x36c627['done']?_0x2bcf44(_0x36c627[_0x54a60e(0xb0)]):_0x4da2bc(_0x36c627['value'])['then'](_0x531a4d,_0x413978);}_0x5db26b((_0x119566=_0x119566[_0x441150(0xcf)](_0x812f9a,_0x1b7d32||[]))[_0x441150(0xc0)]());});};Object[_0x24a0e0(0xb3)](exports,_0x24a0e0(0xbf),{'value':!![]}),exports[_0x24a0e0(0xca)]=void 0x0;function _0x1c0e(_0x1fa6c2,_0x40cb62){const _0x8b7aa6=_0x8b7a();return _0x1c0e=function(_0x1c0efa,_0x382ffd){_0x1c0efa=_0x1c0efa-0xad;let _0x5ea881=_0x8b7aa6[_0x1c0efa];return _0x5ea881;},_0x1c0e(_0x1fa6c2,_0x40cb62);}const aws_types_1=require('../types/aws.types'),client_s3_1=require(_0x24a0e0(0xb8)),ARCHIVE_TYPES=[_0x24a0e0(0xd1),_0x24a0e0(0xb1),_0x24a0e0(0xba)];function _0x8b7a(){const _0x3c0785=['AwsS3Utils','4Tssayc','throw','push','Key','apply','228065SfTqMz','GLACIER','getFilesPaths','StorageClass','extractFileRetrieveStatusFromRestoreField','match','2070228XQiabd','value','GLACIER_IR','Restore','defineProperty','437882ixQlZM','Available','extractFileRetrieveStatusFromFileInfo','Restoring','@aws-sdk/client-s3','3pUyLTs','DEEP_ARCHIVE','send','117pySEwQ','414232ZGWqzg','18580bSYpUa','__esModule','next','577595eZmmxQ','AwsFileRetrieveStatus','__awaiter','40998IwiriL','11VufGOp','includes','14GHjamU','false','NeedRestore'];_0x8b7a=function(){return _0x3c0785;};return _0x8b7a();}class AwsS3Utils{static[_0x24a0e0(0xb6)](_0xd630b7){const _0x4fb517=_0x24a0e0;if(ARCHIVE_TYPES[_0x4fb517(0xc6)](_0xd630b7[_0x4fb517(0xd3)])){if(_0xd630b7['Restore'])return AwsS3Utils[_0x4fb517(0xad)](_0xd630b7[_0x4fb517(0xb2)]);return aws_types_1[_0x4fb517(0xc2)][_0x4fb517(0xc9)];}return aws_types_1[_0x4fb517(0xc2)]['Available'];}static[_0x24a0e0(0xad)](_0x39be01){const _0x461f5f=_0x24a0e0,_0x356c95=/ongoing-request="([^"]+)"/,_0x4ad5d6=_0x39be01[_0x461f5f(0xae)](_0x356c95);return _0x4ad5d6[0x1]===_0x461f5f(0xc8)?aws_types_1[_0x461f5f(0xc2)][_0x461f5f(0xb5)]:aws_types_1['AwsFileRetrieveStatus'][_0x461f5f(0xb7)];}static[_0x24a0e0(0xd2)](_0x5059cd,_0x1c37e0,_0x2a8b26){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x33418d=_0x1c0e,_0x3fe234=[];let _0xb4cfa9,_0x2f0eaf=null;do{const _0x61ee1b=new client_s3_1['ListObjectsCommand']({'Bucket':_0x1c37e0,'Prefix':_0x5059cd,'Marker':_0x2f0eaf}),{Contents:_0x35e752,IsTruncated:_0x4147c0}=yield _0x2a8b26[_0x33418d(0xbb)](_0x61ee1b);if(!_0x35e752)return _0x3fe234;for(const _0x417b42 of _0x35e752){_0x3fe234[_0x33418d(0xcd)](_0x417b42[_0x33418d(0xce)]);}_0xb4cfa9=_0x4147c0,_0xb4cfa9&&(_0x2f0eaf=_0x35e752['at'](-0x1)[_0x33418d(0xce)]);}while(_0xb4cfa9);return _0x3fe234;});}}exports[_0x24a0e0(0xca)]=AwsS3Utils;
|