@flosum/storages 1.3.4 → 1.3.5
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.d.ts +2 -1
- 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.d.ts +2 -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.d.ts +2 -2
- 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 +6 -0
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/instances/aws-s3.storage-instance.d.ts +15 -0
- package/dist/instances/aws-s3.storage-instance.js +1 -0
- package/dist/instances/base.storage-instance.d.ts +34 -0
- package/dist/instances/base.storage-instance.js +1 -0
- package/dist/instances/index.d.ts +3 -0
- package/dist/instances/index.js +1 -0
- package/dist/instances/local.storage-instance.d.ts +9 -0
- package/dist/instances/local.storage-instance.js +1 -0
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.d.ts +2 -2
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
- package/dist/retrieve/helpers/azure-helper.js +1 -1
- package/dist/retrieve/helpers/base-helper.js +1 -1
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.js +1 -1
- package/dist/types/azure.types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal.types.js +1 -1
- package/dist/types/retrieve-status.enum.js +1 -1
- package/dist/types/storage-type.enum.js +1 -1
- package/dist/utils/aws-s3.utils.js +1 -1
- package/dist/utils/azure.utils.js +1 -1
- package/dist/utils/cache.utils.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AwsS3Credentials } from '../credentials';
|
|
2
2
|
import { BaseCopy } from './base-copy';
|
|
3
|
+
import { S3Client } from '@aws-sdk/client-s3';
|
|
3
4
|
export declare class AwsS3Copy extends BaseCopy<AwsS3Credentials> {
|
|
4
5
|
private readonly s3Client;
|
|
5
|
-
constructor(credentials: AwsS3Credentials);
|
|
6
|
+
constructor(credentials: AwsS3Credentials, s3Client?: S3Client);
|
|
6
7
|
execute(sourcePath: string, destinationPath: string): Promise<void>;
|
|
7
8
|
}
|
package/dist/copy/aws-s3-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x1880(){const _0x838b8a=['__awaiter','credentials','../utils/aws-s3.utils','value','28hEKEqF','1617248uwzRJN','done','458922SZuQyx','1023955hrQSSw','throw','12KUbPgy','56030eIGHpb','2726440gEIAwi','bucketName','s3Client','__esModule','execute','12LsJpcC','AwsS3Utils','defineProperty','next','CopyObjectCommand','createS3Client','AwsS3Copy','./base-copy','46502LNyUvx','1008wEktqq','5522693QLaAQP','6BOCENF'];_0x1880=function(){return _0x838b8a;};return _0x1880();}const _0x47c082=_0x16f9;(function(_0xa43cb2,_0x4c7c04){const _0x23c5fc=_0x16f9,_0x28f657=_0xa43cb2();while(!![]){try{const _0x294baa=-parseInt(_0x23c5fc(0x1cd))/0x1*(-parseInt(_0x23c5fc(0x1c5))/0x2)+-parseInt(_0x23c5fc(0x1d0))/0x3*(parseInt(_0x23c5fc(0x1d6))/0x4)+-parseInt(_0x23c5fc(0x1d9))/0x5+-parseInt(_0x23c5fc(0x1d8))/0x6*(parseInt(_0x23c5fc(0x1d5))/0x7)+parseInt(_0x23c5fc(0x1c0))/0x8+-parseInt(_0x23c5fc(0x1ce))/0x9*(-parseInt(_0x23c5fc(0x1bf))/0xa)+-parseInt(_0x23c5fc(0x1cf))/0xb*(-parseInt(_0x23c5fc(0x1db))/0xc);if(_0x294baa===_0x4c7c04)break;else _0x28f657['push'](_0x28f657['shift']());}catch(_0x5aab3a){_0x28f657['push'](_0x28f657['shift']());}}}(_0x1880,0x68fe5));var __awaiter=this&&this[_0x47c082(0x1d1)]||function(_0x4987bc,_0x3a136b,_0x5e8178,_0x30d4a0){function _0x335de9(_0x4eae0e){return _0x4eae0e instanceof _0x5e8178?_0x4eae0e:new _0x5e8178(function(_0x335ca1){_0x335ca1(_0x4eae0e);});}return new(_0x5e8178||(_0x5e8178=Promise))(function(_0x448278,_0x4d12e6){function _0x261f84(_0x6a1e70){const _0x38f519=_0x16f9;try{_0x3c3f44(_0x30d4a0[_0x38f519(0x1c8)](_0x6a1e70));}catch(_0x39c7ea){_0x4d12e6(_0x39c7ea);}}function _0x51716b(_0x4a3571){const _0x17b37d=_0x16f9;try{_0x3c3f44(_0x30d4a0[_0x17b37d(0x1da)](_0x4a3571));}catch(_0x4112fa){_0x4d12e6(_0x4112fa);}}function _0x3c3f44(_0x4b7016){const _0x1cd710=_0x16f9;_0x4b7016[_0x1cd710(0x1d7)]?_0x448278(_0x4b7016[_0x1cd710(0x1d4)]):_0x335de9(_0x4b7016[_0x1cd710(0x1d4)])['then'](_0x261f84,_0x51716b);}_0x3c3f44((_0x30d4a0=_0x30d4a0['apply'](_0x4987bc,_0x3a136b||[]))['next']());});};Object[_0x47c082(0x1c7)](exports,_0x47c082(0x1c3),{'value':!![]}),exports[_0x47c082(0x1cb)]=void 0x0;const base_copy_1=require(_0x47c082(0x1cc)),client_s3_1=require('@aws-sdk/client-s3'),aws_s3_utils_1=require(_0x47c082(0x1d3));class AwsS3Copy extends base_copy_1['BaseCopy']{constructor(_0x33f11d,_0x1760a9){const _0x552068=_0x47c082;super(_0x33f11d),this[_0x552068(0x1c2)]=_0x1760a9||aws_s3_utils_1[_0x552068(0x1c6)][_0x552068(0x1ca)](_0x33f11d);}[_0x47c082(0x1c4)](_0x4081e0,_0x71fcc0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x507d1b=_0x16f9,_0x4675db=new client_s3_1[(_0x507d1b(0x1c9))]({'Bucket':this[_0x507d1b(0x1d2)][_0x507d1b(0x1c1)],'CopySource':_0x4081e0,'Key':_0x71fcc0});yield this[_0x507d1b(0x1c2)]['send'](_0x4675db);});}}function _0x16f9(_0x41747e,_0x190555){const _0x1880c3=_0x1880();return _0x16f9=function(_0x16f923,_0x303845){_0x16f923=_0x16f923-0x1bf;let _0x385db7=_0x1880c3[_0x16f923];return _0x385db7;},_0x16f9(_0x41747e,_0x190555);}exports[_0x47c082(0x1cb)]=AwsS3Copy;
|
package/dist/copy/base-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';function _0x3a9b(_0x5c8c6b,_0x5bd1a0){var _0x23b7e7=_0x23b7();return _0x3a9b=function(_0x3a9bb7,_0x2a8f68){_0x3a9bb7=_0x3a9bb7-0x1f0;var _0x37806f=_0x23b7e7[_0x3a9bb7];return _0x37806f;},_0x3a9b(_0x5c8c6b,_0x5bd1a0);}function _0x23b7(){var _0x59719a=['6LUPtsO','1722444VHZCEO','12770wSjfdo','2556888EfuCkS','2797332lraAUl','defineProperty','674779mHOUxA','5TVOfjn','__esModule','3KgvilS','1098046TlPwUC','11GovjAC','436233rkOUwq','2124QrfLXp','credentials','BaseCopy'];_0x23b7=function(){return _0x59719a;};return _0x23b7();}var _0x24eb2a=_0x3a9b;(function(_0x39b687,_0x4bc914){var _0x443979=_0x3a9b,_0x197cd4=_0x39b687();while(!![]){try{var _0x2928f9=-parseInt(_0x443979(0x1fb))/0x1+parseInt(_0x443979(0x1ff))/0x2*(parseInt(_0x443979(0x1fe))/0x3)+-parseInt(_0x443979(0x1f6))/0x4*(parseInt(_0x443979(0x1fc))/0x5)+parseInt(_0x443979(0x1f5))/0x6*(parseInt(_0x443979(0x1f1))/0x7)+parseInt(_0x443979(0x1f8))/0x8+-parseInt(_0x443979(0x1f2))/0x9*(-parseInt(_0x443979(0x1f7))/0xa)+parseInt(_0x443979(0x1f0))/0xb*(parseInt(_0x443979(0x1f9))/0xc);if(_0x2928f9===_0x4bc914)break;else _0x197cd4['push'](_0x197cd4['shift']());}catch(_0xd7ce35){_0x197cd4['push'](_0x197cd4['shift']());}}}(_0x23b7,0x57e6e));Object[_0x24eb2a(0x1fa)](exports,_0x24eb2a(0x1fd),{'value':!![]}),exports[_0x24eb2a(0x1f4)]=void 0x0;class BaseCopy{constructor(_0x1f50b2){var _0x48d419=_0x24eb2a;this[_0x48d419(0x1f3)]=_0x1f50b2;}}exports[_0x24eb2a(0x1f4)]=BaseCopy;
|
package/dist/copy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1773cf=_0x1b69;function _0x1b69(_0x4a4235,_0xb1c9d3){var _0x49ebc3=_0x49eb();return _0x1b69=function(_0x1b6952,_0x1234f0){_0x1b6952=_0x1b6952-0x18f;var _0x206b7b=_0x49ebc3[_0x1b6952];return _0x206b7b;},_0x1b69(_0x4a4235,_0xb1c9d3);}(function(_0x2578a7,_0x78fff3){var _0x21e090=_0x1b69,_0x3b40b3=_0x2578a7();while(!![]){try{var _0x3253e2=-parseInt(_0x21e090(0x19a))/0x1+-parseInt(_0x21e090(0x193))/0x2*(-parseInt(_0x21e090(0x194))/0x3)+-parseInt(_0x21e090(0x191))/0x4+-parseInt(_0x21e090(0x196))/0x5+-parseInt(_0x21e090(0x18f))/0x6*(-parseInt(_0x21e090(0x195))/0x7)+parseInt(_0x21e090(0x199))/0x8*(-parseInt(_0x21e090(0x19d))/0x9)+parseInt(_0x21e090(0x19e))/0xa*(parseInt(_0x21e090(0x19b))/0xb);if(_0x3253e2===_0x78fff3)break;else _0x3b40b3['push'](_0x3b40b3['shift']());}catch(_0xf055e2){_0x3b40b3['push'](_0x3b40b3['shift']());}}}(_0x49eb,0xec979));function _0x49eb(){var _0x545604=['19154069aYSlyj','LocalCopy','18PlkVnu','20lHqpuW','933270wYBBMj','__esModule','5624456JPErOI','AwsS3Copy','62970YTUnJR','114LqLMBF','21DRSNte','2508370mpvjdm','defineProperty','BaseCopy','7394112SOVhyI','420226qAKfRF'];_0x49eb=function(){return _0x545604;};return _0x49eb();}Object[_0x1773cf(0x197)](exports,_0x1773cf(0x190),{'value':!![]}),exports[_0x1773cf(0x192)]=exports['LocalCopy']=exports[_0x1773cf(0x198)]=void 0x0;var base_copy_1=require('./base-copy');Object[_0x1773cf(0x197)](exports,_0x1773cf(0x198),{'enumerable':!![],'get':function(){var _0x54ef54=_0x1773cf;return base_copy_1[_0x54ef54(0x198)];}});var local_copy_1=require('./local-copy');Object[_0x1773cf(0x197)](exports,'LocalCopy',{'enumerable':!![],'get':function(){var _0xea1447=_0x1773cf;return local_copy_1[_0xea1447(0x19c)];}});var aws_s3_copy_1=require('./aws-s3-copy');Object[_0x1773cf(0x197)](exports,'AwsS3Copy',{'enumerable':!![],'get':function(){var _0x4c1e54=_0x1773cf;return aws_s3_copy_1[_0x4c1e54(0x192)];}});
|
package/dist/copy/local-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x28757a=_0x509f;(function(_0x1e56b5,_0x9005aa){const _0x4a02dd=_0x509f,_0x5f4b57=_0x1e56b5();while(!![]){try{const _0x46cbd6=-parseInt(_0x4a02dd(0x1f0))/0x1+-parseInt(_0x4a02dd(0x1f3))/0x2+parseInt(_0x4a02dd(0x1f5))/0x3+parseInt(_0x4a02dd(0x1f1))/0x4+-parseInt(_0x4a02dd(0x1e7))/0x5+parseInt(_0x4a02dd(0x1e6))/0x6*(parseInt(_0x4a02dd(0x1f6))/0x7)+-parseInt(_0x4a02dd(0x1e8))/0x8;if(_0x46cbd6===_0x9005aa)break;else _0x5f4b57['push'](_0x5f4b57['shift']());}catch(_0x11d025){_0x5f4b57['push'](_0x5f4b57['shift']());}}}(_0x210c,0x5cde7));var __awaiter=this&&this[_0x28757a(0x1ee)]||function(_0x3c4446,_0x1cd0fe,_0xe77852,_0x17a072){function _0x15d48d(_0x41781c){return _0x41781c instanceof _0xe77852?_0x41781c:new _0xe77852(function(_0x5d536c){_0x5d536c(_0x41781c);});}return new(_0xe77852||(_0xe77852=Promise))(function(_0x1460b3,_0xbf1ec8){const _0x5883a6=_0x509f;function _0x2dd8eb(_0x21e7c0){try{_0x55e0e2(_0x17a072['next'](_0x21e7c0));}catch(_0x43a723){_0xbf1ec8(_0x43a723);}}function _0x3c8bfc(_0x4fbea8){try{_0x55e0e2(_0x17a072['throw'](_0x4fbea8));}catch(_0x3e0db1){_0xbf1ec8(_0x3e0db1);}}function _0x55e0e2(_0x1a60f1){const _0x3163f0=_0x509f;_0x1a60f1[_0x3163f0(0x1ec)]?_0x1460b3(_0x1a60f1[_0x3163f0(0x1f8)]):_0x15d48d(_0x1a60f1[_0x3163f0(0x1f8)])[_0x3163f0(0x1fa)](_0x2dd8eb,_0x3c8bfc);}_0x55e0e2((_0x17a072=_0x17a072[_0x5883a6(0x1eb)](_0x3c4446,_0x1cd0fe||[]))['next']());});};function _0x509f(_0x240382,_0x34e869){const _0x210c72=_0x210c();return _0x509f=function(_0x509ff1,_0x2a4320){_0x509ff1=_0x509ff1-0x1e6;let _0x4f092d=_0x210c72[_0x509ff1];return _0x4f092d;},_0x509f(_0x240382,_0x34e869);}Object[_0x28757a(0x1f9)](exports,'__esModule',{'value':!![]}),exports[_0x28757a(0x1ed)]=void 0x0;function _0x210c(){const _0x2aff92=['path','2118297lupLZN','853258sIQhyt','mkdir','value','defineProperty','then','24BHWjzO','71320WcPxLw','4611056LTTufE','execute','dirname','apply','done','LocalCopy','__awaiter','copyFile','526741LqsFgU','2842160mHxoUo','./base-copy','812874JddTBO'];_0x210c=function(){return _0x2aff92;};return _0x210c();}const base_copy_1=require(_0x28757a(0x1f2)),promises_1=require('fs/promises'),path_1=require(_0x28757a(0x1f4));class LocalCopy extends base_copy_1['BaseCopy']{[_0x28757a(0x1e9)](_0x59f946,_0x12f4b3){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x19d459=_0x509f,_0x467c1f=(0x0,path_1[_0x19d459(0x1ea)])(_0x12f4b3);yield(0x0,promises_1[_0x19d459(0x1f7)])(_0x467c1f,{'recursive':!![]}),yield(0x0,promises_1[_0x19d459(0x1ef)])(_0x59f946,_0x12f4b3);});}}exports[_0x28757a(0x1ed)]=LocalCopy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x4b61(_0x3c0534,_0x3a3362){const _0x4222fe=_0x4222();return _0x4b61=function(_0x4b6192,_0x38c8fb){_0x4b6192=_0x4b6192-0x12e;let _0x2c3fef=_0x4222fe[_0x4b6192];return _0x2c3fef;},_0x4b61(_0x3c0534,_0x3a3362);}const _0x3ddb74=_0x4b61;(function(_0x206b7,_0x11f51c){const _0x17a273=_0x4b61,_0x36926d=_0x206b7();while(!![]){try{const _0x263e5e=-parseInt(_0x17a273(0x14f))/0x1+-parseInt(_0x17a273(0x14c))/0x2+-parseInt(_0x17a273(0x14d))/0x3+-parseInt(_0x17a273(0x143))/0x4*(parseInt(_0x17a273(0x13f))/0x5)+parseInt(_0x17a273(0x13c))/0x6+parseInt(_0x17a273(0x148))/0x7*(parseInt(_0x17a273(0x141))/0x8)+-parseInt(_0x17a273(0x130))/0x9*(-parseInt(_0x17a273(0x137))/0xa);if(_0x263e5e===_0x11f51c)break;else _0x36926d['push'](_0x36926d['shift']());}catch(_0x3dbfb0){_0x36926d['push'](_0x36926d['shift']());}}}(_0x4222,0x29305));var __awaiter=this&&this['__awaiter']||function(_0x2407f1,_0x3063fb,_0x46e13e,_0x5bac3a){function _0x4a700a(_0x3209f3){return _0x3209f3 instanceof _0x46e13e?_0x3209f3:new _0x46e13e(function(_0x598bb9){_0x598bb9(_0x3209f3);});}return new(_0x46e13e||(_0x46e13e=Promise))(function(_0x381869,_0x2b8def){const _0x5ed316=_0x4b61;function _0x8f8ed2(_0x2dd4d6){try{_0x5281b7(_0x5bac3a['next'](_0x2dd4d6));}catch(_0x22497a){_0x2b8def(_0x22497a);}}function _0x196127(_0x3c5716){const _0x236258=_0x4b61;try{_0x5281b7(_0x5bac3a[_0x236258(0x150)](_0x3c5716));}catch(_0x4d080b){_0x2b8def(_0x4d080b);}}function _0x5281b7(_0x4dbc19){const _0x29cff5=_0x4b61;_0x4dbc19[_0x29cff5(0x146)]?_0x381869(_0x4dbc19['value']):_0x4a700a(_0x4dbc19[_0x29cff5(0x140)])[_0x29cff5(0x14b)](_0x8f8ed2,_0x196127);}_0x5281b7((_0x5bac3a=_0x5bac3a[_0x5ed316(0x136)](_0x2407f1,_0x3063fb||[]))[_0x5ed316(0x12f)]());});};function _0x4222(){const _0x514a05=['7kxAJIO','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','@aws-sdk/client-s3','then','569366HJOVlg','477087LQzYKx','BaseCredentials','63049odZxXg','throw','AwsS3Credentials','./base-credentials','next','305919pDBokW','credentials','secretAccessKey','AwsS3Utils','bucketName','createS3Client','apply','160bgMnYT','defineProperty','s3Client','__esModule','getCredentials','1996158liFbCY','region','message','5GTYFjV','value','822648bYVQeK','validate','1215640BUGarA','accessKeyId','HeadBucketCommand','done','../utils/aws-s3.utils'];_0x4222=function(){return _0x514a05;};return _0x4222();}Object[_0x3ddb74(0x138)](exports,_0x3ddb74(0x13a),{'value':!![]}),exports[_0x3ddb74(0x151)]=void 0x0;const base_credentials_1=require(_0x3ddb74(0x12e)),client_s3_1=require(_0x3ddb74(0x14a)),aws_s3_utils_1=require(_0x3ddb74(0x147));class AwsS3Credentials extends base_credentials_1[_0x3ddb74(0x14e)]{constructor(_0x2a34fb){const _0x4c6a46=_0x3ddb74;super(_0x2a34fb),this['s3Client']=aws_s3_utils_1[_0x4c6a46(0x133)][_0x4c6a46(0x135)](this[_0x4c6a46(0x131)]);}get[_0x3ddb74(0x144)](){return this['credentials']['accessKeyId'];}get[_0x3ddb74(0x132)](){const _0x32046f=_0x3ddb74;return this['credentials'][_0x32046f(0x132)];}get[_0x3ddb74(0x134)](){const _0x77729c=_0x3ddb74;return this[_0x77729c(0x131)][_0x77729c(0x134)];}get[_0x3ddb74(0x13d)](){const _0x333c63=_0x3ddb74;return this['credentials'][_0x333c63(0x13d)];}[_0x3ddb74(0x142)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2656e5=_0x4b61;try{const _0x4fd1d5=new client_s3_1[(_0x2656e5(0x145))]({'Bucket':this[_0x2656e5(0x131)][_0x2656e5(0x134)]});yield this[_0x2656e5(0x139)]['send'](_0x4fd1d5);}catch(_0x58eca3){throw new Error(_0x2656e5(0x149)+_0x58eca3[_0x2656e5(0x13e)]);}});}[_0x3ddb74(0x13b)](_0xc187ba=![]){if(_0xc187ba)return{'bucketName':this['credentials']['bucketName']};return this['credentials'];}}exports[_0x3ddb74(0x151)]=AwsS3Credentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x3c02(_0xfbbe63,_0x1d5783){const _0x451be3=_0x451b();return _0x3c02=function(_0x3c02ce,_0x5e76af){_0x3c02ce=_0x3c02ce-0x13e;let _0x332e6f=_0x451be3[_0x3c02ce];return _0x332e6f;},_0x3c02(_0xfbbe63,_0x1d5783);}const _0x27e828=_0x3c02;(function(_0x4f807e,_0x349f9c){const _0x444cca=_0x3c02,_0x16704d=_0x4f807e();while(!![]){try{const _0x4c4412=parseInt(_0x444cca(0x13e))/0x1*(-parseInt(_0x444cca(0x146))/0x2)+-parseInt(_0x444cca(0x14c))/0x3+-parseInt(_0x444cca(0x150))/0x4*(parseInt(_0x444cca(0x152))/0x5)+parseInt(_0x444cca(0x145))/0x6+-parseInt(_0x444cca(0x155))/0x7+-parseInt(_0x444cca(0x14b))/0x8+parseInt(_0x444cca(0x143))/0x9;if(_0x4c4412===_0x349f9c)break;else _0x16704d['push'](_0x16704d['shift']());}catch(_0x139b1d){_0x16704d['push'](_0x16704d['shift']());}}}(_0x451b,0x20065));var __awaiter=this&&this['__awaiter']||function(_0x411179,_0x33a219,_0x555047,_0x32354e){function _0x16bc12(_0x359897){return _0x359897 instanceof _0x555047?_0x359897:new _0x555047(function(_0x440129){_0x440129(_0x359897);});}return new(_0x555047||(_0x555047=Promise))(function(_0x353868,_0x114f91){const _0x364585=_0x3c02;function _0x41d6b3(_0x14f016){try{_0x5c1d82(_0x32354e['next'](_0x14f016));}catch(_0x505de6){_0x114f91(_0x505de6);}}function _0x193ea6(_0x3f0101){const _0x4ad802=_0x3c02;try{_0x5c1d82(_0x32354e[_0x4ad802(0x14a)](_0x3f0101));}catch(_0x4cd3de){_0x114f91(_0x4cd3de);}}function _0x5c1d82(_0x2ca853){const _0x363aef=_0x3c02;_0x2ca853[_0x363aef(0x156)]?_0x353868(_0x2ca853[_0x363aef(0x13f)]):_0x16bc12(_0x2ca853['value'])['then'](_0x41d6b3,_0x193ea6);}_0x5c1d82((_0x32354e=_0x32354e[_0x364585(0x144)](_0x411179,_0x33a219||[]))[_0x364585(0x14d)]());});};Object[_0x27e828(0x147)](exports,'__esModule',{'value':!![]}),exports[_0x27e828(0x153)]=void 0x0;const base_credentials_1=require(_0x27e828(0x142)),azure_utils_1=require('../utils/azure.utils');class AzureCredentials extends base_credentials_1['BaseCredentials']{constructor(_0x3e0b93){const _0x1db372=_0x27e828;super(_0x3e0b93),this['blobServiceClient']=azure_utils_1[_0x1db372(0x157)][_0x1db372(0x14f)](this[_0x1db372(0x148)]);}get[_0x27e828(0x140)](){const _0x18b258=_0x27e828;return this[_0x18b258(0x148)][_0x18b258(0x140)];}get[_0x27e828(0x151)](){const _0x1d63e4=_0x27e828;return this[_0x1d63e4(0x148)]['accountName'];}get['containerName'](){const _0xa642e9=_0x27e828;return this[_0xa642e9(0x148)][_0xa642e9(0x141)];}[_0x27e828(0x154)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x52eb34=_0x3c02;try{const _0xac3a89=this['blobServiceClient']['getContainerClient'](this['credentials'][_0x52eb34(0x141)]);yield _0xac3a89[_0x52eb34(0x149)]();}catch(_0x41a9d5){throw new Error(_0x52eb34(0x158)+_0x41a9d5['message']);}});}[_0x27e828(0x14e)](_0x20d7a=![]){const _0x34940c=_0x27e828;if(_0x20d7a)return{'accountName':this[_0x34940c(0x148)]['accountName']};return this[_0x34940c(0x148)];}}exports[_0x27e828(0x153)]=AzureCredentials;function _0x451b(){const _0xbe3c4c=['6574365ixxNAc','apply','353214PoSghK','24086Flspxw','defineProperty','credentials','exists','throw','1239104UXCRVA','487836MxCxmy','next','getCredentials','createAzureBlobServiceClient','358268VvUdcS','accountName','10LUXKuH','AzureCredentials','validate','34916yPzRgl','done','AzureUtils','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','13ifheiL','value','accountKey','containerName','./base-credentials'];_0x451b=function(){return _0xbe3c4c;};return _0x451b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x29a238=_0x21d7;(function(_0x2fd442,_0x1d288d){var _0x49cd09=_0x21d7,_0x4b7e7d=_0x2fd442();while(!![]){try{var _0x59af81=-parseInt(_0x49cd09(0xb4))/0x1*(parseInt(_0x49cd09(0xba))/0x2)+parseInt(_0x49cd09(0xb6))/0x3+-parseInt(_0x49cd09(0xb7))/0x4+-parseInt(_0x49cd09(0xbd))/0x5+-parseInt(_0x49cd09(0xbb))/0x6*(-parseInt(_0x49cd09(0xb2))/0x7)+-parseInt(_0x49cd09(0xb5))/0x8+parseInt(_0x49cd09(0xbe))/0x9;if(_0x59af81===_0x1d288d)break;else _0x4b7e7d['push'](_0x4b7e7d['shift']());}catch(_0x1dcefd){_0x4b7e7d['push'](_0x4b7e7d['shift']());}}}(_0x5415,0x2de40));Object[_0x29a238(0xb1)](exports,_0x29a238(0xb3),{'value':!![]}),exports[_0x29a238(0xb9)]=void 0x0;function _0x21d7(_0x573cdc,_0x407a74){var _0x54159c=_0x5415();return _0x21d7=function(_0x21d702,_0x51c3b0){_0x21d702=_0x21d702-0xb1;var _0x1da4f4=_0x54159c[_0x21d702];return _0x1da4f4;},_0x21d7(_0x573cdc,_0x407a74);}class BaseCredentials{constructor(_0x586597){var _0x269fd3=_0x29a238;this[_0x269fd3(0xb8)]=_0x586597,this[_0x269fd3(0xbc)]=this[_0x269fd3(0xb8)]?this['rawCredentials']:null;}}exports[_0x29a238(0xb9)]=BaseCredentials;function _0x5415(){var _0x8596e7=['18KxbsVl','credentials','336705lhYtMP','9968346jViYKZ','defineProperty','4837nLEmoC','__esModule','320833eLIdJl','2255808wnoElP','66102nNDlMl','1094332kLQxvC','rawCredentials','BaseCredentials','2arKHmS'];_0x5415=function(){return _0x8596e7;};return _0x5415();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x79931c=_0x3c8c;(function(_0x52d05c,_0x395caa){var _0x2d7e5f=_0x3c8c,_0x8fe2c=_0x52d05c();while(!![]){try{var _0xc846fa=parseInt(_0x2d7e5f(0x13a))/0x1+parseInt(_0x2d7e5f(0x137))/0x2*(-parseInt(_0x2d7e5f(0x131))/0x3)+-parseInt(_0x2d7e5f(0x13c))/0x4*(parseInt(_0x2d7e5f(0x13d))/0x5)+parseInt(_0x2d7e5f(0x130))/0x6*(-parseInt(_0x2d7e5f(0x141))/0x7)+parseInt(_0x2d7e5f(0x135))/0x8*(-parseInt(_0x2d7e5f(0x140))/0x9)+parseInt(_0x2d7e5f(0x142))/0xa*(parseInt(_0x2d7e5f(0x138))/0xb)+parseInt(_0x2d7e5f(0x139))/0xc;if(_0xc846fa===_0x395caa)break;else _0x8fe2c['push'](_0x8fe2c['shift']());}catch(_0x4db1bb){_0x8fe2c['push'](_0x8fe2c['shift']());}}}(_0x5147,0xc4d06));function _0x3c8c(_0x517f37,_0x581528){var _0x514736=_0x5147();return _0x3c8c=function(_0x3c8c56,_0x2b454a){_0x3c8c56=_0x3c8c56-0x12e;var _0x44af54=_0x514736[_0x3c8c56];return _0x44af54;},_0x3c8c(_0x517f37,_0x581528);}Object['defineProperty'](exports,_0x79931c(0x134),{'value':!![]}),exports['AzureCredentials']=exports[_0x79931c(0x136)]=exports['AwsS3Credentials']=exports[_0x79931c(0x13f)]=void 0x0;var base_credentials_1=require(_0x79931c(0x12e));Object[_0x79931c(0x133)](exports,_0x79931c(0x13f),{'enumerable':!![],'get':function(){var _0x30f965=_0x79931c;return base_credentials_1[_0x30f965(0x13f)];}});var aws_s3_credentials_1=require(_0x79931c(0x13b));Object[_0x79931c(0x133)](exports,_0x79931c(0x12f),{'enumerable':!![],'get':function(){var _0x8554a2=_0x79931c;return aws_s3_credentials_1[_0x8554a2(0x12f)];}});var local_credentials_1=require('./local-credentials');Object[_0x79931c(0x133)](exports,_0x79931c(0x136),{'enumerable':!![],'get':function(){var _0x3c6082=_0x79931c;return local_credentials_1[_0x3c6082(0x136)];}});var azure_credentials_1=require(_0x79931c(0x13e));function _0x5147(){var _0x452307=['__esModule','428680tbSxNp','LocalCredentials','242EpoWJQ','251504zVWkQx','42588924zLnawr','5148vCzLbE','./aws-s3-credentials','8RHJQAw','2369870fdItsA','./azure-credentials','BaseCredentials','81XxSAaC','7vUffyP','160bwqbEG','./base-credentials','AwsS3Credentials','4503930pkBtRk','23133wLlpes','AzureCredentials','defineProperty'];_0x5147=function(){return _0x452307;};return _0x5147();}Object[_0x79931c(0x133)](exports,_0x79931c(0x132),{'enumerable':!![],'get':function(){var _0x244b39=_0x79931c;return azure_credentials_1[_0x244b39(0x132)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x669a(_0x473bef,_0x13a8fa){const _0x386571=_0x3865();return _0x669a=function(_0x669a3,_0x2c3550){_0x669a3=_0x669a3-0x138;let _0x224f0a=_0x386571[_0x669a3];return _0x224f0a;},_0x669a(_0x473bef,_0x13a8fa);}const _0x336657=_0x669a;(function(_0x3587af,_0xeee8e3){const _0x6b7380=_0x669a,_0x417074=_0x3587af();while(!![]){try{const _0x59ca13=parseInt(_0x6b7380(0x13a))/0x1*(-parseInt(_0x6b7380(0x13d))/0x2)+-parseInt(_0x6b7380(0x145))/0x3+parseInt(_0x6b7380(0x13c))/0x4*(-parseInt(_0x6b7380(0x148))/0x5)+-parseInt(_0x6b7380(0x141))/0x6*(-parseInt(_0x6b7380(0x143))/0x7)+-parseInt(_0x6b7380(0x138))/0x8*(-parseInt(_0x6b7380(0x140))/0x9)+parseInt(_0x6b7380(0x13f))/0xa*(-parseInt(_0x6b7380(0x139))/0xb)+parseInt(_0x6b7380(0x142))/0xc;if(_0x59ca13===_0xeee8e3)break;else _0x417074['push'](_0x417074['shift']());}catch(_0x4bf137){_0x417074['push'](_0x417074['shift']());}}}(_0x3865,0x7d976));function _0x3865(){const _0x1fc805=['2701731iGxkDy','__esModule','LocalCredentials','190eMtzIx','16pZbDig','369963DGFHqD','373133ikafOS','./base-credentials','23788cuwxug','2DjvNSN','defineProperty','10NYsuyA','4433094gWTCNH','9930LbEiTj','6098328eftxYN','2345JTCHbA','resolve'];_0x3865=function(){return _0x1fc805;};return _0x3865();}Object[_0x336657(0x13e)](exports,_0x336657(0x146),{'value':!![]}),exports['LocalCredentials']=void 0x0;const base_credentials_1=require(_0x336657(0x13b));class LocalCredentials extends base_credentials_1['BaseCredentials']{['getCredentials'](){return null;}['validate'](){const _0x34d4aa=_0x336657;return Promise[_0x34d4aa(0x144)](undefined);}}exports[_0x336657(0x147)]=LocalCredentials;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { AwsS3Credentials } from '../credentials';
|
|
2
2
|
import { BaseDelete } from './';
|
|
3
|
+
import { S3Client } from '@aws-sdk/client-s3';
|
|
3
4
|
import { AwsBuildMiddleware } from '../types';
|
|
4
5
|
export declare class AwsS3Delete extends BaseDelete<AwsS3Credentials> {
|
|
5
6
|
protected readonly credentials: AwsS3Credentials;
|
|
6
7
|
private readonly OBJECTS_PER_CHUNK;
|
|
7
8
|
private readonly s3Client;
|
|
8
|
-
constructor(credentials: AwsS3Credentials, middlewareStack?: AwsBuildMiddleware[]);
|
|
9
|
+
constructor(credentials: AwsS3Credentials, middlewareStack?: AwsBuildMiddleware[], s3Client?: S3Client);
|
|
9
10
|
execute(path: string): Promise<void>;
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xd3501a=_0x2cd8;(function(_0x5086cf,_0x1280f0){const _0x2cba25=_0x2cd8,_0x24227c=_0x5086cf();while(!![]){try{const _0x27615f=-parseInt(_0x2cba25(0x1e8))/0x1+parseInt(_0x2cba25(0x1ef))/0x2+parseInt(_0x2cba25(0x1e2))/0x3+parseInt(_0x2cba25(0x200))/0x4+-parseInt(_0x2cba25(0x1f5))/0x5*(parseInt(_0x2cba25(0x1f1))/0x6)+parseInt(_0x2cba25(0x1e9))/0x7*(-parseInt(_0x2cba25(0x1dd))/0x8)+parseInt(_0x2cba25(0x1fa))/0x9*(-parseInt(_0x2cba25(0x1fd))/0xa);if(_0x27615f===_0x1280f0)break;else _0x24227c['push'](_0x24227c['shift']());}catch(_0x1b2635){_0x24227c['push'](_0x24227c['shift']());}}}(_0x3acf,0x2f8b7));function _0x2cd8(_0x2418af,_0x255999){const _0x3acf8b=_0x3acf();return _0x2cd8=function(_0x2cd804,_0x206891){_0x2cd804=_0x2cd804-0x1dd;let _0x316ed9=_0x3acf8b[_0x2cd804];return _0x316ed9;},_0x2cd8(_0x2418af,_0x255999);}var __awaiter=this&&this['__awaiter']||function(_0x15dfd8,_0x1315c0,_0x4c50aa,_0x445ff3){function _0x2c144f(_0x55db89){return _0x55db89 instanceof _0x4c50aa?_0x55db89:new _0x4c50aa(function(_0x47b5e8){_0x47b5e8(_0x55db89);});}return new(_0x4c50aa||(_0x4c50aa=Promise))(function(_0x31a8e5,_0x10b1d0){const _0x3aba5a=_0x2cd8;function _0xe9a262(_0x40c921){try{_0x56b978(_0x445ff3['next'](_0x40c921));}catch(_0x472ea5){_0x10b1d0(_0x472ea5);}}function _0xbb62e5(_0x4cd81e){try{_0x56b978(_0x445ff3['throw'](_0x4cd81e));}catch(_0x230227){_0x10b1d0(_0x230227);}}function _0x56b978(_0x5a62a9){const _0x5ed28c=_0x2cd8;_0x5a62a9[_0x5ed28c(0x1f0)]?_0x31a8e5(_0x5a62a9[_0x5ed28c(0x1df)]):_0x2c144f(_0x5a62a9[_0x5ed28c(0x1df)])[_0x5ed28c(0x1e6)](_0xe9a262,_0xbb62e5);}_0x56b978((_0x445ff3=_0x445ff3['apply'](_0x15dfd8,_0x1315c0||[]))[_0x3aba5a(0x1de)]());});},__importDefault=this&&this['__importDefault']||function(_0x4d0bc4){const _0x551cb6=_0x2cd8;return _0x4d0bc4&&_0x4d0bc4[_0x551cb6(0x1fb)]?_0x4d0bc4:{'default':_0x4d0bc4};};Object[_0xd3501a(0x1e0)](exports,_0xd3501a(0x1fb),{'value':!![]}),exports['AwsS3Delete']=void 0x0;const path_1=__importDefault(require(_0xd3501a(0x1e5))),utils_1=require(_0xd3501a(0x1e4)),aws_s3_utils_1=require(_0xd3501a(0x201)),_1=require('./'),client_s3_1=require(_0xd3501a(0x1f3));function _0x3acf(){const _0x7c9f50=['4145wRJEVv','sep','createS3Client','join','default','4862736XZXQqh','__esModule','splitOnChunks','10uJGJIe','posix','OBJECTS_PER_CHUNK','1485808mxLqbz','../utils/aws-s3.utils','40DZsmAd','next','value','defineProperty','AwsS3Delete','1110576xpKKSn','execute','@flosum/utils','path','then','credentials','58162XMzuTT','30793rgLpum','split','AwsS3Utils','map','getFilesPaths','s3Client','662758vLBlsV','done','1866RHPCNl','send','@aws-sdk/client-s3','BaseDelete'];_0x3acf=function(){return _0x7c9f50;};return _0x3acf();}class AwsS3Delete extends _1[_0xd3501a(0x1f4)]{constructor(_0x2cf5bd,_0xc03d91,_0x20d36d){const _0x2a7f16=_0xd3501a;super(_0x2cf5bd),this[_0x2a7f16(0x1e7)]=_0x2cf5bd,this[_0x2a7f16(0x1ff)]=0x3e8,this['s3Client']=_0x20d36d||aws_s3_utils_1[_0x2a7f16(0x1eb)][_0x2a7f16(0x1f7)](_0x2cf5bd,_0xc03d91);}[_0xd3501a(0x1e3)](_0x5c92bf){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x52aec7=_0x2cd8,_0xb59124=_0x5c92bf[_0x52aec7(0x1ea)](path_1[_0x52aec7(0x1f9)][_0x52aec7(0x1f6)])[_0x52aec7(0x1f8)](path_1['default'][_0x52aec7(0x1fe)][_0x52aec7(0x1f6)]),_0x59f334=yield aws_s3_utils_1['AwsS3Utils'][_0x52aec7(0x1ed)](_0xb59124,this[_0x52aec7(0x1e7)]['bucketName'],this[_0x52aec7(0x1ee)]),_0xf54c55=utils_1['ArrayUtils'][_0x52aec7(0x1fc)](_0x59f334,this['OBJECTS_PER_CHUNK']);for(const _0x2b04d6 of _0xf54c55){const _0x31791b=_0x2b04d6[_0x52aec7(0x1ec)](_0x192e64=>({'Key':_0x192e64})),_0x117eb9=new client_s3_1['DeleteObjectsCommand']({'Bucket':this[_0x52aec7(0x1e7)]['bucketName'],'Delete':{'Objects':_0x31791b}});yield this['s3Client'][_0x52aec7(0x1f2)](_0x117eb9);}});}}exports[_0xd3501a(0x1e1)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x44f15f=_0x5d36;(function(_0x376d44,_0x32a388){const _0x58bdcc=_0x5d36,_0x4533c9=_0x376d44();while(!![]){try{const _0x2eb0e9=parseInt(_0x58bdcc(0x1e6))/0x1+-parseInt(_0x58bdcc(0x1da))/0x2+parseInt(_0x58bdcc(0x1e2))/0x3+parseInt(_0x58bdcc(0x1e1))/0x4*(parseInt(_0x58bdcc(0x1d5))/0x5)+-parseInt(_0x58bdcc(0x1d3))/0x6+-parseInt(_0x58bdcc(0x1d7))/0x7+-parseInt(_0x58bdcc(0x1e8))/0x8*(-parseInt(_0x58bdcc(0x1ed))/0x9);if(_0x2eb0e9===_0x32a388)break;else _0x4533c9['push'](_0x4533c9['shift']());}catch(_0x396cdc){_0x4533c9['push'](_0x4533c9['shift']());}}}(_0x3210,0x456a5));function _0x5d36(_0x34f1f0,_0x11b39e){const _0x3210ac=_0x3210();return _0x5d36=function(_0x5d36dc,_0x10ccf2){_0x5d36dc=_0x5d36dc-0x1ce;let _0x4afd85=_0x3210ac[_0x5d36dc];return _0x4afd85;},_0x5d36(_0x34f1f0,_0x11b39e);}var __awaiter=this&&this[_0x44f15f(0x1e3)]||function(_0x323276,_0x4555ad,_0x4eaed7,_0x22c99c){function _0x49912c(_0x4064fc){return _0x4064fc instanceof _0x4eaed7?_0x4064fc:new _0x4eaed7(function(_0x24cc62){_0x24cc62(_0x4064fc);});}return new(_0x4eaed7||(_0x4eaed7=Promise))(function(_0x23d1ab,_0x3b144b){const _0x20dcd6=_0x5d36;function _0x29a146(_0xfce7ee){const _0x241369=_0x5d36;try{_0x4dbf5c(_0x22c99c[_0x241369(0x1ea)](_0xfce7ee));}catch(_0x1b1629){_0x3b144b(_0x1b1629);}}function _0x3b55ff(_0xd5659f){const _0x22924f=_0x5d36;try{_0x4dbf5c(_0x22c99c[_0x22924f(0x1d6)](_0xd5659f));}catch(_0x33afb4){_0x3b144b(_0x33afb4);}}function _0x4dbf5c(_0x65fa2){const _0x29739a=_0x5d36;_0x65fa2[_0x29739a(0x1dd)]?_0x23d1ab(_0x65fa2[_0x29739a(0x1d8)]):_0x49912c(_0x65fa2[_0x29739a(0x1d8)])[_0x29739a(0x1d9)](_0x29a146,_0x3b55ff);}_0x4dbf5c((_0x22c99c=_0x22c99c[_0x20dcd6(0x1d0)](_0x323276,_0x4555ad||[]))[_0x20dcd6(0x1ea)]());});},__importDefault=this&&this[_0x44f15f(0x1d2)]||function(_0xebe792){const _0x132430=_0x44f15f;return _0xebe792&&_0xebe792[_0x132430(0x1ec)]?_0xebe792:{'default':_0xebe792};};Object[_0x44f15f(0x1d1)](exports,_0x44f15f(0x1ec),{'value':!![]}),exports[_0x44f15f(0x1dc)]=void 0x0;const path_1=__importDefault(require(_0x44f15f(0x1de))),_1=require('./'),azure_utils_1=require(_0x44f15f(0x1e5));function _0x3210(){const _0x454f3e=['__esModule','9178362EgAXQn','containerClient','deleteBlob','default','apply','defineProperty','__importDefault','2505852lHLiqJ','createAzureBlobContainerClient','85DmTDdf','throw','3720871cWuTJm','value','then','347150PnlJaB','split','AzureDelete','done','path','AzureUtils','join','1492sZSKfm','1059330WMlPYN','__awaiter','posix','../utils/azure.utils','27826pPADnT','sep','8TrogRu','execute','next','credentials'];_0x3210=function(){return _0x454f3e;};return _0x3210();}class AzureDelete extends _1['BaseDelete']{constructor(_0x178270){const _0x2a9d05=_0x44f15f;super(_0x178270),this[_0x2a9d05(0x1eb)]=_0x178270,this[_0x2a9d05(0x1ee)]=azure_utils_1[_0x2a9d05(0x1df)][_0x2a9d05(0x1d4)](_0x178270);}[_0x44f15f(0x1e9)](_0xe97ce){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x122cb6=_0x5d36,_0x4d8e01=_0xe97ce[_0x122cb6(0x1db)](path_1[_0x122cb6(0x1cf)][_0x122cb6(0x1e7)])[_0x122cb6(0x1e0)](path_1[_0x122cb6(0x1cf)][_0x122cb6(0x1e4)]['sep']),_0x3f1cf7=yield azure_utils_1[_0x122cb6(0x1df)]['getAzureBlobsPaths'](_0x4d8e01,this[_0x122cb6(0x1ee)]);for(const _0xac3a26 of _0x3f1cf7){yield this[_0x122cb6(0x1ee)][_0x122cb6(0x1ce)](_0xac3a26);}});}}exports[_0x44f15f(0x1dc)]=AzureDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x33ec92=_0x1672;function _0x3505(){var _0x48653a=['2009073iksUkx','7306obrbtT','13589361jmeQYz','credentials','BaseDelete','10XolvEo','50zCiWpn','defineProperty','3991160XUgBSi','29ElUkZb','358120WPRLXN','__esModule','6272112tKCKbd','4770414UpemOt'];_0x3505=function(){return _0x48653a;};return _0x3505();}function _0x1672(_0x47966f,_0x10e8e9){var _0x350543=_0x3505();return _0x1672=function(_0x1672e5,_0x26521b){_0x1672e5=_0x1672e5-0x137;var _0x333ef3=_0x350543[_0x1672e5];return _0x333ef3;},_0x1672(_0x47966f,_0x10e8e9);}(function(_0x4bc020,_0xc4e7c0){var _0x38d0d0=_0x1672,_0x9fa9f=_0x4bc020();while(!![]){try{var _0x4b22ed=parseInt(_0x38d0d0(0x13d))/0x1*(-parseInt(_0x38d0d0(0x143))/0x2)+parseInt(_0x38d0d0(0x142))/0x3+parseInt(_0x38d0d0(0x13e))/0x4*(-parseInt(_0x38d0d0(0x13a))/0x5)+-parseInt(_0x38d0d0(0x141))/0x6+parseInt(_0x38d0d0(0x140))/0x7+-parseInt(_0x38d0d0(0x13c))/0x8+parseInt(_0x38d0d0(0x144))/0x9*(parseInt(_0x38d0d0(0x139))/0xa);if(_0x4b22ed===_0xc4e7c0)break;else _0x9fa9f['push'](_0x9fa9f['shift']());}catch(_0xe18e9b){_0x9fa9f['push'](_0x9fa9f['shift']());}}}(_0x3505,0xbe893));Object[_0x33ec92(0x13b)](exports,_0x33ec92(0x13f),{'value':!![]}),exports[_0x33ec92(0x138)]=void 0x0;class BaseDelete{constructor(_0x464683){var _0x1a6d38=_0x33ec92;this[_0x1a6d38(0x137)]=_0x464683;}}exports[_0x33ec92(0x138)]=BaseDelete;
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x2c987b=_0x310a;(function(_0x3f5079,_0x3a40e2){var _0x479c67=_0x310a,_0x2c9a67=_0x3f5079();while(!![]){try{var _0x4d9725=parseInt(_0x479c67(0xde))/0x1*(-parseInt(_0x479c67(0xda))/0x2)+parseInt(_0x479c67(0xd1))/0x3+-parseInt(_0x479c67(0xd6))/0x4+-parseInt(_0x479c67(0xd9))/0x5+-parseInt(_0x479c67(0xe0))/0x6*(parseInt(_0x479c67(0xdd))/0x7)+parseInt(_0x479c67(0xdb))/0x8*(-parseInt(_0x479c67(0xdf))/0x9)+parseInt(_0x479c67(0xe1))/0xa;if(_0x4d9725===_0x3a40e2)break;else _0x2c9a67['push'](_0x2c9a67['shift']());}catch(_0x45c796){_0x2c9a67['push'](_0x2c9a67['shift']());}}}(_0x49ee,0x34ae3));Object[_0x2c987b(0xdc)](exports,_0x2c987b(0xe3),{'value':!![]}),exports[_0x2c987b(0xd8)]=exports[_0x2c987b(0xd4)]=exports[_0x2c987b(0xd5)]=exports['BaseDelete']=void 0x0;var base_delete_1=require('./base-delete');Object[_0x2c987b(0xdc)](exports,_0x2c987b(0xd7),{'enumerable':!![],'get':function(){var _0x365944=_0x2c987b;return base_delete_1[_0x365944(0xd7)];}});var aws_s3_delete_1=require(_0x2c987b(0xd3));Object[_0x2c987b(0xdc)](exports,'AwsS3Delete',{'enumerable':!![],'get':function(){var _0xb426db=_0x2c987b;return aws_s3_delete_1[_0xb426db(0xd5)];}});var local_delete_1=require(_0x2c987b(0xd2));function _0x310a(_0xf9485b,_0x2b6654){var _0x49ee0d=_0x49ee();return _0x310a=function(_0x310a59,_0x46232e){_0x310a59=_0x310a59-0xd1;var _0x281cd9=_0x49ee0d[_0x310a59];return _0x281cd9;},_0x310a(_0xf9485b,_0x2b6654);}Object['defineProperty'](exports,_0x2c987b(0xd4),{'enumerable':!![],'get':function(){var _0x1825a7=_0x2c987b;return local_delete_1[_0x1825a7(0xd4)];}});var azure_delete_1=require(_0x2c987b(0xe2));function _0x49ee(){var _0xec3e50=['__esModule','526653fKRTDE','./local-delete','./aws-s3-delete','LocalDelete','AwsS3Delete','1509732ChQLYF','BaseDelete','AzureDelete','1240040uqaerL','38NZtkQn','48bpCboo','defineProperty','7cJWHSj','5386MWUIsT','132822xHnOXI','860442iCwPAG','9999580FGRTMT','./azure-delete'];_0x49ee=function(){return _0xec3e50;};return _0x49ee();}Object['defineProperty'](exports,_0x2c987b(0xd8),{'enumerable':!![],'get':function(){return azure_delete_1['AzureDelete'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x447d2e=_0x4cf9;(function(_0x590eda,_0x117d49){const _0x48658a=_0x4cf9,_0x4392a2=_0x590eda();while(!![]){try{const _0x33b250=-parseInt(_0x48658a(0xdf))/0x1+parseInt(_0x48658a(0xd8))/0x2+-parseInt(_0x48658a(0xd9))/0x3+parseInt(_0x48658a(0xda))/0x4+-parseInt(_0x48658a(0xde))/0x5+parseInt(_0x48658a(0xd7))/0x6*(parseInt(_0x48658a(0xd2))/0x7)+parseInt(_0x48658a(0xd0))/0x8;if(_0x33b250===_0x117d49)break;else _0x4392a2['push'](_0x4392a2['shift']());}catch(_0x3e2468){_0x4392a2['push'](_0x4392a2['shift']());}}}(_0x4054,0xebeed));var __awaiter=this&&this['__awaiter']||function(_0xeeb58a,_0x138087,_0xdb5041,_0x39dd72){function _0x2eac69(_0x4b17e6){return _0x4b17e6 instanceof _0xdb5041?_0x4b17e6:new _0xdb5041(function(_0x55f943){_0x55f943(_0x4b17e6);});}return new(_0xdb5041||(_0xdb5041=Promise))(function(_0x5c27f1,_0x3534d2){const _0x47dc10=_0x4cf9;function _0x22f20f(_0x2ad676){const _0x470983=_0x4cf9;try{_0x4e13a2(_0x39dd72[_0x470983(0xcf)](_0x2ad676));}catch(_0x4cff33){_0x3534d2(_0x4cff33);}}function _0x3f586a(_0x366ad0){const _0xc22a23=_0x4cf9;try{_0x4e13a2(_0x39dd72[_0xc22a23(0xd5)](_0x366ad0));}catch(_0x2337d0){_0x3534d2(_0x2337d0);}}function _0x4e13a2(_0x233d27){const _0x36d4db=_0x4cf9;_0x233d27[_0x36d4db(0xdc)]?_0x5c27f1(_0x233d27[_0x36d4db(0xce)]):_0x2eac69(_0x233d27[_0x36d4db(0xce)])[_0x36d4db(0xcd)](_0x22f20f,_0x3f586a);}_0x4e13a2((_0x39dd72=_0x39dd72[_0x47dc10(0xd4)](_0xeeb58a,_0x138087||[]))[_0x47dc10(0xcf)]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['LocalDelete']=void 0x0;function _0x4cf9(_0x391c3d,_0x535cca){const _0x40543=_0x4054();return _0x4cf9=function(_0x4cf91e,_0x3e9a79){_0x4cf91e=_0x4cf91e-0xcd;let _0x451209=_0x40543[_0x4cf91e];return _0x451209;},_0x4cf9(_0x391c3d,_0x535cca);}function _0x4054(){const _0x13256d=['throw','execute','36keBUbX','1331366LNdAXi','112821PQTPlw','4320424JsMJVu','LocalDelete','done','BaseDelete','719180ilhAXK','1211845lZLzQm','then','value','next','1531168VuWksb','isExistsPath','492898WcxWQO','@flosum/utils','apply'];_0x4054=function(){return _0x13256d;};return _0x4054();}const promises_1=require('fs/promises'),utils_1=require(_0x447d2e(0xd3)),_1=require('./');class LocalDelete extends _1[_0x447d2e(0xdd)]{[_0x447d2e(0xd6)](_0x4fe423){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5a518b=_0x4cf9;if(yield utils_1['FsUtils'][_0x5a518b(0xd1)](_0x4fe423))yield(0x0,promises_1['rm'])(_0x4fe423,{'recursive':!![]});});}}exports[_0x447d2e(0xdb)]=LocalDelete;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import { AwsS3Credentials } from '../credentials';
|
|
4
4
|
import { BaseDeploy } from './';
|
|
5
5
|
import * as stream from 'stream';
|
|
6
|
-
import { StorageClass } from '@aws-sdk/client-s3';
|
|
6
|
+
import { S3Client, StorageClass } from '@aws-sdk/client-s3';
|
|
7
7
|
import { AwsBuildMiddleware } from '../types';
|
|
8
8
|
export declare class AwsS3Deploy extends BaseDeploy<AwsS3Credentials> {
|
|
9
9
|
protected credentials: AwsS3Credentials;
|
|
10
10
|
private storageClass;
|
|
11
11
|
private readonly s3Client;
|
|
12
|
-
constructor(credentials: AwsS3Credentials, storageClass: StorageClass, middlewareStack?: AwsBuildMiddleware[]);
|
|
12
|
+
constructor(credentials: AwsS3Credentials, storageClass: StorageClass, middlewareStack?: AwsBuildMiddleware[], s3Client?: S3Client);
|
|
13
13
|
private upload;
|
|
14
14
|
execute(file: Buffer | stream.Readable, pathToFile: string): Promise<void>;
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x12f521=_0x4412;(function(_0x406fb3,_0xdec3f5){const _0x268931=_0x4412,_0x2befd4=_0x406fb3();while(!![]){try{const _0x21ecf4=-parseInt(_0x268931(0x161))/0x1+parseInt(_0x268931(0x15b))/0x2*(-parseInt(_0x268931(0x16d))/0x3)+-parseInt(_0x268931(0x176))/0x4+-parseInt(_0x268931(0x157))/0x5+-parseInt(_0x268931(0x16a))/0x6+-parseInt(_0x268931(0x16b))/0x7+parseInt(_0x268931(0x16c))/0x8;if(_0x21ecf4===_0xdec3f5)break;else _0x2befd4['push'](_0x2befd4['shift']());}catch(_0x4153c8){_0x2befd4['push'](_0x2befd4['shift']());}}}(_0x5d54,0x3c110));var __awaiter=this&&this[_0x12f521(0x173)]||function(_0x506335,_0x461d5f,_0x42f4b3,_0x5a0a2b){function _0x30b1af(_0x3fe34e){return _0x3fe34e instanceof _0x42f4b3?_0x3fe34e:new _0x42f4b3(function(_0x1fe40a){_0x1fe40a(_0x3fe34e);});}return new(_0x42f4b3||(_0x42f4b3=Promise))(function(_0x56719e,_0x4fd461){const _0x22443f=_0x4412;function _0x28b4ac(_0x4bc805){const _0x22637e=_0x4412;try{_0x371515(_0x5a0a2b[_0x22637e(0x15e)](_0x4bc805));}catch(_0x1772d5){_0x4fd461(_0x1772d5);}}function _0x3c681b(_0x23f473){const _0x1cfcf0=_0x4412;try{_0x371515(_0x5a0a2b[_0x1cfcf0(0x168)](_0x23f473));}catch(_0x4a518a){_0x4fd461(_0x4a518a);}}function _0x371515(_0x2c9877){const _0x368d0a=_0x4412;_0x2c9877[_0x368d0a(0x163)]?_0x56719e(_0x2c9877[_0x368d0a(0x159)]):_0x30b1af(_0x2c9877[_0x368d0a(0x159)])[_0x368d0a(0x158)](_0x28b4ac,_0x3c681b);}_0x371515((_0x5a0a2b=_0x5a0a2b[_0x22443f(0x178)](_0x506335,_0x461d5f||[]))[_0x22443f(0x15e)]());});},__importDefault=this&&this['__importDefault']||function(_0x2cba4a){const _0x2b647d=_0x12f521;return _0x2cba4a&&_0x2cba4a[_0x2b647d(0x162)]?_0x2cba4a:{'default':_0x2cba4a};};Object[_0x12f521(0x16f)](exports,_0x12f521(0x162),{'value':!![]}),exports['AwsS3Deploy']=void 0x0;const path_1=__importDefault(require(_0x12f521(0x160))),_1=require('./'),lib_storage_1=require(_0x12f521(0x170)),aws_s3_utils_1=require(_0x12f521(0x15a));class AwsS3Deploy extends _1[_0x12f521(0x15d)]{constructor(_0x45f38b,_0x1b6098,_0x57fb2a,_0x39739d){const _0x489821=_0x12f521;super(_0x45f38b),this[_0x489821(0x15c)]=_0x45f38b,this[_0x489821(0x16e)]=_0x1b6098,this[_0x489821(0x179)]=_0x39739d||aws_s3_utils_1[_0x489821(0x177)][_0x489821(0x172)](_0x45f38b,_0x57fb2a);}['upload'](_0x51cbe0,_0x47104c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2187b0=_0x4412,_0x204cf5=new lib_storage_1[(_0x2187b0(0x165))]({'client':this[_0x2187b0(0x179)],'params':{'Bucket':this['credentials'][_0x2187b0(0x15f)],'Key':_0x47104c,'Body':_0x51cbe0,'StorageClass':this[_0x2187b0(0x16e)]}});yield _0x204cf5[_0x2187b0(0x163)]();});}[_0x12f521(0x171)](_0x170629,_0x3491b6){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1a4417=_0x4412;try{const _0x408e29=_0x3491b6[_0x1a4417(0x166)](path_1['default']['sep'])[_0x1a4417(0x174)](path_1[_0x1a4417(0x164)][_0x1a4417(0x169)][_0x1a4417(0x175)]);yield this['upload'](_0x170629,_0x408e29);}catch(_0x46508a){throw _0x46508a;}});}}function _0x4412(_0x3abc4f,_0x523164){const _0x5d54e8=_0x5d54();return _0x4412=function(_0x441263,_0x3ddd11){_0x441263=_0x441263-0x157;let _0x3c40bb=_0x5d54e8[_0x441263];return _0x3c40bb;},_0x4412(_0x3abc4f,_0x523164);}function _0x5d54(){const _0x4e94c1=['__awaiter','join','sep','1405584FxrKxM','AwsS3Utils','apply','s3Client','1955955TMecTv','then','value','../utils/aws-s3.utils','7086abzApD','credentials','BaseDeploy','next','bucketName','path','470721dXitFE','__esModule','done','default','Upload','split','AwsS3Deploy','throw','posix','89040TahXNM','2265368Uhrbbz','17641992rrMMzs','345wHbdkP','storageClass','defineProperty','@aws-sdk/lib-storage','execute','createS3Client'];_0x5d54=function(){return _0x4e94c1;};return _0x5d54();}exports[_0x12f521(0x167)]=AwsS3Deploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3a0486=_0x2dbe;(function(_0x1d07c1,_0x577446){const _0x49a057=_0x2dbe,_0x373b43=_0x1d07c1();while(!![]){try{const _0xf821ca=parseInt(_0x49a057(0x87))/0x1+-parseInt(_0x49a057(0x8b))/0x2*(-parseInt(_0x49a057(0x78))/0x3)+-parseInt(_0x49a057(0x81))/0x4*(parseInt(_0x49a057(0x6f))/0x5)+-parseInt(_0x49a057(0x89))/0x6+-parseInt(_0x49a057(0x74))/0x7+-parseInt(_0x49a057(0x82))/0x8*(-parseInt(_0x49a057(0x77))/0x9)+parseInt(_0x49a057(0x85))/0xa;if(_0xf821ca===_0x577446)break;else _0x373b43['push'](_0x373b43['shift']());}catch(_0x243daf){_0x373b43['push'](_0x373b43['shift']());}}}(_0x16a4,0x7228a));var __awaiter=this&&this[_0x3a0486(0x80)]||function(_0x31777c,_0x2e5c7b,_0x2c9220,_0x36ad2e){function _0x43fc5b(_0x339e20){return _0x339e20 instanceof _0x2c9220?_0x339e20:new _0x2c9220(function(_0x478c78){_0x478c78(_0x339e20);});}return new(_0x2c9220||(_0x2c9220=Promise))(function(_0x287b8f,_0x31e526){function _0x323998(_0x51941e){const _0x39d2b8=_0x2dbe;try{_0x2ca559(_0x36ad2e[_0x39d2b8(0x73)](_0x51941e));}catch(_0x3329c0){_0x31e526(_0x3329c0);}}function _0x5e1467(_0x5a2a51){const _0x120bfb=_0x2dbe;try{_0x2ca559(_0x36ad2e[_0x120bfb(0x79)](_0x5a2a51));}catch(_0x59bc4b){_0x31e526(_0x59bc4b);}}function _0x2ca559(_0x556942){const _0x5da97f=_0x2dbe;_0x556942[_0x5da97f(0x84)]?_0x287b8f(_0x556942['value']):_0x43fc5b(_0x556942[_0x5da97f(0x86)])[_0x5da97f(0x8a)](_0x323998,_0x5e1467);}_0x2ca559((_0x36ad2e=_0x36ad2e['apply'](_0x31777c,_0x2e5c7b||[]))['next']());});},__importDefault=this&&this[_0x3a0486(0x7a)]||function(_0x571fac){return _0x571fac&&_0x571fac['__esModule']?_0x571fac:{'default':_0x571fac};};Object[_0x3a0486(0x6d)](exports,_0x3a0486(0x7c),{'value':!![]}),exports['AzureDeploy']=void 0x0;function _0x2dbe(_0x497bba,_0x3b0e2d){const _0x16a41f=_0x16a4();return _0x2dbe=function(_0x2dbe7b,_0x22d19a){_0x2dbe7b=_0x2dbe7b-0x6b;let _0x1173ba=_0x16a41f[_0x2dbe7b];return _0x1173ba;},_0x2dbe(_0x497bba,_0x3b0e2d);}const path_1=__importDefault(require(_0x3a0486(0x6e))),_1=require('./'),azure_utils_1=require(_0x3a0486(0x83));function _0x16a4(){const _0x5a1e76=['AzureUtils','5119434oBIwtb','then','14PUowaN','posix','AzureDeploy','join','getBlockBlobClient','defineProperty','path','285265zdSpAw','sep','byteLength','default','next','6210792WGdFDy','containerClient','credentials','1223190XdYXMd','276132kvlDJJ','throw','__importDefault','BaseDeploy','__esModule','split','uploadStream','upload','__awaiter','16uCDONz','24XPnEnl','../utils/azure.utils','done','9582760hOEgXd','value','425987ZVqfVJ'];_0x16a4=function(){return _0x5a1e76;};return _0x16a4();}class AzureDeploy extends _1[_0x3a0486(0x7b)]{constructor(_0x4a6cc2){const _0x3854d7=_0x3a0486;super(_0x4a6cc2),this[_0x3854d7(0x76)]=_0x4a6cc2,this[_0x3854d7(0x75)]=azure_utils_1[_0x3854d7(0x88)]['createAzureBlobContainerClient'](this[_0x3854d7(0x76)]);}[_0x3a0486(0x7f)](_0x37dc01,_0x470844){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3f4c9f=_0x2dbe,_0x3f8050=this[_0x3f4c9f(0x75)][_0x3f4c9f(0x6c)](_0x470844);_0x37dc01 instanceof Buffer?yield _0x3f8050[_0x3f4c9f(0x7f)](_0x37dc01,_0x37dc01[_0x3f4c9f(0x71)]):yield _0x3f8050[_0x3f4c9f(0x7e)](_0x37dc01);});}['execute'](_0x1d18d8,_0x247089){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5a6f42=_0x2dbe,_0x47abf8=_0x247089[_0x5a6f42(0x7d)](path_1[_0x5a6f42(0x72)][_0x5a6f42(0x70)])[_0x5a6f42(0x6b)](path_1[_0x5a6f42(0x72)][_0x5a6f42(0x8c)][_0x5a6f42(0x70)]);yield this[_0x5a6f42(0x7f)](_0x1d18d8,_0x47abf8);});}}exports[_0x3a0486(0x8d)]=AzureDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x4e88ea=_0x1e15;function _0x1e15(_0x2fd0b3,_0x2645d8){var _0x3d3467=_0x3d34();return _0x1e15=function(_0x1e15e4,_0x243490){_0x1e15e4=_0x1e15e4-0x151;var _0x34cfc7=_0x3d3467[_0x1e15e4];return _0x34cfc7;},_0x1e15(_0x2fd0b3,_0x2645d8);}(function(_0xae5e18,_0x45894a){var _0x53bbd3=_0x1e15,_0x5c6829=_0xae5e18();while(!![]){try{var _0x4db374=-parseInt(_0x53bbd3(0x155))/0x1*(parseInt(_0x53bbd3(0x157))/0x2)+-parseInt(_0x53bbd3(0x15c))/0x3+parseInt(_0x53bbd3(0x159))/0x4*(-parseInt(_0x53bbd3(0x15d))/0x5)+-parseInt(_0x53bbd3(0x15f))/0x6+parseInt(_0x53bbd3(0x15a))/0x7*(parseInt(_0x53bbd3(0x154))/0x8)+-parseInt(_0x53bbd3(0x153))/0x9*(parseInt(_0x53bbd3(0x158))/0xa)+-parseInt(_0x53bbd3(0x15b))/0xb*(-parseInt(_0x53bbd3(0x15e))/0xc);if(_0x4db374===_0x45894a)break;else _0x5c6829['push'](_0x5c6829['shift']());}catch(_0x53bce8){_0x5c6829['push'](_0x5c6829['shift']());}}}(_0x3d34,0x8eb65));Object[_0x4e88ea(0x151)](exports,_0x4e88ea(0x152),{'value':!![]}),exports[_0x4e88ea(0x156)]=void 0x0;class BaseDeploy{constructor(_0x209a34){this['credentials']=_0x209a34;}}exports[_0x4e88ea(0x156)]=BaseDeploy;function _0x3d34(){var _0x324f36=['BaseDeploy','66HjDCRk','988940bRcVSE','116168MwNDoL','28ijepXg','376343NvNPVz','1186692EYxaXV','30SQMIHb','144DYCsRc','425370pGyolX','defineProperty','__esModule','9hYThZR','1881448GdsNFw','822hzluLJ'];_0x3d34=function(){return _0x324f36;};return _0x3d34();}
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x5adfdc=_0x38b1;(function(_0x5afb3a,_0x3350e6){var _0x4b2a9e=_0x38b1,_0x53d815=_0x5afb3a();while(!![]){try{var _0xabc37a=-parseInt(_0x4b2a9e(0x103))/0x1+-parseInt(_0x4b2a9e(0x113))/0x2+parseInt(_0x4b2a9e(0x10b))/0x3*(parseInt(_0x4b2a9e(0x10c))/0x4)+parseInt(_0x4b2a9e(0x112))/0x5+parseInt(_0x4b2a9e(0x102))/0x6*(parseInt(_0x4b2a9e(0x10d))/0x7)+parseInt(_0x4b2a9e(0x105))/0x8*(parseInt(_0x4b2a9e(0x114))/0x9)+-parseInt(_0x4b2a9e(0x115))/0xa*(parseInt(_0x4b2a9e(0x109))/0xb);if(_0xabc37a===_0x3350e6)break;else _0x53d815['push'](_0x53d815['shift']());}catch(_0x64dc61){_0x53d815['push'](_0x53d815['shift']());}}}(_0x416a,0x2784a));function _0x38b1(_0xb0368c,_0x139295){var _0x416a5b=_0x416a();return _0x38b1=function(_0x38b1cd,_0x513880){_0x38b1cd=_0x38b1cd-0x102;var _0x55865f=_0x416a5b[_0x38b1cd];return _0x55865f;},_0x38b1(_0xb0368c,_0x139295);}Object[_0x5adfdc(0x106)](exports,_0x5adfdc(0x104),{'value':!![]}),exports[_0x5adfdc(0x110)]=exports[_0x5adfdc(0x108)]=exports[_0x5adfdc(0x10e)]=exports[_0x5adfdc(0x107)]=void 0x0;var base_deploy_1=require(_0x5adfdc(0x10a));Object[_0x5adfdc(0x106)](exports,'BaseDeploy',{'enumerable':!![],'get':function(){var _0x44c720=_0x5adfdc;return base_deploy_1[_0x44c720(0x107)];}});var aws_s3_deploy_1=require('./aws-s3-deploy');Object[_0x5adfdc(0x106)](exports,'AwsS3Deploy',{'enumerable':!![],'get':function(){var _0x4d40c3=_0x5adfdc;return aws_s3_deploy_1[_0x4d40c3(0x10e)];}});var local_deploy_1=require(_0x5adfdc(0x111));function _0x416a(){var _0x2313c6=['20tbHOJq','6uWseZj','297811XMAHTh','__esModule','1877592xiPLQh','defineProperty','BaseDeploy','LocalDeploy','1171973sTbRax','./base-deploy','73455YWHHib','20dDfqlm','1848791MwwQJZ','AwsS3Deploy','./azure-deploy','AzureDeploy','./local-deploy','465450MxWRmm','83128DagxSi','9nqpTkb'];_0x416a=function(){return _0x2313c6;};return _0x416a();}Object[_0x5adfdc(0x106)](exports,'LocalDeploy',{'enumerable':!![],'get':function(){var _0x371ae4=_0x5adfdc;return local_deploy_1[_0x371ae4(0x108)];}});var azure_deploy_1=require(_0x5adfdc(0x10f));Object[_0x5adfdc(0x106)](exports,_0x5adfdc(0x110),{'enumerable':!![],'get':function(){return azure_deploy_1['AzureDeploy'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0xab37b=_0x4026;(function(_0x16ba50,_0x2f1836){const _0x2f14b6=_0x4026,_0x3c62d3=_0x16ba50();while(!![]){try{const _0x51a0e7=parseInt(_0x2f14b6(0x127))/0x1+-parseInt(_0x2f14b6(0x122))/0x2*(parseInt(_0x2f14b6(0x119))/0x3)+-parseInt(_0x2f14b6(0x11b))/0x4*(parseInt(_0x2f14b6(0x115))/0x5)+-parseInt(_0x2f14b6(0x11d))/0x6*(parseInt(_0x2f14b6(0x11a))/0x7)+-parseInt(_0x2f14b6(0x125))/0x8*(-parseInt(_0x2f14b6(0x12c))/0x9)+parseInt(_0x2f14b6(0x123))/0xa*(parseInt(_0x2f14b6(0x11c))/0xb)+parseInt(_0x2f14b6(0x12f))/0xc;if(_0x51a0e7===_0x2f1836)break;else _0x3c62d3['push'](_0x3c62d3['shift']());}catch(_0x14e764){_0x3c62d3['push'](_0x3c62d3['shift']());}}}(_0x2b05,0x25dae));function _0x4026(_0x4ff873,_0x3608d6){const _0x2b0524=_0x2b05();return _0x4026=function(_0x4026cc,_0x2297bb){_0x4026cc=_0x4026cc-0x113;let _0x538d38=_0x2b0524[_0x4026cc];return _0x538d38;},_0x4026(_0x4ff873,_0x3608d6);}function _0x2b05(){const _0x59364a=['2773200OIgEhX','value','next','219045KnrRrb','then','defineProperty','mkdir','306LAkjUu','2443fTqSdv','28ufzxSy','3279419iVTFrV','12daRYfQ','BaseDeploy','__awaiter','execute','__esModule','2712TyjPBX','10MhDKzl','dirname','5224NLxRJZ','__importDefault','38195ocBnJj','done','isExistsPath','apply','writeFile','459xHknMM','FsUtils','LocalDeploy'];_0x2b05=function(){return _0x59364a;};return _0x2b05();}var __awaiter=this&&this[_0xab37b(0x11f)]||function(_0x3857b3,_0x5b9321,_0x51a41c,_0x5d4629){function _0x33f4e1(_0x405dab){return _0x405dab instanceof _0x51a41c?_0x405dab:new _0x51a41c(function(_0xcdd6d0){_0xcdd6d0(_0x405dab);});}return new(_0x51a41c||(_0x51a41c=Promise))(function(_0x5bfd1f,_0x2623b2){const _0xcac264=_0x4026;function _0x1f8716(_0x18eb53){try{_0x263ab2(_0x5d4629['next'](_0x18eb53));}catch(_0x123357){_0x2623b2(_0x123357);}}function _0x1a8067(_0x18cab6){try{_0x263ab2(_0x5d4629['throw'](_0x18cab6));}catch(_0x28bcd8){_0x2623b2(_0x28bcd8);}}function _0x263ab2(_0x440d9c){const _0x5af51c=_0x4026;_0x440d9c[_0x5af51c(0x128)]?_0x5bfd1f(_0x440d9c[_0x5af51c(0x113)]):_0x33f4e1(_0x440d9c['value'])[_0x5af51c(0x116)](_0x1f8716,_0x1a8067);}_0x263ab2((_0x5d4629=_0x5d4629[_0xcac264(0x12a)](_0x3857b3,_0x5b9321||[]))[_0xcac264(0x114)]());});},__importDefault=this&&this[_0xab37b(0x126)]||function(_0x912825){return _0x912825&&_0x912825['__esModule']?_0x912825:{'default':_0x912825};};Object[_0xab37b(0x117)](exports,_0xab37b(0x121),{'value':!![]}),exports[_0xab37b(0x12e)]=void 0x0;const path_1=__importDefault(require('path')),promises_1=require('fs/promises'),utils_1=require('@flosum/utils'),_1=require('./');class LocalDeploy extends _1[_0xab37b(0x11e)]{[_0xab37b(0x120)](_0x3386e5,_0xec8c0e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x55a835=_0x4026;try{const _0x26dc85=path_1['default'][_0x55a835(0x124)](_0xec8c0e),_0x1f67f4=yield utils_1[_0x55a835(0x12d)][_0x55a835(0x129)](_0x26dc85);!_0x1f67f4&&(yield(0x0,promises_1[_0x55a835(0x118)])(_0x26dc85,{'recursive':!![]})),yield(0x0,promises_1[_0x55a835(0x12b)])(_0xec8c0e,_0x3386e5);}catch(_0x4f9262){(yield utils_1['FsUtils']['isExistsPath'](_0xec8c0e))&&(yield(0x0,promises_1['rm'])(_0xec8c0e,{'recursive':!![]}));throw _0x4f9262;}});}}exports[_0xab37b(0x12e)]=LocalDeploy;
|
package/dist/factory.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ import { BaseFileSizeRetriever } from './file-size-retriever';
|
|
|
7
7
|
import { StorageClass, Tier } from '@aws-sdk/client-s3';
|
|
8
8
|
import { AwsBuildMiddleware } from './types';
|
|
9
9
|
import { BaseCopy } from './copy';
|
|
10
|
+
import { BaseStorageInstance } from './instances/base.storage-instance';
|
|
11
|
+
export declare type CreateInstanceOptions = {
|
|
12
|
+
credentials: BaseCredentials;
|
|
13
|
+
middlewareStack?: AwsBuildMiddleware[];
|
|
14
|
+
};
|
|
10
15
|
export declare class StorageFactory {
|
|
11
16
|
static createRetrieve(storageType: StorageType, credentials: BaseCredentials, path: string, restoreType?: Tier, cachePath?: string, middlewareStack?: AwsBuildMiddleware[]): BaseRetrieve;
|
|
12
17
|
static createDeploy(storageType: StorageType, credentials: BaseCredentials, storageClass?: StorageClass, middlewareStack?: AwsBuildMiddleware[]): BaseDeploy;
|
|
@@ -15,4 +20,5 @@ export declare class StorageFactory {
|
|
|
15
20
|
static createFileSizeRetriever(storageType: StorageType, credentials: BaseCredentials, middlewareStack?: AwsBuildMiddleware[]): BaseFileSizeRetriever;
|
|
16
21
|
static createRetrieveHelper(storageType: StorageType, credentials: BaseCredentials, sourcePath: string): BaseHelper;
|
|
17
22
|
static createCopy(storageType: StorageType, credentials: BaseCredentials): BaseCopy;
|
|
23
|
+
static createInstance({ credentials, middlewareStack }: CreateInstanceOptions): BaseStorageInstance;
|
|
18
24
|
}
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3024d6=_0x58d8;(function(_0x51edc8,_0x2e6640){const _0x5d59b9=_0x58d8,_0x417cfe=_0x51edc8();while(!![]){try{const _0x4329af=-parseInt(_0x5d59b9(0x98))/0x1+parseInt(_0x5d59b9(0x90))/0x2+parseInt(_0x5d59b9(0x91))/0x3+parseInt(_0x5d59b9(0xa0))/0x4+parseInt(_0x5d59b9(0xb7))/0x5*(parseInt(_0x5d59b9(0xb3))/0x6)+-parseInt(_0x5d59b9(0x9f))/0x7*(-parseInt(_0x5d59b9(0x9b))/0x8)+parseInt(_0x5d59b9(0xb0))/0x9*(parseInt(_0x5d59b9(0xad))/0xa);if(_0x4329af===_0x2e6640)break;else _0x417cfe['push'](_0x417cfe['shift']());}catch(_0x528bac){_0x417cfe['push'](_0x417cfe['shift']());}}}(_0x537e,0xf41eb));Object['defineProperty'](exports,_0x3024d6(0x9c),{'value':!![]}),exports[_0x3024d6(0xa2)]=void 0x0;function _0x58d8(_0x5c1835,_0x1a9dd8){const _0x537ec3=_0x537e();return _0x58d8=function(_0x58d823,_0xbb403d){_0x58d823=_0x58d823-0x8b;let _0x300a3c=_0x537ec3[_0x58d823];return _0x300a3c;},_0x58d8(_0x5c1835,_0x1a9dd8);}const storage_type_enum_1=require(_0x3024d6(0xa8)),credentials_1=require(_0x3024d6(0xba)),delete_1=require(_0x3024d6(0x95)),deploy_1=require(_0x3024d6(0xb6)),retrieve_1=require(_0x3024d6(0xaf)),file_size_retriever_1=require(_0x3024d6(0xbd)),copy_1=require(_0x3024d6(0xa6)),instances_1=require('./instances');class StorageFactory{static[_0x3024d6(0xa4)](_0x11f992,_0x42d810,_0x28a29a,_0x30ebbd,_0x16d444,_0x134454){const _0x3b385a=_0x3024d6;switch(_0x11f992){case storage_type_enum_1[_0x3b385a(0x8c)][_0x3b385a(0x8f)]:return new retrieve_1[(_0x3b385a(0x9d))](_0x42d810,_0x28a29a,_0x30ebbd,_0x16d444,_0x134454);case storage_type_enum_1[_0x3b385a(0x8c)][_0x3b385a(0xab)]:return new retrieve_1[(_0x3b385a(0xbe))](_0x42d810,_0x28a29a);case storage_type_enum_1['StorageType'][_0x3b385a(0x96)]:return new retrieve_1[(_0x3b385a(0x8d))](_0x42d810,_0x28a29a,_0x16d444);default:throw new Error(_0x3b385a(0x8e)+_0x11f992+'\x22');}}static[_0x3024d6(0xb2)](_0x59e52e,_0x4fccfc,_0x314ba2,_0x23e864){const _0xa9711=_0x3024d6;switch(_0x59e52e){case storage_type_enum_1[_0xa9711(0x8c)]['AWS_S3']:return new deploy_1[(_0xa9711(0xa1))](_0x4fccfc,_0x314ba2,_0x23e864);case storage_type_enum_1['StorageType']['Local']:return new deploy_1[(_0xa9711(0x9e))](_0x4fccfc);case storage_type_enum_1[_0xa9711(0x8c)]['AZURE_BLOB']:return new deploy_1[(_0xa9711(0x9a))](_0x4fccfc);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x59e52e+'\x22');}}static['createDelete'](_0x2eace6,_0xd6b444,_0x1a1011){const _0x156017=_0x3024d6;switch(_0x2eace6){case storage_type_enum_1['StorageType']['AWS_S3']:return new delete_1[(_0x156017(0xac))](_0xd6b444,_0x1a1011);case storage_type_enum_1[_0x156017(0x8c)][_0x156017(0xab)]:return new delete_1['LocalDelete'](_0xd6b444);case storage_type_enum_1['StorageType'][_0x156017(0x96)]:return new delete_1[(_0x156017(0xb5))](_0xd6b444);default:throw new Error(_0x156017(0x8e)+_0x2eace6+'\x22');}}static[_0x3024d6(0xb4)](_0x3baeda,_0x689735){const _0x19d76e=_0x3024d6;switch(_0x3baeda){case storage_type_enum_1[_0x19d76e(0x8c)][_0x19d76e(0x8f)]:return new credentials_1[(_0x19d76e(0xb1))](_0x689735);case storage_type_enum_1[_0x19d76e(0x8c)][_0x19d76e(0xab)]:return new credentials_1[(_0x19d76e(0x97))]();case storage_type_enum_1[_0x19d76e(0x8c)]['AZURE_BLOB']:return new credentials_1[(_0x19d76e(0xa7))](_0x689735);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x3baeda+'\x22');}}static[_0x3024d6(0xa5)](_0x20dbe0,_0x18e928,_0x142710){const _0xcfcdb8=_0x3024d6;switch(_0x20dbe0){case storage_type_enum_1[_0xcfcdb8(0x8c)][_0xcfcdb8(0x8f)]:return new file_size_retriever_1['AwsS3FileSizeRetriever'](_0x18e928,_0x142710);case storage_type_enum_1[_0xcfcdb8(0x8c)]['Local']:return new file_size_retriever_1[(_0xcfcdb8(0x92))](_0x18e928);case storage_type_enum_1['StorageType'][_0xcfcdb8(0x96)]:return new file_size_retriever_1[(_0xcfcdb8(0xae))](_0x18e928);default:throw new Error(_0xcfcdb8(0x8e)+_0x20dbe0+'\x22');}}static[_0x3024d6(0x93)](_0x1802a4,_0x59c254,_0xcd80d9){const _0x4ac082=_0x3024d6;switch(_0x1802a4){case storage_type_enum_1[_0x4ac082(0x8c)][_0x4ac082(0xab)]:return new retrieve_1[(_0x4ac082(0xbc))](_0xcd80d9);case storage_type_enum_1[_0x4ac082(0x8c)][_0x4ac082(0x8f)]:return new retrieve_1['AwsS3Helper'](_0xcd80d9,_0x59c254);case storage_type_enum_1[_0x4ac082(0x8c)][_0x4ac082(0x96)]:return new retrieve_1['AzureHelper'](_0x59c254,_0xcd80d9);default:throw new Error(_0x4ac082(0x94)+_0x1802a4+'\x22');}}static[_0x3024d6(0xa9)](_0x1e0dcc,_0x26da71){const _0x1d1c30=_0x3024d6;switch(_0x1e0dcc){case storage_type_enum_1[_0x1d1c30(0x8c)][_0x1d1c30(0xab)]:return new copy_1[(_0x1d1c30(0xbb))](_0x26da71);case storage_type_enum_1[_0x1d1c30(0x8c)]['AWS_S3']:return new copy_1['AwsS3Copy'](_0x26da71);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x1e0dcc+'\x22');}}static[_0x3024d6(0xaa)]({credentials:_0x813535,middlewareStack:_0x4c196f}){const _0x9225fb=_0x3024d6;if(_0x813535 instanceof credentials_1['AwsS3Credentials'])return new instances_1[(_0x9225fb(0x99))]({'credentials':_0x813535,'middlewareStack':_0x4c196f});if(_0x813535 instanceof credentials_1['LocalCredentials'])return new instances_1[(_0x9225fb(0xa3))]({'credentials':_0x813535});throw new Error(_0x9225fb(0x8b)+_0x813535[_0x9225fb(0xb9)][_0x9225fb(0xb8)]+'\x22');}}exports['StorageFactory']=StorageFactory;function _0x537e(){const _0x3abe35=['name','constructor','./credentials','LocalCopy','LocalHelper','./file-size-retriever','LocalRetrieve','Unknown\x20storage\x20credentials\x20-\x20\x22','StorageType','AzureRetrieve','Unknown\x20storage\x20type\x20-\x20\x22','AWS_S3','519804xJZrny','889869efsUcy','LocalFileSizeRetriever','createRetrieveHelper','Unknown\x20storage\x20type\x20for\x20creating\x20retrieve\x20helper\x20-\x20\x22','./delete','AZURE_BLOB','LocalCredentials','1474091oYyZjr','AwsS3StorageInstance','AzureDeploy','72TkYLcL','__esModule','AwsS3Retrieve','LocalDeploy','188867SlCVQb','3759492cfzkBv','AwsS3Deploy','StorageFactory','LocalStorageInstance','createRetrieve','createFileSizeRetriever','./copy','AzureCredentials','./types/storage-type.enum','createCopy','createInstance','Local','AwsS3Delete','70cMMkKI','AzureFileSizeRetriever','./retrieve','745947hmDxjA','AwsS3Credentials','createDeploy','927588foeXqN','createCredentials','AzureDelete','./deploy','5YjKWLI'];_0x537e=function(){return _0x3abe35;};return _0x537e();}
|