@flosum/storages 1.3.5 → 1.3.6-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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.d.ts +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/instances/aws-s3.storage-instance.js +1 -1
- package/dist/instances/base.storage-instance.d.ts +4 -4
- package/dist/instances/base.storage-instance.js +1 -1
- package/dist/instances/index.js +1 -1
- package/dist/instances/local.storage-instance.js +1 -1
- package/dist/retrieve/aws-s3-import-helper.d.ts +1 -1
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
- package/dist/retrieve/helpers/azure-helper.js +1 -1
- package/dist/retrieve/helpers/base-helper.js +1 -1
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.d.ts +4 -4
- package/dist/types/aws.types.js +1 -1
- package/dist/types/azure.types.d.ts +1 -1
- package/dist/types/azure.types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal.types.d.ts +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 +9 -11
package/dist/copy/aws-s3-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x543c(){const _0x4cce88=['CopyObjectCommand','credentials','AwsS3Utils','./base-copy','send','5BEfIJr','then','9174lbcQMa','s3Client','3248898JHHgSr','__awaiter','627536LFpWWV','next','bucketName','apply','501jlyZQH','AwsS3Copy','3044804aCTzfY','1372330FqjYHp','value','throw','9vXDrDf','createS3Client','460050HyRQpe','2770600dvCjpw','__esModule','execute','done','@aws-sdk/client-s3'];_0x543c=function(){return _0x4cce88;};return _0x543c();}const _0x237937=_0x42d7;(function(_0x15abc2,_0x357777){const _0x3b4218=_0x42d7,_0x30ea71=_0x15abc2();while(!![]){try{const _0x56d964=parseInt(_0x3b4218(0x109))/0x1+parseInt(_0x3b4218(0xf9))/0x2*(parseInt(_0x3b4218(0x101))/0x3)+-parseInt(_0x3b4218(0x10a))/0x4+parseInt(_0x3b4218(0xf7))/0x5*(-parseInt(_0x3b4218(0xfb))/0x6)+parseInt(_0x3b4218(0x103))/0x7+-parseInt(_0x3b4218(0xfd))/0x8+-parseInt(_0x3b4218(0x107))/0x9*(-parseInt(_0x3b4218(0x104))/0xa);if(_0x56d964===_0x357777)break;else _0x30ea71['push'](_0x30ea71['shift']());}catch(_0x436014){_0x30ea71['push'](_0x30ea71['shift']());}}}(_0x543c,0x7694d));var __awaiter=this&&this[_0x237937(0xfc)]||function(_0xe75446,_0x390398,_0x3fd2bb,_0x5dac3d){function _0x32861a(_0x1a0937){return _0x1a0937 instanceof _0x3fd2bb?_0x1a0937:new _0x3fd2bb(function(_0x495157){_0x495157(_0x1a0937);});}return new(_0x3fd2bb||(_0x3fd2bb=Promise))(function(_0x4f5047,_0x16f33a){const _0xbe162e=_0x42d7;function _0x4123bc(_0x55004e){const _0x158bbc=_0x42d7;try{_0x2aa059(_0x5dac3d[_0x158bbc(0xfe)](_0x55004e));}catch(_0x47e921){_0x16f33a(_0x47e921);}}function _0x5b94d2(_0x659254){const _0x50ae47=_0x42d7;try{_0x2aa059(_0x5dac3d[_0x50ae47(0x106)](_0x659254));}catch(_0x1c4a21){_0x16f33a(_0x1c4a21);}}function _0x2aa059(_0x124531){const _0x3a03a1=_0x42d7;_0x124531[_0x3a03a1(0x10d)]?_0x4f5047(_0x124531['value']):_0x32861a(_0x124531[_0x3a03a1(0x105)])[_0x3a03a1(0xf8)](_0x4123bc,_0x5b94d2);}_0x2aa059((_0x5dac3d=_0x5dac3d[_0xbe162e(0x100)](_0xe75446,_0x390398||[]))['next']());});};Object['defineProperty'](exports,_0x237937(0x10b),{'value':!![]}),exports[_0x237937(0x102)]=void 0x0;function _0x42d7(_0x5f4e2f,_0x5d3848){_0x5f4e2f=_0x5f4e2f-0xf4;const _0x543c9c=_0x543c();let _0x42d7a3=_0x543c9c[_0x5f4e2f];return _0x42d7a3;}const base_copy_1=require(_0x237937(0xf5)),client_s3_1=require(_0x237937(0x10e)),aws_s3_utils_1=require('../utils/aws-s3.utils');class AwsS3Copy extends base_copy_1['BaseCopy']{constructor(_0x21d374,_0x2ab6a4){const _0x1a87fa=_0x237937;super(_0x21d374),this[_0x1a87fa(0xfa)]=_0x2ab6a4||aws_s3_utils_1[_0x1a87fa(0xf4)][_0x1a87fa(0x108)](_0x21d374);}[_0x237937(0x10c)](_0x54797e,_0x3aae5c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x97a1db=_0x42d7,_0x30f8bb=new client_s3_1[(_0x97a1db(0x10f))]({'Bucket':this[_0x97a1db(0x110)][_0x97a1db(0xff)],'CopySource':_0x54797e,'Key':_0x3aae5c});yield this['s3Client'][_0x97a1db(0xf6)](_0x30f8bb);});}}exports['AwsS3Copy']=AwsS3Copy;
|
package/dist/copy/base-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4acf(_0x4b3853,_0x257072){_0x4b3853=_0x4b3853-0x12c;var _0x2e9f0c=_0x2e9f();var _0x4acf02=_0x2e9f0c[_0x4b3853];return _0x4acf02;}var _0x4ad48e=_0x4acf;(function(_0x32848e,_0x31bf19){var _0x1202a0=_0x4acf,_0xc25e2c=_0x32848e();while(!![]){try{var _0x488a1b=-parseInt(_0x1202a0(0x12d))/0x1*(-parseInt(_0x1202a0(0x139))/0x2)+parseInt(_0x1202a0(0x12c))/0x3*(parseInt(_0x1202a0(0x135))/0x4)+-parseInt(_0x1202a0(0x12e))/0x5*(-parseInt(_0x1202a0(0x12f))/0x6)+-parseInt(_0x1202a0(0x137))/0x7+parseInt(_0x1202a0(0x13a))/0x8+-parseInt(_0x1202a0(0x134))/0x9*(-parseInt(_0x1202a0(0x131))/0xa)+parseInt(_0x1202a0(0x132))/0xb*(-parseInt(_0x1202a0(0x136))/0xc);if(_0x488a1b===_0x31bf19)break;else _0xc25e2c['push'](_0xc25e2c['shift']());}catch(_0x22c8d5){_0xc25e2c['push'](_0xc25e2c['shift']());}}}(_0x2e9f,0x728f2));function _0x2e9f(){var _0x91947a=['2478dofhGy','130661iCwTak','1000895WUUjUN','18vXsnpM','defineProperty','1870dYwEUE','11loqIMY','__esModule','23706DrZRhe','988LBcono','17260356ozVAmY','4300408ALQsbi','BaseCopy','6kkTxeh','6662728GbNgyU'];_0x2e9f=function(){return _0x91947a;};return _0x2e9f();}Object[_0x4ad48e(0x130)](exports,_0x4ad48e(0x133),{'value':!![]}),exports['BaseCopy']=void 0x0;class BaseCopy{constructor(_0x294021){this['credentials']=_0x294021;}}exports[_0x4ad48e(0x138)]=BaseCopy;
|
package/dist/copy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x53ef49=_0x1001;(function(_0x3a0e86,_0x2e56ad){var _0x46e52d=_0x1001,_0x51f9b3=_0x3a0e86();while(!![]){try{var _0x1f1af6=-parseInt(_0x46e52d(0x7a))/0x1+parseInt(_0x46e52d(0x7d))/0x2+-parseInt(_0x46e52d(0x79))/0x3*(parseInt(_0x46e52d(0x71))/0x4)+parseInt(_0x46e52d(0x6e))/0x5*(parseInt(_0x46e52d(0x80))/0x6)+parseInt(_0x46e52d(0x6f))/0x7*(-parseInt(_0x46e52d(0x72))/0x8)+-parseInt(_0x46e52d(0x7b))/0x9*(parseInt(_0x46e52d(0x7c))/0xa)+-parseInt(_0x46e52d(0x6d))/0xb*(-parseInt(_0x46e52d(0x7e))/0xc);if(_0x1f1af6===_0x2e56ad)break;else _0x51f9b3['push'](_0x51f9b3['shift']());}catch(_0x5e94ac){_0x51f9b3['push'](_0x51f9b3['shift']());}}}(_0x5e7f,0x70a58));Object[_0x53ef49(0x74)](exports,_0x53ef49(0x76),{'value':!![]}),exports['AwsS3Copy']=exports[_0x53ef49(0x77)]=exports[_0x53ef49(0x73)]=void 0x0;var base_copy_1=require(_0x53ef49(0x75));function _0x5e7f(){var _0x1cdefe=['11QAAwWJ','5jeVYNQ','21vlutpB','AwsS3Copy','12xXshFJ','91768VwQaVa','BaseCopy','defineProperty','./base-copy','__esModule','LocalCopy','./aws-s3-copy','190797FgIknV','173856XryhbD','18549zAGqSd','1950lEIOex','536958TibmPS','6668328qAZXHb','./local-copy','2629128ghCkMB'];_0x5e7f=function(){return _0x1cdefe;};return _0x5e7f();}Object[_0x53ef49(0x74)](exports,'BaseCopy',{'enumerable':!![],'get':function(){var _0xa18f9a=_0x53ef49;return base_copy_1[_0xa18f9a(0x73)];}});var local_copy_1=require(_0x53ef49(0x7f));function _0x1001(_0x5bc9f1,_0x54e725){_0x5bc9f1=_0x5bc9f1-0x6d;var _0x5e7f16=_0x5e7f();var _0x1001c4=_0x5e7f16[_0x5bc9f1];return _0x1001c4;}Object['defineProperty'](exports,_0x53ef49(0x77),{'enumerable':!![],'get':function(){var _0x2e511c=_0x53ef49;return local_copy_1[_0x2e511c(0x77)];}});var aws_s3_copy_1=require(_0x53ef49(0x78));Object[_0x53ef49(0x74)](exports,_0x53ef49(0x70),{'enumerable':!![],'get':function(){var _0x530969=_0x53ef49;return aws_s3_copy_1[_0x530969(0x70)];}});
|
package/dist/copy/local-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x58594a=_0x8dc2;(function(_0x4482e8,_0x1a6ac3){const _0x4762ec=_0x8dc2,_0x2134b6=_0x4482e8();while(!![]){try{const _0x5715c5=-parseInt(_0x4762ec(0x1ef))/0x1*(-parseInt(_0x4762ec(0x1de))/0x2)+-parseInt(_0x4762ec(0x1dc))/0x3*(-parseInt(_0x4762ec(0x1ec))/0x4)+parseInt(_0x4762ec(0x1ed))/0x5+parseInt(_0x4762ec(0x1e9))/0x6*(-parseInt(_0x4762ec(0x1ea))/0x7)+parseInt(_0x4762ec(0x1ee))/0x8+-parseInt(_0x4762ec(0x1e4))/0x9*(parseInt(_0x4762ec(0x1da))/0xa)+parseInt(_0x4762ec(0x1db))/0xb*(-parseInt(_0x4762ec(0x1e5))/0xc);if(_0x5715c5===_0x1a6ac3)break;else _0x2134b6['push'](_0x2134b6['shift']());}catch(_0xac811e){_0x2134b6['push'](_0x2134b6['shift']());}}}(_0x24fe,0xd9e3f));var __awaiter=this&&this['__awaiter']||function(_0x5b08df,_0x195d63,_0x55d437,_0x11e09a){function _0xe0f5e(_0x228d5c){return _0x228d5c instanceof _0x55d437?_0x228d5c:new _0x55d437(function(_0x7044a1){_0x7044a1(_0x228d5c);});}return new(_0x55d437||(_0x55d437=Promise))(function(_0x3e7bf3,_0x5243ce){const _0x10f4fe=_0x8dc2;function _0x75def0(_0x457007){const _0x3c82b3=_0x8dc2;try{_0x51192d(_0x11e09a[_0x3c82b3(0x1df)](_0x457007));}catch(_0x1f657e){_0x5243ce(_0x1f657e);}}function _0x3754eb(_0x1cd48f){try{_0x51192d(_0x11e09a['throw'](_0x1cd48f));}catch(_0x297e53){_0x5243ce(_0x297e53);}}function _0x51192d(_0x1978dd){const _0x26aefa=_0x8dc2;_0x1978dd['done']?_0x3e7bf3(_0x1978dd[_0x26aefa(0x1e2)]):_0xe0f5e(_0x1978dd[_0x26aefa(0x1e2)])['then'](_0x75def0,_0x3754eb);}_0x51192d((_0x11e09a=_0x11e09a['apply'](_0x5b08df,_0x195d63||[]))[_0x10f4fe(0x1df)]());});};Object[_0x58594a(0x1dd)](exports,_0x58594a(0x1e8),{'value':!![]}),exports[_0x58594a(0x1f0)]=void 0x0;function _0x24fe(){const _0x18a97d=['3474DDylAY','1603ceeSij','BaseCopy','5038948yAcBjj','6716010WrCEGt','13004736cyMHtk','664621LFkNmR','LocalCopy','2739540LVxHeV','21901hLhmiA','3guBcvj','defineProperty','4oxPkWO','next','fs/promises','copyFile','value','dirname','9yLhsSO','25668pfRsEv','execute','path','__esModule'];_0x24fe=function(){return _0x18a97d;};return _0x24fe();}const base_copy_1=require('./base-copy'),promises_1=require(_0x58594a(0x1e0)),path_1=require(_0x58594a(0x1e7));function _0x8dc2(_0x114fb8,_0x5b8c7b){_0x114fb8=_0x114fb8-0x1da;const _0x24fe9c=_0x24fe();let _0x8dc26c=_0x24fe9c[_0x114fb8];return _0x8dc26c;}class LocalCopy extends base_copy_1[_0x58594a(0x1eb)]{[_0x58594a(0x1e6)](_0x5d8950,_0x35ae65){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x506f60=_0x8dc2,_0x52f8ca=(0x0,path_1[_0x506f60(0x1e3)])(_0x35ae65);yield(0x0,promises_1['mkdir'])(_0x52f8ca,{'recursive':!![]}),yield(0x0,promises_1[_0x506f60(0x1e1)])(_0x5d8950,_0x35ae65);});}}exports[_0x58594a(0x1f0)]=LocalCopy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x3a5d(){const _0x45efd7=['__esModule','40wNxtvt','getCredentials','5RLqXZm','3084834qkiZow','bucketName','../utils/aws-s3.utils','9181356aszbnX','done','BaseCredentials','5602428bvtUuM','value','AwsS3Credentials','949585RagXyB','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','message','3424779FUUMjr','851126bfMJGa','s3Client','throw','29365690TJgPcR','validate','send','region','apply','3kfQoVh','credentials','secretAccessKey','next'];_0x3a5d=function(){return _0x45efd7;};return _0x3a5d();}function _0x1d5c(_0x4e7862,_0x1b784d){_0x4e7862=_0x4e7862-0x1f0;const _0x3a5d85=_0x3a5d();let _0x1d5c35=_0x3a5d85[_0x4e7862];return _0x1d5c35;}const _0x16f8a9=_0x1d5c;(function(_0x229b3b,_0x2a99a8){const _0x134910=_0x1d5c,_0x397f41=_0x229b3b();while(!![]){try{const _0x1c7e06=parseInt(_0x134910(0x203))/0x1*(-parseInt(_0x134910(0x1fb))/0x2)+-parseInt(_0x134910(0x20b))/0x3+parseInt(_0x134910(0x1f4))/0x4+-parseInt(_0x134910(0x20a))/0x5*(parseInt(_0x134910(0x1f1))/0x6)+-parseInt(_0x134910(0x1f7))/0x7*(-parseInt(_0x134910(0x208))/0x8)+-parseInt(_0x134910(0x1fa))/0x9+parseInt(_0x134910(0x1fe))/0xa;if(_0x1c7e06===_0x2a99a8)break;else _0x397f41['push'](_0x397f41['shift']());}catch(_0x3ac521){_0x397f41['push'](_0x397f41['shift']());}}}(_0x3a5d,0xc33ef));var __awaiter=this&&this['__awaiter']||function(_0x34dea2,_0x800837,_0x27ab76,_0x3d55b){function _0x2d51d4(_0x419e14){return _0x419e14 instanceof _0x27ab76?_0x419e14:new _0x27ab76(function(_0x44a93a){_0x44a93a(_0x419e14);});}return new(_0x27ab76||(_0x27ab76=Promise))(function(_0x3150a8,_0x28488d){const _0x5e0bb7=_0x1d5c;function _0x48b3b2(_0xedd89d){const _0x13409c=_0x1d5c;try{_0xced87b(_0x3d55b[_0x13409c(0x206)](_0xedd89d));}catch(_0x5de84d){_0x28488d(_0x5de84d);}}function _0x36bc56(_0x38b851){const _0x3a8b57=_0x1d5c;try{_0xced87b(_0x3d55b[_0x3a8b57(0x1fd)](_0x38b851));}catch(_0x1212fd){_0x28488d(_0x1212fd);}}function _0xced87b(_0x15dbe6){const _0x3dc35c=_0x1d5c;_0x15dbe6[_0x3dc35c(0x1f2)]?_0x3150a8(_0x15dbe6['value']):_0x2d51d4(_0x15dbe6[_0x3dc35c(0x1f5)])['then'](_0x48b3b2,_0x36bc56);}_0xced87b((_0x3d55b=_0x3d55b[_0x5e0bb7(0x202)](_0x34dea2,_0x800837||[]))['next']());});};Object['defineProperty'](exports,_0x16f8a9(0x207),{'value':!![]}),exports[_0x16f8a9(0x1f6)]=void 0x0;const base_credentials_1=require('./base-credentials'),client_s3_1=require('@aws-sdk/client-s3'),aws_s3_utils_1=require(_0x16f8a9(0x1f0));class AwsS3Credentials extends base_credentials_1[_0x16f8a9(0x1f3)]{constructor(_0x466a20){const _0x20e22b=_0x16f8a9;super(_0x466a20),this[_0x20e22b(0x1fc)]=aws_s3_utils_1['AwsS3Utils']['createS3Client'](this['credentials']);}get['accessKeyId'](){const _0x3e549e=_0x16f8a9;return this[_0x3e549e(0x204)]['accessKeyId'];}get[_0x16f8a9(0x205)](){const _0x3d9504=_0x16f8a9;return this[_0x3d9504(0x204)][_0x3d9504(0x205)];}get[_0x16f8a9(0x20c)](){const _0xc64b1f=_0x16f8a9;return this['credentials'][_0xc64b1f(0x20c)];}get['region'](){const _0x61e434=_0x16f8a9;return this[_0x61e434(0x204)][_0x61e434(0x201)];}[_0x16f8a9(0x1ff)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3caa0f=_0x1d5c;try{const _0x32ddaf=new client_s3_1['HeadBucketCommand']({'Bucket':this[_0x3caa0f(0x204)][_0x3caa0f(0x20c)]});yield this[_0x3caa0f(0x1fc)][_0x3caa0f(0x200)](_0x32ddaf);}catch(_0x3fb1ef){throw new Error(_0x3caa0f(0x1f8)+_0x3fb1ef[_0x3caa0f(0x1f9)]);}});}[_0x16f8a9(0x209)](_0x1e8172=![]){const _0x1c1619=_0x16f8a9;if(_0x1e8172)return{'bucketName':this[_0x1c1619(0x204)][_0x1c1619(0x20c)]};return this[_0x1c1619(0x204)];}}exports[_0x16f8a9(0x1f6)]=AwsS3Credentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x3f18(_0x4beb86,_0x146147){_0x4beb86=_0x4beb86-0x1d9;const _0x3a9ffc=_0x3a9f();let _0x3f1822=_0x3a9ffc[_0x4beb86];return _0x3f1822;}const _0x54872d=_0x3f18;(function(_0x5594b3,_0x244b5e){const _0x4e9671=_0x3f18,_0x4d0826=_0x5594b3();while(!![]){try{const _0x167a48=parseInt(_0x4e9671(0x1e6))/0x1+parseInt(_0x4e9671(0x1f0))/0x2+parseInt(_0x4e9671(0x1f5))/0x3+parseInt(_0x4e9671(0x1e1))/0x4+-parseInt(_0x4e9671(0x1f3))/0x5+-parseInt(_0x4e9671(0x1e0))/0x6*(-parseInt(_0x4e9671(0x1e2))/0x7)+-parseInt(_0x4e9671(0x1f2))/0x8;if(_0x167a48===_0x244b5e)break;else _0x4d0826['push'](_0x4d0826['shift']());}catch(_0x143d68){_0x4d0826['push'](_0x4d0826['shift']());}}}(_0x3a9f,0x2ebc1));var __awaiter=this&&this[_0x54872d(0x1ed)]||function(_0x2b4605,_0x99801,_0x133bf1,_0x523cc4){function _0x505c98(_0x40ed21){return _0x40ed21 instanceof _0x133bf1?_0x40ed21:new _0x133bf1(function(_0x5a6384){_0x5a6384(_0x40ed21);});}return new(_0x133bf1||(_0x133bf1=Promise))(function(_0x98e7a7,_0x331ca0){const _0x96784e=_0x3f18;function _0x4463a5(_0x1511b2){const _0x1e6f1e=_0x3f18;try{_0x4c097d(_0x523cc4[_0x1e6f1e(0x1e5)](_0x1511b2));}catch(_0x116122){_0x331ca0(_0x116122);}}function _0x37de62(_0xbc1f11){const _0x4cf002=_0x3f18;try{_0x4c097d(_0x523cc4[_0x4cf002(0x1ef)](_0xbc1f11));}catch(_0x473e2c){_0x331ca0(_0x473e2c);}}function _0x4c097d(_0x4c1c17){const _0xdfe64e=_0x3f18;_0x4c1c17[_0xdfe64e(0x1dc)]?_0x98e7a7(_0x4c1c17['value']):_0x505c98(_0x4c1c17[_0xdfe64e(0x1f4)])[_0xdfe64e(0x1de)](_0x4463a5,_0x37de62);}_0x4c097d((_0x523cc4=_0x523cc4['apply'](_0x2b4605,_0x99801||[]))[_0x96784e(0x1e5)]());});};Object[_0x54872d(0x1ec)](exports,_0x54872d(0x1e8),{'value':!![]}),exports['AzureCredentials']=void 0x0;const base_credentials_1=require(_0x54872d(0x1e4)),azure_utils_1=require(_0x54872d(0x1ea));class AzureCredentials extends base_credentials_1[_0x54872d(0x1d9)]{constructor(_0x42d404){const _0x1423ab=_0x54872d;super(_0x42d404),this[_0x1423ab(0x1da)]=azure_utils_1[_0x1423ab(0x1e3)][_0x1423ab(0x1db)](this[_0x1423ab(0x1f1)]);}get[_0x54872d(0x1f6)](){const _0x3d2774=_0x54872d;return this[_0x3d2774(0x1f1)][_0x3d2774(0x1f6)];}get[_0x54872d(0x1dd)](){const _0x1ee21e=_0x54872d;return this[_0x1ee21e(0x1f1)][_0x1ee21e(0x1dd)];}get['containerName'](){const _0x13cb80=_0x54872d;return this[_0x13cb80(0x1f1)][_0x13cb80(0x1e9)];}[_0x54872d(0x1df)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x533f00=_0x3f18;try{const _0x1e4a62=this['blobServiceClient']['getContainerClient'](this['credentials'][_0x533f00(0x1e9)]);yield _0x1e4a62['exists']();}catch(_0xda4fa){throw new Error(_0x533f00(0x1ee)+_0xda4fa['message']);}});}[_0x54872d(0x1e7)](_0x167c28=![]){const _0x25105a=_0x54872d;if(_0x167c28)return{'accountName':this['credentials'][_0x25105a(0x1dd)]};return this[_0x25105a(0x1f1)];}}function _0x3a9f(){const _0x4fa1c2=['./base-credentials','next','304903GYTdtM','getCredentials','__esModule','containerName','../utils/azure.utils','AzureCredentials','defineProperty','__awaiter','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','throw','212372lKqTgq','credentials','4578144aFioIF','496460PoDKga','value','564084YmFNcD','accountKey','BaseCredentials','blobServiceClient','createAzureBlobServiceClient','done','accountName','then','validate','978ZoHtno','588640FkBrNm','5012bBwGSv','AzureUtils'];_0x3a9f=function(){return _0x4fa1c2;};return _0x3a9f();}exports[_0x54872d(0x1eb)]=AzureCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x22de(){var _0x178fee=['8vqAEMY','rawCredentials','credentials','__esModule','2379754DYVstA','7388283RiNxpv','12CiznWZ','74310dnAGUh','988140vghrny','defineProperty','13066614WTjCxI','BaseCredentials','1032755tdvFhe','89144KqYkcg'];_0x22de=function(){return _0x178fee;};return _0x22de();}function _0x4b0b(_0x34cc44,_0x4df73b){_0x34cc44=_0x34cc44-0xa6;var _0x22de15=_0x22de();var _0x4b0bb4=_0x22de15[_0x34cc44];return _0x4b0bb4;}var _0x512527=_0x4b0b;(function(_0x19e91e,_0x17a576){var _0x43a842=_0x4b0b,_0x810e14=_0x19e91e();while(!![]){try{var _0x998444=-parseInt(_0x43a842(0xaf))/0x1+parseInt(_0x43a842(0xac))/0x2+parseInt(_0x43a842(0xb0))/0x3+-parseInt(_0x43a842(0xa7))/0x4+-parseInt(_0x43a842(0xa6))/0x5*(parseInt(_0x43a842(0xae))/0x6)+parseInt(_0x43a842(0xad))/0x7+parseInt(_0x43a842(0xa8))/0x8*(-parseInt(_0x43a842(0xb2))/0x9);if(_0x998444===_0x17a576)break;else _0x810e14['push'](_0x810e14['shift']());}catch(_0x17a687){_0x810e14['push'](_0x810e14['shift']());}}}(_0x22de,0x95b3e));Object[_0x512527(0xb1)](exports,_0x512527(0xab),{'value':!![]}),exports[_0x512527(0xb3)]=void 0x0;class BaseCredentials{constructor(_0x40f80c){var _0x2bccb6=_0x512527;this[_0x2bccb6(0xa9)]=_0x40f80c,this[_0x2bccb6(0xaa)]=this[_0x2bccb6(0xa9)]?this[_0x2bccb6(0xa9)]:null;}}exports['BaseCredentials']=BaseCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3e3f40=_0xbcc7;(function(_0x3bf6cf,_0x521980){var _0x33fa4f=_0xbcc7,_0x1649ce=_0x3bf6cf();while(!![]){try{var _0x38bfd0=-parseInt(_0x33fa4f(0x198))/0x1*(-parseInt(_0x33fa4f(0x1aa))/0x2)+parseInt(_0x33fa4f(0x19d))/0x3*(parseInt(_0x33fa4f(0x19a))/0x4)+-parseInt(_0x33fa4f(0x19c))/0x5+-parseInt(_0x33fa4f(0x1a7))/0x6*(parseInt(_0x33fa4f(0x19f))/0x7)+parseInt(_0x33fa4f(0x197))/0x8+parseInt(_0x33fa4f(0x19b))/0x9*(parseInt(_0x33fa4f(0x1a4))/0xa)+-parseInt(_0x33fa4f(0x199))/0xb;if(_0x38bfd0===_0x521980)break;else _0x1649ce['push'](_0x1649ce['shift']());}catch(_0x3eea5f){_0x1649ce['push'](_0x1649ce['shift']());}}}(_0x137f,0x5d084));function _0x137f(){var _0x537634=['2nblced','7867420hQOZWH','15140HqbgqD','1192329wfumTz','1574255sjCRah','276NvhbLD','./azure-credentials','98ydGjBe','BaseCredentials','defineProperty','__esModule','AwsS3Credentials','10eRMDvF','LocalCredentials','./local-credentials','97986Kkrapb','./aws-s3-credentials','AzureCredentials','688232QDkxiF','3766656npisiN'];_0x137f=function(){return _0x537634;};return _0x137f();}Object[_0x3e3f40(0x1a1)](exports,_0x3e3f40(0x1a2),{'value':!![]}),exports[_0x3e3f40(0x1a9)]=exports[_0x3e3f40(0x1a5)]=exports[_0x3e3f40(0x1a3)]=exports[_0x3e3f40(0x1a0)]=void 0x0;var base_credentials_1=require('./base-credentials');Object['defineProperty'](exports,_0x3e3f40(0x1a0),{'enumerable':!![],'get':function(){var _0x50f74b=_0x3e3f40;return base_credentials_1[_0x50f74b(0x1a0)];}});var aws_s3_credentials_1=require(_0x3e3f40(0x1a8));function _0xbcc7(_0x228b2f,_0x59863a){_0x228b2f=_0x228b2f-0x197;var _0x137f62=_0x137f();var _0xbcc70f=_0x137f62[_0x228b2f];return _0xbcc70f;}Object['defineProperty'](exports,_0x3e3f40(0x1a3),{'enumerable':!![],'get':function(){var _0x478b77=_0x3e3f40;return aws_s3_credentials_1[_0x478b77(0x1a3)];}});var local_credentials_1=require(_0x3e3f40(0x1a6));Object[_0x3e3f40(0x1a1)](exports,_0x3e3f40(0x1a5),{'enumerable':!![],'get':function(){var _0x302850=_0x3e3f40;return local_credentials_1[_0x302850(0x1a5)];}});var azure_credentials_1=require(_0x3e3f40(0x19e));Object[_0x3e3f40(0x1a1)](exports,'AzureCredentials',{'enumerable':!![],'get':function(){var _0x241e81=_0x3e3f40;return azure_credentials_1[_0x241e81(0x1a9)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3d8baf=_0xd448;(function(_0x219ca8,_0x433bad){const _0x303ae4=_0xd448,_0x4c3451=_0x219ca8();while(!![]){try{const _0x42ccd7=-parseInt(_0x303ae4(0xb7))/0x1+-parseInt(_0x303ae4(0xb2))/0x2+-parseInt(_0x303ae4(0xb4))/0x3*(-parseInt(_0x303ae4(0xa9))/0x4)+-parseInt(_0x303ae4(0xaa))/0x5*(parseInt(_0x303ae4(0xa8))/0x6)+parseInt(_0x303ae4(0xae))/0x7*(-parseInt(_0x303ae4(0xad))/0x8)+parseInt(_0x303ae4(0xab))/0x9*(-parseInt(_0x303ae4(0xb0))/0xa)+parseInt(_0x303ae4(0xac))/0xb;if(_0x42ccd7===_0x433bad)break;else _0x4c3451['push'](_0x4c3451['shift']());}catch(_0xd8ea4d){_0x4c3451['push'](_0x4c3451['shift']());}}}(_0x41b2,0x34d9e));Object[_0x3d8baf(0xb6)](exports,_0x3d8baf(0xb1),{'value':!![]}),exports[_0x3d8baf(0xb5)]=void 0x0;function _0xd448(_0x3a47ca,_0x557e63){_0x3a47ca=_0x3a47ca-0xa7;const _0x41b2b7=_0x41b2();let _0xd448fe=_0x41b2b7[_0x3a47ca];return _0xd448fe;}const base_credentials_1=require(_0x3d8baf(0xb3));class LocalCredentials extends base_credentials_1[_0x3d8baf(0xb8)]{[_0x3d8baf(0xa7)](){return null;}[_0x3d8baf(0xaf)](){return Promise['resolve'](undefined);}}exports['LocalCredentials']=LocalCredentials;function _0x41b2(){const _0x28d2c1=['BaseCredentials','getCredentials','14460udoyxG','112dUvaip','95UtaicX','9wUnowl','10332828Ogxkov','8dCCsSz','2752890cgNjVR','validate','1711940lztYlv','__esModule','730282XSPmKf','./base-credentials','36495ilNNTa','LocalCredentials','defineProperty','88095PqGNsY'];_0x41b2=function(){return _0x28d2c1;};return _0x41b2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3196e2=_0x1a29;(function(_0x4d55f,_0x71b808){const _0x54c100=_0x1a29,_0xbcda5d=_0x4d55f();while(!![]){try{const _0x3b3b1f=-parseInt(_0x54c100(0x202))/0x1+parseInt(_0x54c100(0x1e1))/0x2+parseInt(_0x54c100(0x204))/0x3+parseInt(_0x54c100(0x1ef))/0x4+parseInt(_0x54c100(0x1f2))/0x5*(parseInt(_0x54c100(0x1f6))/0x6)+-parseInt(_0x54c100(0x1e7))/0x7*(-parseInt(_0x54c100(0x1e5))/0x8)+-parseInt(_0x54c100(0x1eb))/0x9;if(_0x3b3b1f===_0x71b808)break;else _0xbcda5d['push'](_0xbcda5d['shift']());}catch(_0x53040f){_0xbcda5d['push'](_0xbcda5d['shift']());}}}(_0x463e,0x56e9b));function _0x463e(){const _0x5abb67=['value','splitOnChunks','sep','getFilesPaths','split','428364CNhalc','done','371439FqjJes','then','posix','1136960HnsTCv','map','AwsS3Delete','throw','8Loixem','path','4853562VnmCbC','@flosum/utils','__awaiter','@aws-sdk/client-s3','9060552AZLzzx','s3Client','credentials','default','1372352tzTDlf','__importDefault','bucketName','5195LigPjf','defineProperty','apply','DeleteObjectsCommand','360bdavwu','createS3Client','AwsS3Utils','__esModule','next','ArrayUtils','BaseDelete'];_0x463e=function(){return _0x5abb67;};return _0x463e();}function _0x1a29(_0x477eb2,_0x3ccf70){_0x477eb2=_0x477eb2-0x1e1;const _0x463ea6=_0x463e();let _0x1a29a7=_0x463ea6[_0x477eb2];return _0x1a29a7;}var __awaiter=this&&this[_0x3196e2(0x1e9)]||function(_0x396c32,_0x4977ee,_0x1bd709,_0x232a11){function _0x42a5df(_0x7ebad2){return _0x7ebad2 instanceof _0x1bd709?_0x7ebad2:new _0x1bd709(function(_0x296e4d){_0x296e4d(_0x7ebad2);});}return new(_0x1bd709||(_0x1bd709=Promise))(function(_0x23ef82,_0x5cc39a){const _0x53fbf6=_0x1a29;function _0x306552(_0x45ac55){try{_0x26f605(_0x232a11['next'](_0x45ac55));}catch(_0x3e1803){_0x5cc39a(_0x3e1803);}}function _0x28711f(_0x3df28c){const _0x3019d3=_0x1a29;try{_0x26f605(_0x232a11[_0x3019d3(0x1e4)](_0x3df28c));}catch(_0x46535e){_0x5cc39a(_0x46535e);}}function _0x26f605(_0x145fc4){const _0x1dd900=_0x1a29;_0x145fc4[_0x1dd900(0x203)]?_0x23ef82(_0x145fc4[_0x1dd900(0x1fd)]):_0x42a5df(_0x145fc4[_0x1dd900(0x1fd)])[_0x1dd900(0x205)](_0x306552,_0x28711f);}_0x26f605((_0x232a11=_0x232a11[_0x53fbf6(0x1f4)](_0x396c32,_0x4977ee||[]))[_0x53fbf6(0x1fa)]());});},__importDefault=this&&this[_0x3196e2(0x1f0)]||function(_0x16845a){return _0x16845a&&_0x16845a['__esModule']?_0x16845a:{'default':_0x16845a};};Object[_0x3196e2(0x1f3)](exports,_0x3196e2(0x1f9),{'value':!![]}),exports[_0x3196e2(0x1e3)]=void 0x0;const path_1=__importDefault(require(_0x3196e2(0x1e6))),utils_1=require(_0x3196e2(0x1e8)),aws_s3_utils_1=require('../utils/aws-s3.utils'),_1=require('./'),client_s3_1=require(_0x3196e2(0x1ea));class AwsS3Delete extends _1[_0x3196e2(0x1fc)]{constructor(_0x38bae1,_0x1f086e,_0x4c3cdb){const _0x3bd379=_0x3196e2;super(_0x38bae1),this['credentials']=_0x38bae1,this['OBJECTS_PER_CHUNK']=0x3e8,this[_0x3bd379(0x1ec)]=_0x4c3cdb||aws_s3_utils_1[_0x3bd379(0x1f8)][_0x3bd379(0x1f7)](_0x38bae1,_0x1f086e);}['execute'](_0x176a86){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1698d8=_0x1a29,_0x36485c=_0x176a86[_0x1698d8(0x201)](path_1[_0x1698d8(0x1ee)]['sep'])['join'](path_1[_0x1698d8(0x1ee)][_0x1698d8(0x206)][_0x1698d8(0x1ff)]),_0x1ff271=yield aws_s3_utils_1[_0x1698d8(0x1f8)][_0x1698d8(0x200)](_0x36485c,this[_0x1698d8(0x1ed)]['bucketName'],this[_0x1698d8(0x1ec)]),_0x7594cc=utils_1[_0x1698d8(0x1fb)][_0x1698d8(0x1fe)](_0x1ff271,this['OBJECTS_PER_CHUNK']);for(const _0x5b9d84 of _0x7594cc){const _0x14eca9=_0x5b9d84[_0x1698d8(0x1e2)](_0x55a3ef=>({'Key':_0x55a3ef})),_0x450247=new client_s3_1[(_0x1698d8(0x1f5))]({'Bucket':this[_0x1698d8(0x1ed)][_0x1698d8(0x1f1)],'Delete':{'Objects':_0x14eca9}});yield this[_0x1698d8(0x1ec)]['send'](_0x450247);}});}}exports['AwsS3Delete']=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x50a3c6=_0x3652;function _0x3652(_0x5aa7f2,_0x437e1f){_0x5aa7f2=_0x5aa7f2-0x91;const _0x4c9919=_0x4c99();let _0x36528c=_0x4c9919[_0x5aa7f2];return _0x36528c;}(function(_0x1f196d,_0x1025d4){const _0x3a7759=_0x3652,_0x9f5b1b=_0x1f196d();while(!![]){try{const _0x3a2067=-parseInt(_0x3a7759(0xa4))/0x1+-parseInt(_0x3a7759(0x9d))/0x2*(parseInt(_0x3a7759(0xb1))/0x3)+parseInt(_0x3a7759(0xae))/0x4+-parseInt(_0x3a7759(0xac))/0x5*(-parseInt(_0x3a7759(0x96))/0x6)+parseInt(_0x3a7759(0x9b))/0x7*(parseInt(_0x3a7759(0x93))/0x8)+-parseInt(_0x3a7759(0xb2))/0x9*(parseInt(_0x3a7759(0xa2))/0xa)+-parseInt(_0x3a7759(0xa6))/0xb;if(_0x3a2067===_0x1025d4)break;else _0x9f5b1b['push'](_0x9f5b1b['shift']());}catch(_0x4aff08){_0x9f5b1b['push'](_0x9f5b1b['shift']());}}}(_0x4c99,0x4c2f7));function _0x4c99(){const _0x25b737=['../utils/azure.utils','createAzureBlobContainerClient','value','join','__esModule','2024740FkfQGB','apply','2114880XSiOXP','split','AzureDelete','9ckkIEB','3131073eIgYyw','sep','execute','5128EbaNpm','BaseDelete','deleteBlob','6GgIbuE','done','then','__awaiter','default','1673IRmrCJ','posix','80186aJJENo','credentials','next','throw','AzureUtils','10RZMVEY','containerClient','199501aIOraF','defineProperty','1178485lYfdkh'];_0x4c99=function(){return _0x25b737;};return _0x4c99();}var __awaiter=this&&this[_0x50a3c6(0x99)]||function(_0x30fb63,_0x2ea4d5,_0x4f8e9d,_0x5bdc0d){function _0x5563bb(_0x49c630){return _0x49c630 instanceof _0x4f8e9d?_0x49c630:new _0x4f8e9d(function(_0x1b9f91){_0x1b9f91(_0x49c630);});}return new(_0x4f8e9d||(_0x4f8e9d=Promise))(function(_0x1f06ec,_0x598e7a){const _0x37f5b8=_0x3652;function _0x17ed3f(_0x34a116){const _0x440df6=_0x3652;try{_0x3a0310(_0x5bdc0d[_0x440df6(0x9f)](_0x34a116));}catch(_0x2a6901){_0x598e7a(_0x2a6901);}}function _0x40a06c(_0x14e1bb){const _0x5ee6fe=_0x3652;try{_0x3a0310(_0x5bdc0d[_0x5ee6fe(0xa0)](_0x14e1bb));}catch(_0x91b15f){_0x598e7a(_0x91b15f);}}function _0x3a0310(_0xe49be7){const _0x1c995c=_0x3652;_0xe49be7[_0x1c995c(0x97)]?_0x1f06ec(_0xe49be7['value']):_0x5563bb(_0xe49be7[_0x1c995c(0xa9)])[_0x1c995c(0x98)](_0x17ed3f,_0x40a06c);}_0x3a0310((_0x5bdc0d=_0x5bdc0d[_0x37f5b8(0xad)](_0x30fb63,_0x2ea4d5||[]))[_0x37f5b8(0x9f)]());});},__importDefault=this&&this['__importDefault']||function(_0x59f7b5){const _0x4c85b9=_0x50a3c6;return _0x59f7b5&&_0x59f7b5[_0x4c85b9(0xab)]?_0x59f7b5:{'default':_0x59f7b5};};Object[_0x50a3c6(0xa5)](exports,_0x50a3c6(0xab),{'value':!![]}),exports[_0x50a3c6(0xb0)]=void 0x0;const path_1=__importDefault(require('path')),_1=require('./'),azure_utils_1=require(_0x50a3c6(0xa7));class AzureDelete extends _1[_0x50a3c6(0x94)]{constructor(_0x4b58fa){const _0x5110d1=_0x50a3c6;super(_0x4b58fa),this[_0x5110d1(0x9e)]=_0x4b58fa,this['containerClient']=azure_utils_1[_0x5110d1(0xa1)][_0x5110d1(0xa8)](_0x4b58fa);}[_0x50a3c6(0x92)](_0x5e8ae6){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x544cb6=_0x3652,_0x1d7dfb=_0x5e8ae6[_0x544cb6(0xaf)](path_1[_0x544cb6(0x9a)][_0x544cb6(0x91)])[_0x544cb6(0xaa)](path_1[_0x544cb6(0x9a)][_0x544cb6(0x9c)][_0x544cb6(0x91)]),_0x5e870b=yield azure_utils_1[_0x544cb6(0xa1)]['getAzureBlobsPaths'](_0x1d7dfb,this[_0x544cb6(0xa3)]);for(const _0x31de45 of _0x5e870b){yield this[_0x544cb6(0xa3)][_0x544cb6(0x95)](_0x31de45);}});}}exports['AzureDelete']=AzureDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x41722b=_0x4b21;(function(_0x1e1f68,_0x1ccebe){var _0x1f3918=_0x4b21,_0x7f72f6=_0x1e1f68();while(!![]){try{var _0x13a6c1=-parseInt(_0x1f3918(0x1f7))/0x1*(-parseInt(_0x1f3918(0x1ef))/0x2)+-parseInt(_0x1f3918(0x1ec))/0x3*(-parseInt(_0x1f3918(0x1f5))/0x4)+parseInt(_0x1f3918(0x1f2))/0x5*(-parseInt(_0x1f3918(0x1f4))/0x6)+-parseInt(_0x1f3918(0x1f8))/0x7+-parseInt(_0x1f3918(0x1f9))/0x8*(parseInt(_0x1f3918(0x1eb))/0x9)+-parseInt(_0x1f3918(0x1f3))/0xa*(parseInt(_0x1f3918(0x1ed))/0xb)+-parseInt(_0x1f3918(0x1fb))/0xc*(parseInt(_0x1f3918(0x1f0))/0xd);if(_0x13a6c1===_0x1ccebe)break;else _0x7f72f6['push'](_0x7f72f6['shift']());}catch(_0x40e8b4){_0x7f72f6['push'](_0x7f72f6['shift']());}}}(_0x1e50,0x1edc3));function _0x1e50(){var _0x8cafb1=['11355ezjbgr','11AbhxvQ','__esModule','2jkmmOC','13wjiPUi','BaseDelete','169435SQHdKc','494290brRsyI','6edfjwf','172mkikxf','credentials','249692sLTQlX','742154qLTbYY','104AMrUCh','defineProperty','379068EHGtAF','45081hasdwp'];_0x1e50=function(){return _0x8cafb1;};return _0x1e50();}Object[_0x41722b(0x1fa)](exports,_0x41722b(0x1ee),{'value':!![]}),exports[_0x41722b(0x1f1)]=void 0x0;function _0x4b21(_0x3fa5f3,_0x49a945){_0x3fa5f3=_0x3fa5f3-0x1eb;var _0x1e507c=_0x1e50();var _0x4b21fc=_0x1e507c[_0x3fa5f3];return _0x4b21fc;}class BaseDelete{constructor(_0x42e132){var _0x2bc65a=_0x41722b;this[_0x2bc65a(0x1f6)]=_0x42e132;}}exports[_0x41722b(0x1f1)]=BaseDelete;
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x308fcd=_0x1e0d;(function(_0x15d3b6,_0x13f612){var _0x4d75ef=_0x1e0d,_0xa98e26=_0x15d3b6();while(!![]){try{var _0x486557=parseInt(_0x4d75ef(0x8d))/0x1+-parseInt(_0x4d75ef(0x94))/0x2+-parseInt(_0x4d75ef(0x88))/0x3*(-parseInt(_0x4d75ef(0x8a))/0x4)+parseInt(_0x4d75ef(0x8c))/0x5+parseInt(_0x4d75ef(0x95))/0x6+-parseInt(_0x4d75ef(0x8e))/0x7+parseInt(_0x4d75ef(0x8b))/0x8;if(_0x486557===_0x13f612)break;else _0xa98e26['push'](_0xa98e26['shift']());}catch(_0x403166){_0xa98e26['push'](_0xa98e26['shift']());}}}(_0x482e,0xb1329));Object[_0x308fcd(0x89)](exports,_0x308fcd(0x92),{'value':!![]}),exports[_0x308fcd(0x93)]=exports[_0x308fcd(0x90)]=exports[_0x308fcd(0x91)]=exports['BaseDelete']=void 0x0;var base_delete_1=require(_0x308fcd(0x8f));function _0x1e0d(_0x4313f,_0x1b8b6e){_0x4313f=_0x4313f-0x87;var _0x482ece=_0x482e();var _0x1e0dbe=_0x482ece[_0x4313f];return _0x1e0dbe;}Object[_0x308fcd(0x89)](exports,_0x308fcd(0x87),{'enumerable':!![],'get':function(){var _0xbe910d=_0x308fcd;return base_delete_1[_0xbe910d(0x87)];}});var aws_s3_delete_1=require(_0x308fcd(0x96));function _0x482e(){var _0x3d83db=['AzureDelete','2108424WMIagp','4348494TGuNsw','./aws-s3-delete','BaseDelete','3ZujHTV','defineProperty','810972nHVJDf','3431464bVgNFc','1479360DarPdW','1139299GUaWrh','7081081ZlKdKh','./base-delete','LocalDelete','AwsS3Delete','__esModule'];_0x482e=function(){return _0x3d83db;};return _0x482e();}Object[_0x308fcd(0x89)](exports,_0x308fcd(0x91),{'enumerable':!![],'get':function(){var _0x366f14=_0x308fcd;return aws_s3_delete_1[_0x366f14(0x91)];}});var local_delete_1=require('./local-delete');Object[_0x308fcd(0x89)](exports,_0x308fcd(0x90),{'enumerable':!![],'get':function(){return local_delete_1['LocalDelete'];}});var azure_delete_1=require('./azure-delete');Object[_0x308fcd(0x89)](exports,_0x308fcd(0x93),{'enumerable':!![],'get':function(){var _0x11ad55=_0x308fcd;return azure_delete_1[_0x11ad55(0x93)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x27617f=_0x2e28;(function(_0x17b6f2,_0x3c0ce4){const _0x4508d0=_0x2e28,_0x39c56e=_0x17b6f2();while(!![]){try{const _0x550575=-parseInt(_0x4508d0(0x80))/0x1*(-parseInt(_0x4508d0(0x73))/0x2)+-parseInt(_0x4508d0(0x74))/0x3*(-parseInt(_0x4508d0(0x72))/0x4)+-parseInt(_0x4508d0(0x7d))/0x5+parseInt(_0x4508d0(0x6b))/0x6+parseInt(_0x4508d0(0x76))/0x7*(parseInt(_0x4508d0(0x81))/0x8)+-parseInt(_0x4508d0(0x7c))/0x9*(-parseInt(_0x4508d0(0x7f))/0xa)+parseInt(_0x4508d0(0x79))/0xb*(-parseInt(_0x4508d0(0x6c))/0xc);if(_0x550575===_0x3c0ce4)break;else _0x39c56e['push'](_0x39c56e['shift']());}catch(_0x208718){_0x39c56e['push'](_0x39c56e['shift']());}}}(_0x548f,0x26eb7));var __awaiter=this&&this[_0x27617f(0x6f)]||function(_0x2eb288,_0x537afc,_0x554626,_0xe558ce){function _0x28b0e3(_0x4a2aa1){return _0x4a2aa1 instanceof _0x554626?_0x4a2aa1:new _0x554626(function(_0x28b584){_0x28b584(_0x4a2aa1);});}return new(_0x554626||(_0x554626=Promise))(function(_0x4fa7cf,_0x3d991c){const _0x50d53f=_0x2e28;function _0xe4c997(_0x277f39){const _0x8be081=_0x2e28;try{_0x1205f5(_0xe558ce[_0x8be081(0x6e)](_0x277f39));}catch(_0x8d1703){_0x3d991c(_0x8d1703);}}function _0x32cfc4(_0x24a02c){try{_0x1205f5(_0xe558ce['throw'](_0x24a02c));}catch(_0x1425ba){_0x3d991c(_0x1425ba);}}function _0x1205f5(_0x49f7e3){const _0x524e12=_0x2e28;_0x49f7e3[_0x524e12(0x70)]?_0x4fa7cf(_0x49f7e3[_0x524e12(0x7a)]):_0x28b0e3(_0x49f7e3[_0x524e12(0x7a)])['then'](_0xe4c997,_0x32cfc4);}_0x1205f5((_0xe558ce=_0xe558ce['apply'](_0x2eb288,_0x537afc||[]))[_0x50d53f(0x6e)]());});};function _0x2e28(_0x44da0d,_0xe8312e){_0x44da0d=_0x44da0d-0x6b;const _0x548f56=_0x548f();let _0x2e28be=_0x548f56[_0x44da0d];return _0x2e28be;}Object['defineProperty'](exports,_0x27617f(0x78),{'value':!![]}),exports[_0x27617f(0x7e)]=void 0x0;const promises_1=require(_0x27617f(0x6d)),utils_1=require(_0x27617f(0x71)),_1=require('./');class LocalDelete extends _1['BaseDelete']{[_0x27617f(0x75)](_0x7d6250){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x31d6e9=_0x2e28;if(yield utils_1[_0x31d6e9(0x77)][_0x31d6e9(0x7b)](_0x7d6250))yield(0x0,promises_1['rm'])(_0x7d6250,{'recursive':!![]});});}}exports[_0x27617f(0x7e)]=LocalDelete;function _0x548f(){const _0x2b1c71=['isExistsPath','279FmXrYY','714270nlNBpY','LocalDelete','28140gOYliC','1leoiMF','256rjcOuF','1226166oMZubQ','120PIWTEw','fs/promises','next','__awaiter','done','@flosum/utils','164oOSPkh','632662sqDXwE','33TahjrY','execute','28462DKzzXp','FsUtils','__esModule','479842rVNgUi','value'];_0x548f=function(){return _0x2b1c71;};return _0x548f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3aa87b=_0x3a6f;function _0x3a6f(_0x3a48d2,_0x419c48){_0x3a48d2=_0x3a48d2-0xea;const _0x4ba269=_0x4ba2();let _0x3a6f5f=_0x4ba269[_0x3a48d2];return _0x3a6f5f;}(function(_0x543d5e,_0x3550d1){const _0x2903c1=_0x3a6f,_0x4da579=_0x543d5e();while(!![]){try{const _0x579f20=parseInt(_0x2903c1(0xfb))/0x1*(-parseInt(_0x2903c1(0xeb))/0x2)+parseInt(_0x2903c1(0x105))/0x3*(parseInt(_0x2903c1(0xef))/0x4)+parseInt(_0x2903c1(0xea))/0x5+parseInt(_0x2903c1(0x102))/0x6*(-parseInt(_0x2903c1(0xfc))/0x7)+parseInt(_0x2903c1(0xed))/0x8*(parseInt(_0x2903c1(0x107))/0x9)+parseInt(_0x2903c1(0xf1))/0xa+parseInt(_0x2903c1(0xf7))/0xb;if(_0x579f20===_0x3550d1)break;else _0x4da579['push'](_0x4da579['shift']());}catch(_0x4b3651){_0x4da579['push'](_0x4da579['shift']());}}}(_0x4ba2,0x3e76a));function _0x4ba2(){const _0x4d3625=['throw','6840kScmnv','storageClass','__importDefault','apply','next','value','AwsS3Utils','s3Client','sep','800850WHQTKF','322856RGIEIl','upload','1960iXLinG','default','8rbYUgs','defineProperty','2361960pHDWBs','posix','bucketName','Upload','credentials','path','1407560ufLkPs','join','../utils/aws-s3.utils','@aws-sdk/lib-storage','1JckKNP','7zQQpnb','__awaiter','done','split','AwsS3Deploy','createS3Client','2462292okjqcO','__esModule','BaseDeploy','175701DKoEET'];_0x4ba2=function(){return _0x4d3625;};return _0x4ba2();}var __awaiter=this&&this[_0x3aa87b(0xfd)]||function(_0x2442c3,_0x2a8a9b,_0xf0c62a,_0x5ebbcf){function _0xae5b4d(_0x166d7d){return _0x166d7d instanceof _0xf0c62a?_0x166d7d:new _0xf0c62a(function(_0x249260){_0x249260(_0x166d7d);});}return new(_0xf0c62a||(_0xf0c62a=Promise))(function(_0x327cc8,_0x2090f0){const _0x1a1453=_0x3a6f;function _0x30f688(_0x86add8){const _0x11045c=_0x3a6f;try{_0x2ce941(_0x5ebbcf[_0x11045c(0x10b)](_0x86add8));}catch(_0x1a32fc){_0x2090f0(_0x1a32fc);}}function _0x377ffe(_0x4742f0){const _0x787a32=_0x3a6f;try{_0x2ce941(_0x5ebbcf[_0x787a32(0x106)](_0x4742f0));}catch(_0x58dd4e){_0x2090f0(_0x58dd4e);}}function _0x2ce941(_0x4dacf5){const _0x2b68df=_0x3a6f;_0x4dacf5[_0x2b68df(0xfe)]?_0x327cc8(_0x4dacf5[_0x2b68df(0x10c)]):_0xae5b4d(_0x4dacf5[_0x2b68df(0x10c)])['then'](_0x30f688,_0x377ffe);}_0x2ce941((_0x5ebbcf=_0x5ebbcf[_0x1a1453(0x10a)](_0x2442c3,_0x2a8a9b||[]))['next']());});},__importDefault=this&&this[_0x3aa87b(0x109)]||function(_0x33ecc1){return _0x33ecc1&&_0x33ecc1['__esModule']?_0x33ecc1:{'default':_0x33ecc1};};Object[_0x3aa87b(0xf0)](exports,_0x3aa87b(0x103),{'value':!![]}),exports['AwsS3Deploy']=void 0x0;const path_1=__importDefault(require(_0x3aa87b(0xf6))),_1=require('./'),lib_storage_1=require(_0x3aa87b(0xfa)),aws_s3_utils_1=require(_0x3aa87b(0xf9));class AwsS3Deploy extends _1[_0x3aa87b(0x104)]{constructor(_0x29a3f9,_0x51baf2,_0x44f4f1,_0x197799){const _0xf460e5=_0x3aa87b;super(_0x29a3f9),this[_0xf460e5(0xf5)]=_0x29a3f9,this[_0xf460e5(0x108)]=_0x51baf2,this[_0xf460e5(0x10e)]=_0x197799||aws_s3_utils_1[_0xf460e5(0x10d)][_0xf460e5(0x101)](_0x29a3f9,_0x44f4f1);}[_0x3aa87b(0xec)](_0x37aa15,_0x3e463f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1b4390=_0x3a6f,_0x208b12=new lib_storage_1[(_0x1b4390(0xf4))]({'client':this[_0x1b4390(0x10e)],'params':{'Bucket':this[_0x1b4390(0xf5)][_0x1b4390(0xf3)],'Key':_0x3e463f,'Body':_0x37aa15,'StorageClass':this[_0x1b4390(0x108)]}});yield _0x208b12[_0x1b4390(0xfe)]();});}['execute'](_0x33305e,_0x35d212){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x197efb=_0x3a6f;try{const _0x230a00=_0x35d212[_0x197efb(0xff)](path_1[_0x197efb(0xee)][_0x197efb(0x10f)])[_0x197efb(0xf8)](path_1[_0x197efb(0xee)][_0x197efb(0xf2)][_0x197efb(0x10f)]);yield this[_0x197efb(0xec)](_0x33305e,_0x230a00);}catch(_0x414b0e){throw _0x414b0e;}});}}exports[_0x3aa87b(0x100)]=AwsS3Deploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3a93(){const _0x5af82a=['split','../utils/azure.utils','next','39FIyOkm','default','774320ipukTI','322EHAyAw','195496zAfkOd','__esModule','upload','sep','__importDefault','AzureDeploy','uploadStream','defineProperty','execute','18626094IJECBa','BaseDeploy','join','apply','posix','done','406980fRInlk','__awaiter','value','2856072MsGpYL','createAzureBlobContainerClient','7925826qznFGW','1015110HVBdnY','containerClient','credentials','getBlockBlobClient'];_0x3a93=function(){return _0x5af82a;};return _0x3a93();}const _0x5b379f=_0x6efa;(function(_0x1917ec,_0x472c39){const _0x3c693c=_0x6efa,_0x46d074=_0x1917ec();while(!![]){try{const _0x32c522=parseInt(_0x3c693c(0x130))/0x1+-parseInt(_0x3c693c(0x144))/0x2+parseInt(_0x3c693c(0x12e))/0x3*(parseInt(_0x3c693c(0x141))/0x4)+-parseInt(_0x3c693c(0x147))/0x5+parseInt(_0x3c693c(0x146))/0x6+-parseInt(_0x3c693c(0x131))/0x7*(-parseInt(_0x3c693c(0x132))/0x8)+-parseInt(_0x3c693c(0x13b))/0x9;if(_0x32c522===_0x472c39)break;else _0x46d074['push'](_0x46d074['shift']());}catch(_0x2d82da){_0x46d074['push'](_0x46d074['shift']());}}}(_0x3a93,0xcd6ee));var __awaiter=this&&this[_0x5b379f(0x142)]||function(_0x1a6cd0,_0x21a994,_0x430502,_0x6bec3e){function _0x2b3a7c(_0x5c536f){return _0x5c536f instanceof _0x430502?_0x5c536f:new _0x430502(function(_0x2347c7){_0x2347c7(_0x5c536f);});}return new(_0x430502||(_0x430502=Promise))(function(_0x483e6b,_0x5673b6){const _0x50d8b8=_0x6efa;function _0x28d6ab(_0x3d37af){const _0x6afbe1=_0x6efa;try{_0x20f3a6(_0x6bec3e[_0x6afbe1(0x12d)](_0x3d37af));}catch(_0x21353b){_0x5673b6(_0x21353b);}}function _0x2854d6(_0x5b1563){try{_0x20f3a6(_0x6bec3e['throw'](_0x5b1563));}catch(_0x31e33b){_0x5673b6(_0x31e33b);}}function _0x20f3a6(_0x2d93e5){const _0x1e63d1=_0x6efa;_0x2d93e5[_0x1e63d1(0x140)]?_0x483e6b(_0x2d93e5[_0x1e63d1(0x143)]):_0x2b3a7c(_0x2d93e5['value'])['then'](_0x28d6ab,_0x2854d6);}_0x20f3a6((_0x6bec3e=_0x6bec3e[_0x50d8b8(0x13e)](_0x1a6cd0,_0x21a994||[]))['next']());});},__importDefault=this&&this[_0x5b379f(0x136)]||function(_0x3d4058){const _0x2a95fa=_0x5b379f;return _0x3d4058&&_0x3d4058[_0x2a95fa(0x133)]?_0x3d4058:{'default':_0x3d4058};};Object[_0x5b379f(0x139)](exports,'__esModule',{'value':!![]}),exports[_0x5b379f(0x137)]=void 0x0;function _0x6efa(_0x11e47a,_0x424d66){_0x11e47a=_0x11e47a-0x129;const _0x3a9304=_0x3a93();let _0x6efaf7=_0x3a9304[_0x11e47a];return _0x6efaf7;}const path_1=__importDefault(require('path')),_1=require('./'),azure_utils_1=require(_0x5b379f(0x12c));class AzureDeploy extends _1[_0x5b379f(0x13c)]{constructor(_0xddc353){const _0x5438af=_0x5b379f;super(_0xddc353),this[_0x5438af(0x129)]=_0xddc353,this[_0x5438af(0x148)]=azure_utils_1['AzureUtils'][_0x5438af(0x145)](this[_0x5438af(0x129)]);}[_0x5b379f(0x134)](_0x2c5701,_0x301d39){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x374ffd=_0x6efa,_0x23985c=this[_0x374ffd(0x148)][_0x374ffd(0x12a)](_0x301d39);_0x2c5701 instanceof Buffer?yield _0x23985c[_0x374ffd(0x134)](_0x2c5701,_0x2c5701['byteLength']):yield _0x23985c[_0x374ffd(0x138)](_0x2c5701);});}[_0x5b379f(0x13a)](_0xbb0db1,_0x3c7841){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x56798d=_0x6efa,_0x54318b=_0x3c7841[_0x56798d(0x12b)](path_1[_0x56798d(0x12f)][_0x56798d(0x135)])[_0x56798d(0x13d)](path_1[_0x56798d(0x12f)][_0x56798d(0x13f)][_0x56798d(0x135)]);yield this[_0x56798d(0x134)](_0xbb0db1,_0x54318b);});}}exports[_0x5b379f(0x137)]=AzureDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x4d4b5d=_0x30b7;(function(_0x5c83e9,_0x3a610a){var _0x44fa0f=_0x30b7,_0x596b21=_0x5c83e9();while(!![]){try{var _0x2770e5=-parseInt(_0x44fa0f(0xd7))/0x1+parseInt(_0x44fa0f(0xdd))/0x2+parseInt(_0x44fa0f(0xdb))/0x3*(-parseInt(_0x44fa0f(0xd8))/0x4)+-parseInt(_0x44fa0f(0xd4))/0x5+parseInt(_0x44fa0f(0xda))/0x6+-parseInt(_0x44fa0f(0xd9))/0x7+-parseInt(_0x44fa0f(0xde))/0x8*(-parseInt(_0x44fa0f(0xdc))/0x9);if(_0x2770e5===_0x3a610a)break;else _0x596b21['push'](_0x596b21['shift']());}catch(_0x1ecc4){_0x596b21['push'](_0x596b21['shift']());}}}(_0x3834,0x3c9fc));Object[_0x4d4b5d(0xd5)](exports,'__esModule',{'value':!![]}),exports[_0x4d4b5d(0xdf)]=void 0x0;class BaseDeploy{constructor(_0xcdce20){var _0x4d12e6=_0x4d4b5d;this[_0x4d12e6(0xd6)]=_0xcdce20;}}function _0x3834(){var _0x5522fc=['9JBsdrX','865158PMPAHr','3866272oBZfFl','BaseDeploy','2037735HBbtPc','defineProperty','credentials','287702YYFMwU','4EgBcQU','2359448hzssuE','2829078jDUalt','320241zXzlcx'];_0x3834=function(){return _0x5522fc;};return _0x3834();}function _0x30b7(_0x339a1d,_0x40e5cd){_0x339a1d=_0x339a1d-0xd4;var _0x3834bb=_0x3834();var _0x30b731=_0x3834bb[_0x339a1d];return _0x30b731;}exports[_0x4d4b5d(0xdf)]=BaseDeploy;
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x32b0c9=_0x5bd7;function _0x5bd7(_0x22188f,_0x2e8eb7){_0x22188f=_0x22188f-0x1bd;var _0x1ea927=_0x1ea9();var _0x5bd780=_0x1ea927[_0x22188f];return _0x5bd780;}(function(_0x1bd796,_0x1ad3ef){var _0x5d2c8f=_0x5bd7,_0x49ea28=_0x1bd796();while(!![]){try{var _0x228e80=-parseInt(_0x5d2c8f(0x1c7))/0x1+-parseInt(_0x5d2c8f(0x1be))/0x2+parseInt(_0x5d2c8f(0x1c9))/0x3+parseInt(_0x5d2c8f(0x1c6))/0x4+-parseInt(_0x5d2c8f(0x1cd))/0x5*(-parseInt(_0x5d2c8f(0x1c0))/0x6)+-parseInt(_0x5d2c8f(0x1c8))/0x7*(-parseInt(_0x5d2c8f(0x1bd))/0x8)+-parseInt(_0x5d2c8f(0x1ca))/0x9*(parseInt(_0x5d2c8f(0x1c4))/0xa);if(_0x228e80===_0x1ad3ef)break;else _0x49ea28['push'](_0x49ea28['shift']());}catch(_0x53dd9f){_0x49ea28['push'](_0x49ea28['shift']());}}}(_0x1ea9,0x1fc1f));Object[_0x32b0c9(0x1bf)](exports,_0x32b0c9(0x1c1),{'value':!![]}),exports[_0x32b0c9(0x1c2)]=exports[_0x32b0c9(0x1cb)]=exports[_0x32b0c9(0x1ce)]=exports[_0x32b0c9(0x1c5)]=void 0x0;var base_deploy_1=require(_0x32b0c9(0x1cc));Object['defineProperty'](exports,_0x32b0c9(0x1c5),{'enumerable':!![],'get':function(){var _0x50aeb1=_0x32b0c9;return base_deploy_1[_0x50aeb1(0x1c5)];}});var aws_s3_deploy_1=require(_0x32b0c9(0x1c3));Object[_0x32b0c9(0x1bf)](exports,_0x32b0c9(0x1ce),{'enumerable':!![],'get':function(){var _0x3358af=_0x32b0c9;return aws_s3_deploy_1[_0x3358af(0x1ce)];}});function _0x1ea9(){var _0x1efea1=['./aws-s3-deploy','680hqgtob','BaseDeploy','490464HAwQXU','108650OMqKYb','1386NgUpyI','13134ShJbYb','6291cBFpNV','LocalDeploy','./base-deploy','10bxfLJY','AwsS3Deploy','5144KbuhTC','269074nxqXOB','defineProperty','499470ryTMzv','__esModule','AzureDeploy'];_0x1ea9=function(){return _0x1efea1;};return _0x1ea9();}var local_deploy_1=require('./local-deploy');Object[_0x32b0c9(0x1bf)](exports,_0x32b0c9(0x1cb),{'enumerable':!![],'get':function(){var _0x13fc88=_0x32b0c9;return local_deploy_1[_0x13fc88(0x1cb)];}});var azure_deploy_1=require('./azure-deploy');Object[_0x32b0c9(0x1bf)](exports,_0x32b0c9(0x1c2),{'enumerable':!![],'get':function(){var _0x75ce74=_0x32b0c9;return azure_deploy_1[_0x75ce74(0x1c2)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2e7e1d=_0x521e;(function(_0x2098e1,_0x5e91bd){const _0x15f257=_0x521e,_0x23ad45=_0x2098e1();while(!![]){try{const _0x534401=parseInt(_0x15f257(0x133))/0x1+-parseInt(_0x15f257(0x12f))/0x2+parseInt(_0x15f257(0x11e))/0x3*(-parseInt(_0x15f257(0x126))/0x4)+-parseInt(_0x15f257(0x135))/0x5+parseInt(_0x15f257(0x138))/0x6*(parseInt(_0x15f257(0x11d))/0x7)+-parseInt(_0x15f257(0x128))/0x8*(parseInt(_0x15f257(0x139))/0x9)+-parseInt(_0x15f257(0x131))/0xa*(-parseInt(_0x15f257(0x134))/0xb);if(_0x534401===_0x5e91bd)break;else _0x23ad45['push'](_0x23ad45['shift']());}catch(_0x2df8ca){_0x23ad45['push'](_0x23ad45['shift']());}}}(_0x186e,0x3c7df));var __awaiter=this&&this['__awaiter']||function(_0x3bae2a,_0x3f24d4,_0x4e67f6,_0x35bb08){function _0x223859(_0x36433e){return _0x36433e instanceof _0x4e67f6?_0x36433e:new _0x4e67f6(function(_0x5a30fb){_0x5a30fb(_0x36433e);});}return new(_0x4e67f6||(_0x4e67f6=Promise))(function(_0x405b46,_0x4038b1){const _0x4b6332=_0x521e;function _0x4c816c(_0x48ff07){const _0x1bfab4=_0x521e;try{_0x59a182(_0x35bb08[_0x1bfab4(0x123)](_0x48ff07));}catch(_0x2eea06){_0x4038b1(_0x2eea06);}}function _0x4fb265(_0x393598){const _0x4a3661=_0x521e;try{_0x59a182(_0x35bb08[_0x4a3661(0x120)](_0x393598));}catch(_0x3061a2){_0x4038b1(_0x3061a2);}}function _0x59a182(_0x4b626b){const _0x2c538b=_0x521e;_0x4b626b[_0x2c538b(0x121)]?_0x405b46(_0x4b626b[_0x2c538b(0x125)]):_0x223859(_0x4b626b[_0x2c538b(0x125)])[_0x2c538b(0x13a)](_0x4c816c,_0x4fb265);}_0x59a182((_0x35bb08=_0x35bb08[_0x4b6332(0x136)](_0x3bae2a,_0x3f24d4||[]))[_0x4b6332(0x123)]());});},__importDefault=this&&this[_0x2e7e1d(0x12c)]||function(_0x5e19c9){return _0x5e19c9&&_0x5e19c9['__esModule']?_0x5e19c9:{'default':_0x5e19c9};};function _0x521e(_0x1abed8,_0x4e0022){_0x1abed8=_0x1abed8-0x11d;const _0x186e97=_0x186e();let _0x521e10=_0x186e97[_0x1abed8];return _0x521e10;}Object[_0x2e7e1d(0x127)](exports,_0x2e7e1d(0x12e),{'value':!![]}),exports[_0x2e7e1d(0x11f)]=void 0x0;function _0x186e(){const _0x27ebe1=['default','__importDefault','fs/promises','__esModule','475894FarbcI','mkdir','1108930tEvmJQ','isExistsPath','410982QQQxuK','77EURRdk','925145gtxRVQ','apply','BaseDeploy','6DtonmL','216hvhpJK','then','103971ZQMZgx','15mOVPfM','LocalDeploy','throw','done','FsUtils','next','@flosum/utils','value','229324nCjVCC','defineProperty','81560KPgXUH','execute','writeFile'];_0x186e=function(){return _0x27ebe1;};return _0x186e();}const path_1=__importDefault(require('path')),promises_1=require(_0x2e7e1d(0x12d)),utils_1=require(_0x2e7e1d(0x124)),_1=require('./');class LocalDeploy extends _1[_0x2e7e1d(0x137)]{[_0x2e7e1d(0x129)](_0x16e14e,_0x206aae){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5539c5=_0x521e;try{const _0x2f5587=path_1[_0x5539c5(0x12b)]['dirname'](_0x206aae),_0x1110a8=yield utils_1[_0x5539c5(0x122)][_0x5539c5(0x132)](_0x2f5587);!_0x1110a8&&(yield(0x0,promises_1[_0x5539c5(0x130)])(_0x2f5587,{'recursive':!![]})),yield(0x0,promises_1[_0x5539c5(0x12a)])(_0x206aae,_0x16e14e);}catch(_0x22bc83){(yield utils_1[_0x5539c5(0x122)][_0x5539c5(0x132)](_0x206aae))&&(yield(0x0,promises_1['rm'])(_0x206aae,{'recursive':!![]}));throw _0x22bc83;}});}}exports[_0x2e7e1d(0x11f)]=LocalDeploy;
|
package/dist/factory.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { StorageClass, Tier } from '@aws-sdk/client-s3';
|
|
|
8
8
|
import { AwsBuildMiddleware } from './types';
|
|
9
9
|
import { BaseCopy } from './copy';
|
|
10
10
|
import { BaseStorageInstance } from './instances/base.storage-instance';
|
|
11
|
-
export
|
|
11
|
+
export type CreateInstanceOptions = {
|
|
12
12
|
credentials: BaseCredentials;
|
|
13
13
|
middlewareStack?: AwsBuildMiddleware[];
|
|
14
14
|
};
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x53d4fc=_0xe120;(function(_0x1e43b9,_0x5a85c7){const _0x1c28eb=_0xe120,_0xe4ad7b=_0x1e43b9();while(!![]){try{const _0x1a96f7=-parseInt(_0x1c28eb(0x101))/0x1*(-parseInt(_0x1c28eb(0xf0))/0x2)+-parseInt(_0x1c28eb(0xf5))/0x3*(-parseInt(_0x1c28eb(0x103))/0x4)+-parseInt(_0x1c28eb(0x106))/0x5+parseInt(_0x1c28eb(0xea))/0x6*(-parseInt(_0x1c28eb(0x112))/0x7)+-parseInt(_0x1c28eb(0xe8))/0x8*(parseInt(_0x1c28eb(0xee))/0x9)+parseInt(_0x1c28eb(0xf1))/0xa+parseInt(_0x1c28eb(0x10e))/0xb;if(_0x1a96f7===_0x5a85c7)break;else _0xe4ad7b['push'](_0xe4ad7b['shift']());}catch(_0x31aea9){_0xe4ad7b['push'](_0xe4ad7b['shift']());}}}(_0x2bdd,0x49a14));Object[_0x53d4fc(0x10c)](exports,_0x53d4fc(0xf2),{'value':!![]}),exports[_0x53d4fc(0x117)]=void 0x0;const storage_type_enum_1=require(_0x53d4fc(0x115)),credentials_1=require('./credentials'),delete_1=require('./delete'),deploy_1=require('./deploy'),retrieve_1=require(_0x53d4fc(0xf4)),file_size_retriever_1=require(_0x53d4fc(0xf7)),copy_1=require(_0x53d4fc(0xef)),instances_1=require(_0x53d4fc(0x104));function _0x2bdd(){const _0x374345=['1019416oWWhNB','AWS_S3','142926VLsIGh','createFileSizeRetriever','AzureRetrieve','AzureHelper','27ytRTbu','./copy','131698qcXgrU','1219770mcvMNV','__esModule','Unknown\x20storage\x20type\x20for\x20creating\x20retrieve\x20helper\x20-\x20\x22','./retrieve','48sgjovq','LocalRetrieve','./file-size-retriever','Unknown\x20storage\x20credentials\x20-\x20\x22','AzureFileSizeRetriever','createRetrieveHelper','AwsS3Retrieve','LocalDeploy','constructor','LocalFileSizeRetriever','LocalDelete','AZURE_BLOB','8CDbqek','createRetrieve','129244llgMdA','./instances','createDeploy','950590PXWXMV','Local','AwsS3Credentials','LocalCopy','StorageType','createInstance','defineProperty','AzureCredentials','1507220eOEQye','AwsS3StorageInstance','AzureDeploy','AwsS3FileSizeRetriever','126GAmukZ','LocalHelper','LocalStorageInstance','./types/storage-type.enum','Unknown\x20storage\x20type\x20-\x20\x22','StorageFactory'];_0x2bdd=function(){return _0x374345;};return _0x2bdd();}function _0xe120(_0x16f9e5,_0x1ca12b){_0x16f9e5=_0x16f9e5-0xe8;const _0x2bddd0=_0x2bdd();let _0xe120ba=_0x2bddd0[_0x16f9e5];return _0xe120ba;}class StorageFactory{static[_0x53d4fc(0x102)](_0x51d551,_0x3b73a5,_0x97cf7,_0x4dd798,_0x583879,_0x56233f){const _0x26bd3d=_0x53d4fc;switch(_0x51d551){case storage_type_enum_1[_0x26bd3d(0x10a)][_0x26bd3d(0xe9)]:return new retrieve_1[(_0x26bd3d(0xfb))](_0x3b73a5,_0x97cf7,_0x4dd798,_0x583879,_0x56233f);case storage_type_enum_1[_0x26bd3d(0x10a)][_0x26bd3d(0x107)]:return new retrieve_1[(_0x26bd3d(0xf6))](_0x3b73a5,_0x97cf7);case storage_type_enum_1[_0x26bd3d(0x10a)][_0x26bd3d(0x100)]:return new retrieve_1[(_0x26bd3d(0xec))](_0x3b73a5,_0x97cf7,_0x583879);default:throw new Error(_0x26bd3d(0x116)+_0x51d551+'\x22');}}static[_0x53d4fc(0x105)](_0x420a1c,_0x14b545,_0x267cc5,_0x182376){const _0x228a24=_0x53d4fc;switch(_0x420a1c){case storage_type_enum_1[_0x228a24(0x10a)][_0x228a24(0xe9)]:return new deploy_1['AwsS3Deploy'](_0x14b545,_0x267cc5,_0x182376);case storage_type_enum_1[_0x228a24(0x10a)]['Local']:return new deploy_1[(_0x228a24(0xfc))](_0x14b545);case storage_type_enum_1['StorageType']['AZURE_BLOB']:return new deploy_1[(_0x228a24(0x110))](_0x14b545);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x420a1c+'\x22');}}static['createDelete'](_0x436596,_0x2a6aeb,_0x45cc66){const _0x4b8ac7=_0x53d4fc;switch(_0x436596){case storage_type_enum_1['StorageType'][_0x4b8ac7(0xe9)]:return new delete_1['AwsS3Delete'](_0x2a6aeb,_0x45cc66);case storage_type_enum_1['StorageType']['Local']:return new delete_1[(_0x4b8ac7(0xff))](_0x2a6aeb);case storage_type_enum_1[_0x4b8ac7(0x10a)]['AZURE_BLOB']:return new delete_1['AzureDelete'](_0x2a6aeb);default:throw new Error(_0x4b8ac7(0x116)+_0x436596+'\x22');}}static['createCredentials'](_0x179f0e,_0x1d1077){const _0x3524f4=_0x53d4fc;switch(_0x179f0e){case storage_type_enum_1[_0x3524f4(0x10a)]['AWS_S3']:return new credentials_1[(_0x3524f4(0x108))](_0x1d1077);case storage_type_enum_1['StorageType'][_0x3524f4(0x107)]:return new credentials_1['LocalCredentials']();case storage_type_enum_1[_0x3524f4(0x10a)][_0x3524f4(0x100)]:return new credentials_1[(_0x3524f4(0x10d))](_0x1d1077);default:throw new Error(_0x3524f4(0x116)+_0x179f0e+'\x22');}}static[_0x53d4fc(0xeb)](_0x494688,_0x34970e,_0x49c38b){const _0x133a59=_0x53d4fc;switch(_0x494688){case storage_type_enum_1['StorageType'][_0x133a59(0xe9)]:return new file_size_retriever_1[(_0x133a59(0x111))](_0x34970e,_0x49c38b);case storage_type_enum_1[_0x133a59(0x10a)][_0x133a59(0x107)]:return new file_size_retriever_1[(_0x133a59(0xfe))](_0x34970e);case storage_type_enum_1[_0x133a59(0x10a)][_0x133a59(0x100)]:return new file_size_retriever_1[(_0x133a59(0xf9))](_0x34970e);default:throw new Error(_0x133a59(0x116)+_0x494688+'\x22');}}static[_0x53d4fc(0xfa)](_0x3f29a7,_0x1ea9f5,_0x25edf4){const _0x42c738=_0x53d4fc;switch(_0x3f29a7){case storage_type_enum_1[_0x42c738(0x10a)][_0x42c738(0x107)]:return new retrieve_1[(_0x42c738(0x113))](_0x25edf4);case storage_type_enum_1['StorageType'][_0x42c738(0xe9)]:return new retrieve_1['AwsS3Helper'](_0x25edf4,_0x1ea9f5);case storage_type_enum_1[_0x42c738(0x10a)]['AZURE_BLOB']:return new retrieve_1[(_0x42c738(0xed))](_0x1ea9f5,_0x25edf4);default:throw new Error(_0x42c738(0xf3)+_0x3f29a7+'\x22');}}static['createCopy'](_0x12d81f,_0x2b0450){const _0x5bd386=_0x53d4fc;switch(_0x12d81f){case storage_type_enum_1[_0x5bd386(0x10a)][_0x5bd386(0x107)]:return new copy_1[(_0x5bd386(0x109))](_0x2b0450);case storage_type_enum_1[_0x5bd386(0x10a)][_0x5bd386(0xe9)]:return new copy_1['AwsS3Copy'](_0x2b0450);default:throw new Error(_0x5bd386(0x116)+_0x12d81f+'\x22');}}static[_0x53d4fc(0x10b)]({credentials:_0x50807f,middlewareStack:_0x352d52}){const _0x3ed10c=_0x53d4fc;if(_0x50807f instanceof credentials_1[_0x3ed10c(0x108)])return new instances_1[(_0x3ed10c(0x10f))]({'credentials':_0x50807f,'middlewareStack':_0x352d52});if(_0x50807f instanceof credentials_1['LocalCredentials'])return new instances_1[(_0x3ed10c(0x114))]({'credentials':_0x50807f});throw new Error(_0x3ed10c(0xf8)+_0x50807f[_0x3ed10c(0xfd)]['name']+'\x22');}}exports[_0x53d4fc(0x117)]=StorageFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3218a3=_0x1e75;function _0x1e75(_0x39cc64,_0x597a67){_0x39cc64=_0x39cc64-0x93;const _0x20a851=_0x20a8();let _0x1e7587=_0x20a851[_0x39cc64];return _0x1e7587;}(function(_0x5a0258,_0x1dd588){const _0x3a081b=_0x1e75,_0x2198a0=_0x5a0258();while(!![]){try{const _0x16687d=-parseInt(_0x3a081b(0x9f))/0x1+-parseInt(_0x3a081b(0x94))/0x2+-parseInt(_0x3a081b(0xa8))/0x3*(parseInt(_0x3a081b(0xb2))/0x4)+parseInt(_0x3a081b(0x9e))/0x5*(-parseInt(_0x3a081b(0xa9))/0x6)+-parseInt(_0x3a081b(0xab))/0x7+parseInt(_0x3a081b(0x97))/0x8*(-parseInt(_0x3a081b(0xb6))/0x9)+parseInt(_0x3a081b(0x98))/0xa;if(_0x16687d===_0x1dd588)break;else _0x2198a0['push'](_0x2198a0['shift']());}catch(_0xb189b6){_0x2198a0['push'](_0x2198a0['shift']());}}}(_0x20a8,0xad2ea));var __awaiter=this&&this[_0x3218a3(0x99)]||function(_0x5a2de7,_0x325f21,_0x5d7e0f,_0x22a3ad){function _0x224bab(_0x2442d9){return _0x2442d9 instanceof _0x5d7e0f?_0x2442d9:new _0x5d7e0f(function(_0x1dd26c){_0x1dd26c(_0x2442d9);});}return new(_0x5d7e0f||(_0x5d7e0f=Promise))(function(_0x21c68b,_0x374018){const _0xd8f456=_0x1e75;function _0x5a5358(_0x1ac4da){const _0x1cd269=_0x1e75;try{_0x4bc3e0(_0x22a3ad[_0x1cd269(0xad)](_0x1ac4da));}catch(_0x4caad3){_0x374018(_0x4caad3);}}function _0x5b0d65(_0x5f2923){const _0x148550=_0x1e75;try{_0x4bc3e0(_0x22a3ad[_0x148550(0xb3)](_0x5f2923));}catch(_0x4afd3c){_0x374018(_0x4afd3c);}}function _0x4bc3e0(_0x44d4f1){const _0x4d1f9b=_0x1e75;_0x44d4f1['done']?_0x21c68b(_0x44d4f1[_0x4d1f9b(0x96)]):_0x224bab(_0x44d4f1[_0x4d1f9b(0x96)])[_0x4d1f9b(0xa0)](_0x5a5358,_0x5b0d65);}_0x4bc3e0((_0x22a3ad=_0x22a3ad[_0xd8f456(0xae)](_0x5a2de7,_0x325f21||[]))[_0xd8f456(0xad)]());});},__importDefault=this&&this['__importDefault']||function(_0x5d70ab){return _0x5d70ab&&_0x5d70ab['__esModule']?_0x5d70ab:{'default':_0x5d70ab};};Object[_0x3218a3(0xb5)](exports,_0x3218a3(0xb0),{'value':!![]}),exports['AwsS3FileSizeRetriever']=void 0x0;const base_file_size_retriever_1=require(_0x3218a3(0xb1)),client_s3_1=require(_0x3218a3(0xa7)),path_1=__importDefault(require(_0x3218a3(0x9a))),aws_s3_utils_1=require('../utils/aws-s3.utils');class AwsS3FileSizeRetriever extends base_file_size_retriever_1[_0x3218a3(0xa6)]{constructor(_0x242fcb,_0x4ff59b){const _0x1b8bde=_0x3218a3;super(_0x242fcb),this[_0x1b8bde(0xa5)]=aws_s3_utils_1[_0x1b8bde(0x93)][_0x1b8bde(0xaf)](_0x242fcb,_0x4ff59b);}['execute'](_0x234fff){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x36c9ea=_0x1e75,_0x28f4b9=_0x234fff[_0x36c9ea(0xa2)](path_1['default'][_0x36c9ea(0xb4)])[_0x36c9ea(0x9c)](path_1[_0x36c9ea(0x9d)][_0x36c9ea(0x9b)]['sep']),_0x11e8a0=new client_s3_1['HeadObjectCommand']({'Bucket':this['credentials'][_0x36c9ea(0xa3)],'Key':_0x28f4b9});try{const _0x32a7be=yield this[_0x36c9ea(0xa5)][_0x36c9ea(0x95)](_0x11e8a0);return _0x32a7be[_0x36c9ea(0xac)];}catch(_0x4d93c4){if(_0x4d93c4[_0x36c9ea(0xaa)]===_0x36c9ea(0xa4))return null;throw _0x4d93c4;}});}}function _0x20a8(){const _0x294071=['ContentLength','next','apply','createS3Client','__esModule','./base-file-size-retriever','862424gvtbTG','throw','sep','defineProperty','483831QTOvDh','AwsS3Utils','131846OejYzq','send','value','32xrodHx','44177650DQXiOZ','__awaiter','path','posix','join','default','535KulmQr','782151lToyDo','then','AwsS3FileSizeRetriever','split','bucketName','NotFound','s3Client','BaseFileSizeRetriever','@aws-sdk/client-s3','12IBtYUM','36438dqtMpL','name','7931462ToKbey'];_0x20a8=function(){return _0x294071;};return _0x20a8();}exports[_0x3218a3(0xa1)]=AwsS3FileSizeRetriever;
|