@flosum/storages 1.3.3 → 1.3.4-backup.1
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/copy/aws-s3-copy.js +1 -1
- package/dist/copy/base-copy.js +1 -1
- package/dist/copy/index.js +1 -1
- package/dist/copy/local-copy.js +1 -1
- package/dist/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/azure-credentials.js +1 -1
- package/dist/credentials/base-credentials.js +1 -1
- package/dist/credentials/index.js +1 -1
- package/dist/credentials/local-credentials.js +1 -1
- package/dist/delete/aws-s3-delete.js +1 -1
- package/dist/delete/azure-delete.js +1 -1
- package/dist/delete/base-delete.js +1 -1
- package/dist/delete/index.js +1 -1
- package/dist/delete/local-delete.js +1 -1
- package/dist/deploy/aws-s3-deploy.js +1 -1
- package/dist/deploy/azure-deploy.js +1 -1
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/retrieve/aws-s3-import-helper.d.ts +4 -0
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
- package/dist/retrieve/helpers/azure-helper.js +1 -1
- package/dist/retrieve/helpers/base-helper.js +1 -1
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.js +1 -1
- package/dist/types/azure.types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal.types.js +1 -1
- package/dist/types/retrieve-status.enum.js +1 -1
- package/dist/types/storage-type.enum.js +1 -1
- package/dist/utils/aws-s3.utils.js +1 -1
- package/dist/utils/azure.utils.js +1 -1
- package/dist/utils/cache.utils.js +1 -1
- package/package.json +4 -5
package/dist/copy/aws-s3-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x3746(_0x51da55,_0x559a0d){const _0x452d0f=_0x452d();return _0x3746=function(_0x3746ab,_0x440285){_0x3746ab=_0x3746ab-0x1af;let _0x5ae4c0=_0x452d0f[_0x3746ab];return _0x5ae4c0;},_0x3746(_0x51da55,_0x559a0d);}const _0x43813f=_0x3746;(function(_0x1c7341,_0x650623){const _0x5b9c86=_0x3746,_0x32d4f6=_0x1c7341();while(!![]){try{const _0x51443c=parseInt(_0x5b9c86(0x1bf))/0x1*(-parseInt(_0x5b9c86(0x1b5))/0x2)+-parseInt(_0x5b9c86(0x1af))/0x3*(parseInt(_0x5b9c86(0x1ca))/0x4)+parseInt(_0x5b9c86(0x1b0))/0x5+-parseInt(_0x5b9c86(0x1b7))/0x6*(-parseInt(_0x5b9c86(0x1bd))/0x7)+parseInt(_0x5b9c86(0x1c9))/0x8*(parseInt(_0x5b9c86(0x1ba))/0x9)+parseInt(_0x5b9c86(0x1c3))/0xa+parseInt(_0x5b9c86(0x1bb))/0xb*(-parseInt(_0x5b9c86(0x1c7))/0xc);if(_0x51443c===_0x650623)break;else _0x32d4f6['push'](_0x32d4f6['shift']());}catch(_0x379625){_0x32d4f6['push'](_0x32d4f6['shift']());}}}(_0x452d,0x4e726));function _0x452d(){const _0x1917dc=['CopyObjectCommand','apply','27AZJocF','44605UfQavS','bucketName','12677HAJJaz','__awaiter','19HJFAHW','s3Client','__esModule','./base-copy','5131230mMQmIa','defineProperty','BaseCopy','../utils/aws-s3.utils','60YifVYq','execute','578312JiHuVg','1244UhUXBn','AwsS3Utils','credentials','5178KcPOHb','1680890hcGeRR','done','value','next','throw','44740Zzrjam','createS3Client','786tGMItK'];_0x452d=function(){return _0x1917dc;};return _0x452d();}var __awaiter=this&&this[_0x43813f(0x1be)]||function(_0x5ec728,_0x524e54,_0x114f77,_0x58d461){function _0x5bbd5d(_0x45dad6){return _0x45dad6 instanceof _0x114f77?_0x45dad6:new _0x114f77(function(_0x50a739){_0x50a739(_0x45dad6);});}return new(_0x114f77||(_0x114f77=Promise))(function(_0x53904a,_0x3bab55){const _0x46d1bc=_0x3746;function _0x3d5441(_0xef1c25){const _0x4f3596=_0x3746;try{_0x3aa667(_0x58d461[_0x4f3596(0x1b3)](_0xef1c25));}catch(_0x5438ba){_0x3bab55(_0x5438ba);}}function _0x45c4d1(_0xe46417){const _0x34941c=_0x3746;try{_0x3aa667(_0x58d461[_0x34941c(0x1b4)](_0xe46417));}catch(_0x53d022){_0x3bab55(_0x53d022);}}function _0x3aa667(_0x5cf9ea){const _0x5e6a94=_0x3746;_0x5cf9ea[_0x5e6a94(0x1b1)]?_0x53904a(_0x5cf9ea[_0x5e6a94(0x1b2)]):_0x5bbd5d(_0x5cf9ea[_0x5e6a94(0x1b2)])['then'](_0x3d5441,_0x45c4d1);}_0x3aa667((_0x58d461=_0x58d461[_0x46d1bc(0x1b9)](_0x5ec728,_0x524e54||[]))[_0x46d1bc(0x1b3)]());});};Object[_0x43813f(0x1c4)](exports,_0x43813f(0x1c1),{'value':!![]}),exports['AwsS3Copy']=void 0x0;const base_copy_1=require(_0x43813f(0x1c2)),client_s3_1=require('@aws-sdk/client-s3'),aws_s3_utils_1=require(_0x43813f(0x1c6));class AwsS3Copy extends base_copy_1[_0x43813f(0x1c5)]{constructor(_0x57e1b1){const _0x57b2cd=_0x43813f;super(_0x57e1b1),this['s3Client']=aws_s3_utils_1[_0x57b2cd(0x1cb)][_0x57b2cd(0x1b6)](_0x57e1b1);}[_0x43813f(0x1c8)](_0x1cf4f4,_0x4bee97){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x61dbdd=_0x3746,_0x1d1964=new client_s3_1[(_0x61dbdd(0x1b8))]({'Bucket':this[_0x61dbdd(0x1cc)][_0x61dbdd(0x1bc)],'CopySource':_0x1cf4f4,'Key':_0x4bee97});yield this[_0x61dbdd(0x1c0)]['send'](_0x1d1964);});}}exports['AwsS3Copy']=AwsS3Copy;
|
package/dist/copy/base-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x21d4a5=_0x20d3;(function(_0x4b6b99,_0x5d65d6){var _0x588d9d=_0x20d3,_0x530765=_0x4b6b99();while(!![]){try{var _0x303519=parseInt(_0x588d9d(0xc6))/0x1+-parseInt(_0x588d9d(0xcb))/0x2*(parseInt(_0x588d9d(0xce))/0x3)+parseInt(_0x588d9d(0xcd))/0x4+-parseInt(_0x588d9d(0xc4))/0x5+-parseInt(_0x588d9d(0xcc))/0x6+-parseInt(_0x588d9d(0xc9))/0x7*(-parseInt(_0x588d9d(0xc5))/0x8)+-parseInt(_0x588d9d(0xc2))/0x9*(-parseInt(_0x588d9d(0xc8))/0xa);if(_0x303519===_0x5d65d6)break;else _0x530765['push'](_0x530765['shift']());}catch(_0x3279e3){_0x530765['push'](_0x530765['shift']());}}}(_0x306f,0xb559f));function _0x306f(){var _0x109c34=['__esModule','84tFcFDO','8838174OPHIfP','1264508eMPIkX','103806sLQEeg','BaseCopy','21343347yohGku','defineProperty','3086170TbFPmw','118248ixwGRz','977950DGVELx','credentials','10dYqhox','294LYSsgd'];_0x306f=function(){return _0x109c34;};return _0x306f();}Object[_0x21d4a5(0xc3)](exports,_0x21d4a5(0xca),{'value':!![]}),exports[_0x21d4a5(0xc1)]=void 0x0;function _0x20d3(_0x1fe7cb,_0x3b1429){var _0x306f7d=_0x306f();return _0x20d3=function(_0x20d33f,_0x5ab363){_0x20d33f=_0x20d33f-0xc1;var _0x1eb37f=_0x306f7d[_0x20d33f];return _0x1eb37f;},_0x20d3(_0x1fe7cb,_0x3b1429);}class BaseCopy{constructor(_0x170a1e){var _0x266239=_0x21d4a5;this[_0x266239(0xc7)]=_0x170a1e;}}exports[_0x21d4a5(0xc1)]=BaseCopy;
|
package/dist/copy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x3ef739=_0x141f;(function(_0x5afe5c,_0x2d66da){var _0x48ceb4=_0x141f,_0x1a20ec=_0x5afe5c();while(!![]){try{var _0x41f938=parseInt(_0x48ceb4(0x11b))/0x1+-parseInt(_0x48ceb4(0x11c))/0x2+-parseInt(_0x48ceb4(0x11a))/0x3*(parseInt(_0x48ceb4(0x123))/0x4)+-parseInt(_0x48ceb4(0x119))/0x5+parseInt(_0x48ceb4(0x122))/0x6+parseInt(_0x48ceb4(0x117))/0x7+-parseInt(_0x48ceb4(0x118))/0x8*(-parseInt(_0x48ceb4(0x121))/0x9);if(_0x41f938===_0x2d66da)break;else _0x1a20ec['push'](_0x1a20ec['shift']());}catch(_0x4a4a7d){_0x1a20ec['push'](_0x1a20ec['shift']());}}}(_0x5497,0x5c6b4));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x3ef739(0x11e)]=exports[_0x3ef739(0x11f)]=exports[_0x3ef739(0x120)]=void 0x0;var base_copy_1=require(_0x3ef739(0x11d));function _0x5497(){var _0x3212e7=['928917ewpovH','220176dbgEzb','4wsOSpu','defineProperty','953547QVWTxG','16QBmHKx','401735axmDok','124347wOfRiC','150202noOqFQ','58402GQDeQE','./base-copy','AwsS3Copy','LocalCopy','BaseCopy'];_0x5497=function(){return _0x3212e7;};return _0x5497();}Object['defineProperty'](exports,_0x3ef739(0x120),{'enumerable':!![],'get':function(){return base_copy_1['BaseCopy'];}});function _0x141f(_0x170ed8,_0x47e3bc){var _0x5497e2=_0x5497();return _0x141f=function(_0x141f74,_0x215b98){_0x141f74=_0x141f74-0x116;var _0x3e0fc5=_0x5497e2[_0x141f74];return _0x3e0fc5;},_0x141f(_0x170ed8,_0x47e3bc);}var local_copy_1=require('./local-copy');Object['defineProperty'](exports,_0x3ef739(0x11f),{'enumerable':!![],'get':function(){var _0x4bc35d=_0x3ef739;return local_copy_1[_0x4bc35d(0x11f)];}});var aws_s3_copy_1=require('./aws-s3-copy');Object[_0x3ef739(0x116)](exports,_0x3ef739(0x11e),{'enumerable':!![],'get':function(){return aws_s3_copy_1['AwsS3Copy'];}});
|
package/dist/copy/local-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x45d7(_0x4e5cd4,_0x413d27){const _0x207a40=_0x207a();return _0x45d7=function(_0x45d7ba,_0x3a3051){_0x45d7ba=_0x45d7ba-0xe7;let _0x2dff4e=_0x207a40[_0x45d7ba];return _0x2dff4e;},_0x45d7(_0x4e5cd4,_0x413d27);}const _0x50e84a=_0x45d7;(function(_0x4a773f,_0x4d3186){const _0x4db854=_0x45d7,_0x313460=_0x4a773f();while(!![]){try{const _0x4a25cc=parseInt(_0x4db854(0xfe))/0x1*(-parseInt(_0x4db854(0xf3))/0x2)+-parseInt(_0x4db854(0xfd))/0x3+parseInt(_0x4db854(0xf8))/0x4*(parseInt(_0x4db854(0xea))/0x5)+parseInt(_0x4db854(0xed))/0x6*(-parseInt(_0x4db854(0xf0))/0x7)+parseInt(_0x4db854(0xe8))/0x8*(-parseInt(_0x4db854(0x100))/0x9)+parseInt(_0x4db854(0xe9))/0xa*(parseInt(_0x4db854(0xe7))/0xb)+parseInt(_0x4db854(0xeb))/0xc*(parseInt(_0x4db854(0xff))/0xd);if(_0x4a25cc===_0x4d3186)break;else _0x313460['push'](_0x313460['shift']());}catch(_0x4a160d){_0x313460['push'](_0x313460['shift']());}}}(_0x207a,0x8f4b8));var __awaiter=this&&this[_0x50e84a(0xee)]||function(_0xfb1654,_0x34a996,_0x21008a,_0x3eee74){function _0x50d00e(_0x133d9d){return _0x133d9d instanceof _0x21008a?_0x133d9d:new _0x21008a(function(_0x1bbae7){_0x1bbae7(_0x133d9d);});}return new(_0x21008a||(_0x21008a=Promise))(function(_0x293a5e,_0x5d6f85){const _0x5aa229=_0x45d7;function _0x40f6c9(_0x17e44d){const _0x2fd327=_0x45d7;try{_0x5d46a5(_0x3eee74[_0x2fd327(0xf2)](_0x17e44d));}catch(_0xdc1104){_0x5d6f85(_0xdc1104);}}function _0x349e72(_0x23a787){try{_0x5d46a5(_0x3eee74['throw'](_0x23a787));}catch(_0x588bbc){_0x5d6f85(_0x588bbc);}}function _0x5d46a5(_0x110943){const _0x3e48a0=_0x45d7;_0x110943[_0x3e48a0(0xf4)]?_0x293a5e(_0x110943['value']):_0x50d00e(_0x110943[_0x3e48a0(0xec)])['then'](_0x40f6c9,_0x349e72);}_0x5d46a5((_0x3eee74=_0x3eee74[_0x5aa229(0x102)](_0xfb1654,_0x34a996||[]))[_0x5aa229(0xf2)]());});};Object[_0x50e84a(0xfc)](exports,_0x50e84a(0xfa),{'value':!![]}),exports[_0x50e84a(0x101)]=void 0x0;const base_copy_1=require(_0x50e84a(0xf5)),promises_1=require('fs/promises'),path_1=require(_0x50e84a(0xef));class LocalCopy extends base_copy_1[_0x50e84a(0xf7)]{[_0x50e84a(0xfb)](_0x2a4106,_0x50cff2){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x286fcd=_0x45d7,_0x3e483b=(0x0,path_1[_0x286fcd(0xf6)])(_0x50cff2);yield(0x0,promises_1[_0x286fcd(0xf1)])(_0x3e483b,{'recursive':!![]}),yield(0x0,promises_1[_0x286fcd(0xf9)])(_0x2a4106,_0x50cff2);});}}function _0x207a(){const _0x32a20c=['execute','defineProperty','736116QwmJdI','17427BxEXZd','13uIAFSB','50283GLYntq','LocalCopy','apply','319hBAVju','1592SylADe','45970wvNuDF','5483880eiCzxD','10714008exbEsk','value','6cbHrMB','__awaiter','path','153713JsLTzg','mkdir','next','18qPMXGR','done','./base-copy','dirname','BaseCopy','4iDVXrA','copyFile','__esModule'];_0x207a=function(){return _0x32a20c;};return _0x207a();}exports[_0x50e84a(0x101)]=LocalCopy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2de795=_0x21c8;(function(_0x4f49e5,_0x3394ec){const _0x3a73fd=_0x21c8,_0x40363b=_0x4f49e5();while(!![]){try{const _0x25e242=parseInt(_0x3a73fd(0x135))/0x1+parseInt(_0x3a73fd(0x13b))/0x2*(parseInt(_0x3a73fd(0x12d))/0x3)+parseInt(_0x3a73fd(0x120))/0x4+parseInt(_0x3a73fd(0x136))/0x5+-parseInt(_0x3a73fd(0x12c))/0x6*(parseInt(_0x3a73fd(0x129))/0x7)+-parseInt(_0x3a73fd(0x12b))/0x8*(-parseInt(_0x3a73fd(0x126))/0x9)+-parseInt(_0x3a73fd(0x122))/0xa;if(_0x25e242===_0x3394ec)break;else _0x40363b['push'](_0x40363b['shift']());}catch(_0x6673d7){_0x40363b['push'](_0x40363b['shift']());}}}(_0xca12,0xb620e));function _0xca12(){const _0x451deb=['24NudxkX','266394NPTUaK','1338IMenVC','BaseCredentials','credentials','AwsS3Credentials','apply','send','message','region','986550wfrIav','663725iQskJa','validate','accessKeyId','secretAccessKey','done','398tqvDIw','676696HHzyjT','next','11078610LUnBfr','defineProperty','createS3Client','value','3294666FadBmz','__esModule','s3Client','98knshsg','bucketName'];_0xca12=function(){return _0x451deb;};return _0xca12();}var __awaiter=this&&this['__awaiter']||function(_0x241ae0,_0x321f79,_0x263f85,_0x450c37){function _0xf7d95(_0xfad359){return _0xfad359 instanceof _0x263f85?_0xfad359:new _0x263f85(function(_0x1ccc22){_0x1ccc22(_0xfad359);});}return new(_0x263f85||(_0x263f85=Promise))(function(_0x4cbe4e,_0x332792){const _0x51816a=_0x21c8;function _0xaab8e2(_0x25ed37){const _0x369253=_0x21c8;try{_0x116b71(_0x450c37[_0x369253(0x121)](_0x25ed37));}catch(_0x832958){_0x332792(_0x832958);}}function _0x5a6e93(_0xa1ba74){try{_0x116b71(_0x450c37['throw'](_0xa1ba74));}catch(_0x13f5ed){_0x332792(_0x13f5ed);}}function _0x116b71(_0x1a3f98){const _0x37a026=_0x21c8;_0x1a3f98[_0x37a026(0x13a)]?_0x4cbe4e(_0x1a3f98[_0x37a026(0x125)]):_0xf7d95(_0x1a3f98[_0x37a026(0x125)])['then'](_0xaab8e2,_0x5a6e93);}_0x116b71((_0x450c37=_0x450c37[_0x51816a(0x131)](_0x241ae0,_0x321f79||[]))[_0x51816a(0x121)]());});};Object[_0x2de795(0x123)](exports,_0x2de795(0x127),{'value':!![]}),exports[_0x2de795(0x130)]=void 0x0;const base_credentials_1=require('./base-credentials'),client_s3_1=require('@aws-sdk/client-s3'),aws_s3_utils_1=require('../utils/aws-s3.utils');class AwsS3Credentials extends base_credentials_1[_0x2de795(0x12e)]{constructor(_0x656961){const _0x4af407=_0x2de795;super(_0x656961),this[_0x4af407(0x128)]=aws_s3_utils_1['AwsS3Utils'][_0x4af407(0x124)](this[_0x4af407(0x12f)]);}get['accessKeyId'](){const _0x47488c=_0x2de795;return this['credentials'][_0x47488c(0x138)];}get[_0x2de795(0x139)](){const _0x4537cf=_0x2de795;return this[_0x4537cf(0x12f)][_0x4537cf(0x139)];}get[_0x2de795(0x12a)](){const _0x58abe2=_0x2de795;return this['credentials'][_0x58abe2(0x12a)];}get['region'](){const _0x35fb2f=_0x2de795;return this[_0x35fb2f(0x12f)][_0x35fb2f(0x134)];}[_0x2de795(0x137)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x256eeb=_0x21c8;try{const _0x43f86c=new client_s3_1['HeadBucketCommand']({'Bucket':this[_0x256eeb(0x12f)][_0x256eeb(0x12a)]});yield this[_0x256eeb(0x128)][_0x256eeb(0x132)](_0x43f86c);}catch(_0xa7ec4d){throw new Error('Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20'+_0xa7ec4d[_0x256eeb(0x133)]);}});}['getCredentials'](_0x16df37=![]){const _0x662b37=_0x2de795;if(_0x16df37)return{'bucketName':this['credentials'][_0x662b37(0x12a)]};return this[_0x662b37(0x12f)];}}function _0x21c8(_0x576c0e,_0x14b913){const _0xca1237=_0xca12();return _0x21c8=function(_0x21c806,_0x349749){_0x21c806=_0x21c806-0x120;let _0x334c82=_0xca1237[_0x21c806];return _0x334c82;},_0x21c8(_0x576c0e,_0x14b913);}exports[_0x2de795(0x130)]=AwsS3Credentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x11dafb=_0x3f89;(function(_0xcf5bfa,_0x14bb67){const _0x31017f=_0x3f89,_0x41bbe6=_0xcf5bfa();while(!![]){try{const _0x1fe206=parseInt(_0x31017f(0x1e2))/0x1*(parseInt(_0x31017f(0x1e5))/0x2)+-parseInt(_0x31017f(0x1dd))/0x3*(parseInt(_0x31017f(0x1df))/0x4)+parseInt(_0x31017f(0x1d8))/0x5*(-parseInt(_0x31017f(0x1d3))/0x6)+parseInt(_0x31017f(0x1e4))/0x7*(parseInt(_0x31017f(0x1e8))/0x8)+-parseInt(_0x31017f(0x1d9))/0x9*(parseInt(_0x31017f(0x1da))/0xa)+-parseInt(_0x31017f(0x1e7))/0xb+parseInt(_0x31017f(0x1d1))/0xc;if(_0x1fe206===_0x14bb67)break;else _0x41bbe6['push'](_0x41bbe6['shift']());}catch(_0x23be39){_0x41bbe6['push'](_0x41bbe6['shift']());}}}(_0x3b10,0x9ff35));function _0x3f89(_0x3c595d,_0x37a95a){const _0x3b105c=_0x3b10();return _0x3f89=function(_0x3f8928,_0x49c958){_0x3f8928=_0x3f8928-0x1cc;let _0x5e8404=_0x3b105c[_0x3f8928];return _0x5e8404;},_0x3f89(_0x3c595d,_0x37a95a);}var __awaiter=this&&this[_0x11dafb(0x1db)]||function(_0x3b7c3d,_0x1779cd,_0x56d786,_0x3e4a70){function _0x113ba1(_0x2181cb){return _0x2181cb instanceof _0x56d786?_0x2181cb:new _0x56d786(function(_0x1621e7){_0x1621e7(_0x2181cb);});}return new(_0x56d786||(_0x56d786=Promise))(function(_0x12a205,_0x27fbe4){const _0x599412=_0x3f89;function _0x209144(_0x125958){const _0x5e176e=_0x3f89;try{_0x934d55(_0x3e4a70[_0x5e176e(0x1ce)](_0x125958));}catch(_0x3abf92){_0x27fbe4(_0x3abf92);}}function _0x29b905(_0x5da2b0){const _0xd0042=_0x3f89;try{_0x934d55(_0x3e4a70[_0xd0042(0x1eb)](_0x5da2b0));}catch(_0x4eb72b){_0x27fbe4(_0x4eb72b);}}function _0x934d55(_0x2abc41){const _0x2825a7=_0x3f89;_0x2abc41[_0x2825a7(0x1d7)]?_0x12a205(_0x2abc41[_0x2825a7(0x1e0)]):_0x113ba1(_0x2abc41[_0x2825a7(0x1e0)])['then'](_0x209144,_0x29b905);}_0x934d55((_0x3e4a70=_0x3e4a70[_0x599412(0x1cf)](_0x3b7c3d,_0x1779cd||[]))['next']());});};Object['defineProperty'](exports,_0x11dafb(0x1e1),{'value':!![]}),exports[_0x11dafb(0x1e6)]=void 0x0;const base_credentials_1=require(_0x11dafb(0x1dc)),azure_utils_1=require('../utils/azure.utils');class AzureCredentials extends base_credentials_1['BaseCredentials']{constructor(_0xa2e0f6){const _0x44cc5b=_0x11dafb;super(_0xa2e0f6),this[_0x44cc5b(0x1cc)]=azure_utils_1['AzureUtils']['createAzureBlobServiceClient'](this[_0x44cc5b(0x1cd)]);}get[_0x11dafb(0x1e9)](){const _0x574faf=_0x11dafb;return this[_0x574faf(0x1cd)][_0x574faf(0x1e9)];}get[_0x11dafb(0x1e3)](){const _0x12eec7=_0x11dafb;return this[_0x12eec7(0x1cd)][_0x12eec7(0x1e3)];}get[_0x11dafb(0x1de)](){const _0x1c4e94=_0x11dafb;return this[_0x1c4e94(0x1cd)][_0x1c4e94(0x1de)];}[_0x11dafb(0x1d5)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x506014=_0x3f89;try{const _0x411c03=this[_0x506014(0x1cc)][_0x506014(0x1d4)](this['credentials']['containerName']);yield _0x411c03[_0x506014(0x1d0)]();}catch(_0x35534c){throw new Error(_0x506014(0x1d2)+_0x35534c[_0x506014(0x1d6)]);}});}[_0x11dafb(0x1ea)](_0x33ef27=![]){const _0x6e7405=_0x11dafb;if(_0x33ef27)return{'accountName':this['credentials'][_0x6e7405(0x1e3)]};return this['credentials'];}}exports[_0x11dafb(0x1e6)]=AzureCredentials;function _0x3b10(){const _0x2b3e68=['__esModule','292gnPtpN','accountName','7849989zTJDap','6430FrBDqH','AzureCredentials','10901231BNWpmD','8nhcgCl','accountKey','getCredentials','throw','blobServiceClient','credentials','next','apply','exists','22978344njipqL','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','6sGATcL','getContainerClient','validate','message','done','4090700PfVxwV','549xjPYEl','209140jbjEKD','__awaiter','./base-credentials','1239QDyPxb','containerName','2276ExELVc','value'];_0x3b10=function(){return _0x2b3e68;};return _0x3b10();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x233e74=_0x3538;(function(_0x2cfeb4,_0x97f924){var _0x1ee098=_0x3538,_0x9b8345=_0x2cfeb4();while(!![]){try{var _0x4d7baa=parseInt(_0x1ee098(0x7d))/0x1*(parseInt(_0x1ee098(0x74))/0x2)+-parseInt(_0x1ee098(0x77))/0x3*(parseInt(_0x1ee098(0x7e))/0x4)+-parseInt(_0x1ee098(0x70))/0x5*(parseInt(_0x1ee098(0x7f))/0x6)+-parseInt(_0x1ee098(0x75))/0x7*(-parseInt(_0x1ee098(0x6f))/0x8)+-parseInt(_0x1ee098(0x6e))/0x9*(parseInt(_0x1ee098(0x73))/0xa)+-parseInt(_0x1ee098(0x7c))/0xb*(-parseInt(_0x1ee098(0x6d))/0xc)+-parseInt(_0x1ee098(0x72))/0xd*(-parseInt(_0x1ee098(0x78))/0xe);if(_0x4d7baa===_0x97f924)break;else _0x9b8345['push'](_0x9b8345['shift']());}catch(_0x4f140b){_0x9b8345['push'](_0x9b8345['shift']());}}}(_0x1efc,0xa00eb));function _0x3538(_0x241531,_0x3a3e8f){var _0x1efced=_0x1efc();return _0x3538=function(_0x353868,_0x19363d){_0x353868=_0x353868-0x6d;var _0x4aa3f2=_0x1efced[_0x353868];return _0x4aa3f2;},_0x3538(_0x241531,_0x3a3e8f);}Object[_0x233e74(0x79)](exports,_0x233e74(0x7b),{'value':!![]}),exports['BaseCredentials']=void 0x0;class BaseCredentials{constructor(_0x2f5e95){var _0x19eb37=_0x233e74;this[_0x19eb37(0x7a)]=_0x2f5e95,this[_0x19eb37(0x76)]=this['rawCredentials']?this[_0x19eb37(0x7a)]:null;}}exports[_0x233e74(0x71)]=BaseCredentials;function _0x1efc(){var _0x294046=['9havkMG','56uKKthl','6554495fHRlgQ','BaseCredentials','15236vLJJES','5927710YsMnuq','2MCtmnD','1084867numpEA','credentials','3iboogX','21322WHYiXz','defineProperty','rawCredentials','__esModule','14179tDbdGB','204026mghowq','5146780CYisLd','6GajNff','7188SFWcIg'];_0x1efc=function(){return _0x294046;};return _0x1efc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x34db(){var _0x1b1610=['AwsS3Credentials','562463dCiPTx','162970FMHAEf','2277qSgZJm','defineProperty','7952860yEkfLk','__esModule','./aws-s3-credentials','13818312wVbVHB','305560YWidhb','960822eqNkiR','./azure-credentials','BaseCredentials','6seSsDa','35Lscnrw','3143670nfMkkm','./base-credentials','AzureCredentials','LocalCredentials'];_0x34db=function(){return _0x1b1610;};return _0x34db();}var _0x2938a2=_0x580e;(function(_0x858e75,_0x3edd92){var _0xe0b517=_0x580e,_0xd59e9c=_0x858e75();while(!![]){try{var _0x72b0df=-parseInt(_0xe0b517(0xf8))/0x1+-parseInt(_0xe0b517(0xf3))/0x2+parseInt(_0xe0b517(0xf1))/0x3*(-parseInt(_0xe0b517(0x100))/0x4)+parseInt(_0xe0b517(0xfc))/0x5+parseInt(_0xe0b517(0xee))/0x6*(-parseInt(_0xe0b517(0xf2))/0x7)+-parseInt(_0xe0b517(0xff))/0x8+-parseInt(_0xe0b517(0xfa))/0x9*(-parseInt(_0xe0b517(0xf9))/0xa);if(_0x72b0df===_0x3edd92)break;else _0xd59e9c['push'](_0xd59e9c['shift']());}catch(_0x13eba3){_0xd59e9c['push'](_0xd59e9c['shift']());}}}(_0x34db,0xdb665));Object['defineProperty'](exports,_0x2938a2(0xfd),{'value':!![]}),exports[_0x2938a2(0xf5)]=exports[_0x2938a2(0xf6)]=exports[_0x2938a2(0xf7)]=exports[_0x2938a2(0xf0)]=void 0x0;function _0x580e(_0x5f4c45,_0x28c4b1){var _0x34db95=_0x34db();return _0x580e=function(_0x580e3a,_0x37ae8f){_0x580e3a=_0x580e3a-0xee;var _0x128310=_0x34db95[_0x580e3a];return _0x128310;},_0x580e(_0x5f4c45,_0x28c4b1);}var base_credentials_1=require(_0x2938a2(0xf4));Object['defineProperty'](exports,_0x2938a2(0xf0),{'enumerable':!![],'get':function(){var _0x5ed55d=_0x2938a2;return base_credentials_1[_0x5ed55d(0xf0)];}});var aws_s3_credentials_1=require(_0x2938a2(0xfe));Object[_0x2938a2(0xfb)](exports,_0x2938a2(0xf7),{'enumerable':!![],'get':function(){var _0x2e44be=_0x2938a2;return aws_s3_credentials_1[_0x2e44be(0xf7)];}});var local_credentials_1=require('./local-credentials');Object[_0x2938a2(0xfb)](exports,_0x2938a2(0xf6),{'enumerable':!![],'get':function(){var _0x491003=_0x2938a2;return local_credentials_1[_0x491003(0xf6)];}});var azure_credentials_1=require(_0x2938a2(0xef));Object['defineProperty'](exports,_0x2938a2(0xf5),{'enumerable':!![],'get':function(){var _0x11fea9=_0x2938a2;return azure_credentials_1[_0x11fea9(0xf5)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x20012a=_0x4dcb;(function(_0x3392e6,_0x48db85){const _0x228f43=_0x4dcb,_0x16d99b=_0x3392e6();while(!![]){try{const _0x46ae44=-parseInt(_0x228f43(0x16d))/0x1+parseInt(_0x228f43(0x17d))/0x2*(-parseInt(_0x228f43(0x179))/0x3)+-parseInt(_0x228f43(0x172))/0x4*(parseInt(_0x228f43(0x177))/0x5)+-parseInt(_0x228f43(0x17a))/0x6*(-parseInt(_0x228f43(0x170))/0x7)+parseInt(_0x228f43(0x17b))/0x8+-parseInt(_0x228f43(0x17c))/0x9+parseInt(_0x228f43(0x16f))/0xa*(parseInt(_0x228f43(0x175))/0xb);if(_0x46ae44===_0x48db85)break;else _0x16d99b['push'](_0x16d99b['shift']());}catch(_0x588686){_0x16d99b['push'](_0x16d99b['shift']());}}}(_0x4d1c,0x588ce));Object[_0x20012a(0x16e)](exports,_0x20012a(0x173),{'value':!![]}),exports[_0x20012a(0x174)]=void 0x0;const base_credentials_1=require(_0x20012a(0x176));function _0x4dcb(_0x190843,_0x18907b){const _0x4d1cb5=_0x4d1c();return _0x4dcb=function(_0x4dcb17,_0x48f37a){_0x4dcb17=_0x4dcb17-0x16d;let _0x5be209=_0x4d1cb5[_0x4dcb17];return _0x5be209;},_0x4dcb(_0x190843,_0x18907b);}function _0x4d1c(){const _0x40ea90=['2324664MNmbnZ','4298670phBmcn','144OMavto','452762yvZYjM','defineProperty','16640540XLbMpR','2802184lxgdsk','BaseCredentials','1996pATnTr','__esModule','LocalCredentials','11EWCWWw','./base-credentials','5545vaKIyU','getCredentials','21186zyImKj','6qOVlPf'];_0x4d1c=function(){return _0x40ea90;};return _0x4d1c();}class LocalCredentials extends base_credentials_1[_0x20012a(0x171)]{[_0x20012a(0x178)](){return null;}['validate'](){return Promise['resolve'](undefined);}}exports['LocalCredentials']=LocalCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3a59b3=_0x2558;function _0x2558(_0x3492ee,_0x5ad80f){const _0x26f3f9=_0x26f3();return _0x2558=function(_0x25585a,_0x59e93d){_0x25585a=_0x25585a-0x1f0;let _0x20cea2=_0x26f3f9[_0x25585a];return _0x20cea2;},_0x2558(_0x3492ee,_0x5ad80f);}(function(_0x2e0e3b,_0x524248){const _0x2273e7=_0x2558,_0x388593=_0x2e0e3b();while(!![]){try{const _0x2454b2=parseInt(_0x2273e7(0x1f5))/0x1+parseInt(_0x2273e7(0x1f8))/0x2*(parseInt(_0x2273e7(0x211))/0x3)+-parseInt(_0x2273e7(0x1f3))/0x4+-parseInt(_0x2273e7(0x1fd))/0x5*(parseInt(_0x2273e7(0x1f6))/0x6)+-parseInt(_0x2273e7(0x1f0))/0x7+-parseInt(_0x2273e7(0x1f9))/0x8+parseInt(_0x2273e7(0x214))/0x9;if(_0x2454b2===_0x524248)break;else _0x388593['push'](_0x388593['shift']());}catch(_0x243835){_0x388593['push'](_0x388593['shift']());}}}(_0x26f3,0xaa08b));function _0x26f3(){const _0x4da91f=['posix','s3Client','credentials','split','splitOnChunks','@aws-sdk/client-s3','3IwVpak','next','DeleteObjectsCommand','28397088UWSVWv','1808800yazOCO','BaseDelete','done','4963504sqqjzY','createS3Client','1010441AlJwqZ','144RBlVKg','__esModule','305590QZefqA','6331816krWMjv','path','sep','execute','277345olPWBd','bucketName','__awaiter','AwsS3Delete','value','default','throw','OBJECTS_PER_CHUNK','then','@flosum/utils','send','getFilesPaths','apply','AwsS3Utils'];_0x26f3=function(){return _0x4da91f;};return _0x26f3();}var __awaiter=this&&this[_0x3a59b3(0x1ff)]||function(_0xef5050,_0x2b75a6,_0x279788,_0x197f26){function _0x1d43a8(_0x48f0ff){return _0x48f0ff instanceof _0x279788?_0x48f0ff:new _0x279788(function(_0x74956c){_0x74956c(_0x48f0ff);});}return new(_0x279788||(_0x279788=Promise))(function(_0x3c5fd7,_0x1bb683){const _0x829863=_0x2558;function _0x109c42(_0x385e2d){try{_0x1a3d84(_0x197f26['next'](_0x385e2d));}catch(_0x762a07){_0x1bb683(_0x762a07);}}function _0x3bb92d(_0x2d6b27){const _0x59a1fe=_0x2558;try{_0x1a3d84(_0x197f26[_0x59a1fe(0x203)](_0x2d6b27));}catch(_0x373d88){_0x1bb683(_0x373d88);}}function _0x1a3d84(_0x42398c){const _0x499e1b=_0x2558;_0x42398c[_0x499e1b(0x1f2)]?_0x3c5fd7(_0x42398c[_0x499e1b(0x201)]):_0x1d43a8(_0x42398c['value'])[_0x499e1b(0x205)](_0x109c42,_0x3bb92d);}_0x1a3d84((_0x197f26=_0x197f26[_0x829863(0x209)](_0xef5050,_0x2b75a6||[]))[_0x829863(0x212)]());});},__importDefault=this&&this['__importDefault']||function(_0x38b328){const _0x5d4c68=_0x3a59b3;return _0x38b328&&_0x38b328[_0x5d4c68(0x1f7)]?_0x38b328:{'default':_0x38b328};};Object['defineProperty'](exports,_0x3a59b3(0x1f7),{'value':!![]}),exports[_0x3a59b3(0x200)]=void 0x0;const path_1=__importDefault(require(_0x3a59b3(0x1fa))),utils_1=require(_0x3a59b3(0x206)),aws_s3_utils_1=require('../utils/aws-s3.utils'),_1=require('./'),client_s3_1=require(_0x3a59b3(0x210));class AwsS3Delete extends _1[_0x3a59b3(0x1f1)]{constructor(_0x4c5a42,_0x216f4a){const _0x295793=_0x3a59b3;super(_0x4c5a42),this[_0x295793(0x20d)]=_0x4c5a42,this[_0x295793(0x204)]=0x3e8,this['s3Client']=aws_s3_utils_1[_0x295793(0x20a)][_0x295793(0x1f4)](_0x4c5a42,_0x216f4a);}[_0x3a59b3(0x1fc)](_0x5a0133){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1b5a7d=_0x2558,_0x277963=_0x5a0133[_0x1b5a7d(0x20e)](path_1[_0x1b5a7d(0x202)]['sep'])['join'](path_1[_0x1b5a7d(0x202)][_0x1b5a7d(0x20b)][_0x1b5a7d(0x1fb)]),_0x911183=yield aws_s3_utils_1[_0x1b5a7d(0x20a)][_0x1b5a7d(0x208)](_0x277963,this[_0x1b5a7d(0x20d)][_0x1b5a7d(0x1fe)],this[_0x1b5a7d(0x20c)]),_0x154c88=utils_1['ArrayUtils'][_0x1b5a7d(0x20f)](_0x911183,this[_0x1b5a7d(0x204)]);for(const _0xd2f726 of _0x154c88){const _0x549d39=_0xd2f726['map'](_0x30b940=>({'Key':_0x30b940})),_0x5ac0f3=new client_s3_1[(_0x1b5a7d(0x213))]({'Bucket':this[_0x1b5a7d(0x20d)][_0x1b5a7d(0x1fe)],'Delete':{'Objects':_0x549d39}});yield this[_0x1b5a7d(0x20c)][_0x1b5a7d(0x207)](_0x5ac0f3);}});}}exports[_0x3a59b3(0x200)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4bfcab=_0x2711;function _0x2711(_0x5340dc,_0x22353d){const _0x2fa4c8=_0x2fa4();return _0x2711=function(_0x2711b3,_0x481b9f){_0x2711b3=_0x2711b3-0x1ca;let _0x307362=_0x2fa4c8[_0x2711b3];return _0x307362;},_0x2711(_0x5340dc,_0x22353d);}(function(_0x171740,_0x49f9d1){const _0x1bde52=_0x2711,_0x5c0a2d=_0x171740();while(!![]){try{const _0x402ffd=parseInt(_0x1bde52(0x1e7))/0x1+parseInt(_0x1bde52(0x1d2))/0x2*(parseInt(_0x1bde52(0x1e3))/0x3)+-parseInt(_0x1bde52(0x1e6))/0x4+parseInt(_0x1bde52(0x1db))/0x5+parseInt(_0x1bde52(0x1d4))/0x6*(-parseInt(_0x1bde52(0x1d7))/0x7)+-parseInt(_0x1bde52(0x1de))/0x8*(-parseInt(_0x1bde52(0x1dd))/0x9)+-parseInt(_0x1bde52(0x1d9))/0xa;if(_0x402ffd===_0x49f9d1)break;else _0x5c0a2d['push'](_0x5c0a2d['shift']());}catch(_0x1c1e30){_0x5c0a2d['push'](_0x5c0a2d['shift']());}}}(_0x2fa4,0x98a13));var __awaiter=this&&this[_0x4bfcab(0x1e0)]||function(_0xf90f89,_0x452179,_0x483eba,_0x840271){function _0x4298a2(_0x224a5e){return _0x224a5e instanceof _0x483eba?_0x224a5e:new _0x483eba(function(_0xb123f5){_0xb123f5(_0x224a5e);});}return new(_0x483eba||(_0x483eba=Promise))(function(_0x427f1f,_0x30f490){const _0x49c890=_0x2711;function _0x57d5ea(_0xa630ce){const _0x5d3039=_0x2711;try{_0x1bcd3c(_0x840271[_0x5d3039(0x1d6)](_0xa630ce));}catch(_0x276495){_0x30f490(_0x276495);}}function _0x30399c(_0xb19173){const _0x4c07e7=_0x2711;try{_0x1bcd3c(_0x840271[_0x4c07e7(0x1dc)](_0xb19173));}catch(_0x36e7f1){_0x30f490(_0x36e7f1);}}function _0x1bcd3c(_0x4757b6){const _0x30552e=_0x2711;_0x4757b6['done']?_0x427f1f(_0x4757b6[_0x30552e(0x1cf)]):_0x4298a2(_0x4757b6['value'])[_0x30552e(0x1d1)](_0x57d5ea,_0x30399c);}_0x1bcd3c((_0x840271=_0x840271[_0x49c890(0x1e4)](_0xf90f89,_0x452179||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0x207f9c){return _0x207f9c&&_0x207f9c['__esModule']?_0x207f9c:{'default':_0x207f9c};};function _0x2fa4(){const _0x569372=['throw','2070diIwRz','9624hHoYxd','default','__awaiter','join','containerClient','3673131TlASQN','apply','execute','4571268PLXzcq','600113EVOquq','credentials','AzureDelete','path','AzureUtils','../utils/azure.utils','posix','deleteBlob','split','value','sep','then','2vShbCT','defineProperty','3072HoxSro','__esModule','next','686CxqeyP','BaseDelete','12029420kxjzAx','getAzureBlobsPaths','4599630syyRfa'];_0x2fa4=function(){return _0x569372;};return _0x2fa4();}Object[_0x4bfcab(0x1d3)](exports,_0x4bfcab(0x1d5),{'value':!![]}),exports['AzureDelete']=void 0x0;const path_1=__importDefault(require(_0x4bfcab(0x1ea))),_1=require('./'),azure_utils_1=require(_0x4bfcab(0x1cb));class AzureDelete extends _1[_0x4bfcab(0x1d8)]{constructor(_0x4cd2b1){const _0x59851f=_0x4bfcab;super(_0x4cd2b1),this[_0x59851f(0x1e8)]=_0x4cd2b1,this[_0x59851f(0x1e2)]=azure_utils_1[_0x59851f(0x1ca)]['createAzureBlobContainerClient'](_0x4cd2b1);}[_0x4bfcab(0x1e5)](_0x3074ed){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2b8a9a=_0x2711,_0x3b03f0=_0x3074ed[_0x2b8a9a(0x1ce)](path_1['default'][_0x2b8a9a(0x1d0)])[_0x2b8a9a(0x1e1)](path_1[_0x2b8a9a(0x1df)][_0x2b8a9a(0x1cc)][_0x2b8a9a(0x1d0)]),_0x3aba5c=yield azure_utils_1[_0x2b8a9a(0x1ca)][_0x2b8a9a(0x1da)](_0x3b03f0,this['containerClient']);for(const _0x2b163e of _0x3aba5c){yield this[_0x2b8a9a(0x1e2)][_0x2b8a9a(0x1cd)](_0x2b163e);}});}}exports[_0x4bfcab(0x1e9)]=AzureDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x133819=_0xc266;(function(_0x2a5f46,_0x55d6e3){var _0x5c9f7f=_0xc266,_0x446a00=_0x2a5f46();while(!![]){try{var _0x54658e=-parseInt(_0x5c9f7f(0xfa))/0x1*(-parseInt(_0x5c9f7f(0x106))/0x2)+-parseInt(_0x5c9f7f(0x104))/0x3*(parseInt(_0x5c9f7f(0xfe))/0x4)+-parseInt(_0x5c9f7f(0x101))/0x5*(-parseInt(_0x5c9f7f(0xfc))/0x6)+parseInt(_0x5c9f7f(0xf7))/0x7+-parseInt(_0x5c9f7f(0xff))/0x8+parseInt(_0x5c9f7f(0x103))/0x9*(-parseInt(_0x5c9f7f(0x105))/0xa)+-parseInt(_0x5c9f7f(0xfd))/0xb*(-parseInt(_0x5c9f7f(0x100))/0xc);if(_0x54658e===_0x55d6e3)break;else _0x446a00['push'](_0x446a00['shift']());}catch(_0x12bc98){_0x446a00['push'](_0x446a00['shift']());}}}(_0x440d,0xe25f7));function _0xc266(_0xc01b88,_0x1a2e0a){var _0x440d98=_0x440d();return _0xc266=function(_0xc26697,_0x3daf0a){_0xc26697=_0xc26697-0xf7;var _0x31af1b=_0x440d98[_0xc26697];return _0x31af1b;},_0xc266(_0xc01b88,_0x1a2e0a);}Object[_0x133819(0x102)](exports,_0x133819(0xf9),{'value':!![]}),exports[_0x133819(0xf8)]=void 0x0;class BaseDelete{constructor(_0x757ed3){var _0x4296cb=_0x133819;this[_0x4296cb(0xfb)]=_0x757ed3;}}exports['BaseDelete']=BaseDelete;function _0x440d(){var _0x202a6d=['44mcqqUh','8KdLtXG','7762720wHTUJG','9798468yjlvNh','197705lYaBwn','defineProperty','11921841NjKuSj','1642929qwDuxM','10bwHhFa','276iZDJUX','2520189bAgPfX','BaseDelete','__esModule','4723pbdNEk','credentials','6zqfZih'];_0x440d=function(){return _0x202a6d;};return _0x440d();}
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x529cda=_0x216e;(function(_0x5e6a24,_0x1dfcf9){var _0x2c5f90=_0x216e,_0x11a178=_0x5e6a24();while(!![]){try{var _0x126227=-parseInt(_0x2c5f90(0x1cf))/0x1*(-parseInt(_0x2c5f90(0x1ce))/0x2)+parseInt(_0x2c5f90(0x1d3))/0x3*(parseInt(_0x2c5f90(0x1d2))/0x4)+-parseInt(_0x2c5f90(0x1d5))/0x5+parseInt(_0x2c5f90(0x1d1))/0x6+parseInt(_0x2c5f90(0x1d8))/0x7*(parseInt(_0x2c5f90(0x1de))/0x8)+-parseInt(_0x2c5f90(0x1cd))/0x9+-parseInt(_0x2c5f90(0x1db))/0xa;if(_0x126227===_0x1dfcf9)break;else _0x11a178['push'](_0x11a178['shift']());}catch(_0x56ce17){_0x11a178['push'](_0x11a178['shift']());}}}(_0x5a90,0x61150));Object['defineProperty'](exports,_0x529cda(0x1d6),{'value':!![]}),exports[_0x529cda(0x1d0)]=exports['LocalDelete']=exports[_0x529cda(0x1d7)]=exports['BaseDelete']=void 0x0;var base_delete_1=require(_0x529cda(0x1dc));function _0x216e(_0x46ecf7,_0x51bd6d){var _0x5a90d8=_0x5a90();return _0x216e=function(_0x216e22,_0x5bf732){_0x216e22=_0x216e22-0x1cd;var _0xfed982=_0x5a90d8[_0x216e22];return _0xfed982;},_0x216e(_0x46ecf7,_0x51bd6d);}Object[_0x529cda(0x1d4)](exports,_0x529cda(0x1da),{'enumerable':!![],'get':function(){var _0xa06e05=_0x529cda;return base_delete_1[_0xa06e05(0x1da)];}});var aws_s3_delete_1=require('./aws-s3-delete');Object[_0x529cda(0x1d4)](exports,_0x529cda(0x1d7),{'enumerable':!![],'get':function(){var _0x40dc45=_0x529cda;return aws_s3_delete_1[_0x40dc45(0x1d7)];}});var local_delete_1=require(_0x529cda(0x1d9));Object[_0x529cda(0x1d4)](exports,_0x529cda(0x1df),{'enumerable':!![],'get':function(){return local_delete_1['LocalDelete'];}});function _0x5a90(){var _0xd15a11=['AwsS3Delete','2288692lLIUIf','./local-delete','BaseDelete','390160SWCino','./base-delete','./azure-delete','8tuSPah','LocalDelete','2628981qwtpNP','696INQprr','232HMIWJV','AzureDelete','539100UBPaMF','556peanWt','12999DRYrHh','defineProperty','1855280ODviWh','__esModule'];_0x5a90=function(){return _0xd15a11;};return _0x5a90();}var azure_delete_1=require(_0x529cda(0x1dd));Object['defineProperty'](exports,_0x529cda(0x1d0),{'enumerable':!![],'get':function(){var _0x535f09=_0x529cda;return azure_delete_1[_0x535f09(0x1d0)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1aec06=_0x4b7c;function _0x4b7c(_0x441b00,_0x5d5040){const _0x308729=_0x3087();return _0x4b7c=function(_0x4b7c06,_0xc35eba){_0x4b7c06=_0x4b7c06-0x1f4;let _0x58f302=_0x308729[_0x4b7c06];return _0x58f302;},_0x4b7c(_0x441b00,_0x5d5040);}(function(_0x4d38b3,_0x3400b5){const _0x3e27f9=_0x4b7c,_0x1375c5=_0x4d38b3();while(!![]){try{const _0x5e57b1=-parseInt(_0x3e27f9(0x209))/0x1+-parseInt(_0x3e27f9(0x1f6))/0x2+parseInt(_0x3e27f9(0x1f4))/0x3*(-parseInt(_0x3e27f9(0x1fd))/0x4)+parseInt(_0x3e27f9(0x1f7))/0x5+-parseInt(_0x3e27f9(0x208))/0x6+parseInt(_0x3e27f9(0x201))/0x7+parseInt(_0x3e27f9(0x1fb))/0x8;if(_0x5e57b1===_0x3400b5)break;else _0x1375c5['push'](_0x1375c5['shift']());}catch(_0x2d749f){_0x1375c5['push'](_0x1375c5['shift']());}}}(_0x3087,0x445bc));var __awaiter=this&&this['__awaiter']||function(_0x1f1470,_0xe6848b,_0x58a8d9,_0x34c496){function _0x4d328c(_0x36f443){return _0x36f443 instanceof _0x58a8d9?_0x36f443:new _0x58a8d9(function(_0x365377){_0x365377(_0x36f443);});}return new(_0x58a8d9||(_0x58a8d9=Promise))(function(_0x504760,_0x3f14db){const _0x9d3642=_0x4b7c;function _0x17e649(_0x308dcb){const _0x146d89=_0x4b7c;try{_0x260efd(_0x34c496[_0x146d89(0x202)](_0x308dcb));}catch(_0x1197a4){_0x3f14db(_0x1197a4);}}function _0x4e6afc(_0x22b441){const _0x448771=_0x4b7c;try{_0x260efd(_0x34c496[_0x448771(0x1ff)](_0x22b441));}catch(_0x16d6bb){_0x3f14db(_0x16d6bb);}}function _0x260efd(_0x26c435){const _0x4dd8da=_0x4b7c;_0x26c435[_0x4dd8da(0x203)]?_0x504760(_0x26c435[_0x4dd8da(0x1f8)]):_0x4d328c(_0x26c435[_0x4dd8da(0x1f8)])[_0x4dd8da(0x206)](_0x17e649,_0x4e6afc);}_0x260efd((_0x34c496=_0x34c496[_0x9d3642(0x1fe)](_0x1f1470,_0xe6848b||[]))['next']());});};Object[_0x1aec06(0x1f9)](exports,_0x1aec06(0x207),{'value':!![]}),exports[_0x1aec06(0x204)]=void 0x0;const promises_1=require(_0x1aec06(0x200)),utils_1=require('@flosum/utils'),_1=require('./');class LocalDelete extends _1[_0x1aec06(0x1fc)]{[_0x1aec06(0x1f5)](_0x2fc906){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x49ba34=_0x4b7c;if(yield utils_1[_0x49ba34(0x1fa)][_0x49ba34(0x205)](_0x2fc906))yield(0x0,promises_1['rm'])(_0x2fc906,{'recursive':!![]});});}}function _0x3087(){const _0x520623=['BaseDelete','4ktHmaE','apply','throw','fs/promises','19523kMGncB','next','done','LocalDelete','isExistsPath','then','__esModule','2175936fqclkh','179375zpTFil','30543ZWAXwV','execute','262984JlNOLf','2663935IZZGBX','value','defineProperty','FsUtils','3424992SOyBro'];_0x3087=function(){return _0x520623;};return _0x3087();}exports[_0x1aec06(0x204)]=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x36215b=_0x1928;function _0x510e(){const _0x2dcf87=['305848EhYNMH','storageClass','7JOgnTG','path','2bQiijB','20qwsgbH','value','Upload','bucketName','sep','done','945768JTFoQw','split','AwsS3Deploy','credentials','259325NxbaGs','next','defineProperty','createS3Client','throw','150JEFpyW','307566esPRZD','1666872Xsguyz','__importDefault','@aws-sdk/lib-storage','../utils/aws-s3.utils','default','1970124gnvMxN','AwsS3Utils','__esModule','388635SLDDYa','__awaiter','upload'];_0x510e=function(){return _0x2dcf87;};return _0x510e();}function _0x1928(_0x5750ee,_0x94ace3){const _0x510e07=_0x510e();return _0x1928=function(_0x1928a2,_0x554a25){_0x1928a2=_0x1928a2-0x181;let _0x23b5d5=_0x510e07[_0x1928a2];return _0x23b5d5;},_0x1928(_0x5750ee,_0x94ace3);}(function(_0x31760a,_0xa96bd6){const _0x53896c=_0x1928,_0x15473a=_0x31760a();while(!![]){try{const _0x30bfad=-parseInt(_0x53896c(0x18c))/0x1+-parseInt(_0x53896c(0x19c))/0x2*(-parseInt(_0x53896c(0x195))/0x3)+parseInt(_0x53896c(0x198))/0x4*(parseInt(_0x53896c(0x19d))/0x5)+parseInt(_0x53896c(0x192))/0x6+-parseInt(_0x53896c(0x19a))/0x7*(parseInt(_0x53896c(0x182))/0x8)+parseInt(_0x53896c(0x18d))/0x9+-parseInt(_0x53896c(0x18b))/0xa*(parseInt(_0x53896c(0x186))/0xb);if(_0x30bfad===_0xa96bd6)break;else _0x15473a['push'](_0x15473a['shift']());}catch(_0x3c41cc){_0x15473a['push'](_0x15473a['shift']());}}}(_0x510e,0x29647));var __awaiter=this&&this[_0x36215b(0x196)]||function(_0x173f40,_0x23c2d9,_0x84d00c,_0x4d6dfe){function _0x1a65d3(_0x27cd17){return _0x27cd17 instanceof _0x84d00c?_0x27cd17:new _0x84d00c(function(_0x31296f){_0x31296f(_0x27cd17);});}return new(_0x84d00c||(_0x84d00c=Promise))(function(_0x296c4a,_0x17eae1){const _0xbb7f8a=_0x1928;function _0x5893ce(_0x4b9f6e){const _0x40caaf=_0x1928;try{_0x42fd12(_0x4d6dfe[_0x40caaf(0x187)](_0x4b9f6e));}catch(_0xee57ac){_0x17eae1(_0xee57ac);}}function _0x1a0704(_0x448da4){const _0x4313a3=_0x1928;try{_0x42fd12(_0x4d6dfe[_0x4313a3(0x18a)](_0x448da4));}catch(_0x4e0462){_0x17eae1(_0x4e0462);}}function _0x42fd12(_0x56ca9d){const _0x440209=_0x1928;_0x56ca9d[_0x440209(0x181)]?_0x296c4a(_0x56ca9d['value']):_0x1a65d3(_0x56ca9d[_0x440209(0x19e)])['then'](_0x5893ce,_0x1a0704);}_0x42fd12((_0x4d6dfe=_0x4d6dfe['apply'](_0x173f40,_0x23c2d9||[]))[_0xbb7f8a(0x187)]());});},__importDefault=this&&this[_0x36215b(0x18e)]||function(_0x15d2d7){return _0x15d2d7&&_0x15d2d7['__esModule']?_0x15d2d7:{'default':_0x15d2d7};};Object[_0x36215b(0x188)](exports,_0x36215b(0x194),{'value':!![]}),exports[_0x36215b(0x184)]=void 0x0;const path_1=__importDefault(require(_0x36215b(0x19b))),_1=require('./'),lib_storage_1=require(_0x36215b(0x18f)),aws_s3_utils_1=require(_0x36215b(0x190));class AwsS3Deploy extends _1['BaseDeploy']{constructor(_0x29ce99,_0x271f5c,_0x32c63d){const _0x5e8565=_0x36215b;super(_0x29ce99),this['credentials']=_0x29ce99,this[_0x5e8565(0x199)]=_0x271f5c,this['s3Client']=aws_s3_utils_1[_0x5e8565(0x193)][_0x5e8565(0x189)](_0x29ce99,_0x32c63d);}[_0x36215b(0x197)](_0x49b161,_0x1d206c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x36ce47=_0x1928,_0x1f78c3=new lib_storage_1[(_0x36ce47(0x19f))]({'client':this['s3Client'],'params':{'Bucket':this[_0x36ce47(0x185)][_0x36ce47(0x1a0)],'Key':_0x1d206c,'Body':_0x49b161,'StorageClass':this[_0x36ce47(0x199)]}});yield _0x1f78c3[_0x36ce47(0x181)]();});}['execute'](_0x4cdf94,_0x3a7035){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5ac970=_0x1928;try{const _0x29e3d8=_0x3a7035[_0x5ac970(0x183)](path_1[_0x5ac970(0x191)][_0x5ac970(0x1a1)])['join'](path_1[_0x5ac970(0x191)]['posix']['sep']);yield this['upload'](_0x4cdf94,_0x29e3d8);}catch(_0x407c5c){throw _0x407c5c;}});}}exports['AwsS3Deploy']=AwsS3Deploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x533eee=_0x4166;(function(_0x1f6bc2,_0x22e197){const _0x3e3a8b=_0x4166,_0x4cba04=_0x1f6bc2();while(!![]){try{const _0x1860da=parseInt(_0x3e3a8b(0x1d9))/0x1*(parseInt(_0x3e3a8b(0x1c9))/0x2)+-parseInt(_0x3e3a8b(0x1cb))/0x3+-parseInt(_0x3e3a8b(0x1db))/0x4+parseInt(_0x3e3a8b(0x1d7))/0x5*(-parseInt(_0x3e3a8b(0x1cf))/0x6)+-parseInt(_0x3e3a8b(0x1c2))/0x7+parseInt(_0x3e3a8b(0x1d3))/0x8+parseInt(_0x3e3a8b(0x1d8))/0x9;if(_0x1860da===_0x22e197)break;else _0x4cba04['push'](_0x4cba04['shift']());}catch(_0x265813){_0x4cba04['push'](_0x4cba04['shift']());}}}(_0x1ecc,0x9ffa5));function _0x1ecc(){const _0x5c417c=['upload','byteLength','3618755KujCoi','__importDefault','__esModule','uploadStream','throw','sep','BaseDeploy','2KbTjiI','getBlockBlobClient','2943807DXIXWH','apply','join','value','25758nJXGXD','__awaiter','done','AzureUtils','1338936gPzdtN','createAzureBlobContainerClient','credentials','AzureDeploy','805gWFxyu','20569590tFAQJF','731270WsQcXG','defineProperty','1357884LRBCaA','default','next'];_0x1ecc=function(){return _0x5c417c;};return _0x1ecc();}function _0x4166(_0x2a7f40,_0xae8fa8){const _0x1ecc6a=_0x1ecc();return _0x4166=function(_0x4166e7,_0x53e3b0){_0x4166e7=_0x4166e7-0x1c0;let _0x301dcf=_0x1ecc6a[_0x4166e7];return _0x301dcf;},_0x4166(_0x2a7f40,_0xae8fa8);}var __awaiter=this&&this[_0x533eee(0x1d0)]||function(_0x3547e2,_0x57ac24,_0x5d8235,_0x347e82){function _0x115584(_0xff6d76){return _0xff6d76 instanceof _0x5d8235?_0xff6d76:new _0x5d8235(function(_0x5a2c8d){_0x5a2c8d(_0xff6d76);});}return new(_0x5d8235||(_0x5d8235=Promise))(function(_0x203933,_0x597371){const _0x4b0f60=_0x4166;function _0xe497ae(_0x2ae305){const _0xb01e2d=_0x4166;try{_0x1942ad(_0x347e82[_0xb01e2d(0x1dd)](_0x2ae305));}catch(_0x19664b){_0x597371(_0x19664b);}}function _0x880a67(_0x9fa7e7){const _0x560199=_0x4166;try{_0x1942ad(_0x347e82[_0x560199(0x1c6)](_0x9fa7e7));}catch(_0x1c6364){_0x597371(_0x1c6364);}}function _0x1942ad(_0x41cd23){const _0x1695dd=_0x4166;_0x41cd23[_0x1695dd(0x1d1)]?_0x203933(_0x41cd23[_0x1695dd(0x1ce)]):_0x115584(_0x41cd23[_0x1695dd(0x1ce)])['then'](_0xe497ae,_0x880a67);}_0x1942ad((_0x347e82=_0x347e82[_0x4b0f60(0x1cc)](_0x3547e2,_0x57ac24||[]))['next']());});},__importDefault=this&&this[_0x533eee(0x1c3)]||function(_0x2e174f){const _0x36601c=_0x533eee;return _0x2e174f&&_0x2e174f[_0x36601c(0x1c4)]?_0x2e174f:{'default':_0x2e174f};};Object[_0x533eee(0x1da)](exports,_0x533eee(0x1c4),{'value':!![]}),exports[_0x533eee(0x1d6)]=void 0x0;const path_1=__importDefault(require('path')),_1=require('./'),azure_utils_1=require('../utils/azure.utils');class AzureDeploy extends _1[_0x533eee(0x1c8)]{constructor(_0x17ed51){const _0x23246c=_0x533eee;super(_0x17ed51),this['credentials']=_0x17ed51,this['containerClient']=azure_utils_1[_0x23246c(0x1d2)][_0x23246c(0x1d4)](this[_0x23246c(0x1d5)]);}[_0x533eee(0x1c0)](_0x472036,_0x5a390e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x28a651=_0x4166,_0x3ea29d=this['containerClient'][_0x28a651(0x1ca)](_0x5a390e);_0x472036 instanceof Buffer?yield _0x3ea29d[_0x28a651(0x1c0)](_0x472036,_0x472036[_0x28a651(0x1c1)]):yield _0x3ea29d[_0x28a651(0x1c5)](_0x472036);});}['execute'](_0x3b0232,_0x16d06d){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2bd51e=_0x4166,_0x3d4d43=_0x16d06d['split'](path_1[_0x2bd51e(0x1dc)]['sep'])[_0x2bd51e(0x1cd)](path_1[_0x2bd51e(0x1dc)]['posix'][_0x2bd51e(0x1c7)]);yield this[_0x2bd51e(0x1c0)](_0x3b0232,_0x3d4d43);});}}exports['AzureDeploy']=AzureDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x42f9(){var _0x7c3d17=['394oUChGN','credentials','16098888BafLkT','__esModule','18Fxzvih','29696PrLKtD','518142sIKwzE','12DNlUcu','12LGEEoe','77onmIkh','defineProperty','BaseDeploy','11iOFUns','2139860eEUsvi','274945AjbOKG','2853FjoxAB','5361204gOKLfL'];_0x42f9=function(){return _0x7c3d17;};return _0x42f9();}var _0x5e3ff3=_0x803c;(function(_0x6044ea,_0x428921){var _0x590760=_0x803c,_0x4d00d8=_0x6044ea();while(!![]){try{var _0xbfc62b=-parseInt(_0x590760(0x123))/0x1*(parseInt(_0x590760(0x125))/0x2)+parseInt(_0x590760(0x12b))/0x3*(parseInt(_0x590760(0x12c))/0x4)+-parseInt(_0x590760(0x133))/0x5*(-parseInt(_0x590760(0x12d))/0x6)+parseInt(_0x590760(0x12e))/0x7*(-parseInt(_0x590760(0x12a))/0x8)+parseInt(_0x590760(0x129))/0x9*(-parseInt(_0x590760(0x132))/0xa)+parseInt(_0x590760(0x131))/0xb*(-parseInt(_0x590760(0x124))/0xc)+parseInt(_0x590760(0x127))/0xd;if(_0xbfc62b===_0x428921)break;else _0x4d00d8['push'](_0x4d00d8['shift']());}catch(_0x7a013c){_0x4d00d8['push'](_0x4d00d8['shift']());}}}(_0x42f9,0x5ef14));function _0x803c(_0xf84fcd,_0x58e52c){var _0x42f97b=_0x42f9();return _0x803c=function(_0x803ca0,_0x49a86e){_0x803ca0=_0x803ca0-0x123;var _0xe21304=_0x42f97b[_0x803ca0];return _0xe21304;},_0x803c(_0xf84fcd,_0x58e52c);}Object[_0x5e3ff3(0x12f)](exports,_0x5e3ff3(0x128),{'value':!![]}),exports[_0x5e3ff3(0x130)]=void 0x0;class BaseDeploy{constructor(_0x2bc6a2){var _0x13886a=_0x5e3ff3;this[_0x13886a(0x126)]=_0x2bc6a2;}}exports[_0x5e3ff3(0x130)]=BaseDeploy;
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1141cd=_0x3051;(function(_0x41bc84,_0x5a8d21){var _0x51e786=_0x3051,_0x313eec=_0x41bc84();while(!![]){try{var _0x33132f=-parseInt(_0x51e786(0x15b))/0x1+parseInt(_0x51e786(0x14d))/0x2*(parseInt(_0x51e786(0x15f))/0x3)+parseInt(_0x51e786(0x159))/0x4*(parseInt(_0x51e786(0x14f))/0x5)+parseInt(_0x51e786(0x153))/0x6*(parseInt(_0x51e786(0x161))/0x7)+-parseInt(_0x51e786(0x15e))/0x8*(-parseInt(_0x51e786(0x156))/0x9)+-parseInt(_0x51e786(0x155))/0xa*(-parseInt(_0x51e786(0x158))/0xb)+-parseInt(_0x51e786(0x160))/0xc*(parseInt(_0x51e786(0x14e))/0xd);if(_0x33132f===_0x5a8d21)break;else _0x313eec['push'](_0x313eec['shift']());}catch(_0x3119fc){_0x313eec['push'](_0x313eec['shift']());}}}(_0x4779,0xa5605));Object[_0x1141cd(0x151)](exports,'__esModule',{'value':!![]}),exports[_0x1141cd(0x15a)]=exports[_0x1141cd(0x15d)]=exports[_0x1141cd(0x15c)]=exports[_0x1141cd(0x154)]=void 0x0;function _0x4779(){var _0x260517=['575630LYaaZE','63HoRDZt','./azure-deploy','33whaVxE','104DUcudL','AzureDeploy','119544bbxmMh','AwsS3Deploy','LocalDeploy','1302392UcjAnz','26844sjHGqi','492IvwhZM','28rinusp','162ZFbkfW','541463VlBGFe','21795Htqrzk','./base-deploy','defineProperty','./local-deploy','531318aemecP','BaseDeploy'];_0x4779=function(){return _0x260517;};return _0x4779();}function _0x3051(_0x137f95,_0x2d07bb){var _0x477914=_0x4779();return _0x3051=function(_0x30515f,_0x31566a){_0x30515f=_0x30515f-0x14d;var _0x2182e6=_0x477914[_0x30515f];return _0x2182e6;},_0x3051(_0x137f95,_0x2d07bb);}var base_deploy_1=require(_0x1141cd(0x150));Object['defineProperty'](exports,_0x1141cd(0x154),{'enumerable':!![],'get':function(){var _0x2aedd7=_0x1141cd;return base_deploy_1[_0x2aedd7(0x154)];}});var aws_s3_deploy_1=require('./aws-s3-deploy');Object[_0x1141cd(0x151)](exports,_0x1141cd(0x15c),{'enumerable':!![],'get':function(){var _0x3c97ef=_0x1141cd;return aws_s3_deploy_1[_0x3c97ef(0x15c)];}});var local_deploy_1=require(_0x1141cd(0x152));Object[_0x1141cd(0x151)](exports,_0x1141cd(0x15d),{'enumerable':!![],'get':function(){var _0x1c7183=_0x1141cd;return local_deploy_1[_0x1c7183(0x15d)];}});var azure_deploy_1=require(_0x1141cd(0x157));Object['defineProperty'](exports,_0x1141cd(0x15a),{'enumerable':!![],'get':function(){return azure_deploy_1['AzureDeploy'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4331(){const _0x29b768=['160008jcNiUL','default','apply','7pCtAia','dirname','@flosum/utils','5hsVLgC','defineProperty','100fPeJvW','BaseDeploy','mkdir','2662dVoEUg','__awaiter','FsUtils','7904868IWDMll','next','__esModule','479709GtCZLm','889851pvseVz','fs/promises','then','execute','done','607226TGBDMB','path','LocalDeploy','8096344kdxuYw','writeFile','value','__importDefault','1655404DBLoet','3dfZDhA'];_0x4331=function(){return _0x29b768;};return _0x4331();}const _0x1eb27c=_0x3965;(function(_0x58e20a,_0x56438c){const _0x11d3a0=_0x3965,_0x4f888e=_0x58e20a();while(!![]){try{const _0x3b362b=-parseInt(_0x11d3a0(0x13b))/0x1*(parseInt(_0x11d3a0(0x133))/0x2)+-parseInt(_0x11d3a0(0x12e))/0x3+-parseInt(_0x11d3a0(0x13a))/0x4*(parseInt(_0x11d3a0(0x142))/0x5)+-parseInt(_0x11d3a0(0x14a))/0x6+parseInt(_0x11d3a0(0x13f))/0x7*(parseInt(_0x11d3a0(0x136))/0x8)+parseInt(_0x11d3a0(0x12d))/0x9*(-parseInt(_0x11d3a0(0x144))/0xa)+parseInt(_0x11d3a0(0x147))/0xb*(parseInt(_0x11d3a0(0x13c))/0xc);if(_0x3b362b===_0x56438c)break;else _0x4f888e['push'](_0x4f888e['shift']());}catch(_0x24d3d6){_0x4f888e['push'](_0x4f888e['shift']());}}}(_0x4331,0xbb464));var __awaiter=this&&this[_0x1eb27c(0x148)]||function(_0x2a7a8b,_0x2f0989,_0x47c888,_0x2f9114){function _0x41e636(_0xcff38c){return _0xcff38c instanceof _0x47c888?_0xcff38c:new _0x47c888(function(_0x92d8fa){_0x92d8fa(_0xcff38c);});}return new(_0x47c888||(_0x47c888=Promise))(function(_0x4d96e1,_0x2e1f76){const _0x1dfb6d=_0x3965;function _0x915331(_0x254070){const _0x667d65=_0x3965;try{_0x535761(_0x2f9114[_0x667d65(0x12b)](_0x254070));}catch(_0x55b5f0){_0x2e1f76(_0x55b5f0);}}function _0x4a6382(_0x300137){try{_0x535761(_0x2f9114['throw'](_0x300137));}catch(_0x145e6d){_0x2e1f76(_0x145e6d);}}function _0x535761(_0x4dc0ee){const _0x24c88a=_0x3965;_0x4dc0ee[_0x24c88a(0x132)]?_0x4d96e1(_0x4dc0ee[_0x24c88a(0x138)]):_0x41e636(_0x4dc0ee[_0x24c88a(0x138)])[_0x24c88a(0x130)](_0x915331,_0x4a6382);}_0x535761((_0x2f9114=_0x2f9114[_0x1dfb6d(0x13e)](_0x2a7a8b,_0x2f0989||[]))[_0x1dfb6d(0x12b)]());});},__importDefault=this&&this[_0x1eb27c(0x139)]||function(_0x3ed380){const _0x4b2f49=_0x1eb27c;return _0x3ed380&&_0x3ed380[_0x4b2f49(0x12c)]?_0x3ed380:{'default':_0x3ed380};};Object[_0x1eb27c(0x143)](exports,'__esModule',{'value':!![]}),exports[_0x1eb27c(0x135)]=void 0x0;const path_1=__importDefault(require(_0x1eb27c(0x134))),promises_1=require(_0x1eb27c(0x12f)),utils_1=require(_0x1eb27c(0x141)),_1=require('./');function _0x3965(_0x2e0f29,_0x58b36f){const _0x433103=_0x4331();return _0x3965=function(_0x39656c,_0x30ca1d){_0x39656c=_0x39656c-0x12b;let _0x120854=_0x433103[_0x39656c];return _0x120854;},_0x3965(_0x2e0f29,_0x58b36f);}class LocalDeploy extends _1[_0x1eb27c(0x145)]{[_0x1eb27c(0x131)](_0x5ca0d3,_0x29015e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1c5edc=_0x3965;try{const _0x3b3cba=path_1[_0x1c5edc(0x13d)][_0x1c5edc(0x140)](_0x29015e),_0x1092a3=yield utils_1['FsUtils']['isExistsPath'](_0x3b3cba);!_0x1092a3&&(yield(0x0,promises_1[_0x1c5edc(0x146)])(_0x3b3cba,{'recursive':!![]})),yield(0x0,promises_1[_0x1c5edc(0x137)])(_0x29015e,_0x5ca0d3);}catch(_0x819182){(yield utils_1[_0x1c5edc(0x149)]['isExistsPath'](_0x29015e))&&(yield(0x0,promises_1['rm'])(_0x29015e,{'recursive':!![]}));throw _0x819182;}});}}exports[_0x1eb27c(0x135)]=LocalDeploy;
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2e56e4=_0x74c7;(function(_0x49d478,_0x2e2a2a){const _0x4a23e3=_0x74c7,_0x298af9=_0x49d478();while(!![]){try{const _0xb70af8=-parseInt(_0x4a23e3(0x1ca))/0x1*(parseInt(_0x4a23e3(0x1d9))/0x2)+parseInt(_0x4a23e3(0x1cb))/0x3+-parseInt(_0x4a23e3(0x1c2))/0x4*(parseInt(_0x4a23e3(0x1e8))/0x5)+parseInt(_0x4a23e3(0x1d3))/0x6+parseInt(_0x4a23e3(0x1cf))/0x7*(-parseInt(_0x4a23e3(0x1de))/0x8)+-parseInt(_0x4a23e3(0x1c8))/0x9+parseInt(_0x4a23e3(0x1d2))/0xa;if(_0xb70af8===_0x2e2a2a)break;else _0x298af9['push'](_0x298af9['shift']());}catch(_0x325dd7){_0x298af9['push'](_0x298af9['shift']());}}}(_0x1e66,0x2ba62));function _0x74c7(_0x4b12fe,_0xae43cd){const _0x1e66e7=_0x1e66();return _0x74c7=function(_0x74c787,_0x39fb82){_0x74c787=_0x74c787-0x1bf;let _0x282a55=_0x1e66e7[_0x74c787];return _0x282a55;},_0x74c7(_0x4b12fe,_0xae43cd);}function _0x1e66(){const _0x391753=['./credentials','1019440ugFoJM','createFileSizeRetriever','./file-size-retriever','AwsS3Delete','AwsS3Helper','createRetrieveHelper','AwsS3Deploy','AwsS3Credentials','./retrieve','AzureDeploy','10dTbQKc','AzureDelete','AzureRetrieve','./types/storage-type.enum','AZURE_BLOB','430900EEdwfU','StorageType','StorageFactory','Unknown\x20storage\x20type\x20-\x20\x22','LocalFileSizeRetriever','Azure\x20Blob\x20Storage\x20functionality\x20is\x20not\x20currently\x20supported','2660274pZszOx','AzureFileSizeRetriever','17IukPEK','27984lWdhRO','AWS_S3','createRetrieve','LocalCopy','7jiRrOU','Local','LocalHelper','6911890VnuvMY','1546704UtrMHA','defineProperty','./copy','AzureHelper','__esModule','createCopy','16594CJZAHF','createDelete','AwsS3FileSizeRetriever','LocalDeploy'];_0x1e66=function(){return _0x391753;};return _0x1e66();}Object[_0x2e56e4(0x1d4)](exports,_0x2e56e4(0x1d7),{'value':!![]}),exports[_0x2e56e4(0x1c4)]=void 0x0;const storage_type_enum_1=require(_0x2e56e4(0x1c0)),credentials_1=require(_0x2e56e4(0x1dd)),delete_1=require('./delete'),deploy_1=require('./deploy'),retrieve_1=require(_0x2e56e4(0x1e6)),file_size_retriever_1=require(_0x2e56e4(0x1e0)),copy_1=require(_0x2e56e4(0x1d5));class StorageFactory{static[_0x2e56e4(0x1cd)](_0x8f1c90,_0xa40c6f,_0x4d4d54,_0x5b8fbb,_0xf44707,_0x3641f9){const _0x3ab753=_0x2e56e4;switch(_0x8f1c90){case storage_type_enum_1[_0x3ab753(0x1c3)][_0x3ab753(0x1cc)]:return new retrieve_1['AwsS3Retrieve'](_0xa40c6f,_0x4d4d54,_0x5b8fbb,_0xf44707,_0x3641f9);case storage_type_enum_1[_0x3ab753(0x1c3)][_0x3ab753(0x1d0)]:return new retrieve_1['LocalRetrieve'](_0xa40c6f,_0x4d4d54);case storage_type_enum_1[_0x3ab753(0x1c3)][_0x3ab753(0x1c1)]:return new retrieve_1[(_0x3ab753(0x1bf))](_0xa40c6f,_0x4d4d54,_0xf44707);default:throw new Error(_0x3ab753(0x1c5)+_0x8f1c90+'\x22');}}static['createDeploy'](_0x566e0e,_0x55470e,_0x4b8930,_0x3404e4){const _0x531c34=_0x2e56e4;switch(_0x566e0e){case storage_type_enum_1[_0x531c34(0x1c3)][_0x531c34(0x1cc)]:return new deploy_1[(_0x531c34(0x1e4))](_0x55470e,_0x4b8930,_0x3404e4);case storage_type_enum_1[_0x531c34(0x1c3)][_0x531c34(0x1d0)]:return new deploy_1[(_0x531c34(0x1dc))](_0x55470e);case storage_type_enum_1[_0x531c34(0x1c3)]['AZURE_BLOB']:return new deploy_1[(_0x531c34(0x1e7))](_0x55470e);default:throw new Error(_0x531c34(0x1c5)+_0x566e0e+'\x22');}}static[_0x2e56e4(0x1da)](_0x389353,_0x21cc29,_0x256972){const _0x34f73c=_0x2e56e4;switch(_0x389353){case storage_type_enum_1[_0x34f73c(0x1c3)][_0x34f73c(0x1cc)]:return new delete_1[(_0x34f73c(0x1e1))](_0x21cc29,_0x256972);case storage_type_enum_1[_0x34f73c(0x1c3)]['Local']:return new delete_1['LocalDelete'](_0x21cc29);case storage_type_enum_1[_0x34f73c(0x1c3)]['AZURE_BLOB']:return new delete_1[(_0x34f73c(0x1e9))](_0x21cc29);default:throw new Error(_0x34f73c(0x1c5)+_0x389353+'\x22');}}static['createCredentials'](_0x3f4ccb,_0xde62b8){const _0x236710=_0x2e56e4;switch(_0x3f4ccb){case storage_type_enum_1['StorageType'][_0x236710(0x1cc)]:return new credentials_1[(_0x236710(0x1e5))](_0xde62b8);case storage_type_enum_1[_0x236710(0x1c3)][_0x236710(0x1d0)]:return new credentials_1['LocalCredentials']();case storage_type_enum_1[_0x236710(0x1c3)][_0x236710(0x1c1)]:throw new Error(_0x236710(0x1c7));default:throw new Error(_0x236710(0x1c5)+_0x3f4ccb+'\x22');}}static[_0x2e56e4(0x1df)](_0x599ff2,_0xf03a6f,_0x4dba52){const _0x599883=_0x2e56e4;switch(_0x599ff2){case storage_type_enum_1[_0x599883(0x1c3)][_0x599883(0x1cc)]:return new file_size_retriever_1[(_0x599883(0x1db))](_0xf03a6f,_0x4dba52);case storage_type_enum_1[_0x599883(0x1c3)][_0x599883(0x1d0)]:return new file_size_retriever_1[(_0x599883(0x1c6))](_0xf03a6f);case storage_type_enum_1[_0x599883(0x1c3)][_0x599883(0x1c1)]:return new file_size_retriever_1[(_0x599883(0x1c9))](_0xf03a6f);default:throw new Error(_0x599883(0x1c5)+_0x599ff2+'\x22');}}static[_0x2e56e4(0x1e3)](_0x11ed1c,_0x148be8,_0x1ee4bc){const _0x278258=_0x2e56e4;switch(_0x11ed1c){case storage_type_enum_1[_0x278258(0x1c3)][_0x278258(0x1d0)]:return new retrieve_1[(_0x278258(0x1d1))](_0x1ee4bc);case storage_type_enum_1['StorageType']['AWS_S3']:return new retrieve_1[(_0x278258(0x1e2))](_0x1ee4bc,_0x148be8);case storage_type_enum_1[_0x278258(0x1c3)][_0x278258(0x1c1)]:return new retrieve_1[(_0x278258(0x1d6))](_0x148be8,_0x1ee4bc);default:throw new Error('Unknown\x20storage\x20type\x20for\x20creating\x20retrieve\x20helper\x20-\x20\x22'+_0x11ed1c+'\x22');}}static[_0x2e56e4(0x1d8)](_0x307ec6,_0x1710e8){const _0x813339=_0x2e56e4;switch(_0x307ec6){case storage_type_enum_1[_0x813339(0x1c3)][_0x813339(0x1d0)]:return new copy_1[(_0x813339(0x1ce))](_0x1710e8);case storage_type_enum_1[_0x813339(0x1c3)][_0x813339(0x1cc)]:return new copy_1['AwsS3Copy'](_0x1710e8);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x307ec6+'\x22');}}}exports['StorageFactory']=StorageFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x322b90=_0x4b13;(function(_0x1d3b2d,_0x3f39bf){const _0x304084=_0x4b13,_0x3a351a=_0x1d3b2d();while(!![]){try{const _0x259c8c=parseInt(_0x304084(0x94))/0x1+parseInt(_0x304084(0xa0))/0x2+parseInt(_0x304084(0xb0))/0x3*(parseInt(_0x304084(0xae))/0x4)+-parseInt(_0x304084(0x99))/0x5*(parseInt(_0x304084(0x9c))/0x6)+parseInt(_0x304084(0x9d))/0x7*(parseInt(_0x304084(0xa7))/0x8)+parseInt(_0x304084(0xaf))/0x9*(parseInt(_0x304084(0xb3))/0xa)+-parseInt(_0x304084(0xaa))/0xb;if(_0x259c8c===_0x3f39bf)break;else _0x3a351a['push'](_0x3a351a['shift']());}catch(_0x594b6d){_0x3a351a['push'](_0x3a351a['shift']());}}}(_0x234c,0x288ea));function _0x4b13(_0x6bb480,_0x23b007){const _0x234cec=_0x234c();return _0x4b13=function(_0x4b1318,_0x5273a5){_0x4b1318=_0x4b1318-0x94;let _0x2b630d=_0x234cec[_0x4b1318];return _0x2b630d;},_0x4b13(_0x6bb480,_0x23b007);}var __awaiter=this&&this['__awaiter']||function(_0x4076b9,_0x25b711,_0x1682a7,_0x696809){function _0x171704(_0x44a64d){return _0x44a64d instanceof _0x1682a7?_0x44a64d:new _0x1682a7(function(_0x3aded3){_0x3aded3(_0x44a64d);});}return new(_0x1682a7||(_0x1682a7=Promise))(function(_0x559535,_0x5c8bfa){function _0x50f26c(_0x22ff21){const _0x429a8f=_0x4b13;try{_0x11604c(_0x696809[_0x429a8f(0x9e)](_0x22ff21));}catch(_0x49dfd5){_0x5c8bfa(_0x49dfd5);}}function _0x5397fb(_0x108567){const _0x368c18=_0x4b13;try{_0x11604c(_0x696809[_0x368c18(0x97)](_0x108567));}catch(_0x1c633d){_0x5c8bfa(_0x1c633d);}}function _0x11604c(_0x218c00){const _0x25cae6=_0x4b13;_0x218c00[_0x25cae6(0xa4)]?_0x559535(_0x218c00[_0x25cae6(0xb1)]):_0x171704(_0x218c00[_0x25cae6(0xb1)])[_0x25cae6(0xa8)](_0x50f26c,_0x5397fb);}_0x11604c((_0x696809=_0x696809['apply'](_0x4076b9,_0x25b711||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0x121249){const _0x5a4ba0=_0x4b13;return _0x121249&&_0x121249[_0x5a4ba0(0x9a)]?_0x121249:{'default':_0x121249};};Object['defineProperty'](exports,_0x322b90(0x9a),{'value':!![]}),exports[_0x322b90(0xa1)]=void 0x0;const base_file_size_retriever_1=require('./base-file-size-retriever'),client_s3_1=require('@aws-sdk/client-s3'),path_1=__importDefault(require(_0x322b90(0x95))),aws_s3_utils_1=require('../utils/aws-s3.utils');class AwsS3FileSizeRetriever extends base_file_size_retriever_1[_0x322b90(0xa6)]{constructor(_0x2010ff,_0x12f9b1){const _0x4bf473=_0x322b90;super(_0x2010ff),this[_0x4bf473(0xa9)]=aws_s3_utils_1[_0x4bf473(0xa2)][_0x4bf473(0x98)](_0x2010ff,_0x12f9b1);}['execute'](_0x4bc0a7){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x20fa96=_0x4b13,_0x8090c1=_0x4bc0a7['split'](path_1[_0x20fa96(0xb2)][_0x20fa96(0xab)])[_0x20fa96(0xa5)](path_1['default'][_0x20fa96(0xac)]['sep']),_0x2f48d0=new client_s3_1[(_0x20fa96(0xa3))]({'Bucket':this[_0x20fa96(0x9f)]['bucketName'],'Key':_0x8090c1});try{const _0x838dda=yield this[_0x20fa96(0xa9)][_0x20fa96(0x9b)](_0x2f48d0);return _0x838dda[_0x20fa96(0xad)];}catch(_0x103053){if(_0x103053[_0x20fa96(0x96)]==='NotFound')return null;throw _0x103053;}});}}exports[_0x322b90(0xa1)]=AwsS3FileSizeRetriever;function _0x234c(){const _0x277f15=['1000952GhWalI','36063wRlQbU','3JDuEyG','value','default','470UOXKku','171323rmsbLu','path','name','throw','createS3Client','2090FTSXqW','__esModule','send','4098qsnqMt','42csVOSD','next','credentials','654158OTomyU','AwsS3FileSizeRetriever','AwsS3Utils','HeadObjectCommand','done','join','BaseFileSizeRetriever','362312ctCqiE','then','s3Client','8327957ovsPnK','sep','posix','ContentLength'];_0x234c=function(){return _0x277f15;};return _0x234c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4cb6f4=_0xd193;(function(_0x302c37,_0x344ab1){const _0x5af8ac=_0xd193,_0x5696a1=_0x302c37();while(!![]){try{const _0x3c5698=-parseInt(_0x5af8ac(0x79))/0x1*(parseInt(_0x5af8ac(0x83))/0x2)+parseInt(_0x5af8ac(0x75))/0x3+-parseInt(_0x5af8ac(0x72))/0x4*(parseInt(_0x5af8ac(0x81))/0x5)+parseInt(_0x5af8ac(0x7e))/0x6*(parseInt(_0x5af8ac(0x70))/0x7)+-parseInt(_0x5af8ac(0x8b))/0x8+parseInt(_0x5af8ac(0x7d))/0x9+parseInt(_0x5af8ac(0x84))/0xa*(parseInt(_0x5af8ac(0x82))/0xb);if(_0x3c5698===_0x344ab1)break;else _0x5696a1['push'](_0x5696a1['shift']());}catch(_0x168936){_0x5696a1['push'](_0x5696a1['shift']());}}}(_0x152a,0x9095c));function _0x152a(){const _0x153c10=['BaseFileSizeRetriever','value','10QneGuP','253sjmnQN','786398AvguoF','565580HtbNbi','../utils/azure.utils','then','execute','NotFound','posix','containerClient','3376280usPSsi','done','contentLength','sep','45703FmahJU','getBlockBlobClient','696076hnCPGz','split','next','305217HJqQqM','./base-file-size-retriever','__importDefault','AzureUtils','2CTsmgR','getProperties','AzureFileSizeRetriever','path','4775949yAMKDV','198pyoAbL'];_0x152a=function(){return _0x153c10;};return _0x152a();}function _0xd193(_0x470b6c,_0x190d1e){const _0x152aa7=_0x152a();return _0xd193=function(_0xd19391,_0x17a57e){_0xd19391=_0xd19391-0x6d;let _0x255472=_0x152aa7[_0xd19391];return _0x255472;},_0xd193(_0x470b6c,_0x190d1e);}var __awaiter=this&&this['__awaiter']||function(_0x14a431,_0x309956,_0x326451,_0x3869a8){function _0x316db4(_0x2424f8){return _0x2424f8 instanceof _0x326451?_0x2424f8:new _0x326451(function(_0xfaa62b){_0xfaa62b(_0x2424f8);});}return new(_0x326451||(_0x326451=Promise))(function(_0x283d4c,_0x87672b){const _0x6a5b53=_0xd193;function _0x2eb206(_0x55c91d){try{_0x13d380(_0x3869a8['next'](_0x55c91d));}catch(_0x534447){_0x87672b(_0x534447);}}function _0x336b1e(_0x31d7b0){try{_0x13d380(_0x3869a8['throw'](_0x31d7b0));}catch(_0x2ccd79){_0x87672b(_0x2ccd79);}}function _0x13d380(_0x2986b6){const _0xa80d50=_0xd193;_0x2986b6[_0xa80d50(0x6d)]?_0x283d4c(_0x2986b6[_0xa80d50(0x80)]):_0x316db4(_0x2986b6[_0xa80d50(0x80)])[_0xa80d50(0x86)](_0x2eb206,_0x336b1e);}_0x13d380((_0x3869a8=_0x3869a8['apply'](_0x14a431,_0x309956||[]))[_0x6a5b53(0x74)]());});},__importDefault=this&&this[_0x4cb6f4(0x77)]||function(_0xf69d42){return _0xf69d42&&_0xf69d42['__esModule']?_0xf69d42:{'default':_0xf69d42};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x4cb6f4(0x7b)]=void 0x0;const base_file_size_retriever_1=require(_0x4cb6f4(0x76)),path_1=__importDefault(require(_0x4cb6f4(0x7c))),azure_utils_1=require(_0x4cb6f4(0x85));class AzureFileSizeRetriever extends base_file_size_retriever_1[_0x4cb6f4(0x7f)]{constructor(_0x528978){const _0x27f672=_0x4cb6f4;super(_0x528978),this[_0x27f672(0x8a)]=azure_utils_1[_0x27f672(0x78)]['createAzureBlobContainerClient'](this['credentials']);}[_0x4cb6f4(0x87)](_0x5d7a7a){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x482af7=_0xd193,_0xccd53a=_0x5d7a7a[_0x482af7(0x73)](path_1['default']['sep'])['join'](path_1['default'][_0x482af7(0x89)][_0x482af7(0x6f)]),_0x3adaea=this[_0x482af7(0x8a)][_0x482af7(0x71)](_0xccd53a);try{const _0x58fe63=yield _0x3adaea[_0x482af7(0x7a)]();return _0x58fe63[_0x482af7(0x6e)];}catch(_0x2c4881){if(_0x2c4881['name']===_0x482af7(0x88))return null;throw _0x2c4881;}});}}exports[_0x4cb6f4(0x7b)]=AzureFileSizeRetriever;
|