@flosum/storages 1.1.0 → 1.2.1-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credentials/aws-s3-credentials.d.ts +1 -0
- package/dist/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/azure-credentials.d.ts +11 -0
- package/dist/credentials/azure-credentials.js +1 -0
- package/dist/credentials/base-credentials.js +1 -1
- package/dist/credentials/index.d.ts +1 -0
- 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.d.ts +8 -0
- package/dist/delete/azure-delete.js +1 -0
- package/dist/delete/base-delete.js +1 -1
- package/dist/delete/index.d.ts +1 -0
- 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.d.ts +12 -0
- package/dist/deploy/azure-deploy.js +1 -0
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/index.d.ts +1 -0
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.d.ts +5 -5
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.d.ts +1 -0
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.d.ts +7 -0
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -0
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.d.ts +1 -0
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.d.ts +1 -4
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.d.ts +13 -0
- package/dist/retrieve/azure-retrieve.js +1 -0
- package/dist/retrieve/base-retrieve.d.ts +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/index.d.ts +1 -0
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.d.ts +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.d.ts +2 -2
- package/dist/types/aws.types.js +1 -1
- package/dist/types/azure.types.d.ts +9 -0
- package/dist/types/azure.types.js +1 -0
- 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.d.ts +2 -1
- package/dist/types/storage-type.enum.js +1 -1
- package/dist/utils/aws-s3.utils.d.ts +3 -1
- package/dist/utils/aws-s3.utils.js +1 -1
- package/dist/utils/azure.utils.d.ts +7 -0
- package/dist/utils/azure.utils.js +1 -0
- package/dist/utils/cache.utils.d.ts +5 -0
- package/dist/utils/cache.utils.js +1 -0
- package/package.json +4 -3
|
@@ -2,6 +2,7 @@ import { BaseCredentials } from './base-credentials';
|
|
|
2
2
|
import { AwsCredentials } from '../types/aws.types';
|
|
3
3
|
export declare class AwsS3Credentials extends BaseCredentials<AwsCredentials> {
|
|
4
4
|
private readonly s3Client;
|
|
5
|
+
constructor(rawCredentials?: Record<string, any>);
|
|
5
6
|
get accessKeyId(): string;
|
|
6
7
|
get secretAccessKey(): string;
|
|
7
8
|
get bucketName(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x37b5(_0xb6aad2,_0xea986f){const _0x1f3ed1=_0x1f3e();return _0x37b5=function(_0x37b52b,_0x10564f){_0x37b52b=_0x37b52b-0x183;let _0x30b694=_0x1f3ed1[_0x37b52b];return _0x30b694;},_0x37b5(_0xb6aad2,_0xea986f);}const _0xa2203f=_0x37b5;(function(_0x1778b3,_0x560f0e){const _0x328dfb=_0x37b5,_0x37c0e7=_0x1778b3();while(!![]){try{const _0x32d2d8=parseInt(_0x328dfb(0x193))/0x1+-parseInt(_0x328dfb(0x19a))/0x2+parseInt(_0x328dfb(0x18b))/0x3+parseInt(_0x328dfb(0x19b))/0x4+-parseInt(_0x328dfb(0x191))/0x5*(-parseInt(_0x328dfb(0x18f))/0x6)+parseInt(_0x328dfb(0x195))/0x7*(parseInt(_0x328dfb(0x194))/0x8)+-parseInt(_0x328dfb(0x189))/0x9*(parseInt(_0x328dfb(0x188))/0xa);if(_0x32d2d8===_0x560f0e)break;else _0x37c0e7['push'](_0x37c0e7['shift']());}catch(_0x32f43d){_0x37c0e7['push'](_0x37c0e7['shift']());}}}(_0x1f3e,0xb7a9e));function _0x1f3e(){const _0x262792=['16zjRgwx','2298247nYOrdW','message','s3Client','credentials','region','2078488cWGNgH','10676gjiQXr','createS3Client','validate','then','../utils/aws-s3.utils','accessKeyId','AwsS3Credentials','send','bucketName','getCredentials','secretAccessKey','AwsS3Utils','27222330nsnjAJ','9iyqiPG','next','4159227BGUBYD','BaseCredentials','throw','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','138ScQvvF','./base-credentials','276385BzkAbz','__awaiter','1196672mKCjBg'];_0x1f3e=function(){return _0x262792;};return _0x1f3e();}var __awaiter=this&&this[_0xa2203f(0x192)]||function(_0x5b60b4,_0x1e1906,_0x3fc6f9,_0x45c761){function _0x1008fd(_0x8b3d1a){return _0x8b3d1a instanceof _0x3fc6f9?_0x8b3d1a:new _0x3fc6f9(function(_0x57bf2c){_0x57bf2c(_0x8b3d1a);});}return new(_0x3fc6f9||(_0x3fc6f9=Promise))(function(_0x5a78f0,_0x3cfa4b){const _0x262b21=_0x37b5;function _0x2b4fb5(_0x122285){const _0x59788c=_0x37b5;try{_0x483e4d(_0x45c761[_0x59788c(0x18a)](_0x122285));}catch(_0x3901e2){_0x3cfa4b(_0x3901e2);}}function _0x457d72(_0x47f420){const _0x462dc4=_0x37b5;try{_0x483e4d(_0x45c761[_0x462dc4(0x18d)](_0x47f420));}catch(_0x13430d){_0x3cfa4b(_0x13430d);}}function _0x483e4d(_0x3cb90b){const _0x4403a4=_0x37b5;_0x3cb90b['done']?_0x5a78f0(_0x3cb90b['value']):_0x1008fd(_0x3cb90b['value'])[_0x4403a4(0x19e)](_0x2b4fb5,_0x457d72);}_0x483e4d((_0x45c761=_0x45c761['apply'](_0x5b60b4,_0x1e1906||[]))[_0x262b21(0x18a)]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0xa2203f(0x1a1)]=void 0x0;const base_credentials_1=require(_0xa2203f(0x190)),client_s3_1=require('@aws-sdk/client-s3'),aws_s3_utils_1=require(_0xa2203f(0x19f));class AwsS3Credentials extends base_credentials_1[_0xa2203f(0x18c)]{constructor(_0x41b120){const _0x3b05f1=_0xa2203f;super(_0x41b120),this[_0x3b05f1(0x197)]=aws_s3_utils_1[_0x3b05f1(0x187)][_0x3b05f1(0x19c)](this[_0x3b05f1(0x198)]);}get[_0xa2203f(0x1a0)](){const _0x34bbd8=_0xa2203f;return this[_0x34bbd8(0x198)][_0x34bbd8(0x1a0)];}get[_0xa2203f(0x186)](){return this['credentials']['secretAccessKey'];}get['bucketName'](){const _0x3f9bf7=_0xa2203f;return this[_0x3f9bf7(0x198)][_0x3f9bf7(0x184)];}get[_0xa2203f(0x199)](){const _0x3f2bfa=_0xa2203f;return this[_0x3f2bfa(0x198)][_0x3f2bfa(0x199)];}[_0xa2203f(0x19d)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x7c2114=_0x37b5;try{const _0xd342fa=new client_s3_1['HeadBucketCommand']({'Bucket':this['credentials'][_0x7c2114(0x184)]});yield this[_0x7c2114(0x197)][_0x7c2114(0x183)](_0xd342fa);}catch(_0x3417e4){throw new Error(_0x7c2114(0x18e)+_0x3417e4[_0x7c2114(0x196)]);}});}[_0xa2203f(0x185)](_0x447385=![]){const _0x1b8c56=_0xa2203f;if(_0x447385)return{'bucketName':this['credentials'][_0x1b8c56(0x184)]};return this[_0x1b8c56(0x198)];}}exports['AwsS3Credentials']=AwsS3Credentials;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseCredentials } from './base-credentials';
|
|
2
|
+
import { AzureBlobCredentials } from '../types/azure.types';
|
|
3
|
+
export declare class AzureCredentials extends BaseCredentials<AzureBlobCredentials> {
|
|
4
|
+
private readonly blobServiceClient;
|
|
5
|
+
constructor(rawCredentials?: Record<string, any>);
|
|
6
|
+
get accountKey(): string;
|
|
7
|
+
get accountName(): string;
|
|
8
|
+
get containerName(): string;
|
|
9
|
+
validate(): Promise<void>;
|
|
10
|
+
getCredentials(hideSensitive?: boolean): Pick<AzureBlobCredentials, 'accountName'> | AzureBlobCredentials;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x4afa7e=_0x1aa8;function _0x28a0(){const _0x415562=['accountName','8LcyLDl','defineProperty','next','getCredentials','getContainerClient','1437591cdEzDm','121TxUDxu','28QoJSDi','10387830CIxSyZ','value','728648FrwDDW','BaseCredentials','7663455oweUdc','blobServiceClient','throw','validate','exists','accountKey','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','AzureCredentials','3815916EhKiuG','containerName','5CEWcVX','1502702ZMkway','createAzureBlobServiceClient','./base-credentials','apply','AzureUtils','6257388unqwSV','__esModule','credentials','then','1DfMzJi'];_0x28a0=function(){return _0x415562;};return _0x28a0();}(function(_0x4264ef,_0xecac6e){const _0x1b59ef=_0x1aa8,_0x23edaa=_0x4264ef();while(!![]){try{const _0x271f73=parseInt(_0x1b59ef(0x198))/0x1*(-parseInt(_0x1b59ef(0x18f))/0x2)+-parseInt(_0x1b59ef(0x19f))/0x3*(parseInt(_0x1b59ef(0x19a))/0x4)+-parseInt(_0x1b59ef(0x18e))/0x5*(-parseInt(_0x1b59ef(0x194))/0x6)+-parseInt(_0x1b59ef(0x1a1))/0x7*(parseInt(_0x1b59ef(0x182))/0x8)+-parseInt(_0x1b59ef(0x184))/0x9+-parseInt(_0x1b59ef(0x1a2))/0xa+-parseInt(_0x1b59ef(0x1a0))/0xb*(-parseInt(_0x1b59ef(0x18c))/0xc);if(_0x271f73===_0xecac6e)break;else _0x23edaa['push'](_0x23edaa['shift']());}catch(_0xa8476a){_0x23edaa['push'](_0x23edaa['shift']());}}}(_0x28a0,0x8cbda));var __awaiter=this&&this['__awaiter']||function(_0x30b64f,_0x4f4dfc,_0x5ef72a,_0x591add){function _0xbce771(_0x274728){return _0x274728 instanceof _0x5ef72a?_0x274728:new _0x5ef72a(function(_0x5f7f8c){_0x5f7f8c(_0x274728);});}return new(_0x5ef72a||(_0x5ef72a=Promise))(function(_0x27510b,_0x2385cd){const _0x1d8dff=_0x1aa8;function _0xddb772(_0x58297a){const _0x9498c4=_0x1aa8;try{_0x28fc82(_0x591add[_0x9498c4(0x19c)](_0x58297a));}catch(_0x2c1eb4){_0x2385cd(_0x2c1eb4);}}function _0xbdd3ac(_0x4b6a73){const _0x3ac3d7=_0x1aa8;try{_0x28fc82(_0x591add[_0x3ac3d7(0x186)](_0x4b6a73));}catch(_0x21c291){_0x2385cd(_0x21c291);}}function _0x28fc82(_0x1d8032){const _0x46b8f5=_0x1aa8;_0x1d8032['done']?_0x27510b(_0x1d8032[_0x46b8f5(0x181)]):_0xbce771(_0x1d8032[_0x46b8f5(0x181)])[_0x46b8f5(0x197)](_0xddb772,_0xbdd3ac);}_0x28fc82((_0x591add=_0x591add[_0x1d8dff(0x192)](_0x30b64f,_0x4f4dfc||[]))[_0x1d8dff(0x19c)]());});};Object[_0x4afa7e(0x19b)](exports,_0x4afa7e(0x195),{'value':!![]}),exports[_0x4afa7e(0x18b)]=void 0x0;const base_credentials_1=require(_0x4afa7e(0x191)),azure_utils_1=require('../utils/azure.utils');function _0x1aa8(_0x10f06c,_0xc304fa){const _0x28a030=_0x28a0();return _0x1aa8=function(_0x1aa849,_0x31055a){_0x1aa849=_0x1aa849-0x181;let _0x22137d=_0x28a030[_0x1aa849];return _0x22137d;},_0x1aa8(_0x10f06c,_0xc304fa);}class AzureCredentials extends base_credentials_1[_0x4afa7e(0x183)]{constructor(_0x46d31b){const _0x1a3f7a=_0x4afa7e;super(_0x46d31b),this[_0x1a3f7a(0x185)]=azure_utils_1[_0x1a3f7a(0x193)][_0x1a3f7a(0x190)](this['credentials']);}get[_0x4afa7e(0x189)](){const _0x3bcd60=_0x4afa7e;return this['credentials'][_0x3bcd60(0x189)];}get[_0x4afa7e(0x199)](){const _0x69026b=_0x4afa7e;return this['credentials'][_0x69026b(0x199)];}get[_0x4afa7e(0x18d)](){const _0x5a2762=_0x4afa7e;return this[_0x5a2762(0x196)][_0x5a2762(0x18d)];}[_0x4afa7e(0x187)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x445f05=_0x1aa8;try{const _0x1d960=this['blobServiceClient'][_0x445f05(0x19e)](this[_0x445f05(0x196)][_0x445f05(0x18d)]);yield _0x1d960[_0x445f05(0x188)]();}catch(_0x484302){throw new Error(_0x445f05(0x18a)+_0x484302['message']);}});}[_0x4afa7e(0x19d)](_0x3f61a5=![]){const _0x2ec1e1=_0x4afa7e;if(_0x3f61a5)return{'accountName':this[_0x2ec1e1(0x196)][_0x2ec1e1(0x199)]};return this[_0x2ec1e1(0x196)];}}exports[_0x4afa7e(0x18b)]=AzureCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x474178=_0x2e08;(function(_0x38ff90,_0x232943){var _0x206d93=_0x2e08,_0x3a2063=_0x38ff90();while(!![]){try{var _0xa6bdf6=parseInt(_0x206d93(0x9a))/0x1*(-parseInt(_0x206d93(0x8c))/0x2)+parseInt(_0x206d93(0x91))/0x3+parseInt(_0x206d93(0x92))/0x4*(parseInt(_0x206d93(0x8e))/0x5)+-parseInt(_0x206d93(0x99))/0x6+parseInt(_0x206d93(0x95))/0x7*(-parseInt(_0x206d93(0x93))/0x8)+-parseInt(_0x206d93(0x96))/0x9*(parseInt(_0x206d93(0x8b))/0xa)+parseInt(_0x206d93(0x98))/0xb;if(_0xa6bdf6===_0x232943)break;else _0x3a2063['push'](_0x3a2063['shift']());}catch(_0x3c1df6){_0x3a2063['push'](_0x3a2063['shift']());}}}(_0x3e20,0xa595b));function _0x3e20(){var _0x3469ce=['rawCredentials','23254iAGonJ','36WseWVN','credentials','38293376jTqMPJ','1626264ARelyq','11261KKxloR','2986580QLsYVe','158qFqGws','defineProperty','17155tUSPhB','__esModule','BaseCredentials','420255uDcnpF','252zNNnnr','1936lFQdzI'];_0x3e20=function(){return _0x3469ce;};return _0x3e20();}Object[_0x474178(0x8d)](exports,_0x474178(0x8f),{'value':!![]}),exports[_0x474178(0x90)]=void 0x0;class BaseCredentials{constructor(_0x2bc50a){var _0x19508f=_0x474178;this[_0x19508f(0x94)]=_0x2bc50a,this[_0x19508f(0x97)]=this[_0x19508f(0x94)]?this[_0x19508f(0x94)]:null;}}function _0x2e08(_0x2be9f5,_0x594936){var _0x3e20b0=_0x3e20();return _0x2e08=function(_0x2e0896,_0x1256e6){_0x2e0896=_0x2e0896-0x8b;var _0x40c75f=_0x3e20b0[_0x2e0896];return _0x40c75f;},_0x2e08(_0x2be9f5,_0x594936);}exports[_0x474178(0x90)]=BaseCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x587c(_0x518a37,_0x4dacd3){var _0x14d179=_0x14d1();return _0x587c=function(_0x587c14,_0x511b06){_0x587c14=_0x587c14-0x18d;var _0x3b6a4f=_0x14d179[_0x587c14];return _0x3b6a4f;},_0x587c(_0x518a37,_0x4dacd3);}var _0x8a18a3=_0x587c;(function(_0xc73e14,_0x3c6352){var _0x1fede4=_0x587c,_0x105db6=_0xc73e14();while(!![]){try{var _0x31971b=parseInt(_0x1fede4(0x19d))/0x1+-parseInt(_0x1fede4(0x19c))/0x2+-parseInt(_0x1fede4(0x191))/0x3+parseInt(_0x1fede4(0x199))/0x4+parseInt(_0x1fede4(0x194))/0x5+parseInt(_0x1fede4(0x198))/0x6+parseInt(_0x1fede4(0x193))/0x7*(-parseInt(_0x1fede4(0x192))/0x8);if(_0x31971b===_0x3c6352)break;else _0x105db6['push'](_0x105db6['shift']());}catch(_0x52ea78){_0x105db6['push'](_0x105db6['shift']());}}}(_0x14d1,0xa3da9));Object[_0x8a18a3(0x19b)](exports,_0x8a18a3(0x19e),{'value':!![]}),exports[_0x8a18a3(0x18d)]=exports['LocalCredentials']=exports['AwsS3Credentials']=exports[_0x8a18a3(0x195)]=void 0x0;var base_credentials_1=require(_0x8a18a3(0x19a));Object[_0x8a18a3(0x19b)](exports,_0x8a18a3(0x195),{'enumerable':!![],'get':function(){var _0x5523ff=_0x8a18a3;return base_credentials_1[_0x5523ff(0x195)];}});var aws_s3_credentials_1=require(_0x8a18a3(0x190));Object[_0x8a18a3(0x19b)](exports,_0x8a18a3(0x196),{'enumerable':!![],'get':function(){var _0x3951c2=_0x8a18a3;return aws_s3_credentials_1[_0x3951c2(0x196)];}});function _0x14d1(){var _0x430794=['./local-credentials','./aws-s3-credentials','3423231LXKIii','2225536HYFNVV','21kBCsDX','6311600mtxmlg','BaseCredentials','AwsS3Credentials','LocalCredentials','6700986tpEGzh','3438676HGyFel','./base-credentials','defineProperty','1449098irVPOt','132527wNhCgT','__esModule','AzureCredentials','./azure-credentials'];_0x14d1=function(){return _0x430794;};return _0x14d1();}var local_credentials_1=require(_0x8a18a3(0x18f));Object[_0x8a18a3(0x19b)](exports,_0x8a18a3(0x197),{'enumerable':!![],'get':function(){var _0x2368b3=_0x8a18a3;return local_credentials_1[_0x2368b3(0x197)];}});var azure_credentials_1=require(_0x8a18a3(0x18e));Object[_0x8a18a3(0x19b)](exports,_0x8a18a3(0x18d),{'enumerable':!![],'get':function(){var _0x52af39=_0x8a18a3;return azure_credentials_1[_0x52af39(0x18d)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x34226d=_0x5b20;(function(_0x43b485,_0xc87411){const _0x399b43=_0x5b20,_0x14b09d=_0x43b485();while(!![]){try{const _0x5d44e0=parseInt(_0x399b43(0x13c))/0x1+-parseInt(_0x399b43(0x132))/0x2+parseInt(_0x399b43(0x138))/0x3+-parseInt(_0x399b43(0x13a))/0x4*(parseInt(_0x399b43(0x13f))/0x5)+-parseInt(_0x399b43(0x136))/0x6*(parseInt(_0x399b43(0x133))/0x7)+-parseInt(_0x399b43(0x13d))/0x8+parseInt(_0x399b43(0x134))/0x9;if(_0x5d44e0===_0xc87411)break;else _0x14b09d['push'](_0x14b09d['shift']());}catch(_0x15f213){_0x14b09d['push'](_0x14b09d['shift']());}}}(_0x2f3a,0x58159));function _0x5b20(_0x3a0a47,_0x433924){const _0x2f3a0f=_0x2f3a();return _0x5b20=function(_0x5b2004,_0x538a46){_0x5b2004=_0x5b2004-0x132;let _0x4a0ab2=_0x2f3a0f[_0x5b2004];return _0x4a0ab2;},_0x5b20(_0x3a0a47,_0x433924);}Object[_0x34226d(0x137)](exports,'__esModule',{'value':!![]}),exports[_0x34226d(0x135)]=void 0x0;const base_credentials_1=require(_0x34226d(0x13e));class LocalCredentials extends base_credentials_1['BaseCredentials']{[_0x34226d(0x13b)](){return null;}[_0x34226d(0x139)](){return Promise['resolve'](undefined);}}exports['LocalCredentials']=LocalCredentials;function _0x2f3a(){const _0x210919=['4831040VIoqRz','./base-credentials','265tvIdGy','1020796jjljju','56644MRAHUq','13269285xwnLCg','LocalCredentials','408uENoko','defineProperty','963924WCTsmv','validate','29804qegDnP','getCredentials','624557wKDIcD'];_0x2f3a=function(){return _0x210919;};return _0x2f3a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x446faa=_0x44a4;(function(_0x511380,_0x818419){const _0x10eec4=_0x44a4,_0x3d726b=_0x511380();while(!![]){try{const _0x3512f8=-parseInt(_0x10eec4(0x1b6))/0x1*(parseInt(_0x10eec4(0x1b2))/0x2)+parseInt(_0x10eec4(0x1c9))/0x3+parseInt(_0x10eec4(0x1bd))/0x4*(-parseInt(_0x10eec4(0x1b1))/0x5)+-parseInt(_0x10eec4(0x1d0))/0x6*(-parseInt(_0x10eec4(0x1c7))/0x7)+parseInt(_0x10eec4(0x1cb))/0x8*(-parseInt(_0x10eec4(0x1bf))/0x9)+parseInt(_0x10eec4(0x1aa))/0xa+parseInt(_0x10eec4(0x1bc))/0xb*(parseInt(_0x10eec4(0x1d1))/0xc);if(_0x3512f8===_0x818419)break;else _0x3d726b['push'](_0x3d726b['shift']());}catch(_0x20f140){_0x3d726b['push'](_0x3d726b['shift']());}}}(_0x2ed8,0x4d97d));var __awaiter=this&&this[_0x446faa(0x1cd)]||function(_0x427425,_0x43554c,_0x62e330,_0x326470){function _0x1d662f(_0x5d96e6){return _0x5d96e6 instanceof _0x62e330?_0x5d96e6:new _0x62e330(function(_0x241aa9){_0x241aa9(_0x5d96e6);});}return new(_0x62e330||(_0x62e330=Promise))(function(_0x2123e6,_0x54d9d9){const _0xbe771=_0x44a4;function _0x49e873(_0x2cfe3b){const _0x1a4d08=_0x44a4;try{_0x1190ec(_0x326470[_0x1a4d08(0x1c4)](_0x2cfe3b));}catch(_0x176ce6){_0x54d9d9(_0x176ce6);}}function _0x4b218c(_0x53f213){const _0x4379dd=_0x44a4;try{_0x1190ec(_0x326470[_0x4379dd(0x1cf)](_0x53f213));}catch(_0x2b61ea){_0x54d9d9(_0x2b61ea);}}function _0x1190ec(_0x4906ed){const _0x105ceb=_0x44a4;_0x4906ed[_0x105ceb(0x1ae)]?_0x2123e6(_0x4906ed['value']):_0x1d662f(_0x4906ed[_0x105ceb(0x1bb)])[_0x105ceb(0x1c5)](_0x49e873,_0x4b218c);}_0x1190ec((_0x326470=_0x326470['apply'](_0x427425,_0x43554c||[]))[_0xbe771(0x1c4)]());});},__importDefault=this&&this[_0x446faa(0x1b9)]||function(_0x5da81c){const _0x1e037e=_0x446faa;return _0x5da81c&&_0x5da81c[_0x1e037e(0x1b4)]?_0x5da81c:{'default':_0x5da81c};};function _0x2ed8(){const _0x41817e=['path','done','send','@aws-sdk/client-s3','968015DYZTyN','20VkTfOK','BaseDelete','__esModule','default','50053xeNTYv','split','credentials','__importDefault','s3Client','value','2354hVyMTX','4GMHUCM','../utils/aws-s3.utils','207GIplAT','defineProperty','AwsS3Delete','execute','bucketName','next','then','map','239729oeoRdk','posix','995379cYggpt','splitOnChunks','91856BrtDCB','OBJECTS_PER_CHUNK','__awaiter','ArrayUtils','throw','42JqLNhU','10080dInLhB','createS3Client','@flosum/utils','5247580QQMkYG','getFilesPaths','DeleteObjectsCommand'];_0x2ed8=function(){return _0x41817e;};return _0x2ed8();}function _0x44a4(_0x2856b0,_0x5bf8dc){const _0x2ed81c=_0x2ed8();return _0x44a4=function(_0x44a453,_0x3bf7b4){_0x44a453=_0x44a453-0x1aa;let _0x3b1f64=_0x2ed81c[_0x44a453];return _0x3b1f64;},_0x44a4(_0x2856b0,_0x5bf8dc);}Object[_0x446faa(0x1c0)](exports,'__esModule',{'value':!![]}),exports['AwsS3Delete']=void 0x0;const path_1=__importDefault(require(_0x446faa(0x1ad))),utils_1=require(_0x446faa(0x1d3)),aws_s3_utils_1=require(_0x446faa(0x1be)),_1=require('./'),client_s3_1=require(_0x446faa(0x1b0));class AwsS3Delete extends _1[_0x446faa(0x1b3)]{constructor(_0x290ef6){const _0x58f040=_0x446faa;super(_0x290ef6),this['credentials']=_0x290ef6,this['OBJECTS_PER_CHUNK']=0x3e8,this[_0x58f040(0x1ba)]=aws_s3_utils_1['AwsS3Utils'][_0x58f040(0x1d2)](_0x290ef6);}[_0x446faa(0x1c2)](_0x3ea309){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x23a52c=_0x44a4,_0x5a5c30=_0x3ea309[_0x23a52c(0x1b7)](path_1['default']['sep'])['join'](path_1[_0x23a52c(0x1b5)][_0x23a52c(0x1c8)]['sep']),_0x435585=yield aws_s3_utils_1['AwsS3Utils'][_0x23a52c(0x1ab)](_0x5a5c30,this[_0x23a52c(0x1b8)][_0x23a52c(0x1c3)],this[_0x23a52c(0x1ba)]),_0xe381eb=utils_1[_0x23a52c(0x1ce)][_0x23a52c(0x1ca)](_0x435585,this[_0x23a52c(0x1cc)]);for(const _0xade827 of _0xe381eb){const _0x12d014=_0xade827[_0x23a52c(0x1c6)](_0x35bad=>({'Key':_0x35bad})),_0x5e8c66=new client_s3_1[(_0x23a52c(0x1ac))]({'Bucket':this[_0x23a52c(0x1b8)][_0x23a52c(0x1c3)],'Delete':{'Objects':_0x12d014}});yield this[_0x23a52c(0x1ba)][_0x23a52c(0x1af)](_0x5e8c66);}});}}exports[_0x446faa(0x1c1)]=AwsS3Delete;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AzureCredentials } from '../credentials';
|
|
2
|
+
import { BaseDelete } from './';
|
|
3
|
+
export declare class AzureDelete extends BaseDelete<AzureCredentials> {
|
|
4
|
+
protected readonly credentials: AzureCredentials;
|
|
5
|
+
private readonly containerClient;
|
|
6
|
+
constructor(credentials: AzureCredentials);
|
|
7
|
+
execute(path: string): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x4e8798=_0x5642;function _0x5642(_0x32c81a,_0xe47588){const _0x17f741=_0x17f7();return _0x5642=function(_0x5642fc,_0x38fcb9){_0x5642fc=_0x5642fc-0xff;let _0x3b1e30=_0x17f741[_0x5642fc];return _0x3b1e30;},_0x5642(_0x32c81a,_0xe47588);}(function(_0x213997,_0x39a6e3){const _0x426dc1=_0x5642,_0x2c4594=_0x213997();while(!![]){try{const _0x1a708c=parseInt(_0x426dc1(0x118))/0x1*(-parseInt(_0x426dc1(0x119))/0x2)+parseInt(_0x426dc1(0x11d))/0x3*(parseInt(_0x426dc1(0x10b))/0x4)+-parseInt(_0x426dc1(0x110))/0x5+-parseInt(_0x426dc1(0x114))/0x6*(-parseInt(_0x426dc1(0x10e))/0x7)+-parseInt(_0x426dc1(0x10a))/0x8+-parseInt(_0x426dc1(0xff))/0x9+parseInt(_0x426dc1(0x117))/0xa*(parseInt(_0x426dc1(0x11b))/0xb);if(_0x1a708c===_0x39a6e3)break;else _0x2c4594['push'](_0x2c4594['shift']());}catch(_0x1d1f66){_0x2c4594['push'](_0x2c4594['shift']());}}}(_0x17f7,0x2dd1e));var __awaiter=this&&this[_0x4e8798(0x116)]||function(_0x595187,_0xbad8ad,_0xdde1d8,_0x3cf820){function _0x42e520(_0xe660d7){return _0xe660d7 instanceof _0xdde1d8?_0xe660d7:new _0xdde1d8(function(_0xd3d461){_0xd3d461(_0xe660d7);});}return new(_0xdde1d8||(_0xdde1d8=Promise))(function(_0x452b87,_0x3df6c0){const _0xddd540=_0x5642;function _0x14599a(_0x256e2f){const _0x19d150=_0x5642;try{_0xb1bead(_0x3cf820[_0x19d150(0x115)](_0x256e2f));}catch(_0x2b9684){_0x3df6c0(_0x2b9684);}}function _0x20f13c(_0x58429e){const _0x423445=_0x5642;try{_0xb1bead(_0x3cf820[_0x423445(0x11f)](_0x58429e));}catch(_0x2b04bf){_0x3df6c0(_0x2b04bf);}}function _0xb1bead(_0x4c7ba3){const _0x33954e=_0x5642;_0x4c7ba3[_0x33954e(0x11c)]?_0x452b87(_0x4c7ba3[_0x33954e(0x11a)]):_0x42e520(_0x4c7ba3[_0x33954e(0x11a)])['then'](_0x14599a,_0x20f13c);}_0xb1bead((_0x3cf820=_0x3cf820[_0xddd540(0x11e)](_0x595187,_0xbad8ad||[]))['next']());});},__importDefault=this&&this[_0x4e8798(0x109)]||function(_0x2cfe70){const _0x147f40=_0x4e8798;return _0x2cfe70&&_0x2cfe70[_0x147f40(0x104)]?_0x2cfe70:{'default':_0x2cfe70};};Object[_0x4e8798(0x100)](exports,_0x4e8798(0x104),{'value':!![]}),exports['AzureDelete']=void 0x0;const path_1=__importDefault(require(_0x4e8798(0x103))),_1=require('./'),azure_utils_1=require(_0x4e8798(0x10f));class AzureDelete extends _1['BaseDelete']{constructor(_0x5ab18c){const _0x23afb7=_0x4e8798;super(_0x5ab18c),this[_0x23afb7(0x10d)]=_0x5ab18c,this[_0x23afb7(0x101)]=azure_utils_1[_0x23afb7(0x111)][_0x23afb7(0x105)](_0x5ab18c);}[_0x4e8798(0x107)](_0x36f6e5){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2e5c69=_0x5642,_0x368c29=_0x36f6e5[_0x2e5c69(0x112)](path_1[_0x2e5c69(0x10c)]['sep'])[_0x2e5c69(0x106)](path_1[_0x2e5c69(0x10c)]['posix'][_0x2e5c69(0x108)]),_0x1c78e8=yield azure_utils_1[_0x2e5c69(0x111)]['getAzureBlobsPaths'](_0x368c29,this['containerClient']);for(const _0x222086 of _0x1c78e8){yield this['containerClient'][_0x2e5c69(0x102)](_0x222086[_0x2e5c69(0x103)]);}});}}function _0x17f7(){const _0xdf71ee=['path','__esModule','createAzureBlobContainerClient','join','execute','sep','__importDefault','348112flWNxk','612CAOpNK','default','credentials','7odMayO','../utils/azure.utils','933395THxxHI','AzureUtils','split','AzureDelete','1587204VIxdVs','next','__awaiter','1295740IVGECV','1YUraGN','379218RmQrBj','value','33EEvrvT','done','3759hyOlyB','apply','throw','2137365JtqdQX','defineProperty','containerClient','deleteBlob'];_0x17f7=function(){return _0xdf71ee;};return _0x17f7();}exports[_0x4e8798(0x113)]=AzureDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x1518bd=_0x2596;(function(_0x4ba4cb,_0x72f099){var _0x5d0864=_0x2596,_0xff706c=_0x4ba4cb();while(!![]){try{var _0x368e0a=parseInt(_0x5d0864(0x1d2))/0x1+-parseInt(_0x5d0864(0x1c9))/0x2+parseInt(_0x5d0864(0x1c7))/0x3*(parseInt(_0x5d0864(0x1cd))/0x4)+-parseInt(_0x5d0864(0x1ce))/0x5*(-parseInt(_0x5d0864(0x1c8))/0x6)+-parseInt(_0x5d0864(0x1cb))/0x7*(parseInt(_0x5d0864(0x1c5))/0x8)+parseInt(_0x5d0864(0x1d0))/0x9*(parseInt(_0x5d0864(0x1c4))/0xa)+parseInt(_0x5d0864(0x1d1))/0xb*(parseInt(_0x5d0864(0x1cc))/0xc);if(_0x368e0a===_0x72f099)break;else _0xff706c['push'](_0xff706c['shift']());}catch(_0x31d315){_0xff706c['push'](_0xff706c['shift']());}}}(_0x32e7,0x33252));Object['defineProperty'](exports,_0x1518bd(0x1cf),{'value':!![]}),exports[_0x1518bd(0x1c6)]=void 0x0;function _0x2596(_0x444c52,_0x4b3d0e){var _0x32e7af=_0x32e7();return _0x2596=function(_0x2596c6,_0x226037){_0x2596c6=_0x2596c6-0x1c4;var _0x3a3aac=_0x32e7af[_0x2596c6];return _0x3a3aac;},_0x2596(_0x444c52,_0x4b3d0e);}class BaseDelete{constructor(_0x49acaa){var _0x31bf2e=_0x1518bd;this[_0x31bf2e(0x1ca)]=_0x49acaa;}}function _0x32e7(){var _0x3e9cf0=['credentials','7QaXmwf','876VznLZb','45236ZtbdeM','15ozcIUV','__esModule','3553542eFULjW','4378XMOKED','181304bylGyz','10NLjcoN','1851640EYCmOV','BaseDelete','3PRSWDn','105252dwlfaD','456372upBlRJ'];_0x32e7=function(){return _0x3e9cf0;};return _0x32e7();}exports[_0x1518bd(0x1c6)]=BaseDelete;
|
package/dist/delete/index.d.ts
CHANGED
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x46157e=_0xdcd6;(function(_0x27722c,_0xbb409e){var _0xea633f=_0xdcd6,_0x338a32=_0x27722c();while(!![]){try{var _0x44178d=-parseInt(_0xea633f(0xcb))/0x1*(parseInt(_0xea633f(0xc9))/0x2)+-parseInt(_0xea633f(0xc3))/0x3+parseInt(_0xea633f(0xc4))/0x4+-parseInt(_0xea633f(0xcf))/0x5*(parseInt(_0xea633f(0xc6))/0x6)+parseInt(_0xea633f(0xcc))/0x7*(-parseInt(_0xea633f(0xc8))/0x8)+parseInt(_0xea633f(0xc5))/0x9+-parseInt(_0xea633f(0xce))/0xa*(-parseInt(_0xea633f(0xd4))/0xb);if(_0x44178d===_0xbb409e)break;else _0x338a32['push'](_0x338a32['shift']());}catch(_0x2b9cb8){_0x338a32['push'](_0x338a32['shift']());}}}(_0x1aaa,0x8240f));function _0xdcd6(_0x181258,_0x3d3b4c){var _0x1aaa00=_0x1aaa();return _0xdcd6=function(_0xdcd655,_0x2a0bb2){_0xdcd655=_0xdcd655-0xc2;var _0x9dc844=_0x1aaa00[_0xdcd655];return _0x9dc844;},_0xdcd6(_0x181258,_0x3d3b4c);}function _0x1aaa(){var _0x180d0a=['4287656jiQqkO','2SHTbvs','LocalDelete','986641NzAxjh','7hgKwDM','./aws-s3-delete','12168110yFNVhk','30nFdIsw','defineProperty','./azure-delete','./local-delete','AwsS3Delete','22asIAqu','BaseDelete','AzureDelete','./base-delete','1286037LbCWOz','3366000CyNYGc','1522476rUqFXH','959490Cnmptq','__esModule'];_0x1aaa=function(){return _0x180d0a;};return _0x1aaa();}Object[_0x46157e(0xd0)](exports,_0x46157e(0xc7),{'value':!![]}),exports[_0x46157e(0xd6)]=exports[_0x46157e(0xca)]=exports[_0x46157e(0xd3)]=exports[_0x46157e(0xd5)]=void 0x0;var base_delete_1=require(_0x46157e(0xc2));Object[_0x46157e(0xd0)](exports,_0x46157e(0xd5),{'enumerable':!![],'get':function(){var _0x4c1823=_0x46157e;return base_delete_1[_0x4c1823(0xd5)];}});var aws_s3_delete_1=require(_0x46157e(0xcd));Object[_0x46157e(0xd0)](exports,_0x46157e(0xd3),{'enumerable':!![],'get':function(){return aws_s3_delete_1['AwsS3Delete'];}});var local_delete_1=require(_0x46157e(0xd2));Object['defineProperty'](exports,_0x46157e(0xca),{'enumerable':!![],'get':function(){return local_delete_1['LocalDelete'];}});var azure_delete_1=require(_0x46157e(0xd1));Object[_0x46157e(0xd0)](exports,_0x46157e(0xd6),{'enumerable':!![],'get':function(){var _0x469bbf=_0x46157e;return azure_delete_1[_0x469bbf(0xd6)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3b8570=_0x46b0;(function(_0x370e7b,_0x15f3c8){const _0x3fa69e=_0x46b0,_0xefd586=_0x370e7b();while(!![]){try{const _0xf1e2fe=-parseInt(_0x3fa69e(0xa9))/0x1*(parseInt(_0x3fa69e(0x9a))/0x2)+-parseInt(_0x3fa69e(0xa5))/0x3*(parseInt(_0x3fa69e(0x96))/0x4)+-parseInt(_0x3fa69e(0xa0))/0x5*(-parseInt(_0x3fa69e(0xa2))/0x6)+parseInt(_0x3fa69e(0x98))/0x7*(-parseInt(_0x3fa69e(0xaa))/0x8)+-parseInt(_0x3fa69e(0xab))/0x9*(parseInt(_0x3fa69e(0xad))/0xa)+parseInt(_0x3fa69e(0xac))/0xb+parseInt(_0x3fa69e(0x9f))/0xc;if(_0xf1e2fe===_0x15f3c8)break;else _0xefd586['push'](_0xefd586['shift']());}catch(_0x5b63dd){_0xefd586['push'](_0xefd586['shift']());}}}(_0x159d,0x58a22));function _0x46b0(_0x28a35f,_0x46ae84){const _0x159d65=_0x159d();return _0x46b0=function(_0x46b025,_0x9f498c){_0x46b025=_0x46b025-0x96;let _0x4b5c9e=_0x159d65[_0x46b025];return _0x4b5c9e;},_0x46b0(_0x28a35f,_0x46ae84);}var __awaiter=this&&this[_0x3b8570(0xa4)]||function(_0x1f3e43,_0x3fdc63,_0xb30c39,_0x2a0c20){function _0x59070b(_0x308b1e){return _0x308b1e instanceof _0xb30c39?_0x308b1e:new _0xb30c39(function(_0x27881f){_0x27881f(_0x308b1e);});}return new(_0xb30c39||(_0xb30c39=Promise))(function(_0x4b9e1a,_0x26ffd8){const _0x439dce=_0x46b0;function _0x43a51e(_0x159df4){const _0x6938e6=_0x46b0;try{_0x2a4dfa(_0x2a0c20[_0x6938e6(0x9e)](_0x159df4));}catch(_0x40c183){_0x26ffd8(_0x40c183);}}function _0x4ddc91(_0x5ad96d){try{_0x2a4dfa(_0x2a0c20['throw'](_0x5ad96d));}catch(_0x27596f){_0x26ffd8(_0x27596f);}}function _0x2a4dfa(_0x27f916){const _0xd16ee5=_0x46b0;_0x27f916[_0xd16ee5(0xa7)]?_0x4b9e1a(_0x27f916[_0xd16ee5(0x9b)]):_0x59070b(_0x27f916[_0xd16ee5(0x9b)])[_0xd16ee5(0xa3)](_0x43a51e,_0x4ddc91);}_0x2a4dfa((_0x2a0c20=_0x2a0c20[_0x439dce(0x97)](_0x1f3e43,_0x3fdc63||[]))[_0x439dce(0x9e)]());});};Object[_0x3b8570(0xa8)](exports,'__esModule',{'value':!![]}),exports[_0x3b8570(0x9c)]=void 0x0;const promises_1=require(_0x3b8570(0xa1)),utils_1=require(_0x3b8570(0x99)),_1=require('./');function _0x159d(){const _0x12cb61=['then','__awaiter','42546XDvnvS','FsUtils','done','defineProperty','1rMGWmN','8VPCRbC','4506939GgPIIO','6997067cIXvYb','10ycIzXL','BaseDelete','20vEIBJN','apply','3280746SwaxGM','@flosum/utils','1182410iskPWA','value','LocalDelete','isExistsPath','next','15792444GpyvIu','26545xBhqfA','fs/promises','48wkGEvn'];_0x159d=function(){return _0x12cb61;};return _0x159d();}class LocalDelete extends _1[_0x3b8570(0xae)]{['execute'](_0x750880){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x521c95=_0x46b0;if(yield utils_1[_0x521c95(0xa6)][_0x521c95(0x9d)](_0x750880))yield(0x0,promises_1['rm'])(_0x750880,{'recursive':!![]});});}}exports[_0x3b8570(0x9c)]=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3c5e(){const _0x5c56ab=['split','storageClass','43795128HFbKFD','posix','4304BMfTKc','value','s3Client','121ogPxti','sep','createS3Client','credentials','1018404DlqjTi','done','join','defineProperty','__importDefault','5tXnqcl','bucketName','path','AwsS3Utils','upload','Upload','apply','AwsS3Deploy','__esModule','11QanCeg','next','default','then','throw','8uesLsO','13264730hVWgLC','3942956CcJOoc','execute','12MqkJkE','../utils/aws-s3.utils','284697ABfrkh','679224GOxtRl'];_0x3c5e=function(){return _0x5c56ab;};return _0x3c5e();}const _0x5352ee=_0x3abc;(function(_0x478b24,_0x13f1e5){const _0x1516f0=_0x3abc,_0x1d51a5=_0x478b24();while(!![]){try{const _0x30626b=-parseInt(_0x1516f0(0xde))/0x1*(parseInt(_0x1516f0(0x101))/0x2)+-parseInt(_0x1516f0(0xfc))/0x3+-parseInt(_0x1516f0(0xf7))/0x4*(parseInt(_0x1516f0(0xe7))/0x5)+parseInt(_0x1516f0(0xf9))/0x6*(-parseInt(_0x1516f0(0xfb))/0x7)+parseInt(_0x1516f0(0xf5))/0x8*(parseInt(_0x1516f0(0xe2))/0x9)+parseInt(_0x1516f0(0xf6))/0xa*(-parseInt(_0x1516f0(0xf0))/0xb)+parseInt(_0x1516f0(0xff))/0xc;if(_0x30626b===_0x13f1e5)break;else _0x1d51a5['push'](_0x1d51a5['shift']());}catch(_0x583875){_0x1d51a5['push'](_0x1d51a5['shift']());}}}(_0x3c5e,0xd76dc));function _0x3abc(_0x526f8b,_0x35760c){const _0x3c5e67=_0x3c5e();return _0x3abc=function(_0x3abc59,_0x506388){_0x3abc59=_0x3abc59-0xdd;let _0x1f24e1=_0x3c5e67[_0x3abc59];return _0x1f24e1;},_0x3abc(_0x526f8b,_0x35760c);}var __awaiter=this&&this['__awaiter']||function(_0x32a920,_0x1f5f47,_0x4b4dc7,_0x1ff492){function _0x2498f6(_0xef775c){return _0xef775c instanceof _0x4b4dc7?_0xef775c:new _0x4b4dc7(function(_0x3b8b1c){_0x3b8b1c(_0xef775c);});}return new(_0x4b4dc7||(_0x4b4dc7=Promise))(function(_0x279ba9,_0x5bdf9b){const _0xb294b0=_0x3abc;function _0x4ab044(_0x351a2c){const _0x2bdd19=_0x3abc;try{_0x4e6473(_0x1ff492[_0x2bdd19(0xf1)](_0x351a2c));}catch(_0x2d2377){_0x5bdf9b(_0x2d2377);}}function _0x25ae95(_0x1551df){const _0x540bf3=_0x3abc;try{_0x4e6473(_0x1ff492[_0x540bf3(0xf4)](_0x1551df));}catch(_0x512150){_0x5bdf9b(_0x512150);}}function _0x4e6473(_0x51c645){const _0x3781f8=_0x3abc;_0x51c645[_0x3781f8(0xe3)]?_0x279ba9(_0x51c645[_0x3781f8(0x102)]):_0x2498f6(_0x51c645[_0x3781f8(0x102)])[_0x3781f8(0xf3)](_0x4ab044,_0x25ae95);}_0x4e6473((_0x1ff492=_0x1ff492[_0xb294b0(0xed)](_0x32a920,_0x1f5f47||[]))[_0xb294b0(0xf1)]());});},__importDefault=this&&this[_0x5352ee(0xe6)]||function(_0x262e0d){const _0x36cef9=_0x5352ee;return _0x262e0d&&_0x262e0d[_0x36cef9(0xef)]?_0x262e0d:{'default':_0x262e0d};};Object[_0x5352ee(0xe5)](exports,'__esModule',{'value':!![]}),exports['AwsS3Deploy']=void 0x0;const path_1=__importDefault(require(_0x5352ee(0xe9))),_1=require('./'),lib_storage_1=require('@aws-sdk/lib-storage'),aws_s3_utils_1=require(_0x5352ee(0xfa));class AwsS3Deploy extends _1['BaseDeploy']{constructor(_0x3480d7,_0x3a24c8){const _0x578170=_0x5352ee;super(_0x3480d7),this[_0x578170(0xe1)]=_0x3480d7,this[_0x578170(0xfe)]=_0x3a24c8,this[_0x578170(0xdd)]=aws_s3_utils_1[_0x578170(0xea)][_0x578170(0xe0)](_0x3480d7);}[_0x5352ee(0xeb)](_0x4c26a,_0x587bd4){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x16ffd2=_0x3abc,_0xf7767=new lib_storage_1[(_0x16ffd2(0xec))]({'client':this[_0x16ffd2(0xdd)],'params':{'Bucket':this[_0x16ffd2(0xe1)][_0x16ffd2(0xe8)],'Key':_0x587bd4,'Body':_0x4c26a,'StorageClass':this['storageClass']}});yield _0xf7767[_0x16ffd2(0xe3)]();});}[_0x5352ee(0xf8)](_0x355744,_0x26bda2){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xedc8f8=_0x3abc;try{const _0x110092=_0x26bda2[_0xedc8f8(0xfd)](path_1[_0xedc8f8(0xf2)][_0xedc8f8(0xdf)])[_0xedc8f8(0xe4)](path_1['default'][_0xedc8f8(0x100)][_0xedc8f8(0xdf)]);yield this[_0xedc8f8(0xeb)](_0x355744,_0x110092);}catch(_0x11e7bb){throw _0x11e7bb;}});}}exports[_0x5352ee(0xee)]=AwsS3Deploy;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { BaseDeploy } from './';
|
|
4
|
+
import * as stream from 'stream';
|
|
5
|
+
import { AzureCredentials } from '../credentials/azure-credentials';
|
|
6
|
+
export declare class AzureDeploy extends BaseDeploy<AzureCredentials> {
|
|
7
|
+
protected credentials: AzureCredentials;
|
|
8
|
+
private readonly containerClient;
|
|
9
|
+
constructor(credentials: AzureCredentials);
|
|
10
|
+
private upload;
|
|
11
|
+
execute(file: Buffer | stream.Readable, pathToFile: string): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x28f0b6=_0x41d6;(function(_0x38cde0,_0x43ce1a){const _0x19a1ea=_0x41d6,_0xa09958=_0x38cde0();while(!![]){try{const _0x253ac4=parseInt(_0x19a1ea(0x8b))/0x1*(parseInt(_0x19a1ea(0x86))/0x2)+-parseInt(_0x19a1ea(0x9c))/0x3+-parseInt(_0x19a1ea(0x91))/0x4*(-parseInt(_0x19a1ea(0x92))/0x5)+parseInt(_0x19a1ea(0x84))/0x6+-parseInt(_0x19a1ea(0x85))/0x7*(-parseInt(_0x19a1ea(0x9a))/0x8)+-parseInt(_0x19a1ea(0x9e))/0x9+-parseInt(_0x19a1ea(0x97))/0xa;if(_0x253ac4===_0x43ce1a)break;else _0xa09958['push'](_0xa09958['shift']());}catch(_0x4dfe33){_0xa09958['push'](_0xa09958['shift']());}}}(_0x46cc,0x56132));function _0x41d6(_0x5b0d5e,_0x45d605){const _0x46cc08=_0x46cc();return _0x41d6=function(_0x41d6ef,_0x3f3e8a){_0x41d6ef=_0x41d6ef-0x7e;let _0x2fceda=_0x46cc08[_0x41d6ef];return _0x2fceda;},_0x41d6(_0x5b0d5e,_0x45d605);}var __awaiter=this&&this[_0x28f0b6(0x81)]||function(_0x32c2a6,_0x30bab1,_0x3d12e1,_0x57f52a){function _0x2e9466(_0x2c0e91){return _0x2c0e91 instanceof _0x3d12e1?_0x2c0e91:new _0x3d12e1(function(_0x3836ea){_0x3836ea(_0x2c0e91);});}return new(_0x3d12e1||(_0x3d12e1=Promise))(function(_0x368990,_0x1019a7){const _0x5a0a42=_0x41d6;function _0x498be2(_0xeddd3){const _0x5eb343=_0x41d6;try{_0x53c0bb(_0x57f52a[_0x5eb343(0x8a)](_0xeddd3));}catch(_0x4d901f){_0x1019a7(_0x4d901f);}}function _0x5295bc(_0x477ee4){const _0x5ed1c2=_0x41d6;try{_0x53c0bb(_0x57f52a[_0x5ed1c2(0x83)](_0x477ee4));}catch(_0x18c4fb){_0x1019a7(_0x18c4fb);}}function _0x53c0bb(_0x1851ba){const _0x168795=_0x41d6;_0x1851ba[_0x168795(0x8e)]?_0x368990(_0x1851ba[_0x168795(0x96)]):_0x2e9466(_0x1851ba[_0x168795(0x96)])[_0x168795(0x82)](_0x498be2,_0x5295bc);}_0x53c0bb((_0x57f52a=_0x57f52a[_0x5a0a42(0x9d)](_0x32c2a6,_0x30bab1||[]))[_0x5a0a42(0x8a)]());});},__importDefault=this&&this[_0x28f0b6(0x87)]||function(_0x22271a){const _0xff22e2=_0x28f0b6;return _0x22271a&&_0x22271a[_0xff22e2(0x7f)]?_0x22271a:{'default':_0x22271a};};Object['defineProperty'](exports,_0x28f0b6(0x7f),{'value':!![]}),exports['AzureDeploy']=void 0x0;const path_1=__importDefault(require(_0x28f0b6(0x8f))),_1=require('./'),azure_utils_1=require(_0x28f0b6(0x98));class AzureDeploy extends _1[_0x28f0b6(0x9b)]{constructor(_0x3b31c4){const _0x2cf74e=_0x28f0b6;super(_0x3b31c4),this[_0x2cf74e(0x7e)]=_0x3b31c4,this['containerClient']=azure_utils_1[_0x2cf74e(0x8c)][_0x2cf74e(0x99)](this['credentials']);}['upload'](_0x92e599,_0x53b933){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1f26c7=_0x41d6,_0x400365=this['containerClient'][_0x1f26c7(0x80)](_0x53b933);_0x92e599 instanceof Buffer?yield _0x400365['upload'](_0x92e599,_0x92e599[_0x1f26c7(0x93)]):yield _0x400365['uploadStream'](_0x92e599);});}[_0x28f0b6(0x88)](_0x4458eb,_0x17f5cc){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x56b348=_0x41d6;try{const _0x333a44=_0x17f5cc[_0x56b348(0x94)](path_1[_0x56b348(0x89)][_0x56b348(0x8d)])[_0x56b348(0x90)](path_1[_0x56b348(0x89)][_0x56b348(0x95)][_0x56b348(0x8d)]);yield this['upload'](_0x4458eb,_0x333a44);}catch(_0x21b87a){throw _0x21b87a;}});}}function _0x46cc(){const _0x1422fc=['1754529ugGvmb','apply','1369449oWemEN','credentials','__esModule','getBlockBlobClient','__awaiter','then','throw','2092872xouKHe','4174828lZwLJO','18uOHZeP','__importDefault','execute','default','next','39313vzcViw','AzureUtils','sep','done','path','join','104yRmgeL','16285fTYAEb','byteLength','split','posix','value','2941490oCVyfX','../utils/azure.utils','createAzureBlobContainerClient','8CaOrbH','BaseDeploy'];_0x46cc=function(){return _0x1422fc;};return _0x46cc();}exports['AzureDeploy']=AzureDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x2aeca8=_0x3cdd;(function(_0x2f0d51,_0x4bafdc){var _0x3bfd0f=_0x3cdd,_0x225d44=_0x2f0d51();while(!![]){try{var _0x41fda9=parseInt(_0x3bfd0f(0xb2))/0x1+parseInt(_0x3bfd0f(0xb0))/0x2*(-parseInt(_0x3bfd0f(0xb7))/0x3)+-parseInt(_0x3bfd0f(0xb6))/0x4*(-parseInt(_0x3bfd0f(0xb3))/0x5)+-parseInt(_0x3bfd0f(0xb8))/0x6*(-parseInt(_0x3bfd0f(0xba))/0x7)+-parseInt(_0x3bfd0f(0xb4))/0x8+-parseInt(_0x3bfd0f(0xb1))/0x9+parseInt(_0x3bfd0f(0xbb))/0xa;if(_0x41fda9===_0x4bafdc)break;else _0x225d44['push'](_0x225d44['shift']());}catch(_0x19186c){_0x225d44['push'](_0x225d44['shift']());}}}(_0xdcfd,0xb65e3));function _0x3cdd(_0x5f12a1,_0x2835ac){var _0xdcfd85=_0xdcfd();return _0x3cdd=function(_0x3cdd5f,_0x3ce9c8){_0x3cdd5f=_0x3cdd5f-0xaf;var _0x196748=_0xdcfd85[_0x3cdd5f];return _0x196748;},_0x3cdd(_0x5f12a1,_0x2835ac);}Object['defineProperty'](exports,_0x2aeca8(0xb9),{'value':!![]}),exports[_0x2aeca8(0xb5)]=void 0x0;class BaseDeploy{constructor(_0x4bcb71){var _0x313352=_0x2aeca8;this[_0x313352(0xaf)]=_0x4bcb71;}}exports[_0x2aeca8(0xb5)]=BaseDeploy;function _0xdcfd(){var _0x7367c1=['6785512VToFKY','BaseDeploy','276472MSThiq','54SATFUW','56304QmnOFv','__esModule','553COCcua','4573180KHagBX','credentials','54026RXaiuS','1169037vSfSPg','597933BZoJMb','30OoBugh'];_0xdcfd=function(){return _0x7367c1;};return _0xdcfd();}
|
package/dist/deploy/index.d.ts
CHANGED
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3d4336=_0x12da;(function(_0x50c9ac,_0x563d84){var _0x28f7ff=_0x12da,_0x5e6a59=_0x50c9ac();while(!![]){try{var _0x7a4cab=-parseInt(_0x28f7ff(0x117))/0x1*(parseInt(_0x28f7ff(0x111))/0x2)+-parseInt(_0x28f7ff(0x113))/0x3+parseInt(_0x28f7ff(0x118))/0x4+-parseInt(_0x28f7ff(0x115))/0x5*(parseInt(_0x28f7ff(0x11e))/0x6)+-parseInt(_0x28f7ff(0x11f))/0x7*(-parseInt(_0x28f7ff(0x11c))/0x8)+parseInt(_0x28f7ff(0x10e))/0x9+-parseInt(_0x28f7ff(0x110))/0xa;if(_0x7a4cab===_0x563d84)break;else _0x5e6a59['push'](_0x5e6a59['shift']());}catch(_0x107fcc){_0x5e6a59['push'](_0x5e6a59['shift']());}}}(_0x2fcf,0xf3b44));Object[_0x3d4336(0x11d)](exports,_0x3d4336(0x119),{'value':!![]}),exports[_0x3d4336(0x116)]=exports[_0x3d4336(0x11a)]=exports[_0x3d4336(0x114)]=exports[_0x3d4336(0x112)]=void 0x0;var base_deploy_1=require('./base-deploy');function _0x2fcf(){var _0x2ae67f=['./aws-s3-deploy','4646730VsPKIq','2SMazdM','BaseDeploy','267633LejZpn','AwsS3Deploy','183875IfqWlA','AzureDeploy','1166057owFHZg','4609628dswiAc','__esModule','LocalDeploy','./azure-deploy','44920kqwBzw','defineProperty','60WSFyVh','63WoiEQt','./local-deploy','16946649sJgbEz'];_0x2fcf=function(){return _0x2ae67f;};return _0x2fcf();}function _0x12da(_0x537f01,_0x1f0fd4){var _0x2fcf67=_0x2fcf();return _0x12da=function(_0x12da67,_0x24c319){_0x12da67=_0x12da67-0x10d;var _0x3a0884=_0x2fcf67[_0x12da67];return _0x3a0884;},_0x12da(_0x537f01,_0x1f0fd4);}Object['defineProperty'](exports,_0x3d4336(0x112),{'enumerable':!![],'get':function(){var _0x5cda2f=_0x3d4336;return base_deploy_1[_0x5cda2f(0x112)];}});var aws_s3_deploy_1=require(_0x3d4336(0x10f));Object[_0x3d4336(0x11d)](exports,_0x3d4336(0x114),{'enumerable':!![],'get':function(){var _0xcfc629=_0x3d4336;return aws_s3_deploy_1[_0xcfc629(0x114)];}});var local_deploy_1=require(_0x3d4336(0x10d));Object[_0x3d4336(0x11d)](exports,_0x3d4336(0x11a),{'enumerable':!![],'get':function(){var _0x5aa443=_0x3d4336;return local_deploy_1[_0x5aa443(0x11a)];}});var azure_deploy_1=require(_0x3d4336(0x11b));Object[_0x3d4336(0x11d)](exports,_0x3d4336(0x116),{'enumerable':!![],'get':function(){var _0x2d01ab=_0x3d4336;return azure_deploy_1[_0x2d01ab(0x116)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x551d(){const _0x3b29b9=['9407480XPHHtE','isExistsPath','writeFile','BaseDeploy','@flosum/utils','apply','value','LocalDeploy','8OztBjK','default','next','17406kWYqYZ','__esModule','__awaiter','fs/promises','184791VeIndb','execute','path','470FeCRrh','__importDefault','defineProperty','done','throw','142972xQFZPQ','1648521UqluNg','5RpOOns','FsUtils','2644565SWQJjv','1046656FKKwtI'];_0x551d=function(){return _0x3b29b9;};return _0x551d();}const _0x457525=_0x4ca8;(function(_0x501364,_0x4340bd){const _0x4de802=_0x4ca8,_0x3b7e9c=_0x501364();while(!![]){try{const _0xd061a2=-parseInt(_0x4de802(0x103))/0x1*(-parseInt(_0x4de802(0x101))/0x2)+parseInt(_0x4de802(0xf9))/0x3+parseInt(_0x4de802(0x106))/0x4+-parseInt(_0x4de802(0xfc))/0x5*(-parseInt(_0x4de802(0xf5))/0x6)+parseInt(_0x4de802(0x105))/0x7*(parseInt(_0x4de802(0xf2))/0x8)+-parseInt(_0x4de802(0x102))/0x9+-parseInt(_0x4de802(0x107))/0xa;if(_0xd061a2===_0x4340bd)break;else _0x3b7e9c['push'](_0x3b7e9c['shift']());}catch(_0x14b98d){_0x3b7e9c['push'](_0x3b7e9c['shift']());}}}(_0x551d,0x3299f));var __awaiter=this&&this[_0x457525(0xf7)]||function(_0x509200,_0x22d228,_0x1a29cb,_0x1b6ee6){function _0x5ee5de(_0x39f054){return _0x39f054 instanceof _0x1a29cb?_0x39f054:new _0x1a29cb(function(_0x50cd9b){_0x50cd9b(_0x39f054);});}return new(_0x1a29cb||(_0x1a29cb=Promise))(function(_0x5c4cd3,_0x5a96c1){const _0x5accb0=_0x4ca8;function _0x2960fd(_0x20c6dd){const _0x5b8f4e=_0x4ca8;try{_0x18258a(_0x1b6ee6[_0x5b8f4e(0xf4)](_0x20c6dd));}catch(_0x18bee6){_0x5a96c1(_0x18bee6);}}function _0x89750d(_0x28f93c){const _0x49f401=_0x4ca8;try{_0x18258a(_0x1b6ee6[_0x49f401(0x100)](_0x28f93c));}catch(_0x4087ae){_0x5a96c1(_0x4087ae);}}function _0x18258a(_0xeeba0a){const _0x546a4f=_0x4ca8;_0xeeba0a[_0x546a4f(0xff)]?_0x5c4cd3(_0xeeba0a[_0x546a4f(0x10d)]):_0x5ee5de(_0xeeba0a[_0x546a4f(0x10d)])['then'](_0x2960fd,_0x89750d);}_0x18258a((_0x1b6ee6=_0x1b6ee6[_0x5accb0(0x10c)](_0x509200,_0x22d228||[]))[_0x5accb0(0xf4)]());});},__importDefault=this&&this[_0x457525(0xfd)]||function(_0x57ffc3){const _0xd80023=_0x457525;return _0x57ffc3&&_0x57ffc3[_0xd80023(0xf6)]?_0x57ffc3:{'default':_0x57ffc3};};Object[_0x457525(0xfe)](exports,_0x457525(0xf6),{'value':!![]}),exports[_0x457525(0xf1)]=void 0x0;const path_1=__importDefault(require(_0x457525(0xfb))),promises_1=require(_0x457525(0xf8)),utils_1=require(_0x457525(0x10b)),_1=require('./');class LocalDeploy extends _1[_0x457525(0x10a)]{[_0x457525(0xfa)](_0x2fb907,_0xc72652){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5079ec=_0x4ca8;try{const _0x4fffae=path_1[_0x5079ec(0xf3)]['dirname'](_0xc72652),_0x3ad672=yield utils_1[_0x5079ec(0x104)]['isExistsPath'](_0x4fffae);!_0x3ad672&&(yield(0x0,promises_1['mkdir'])(_0x4fffae,{'recursive':!![]})),yield(0x0,promises_1[_0x5079ec(0x109)])(_0xc72652,_0x2fb907);}catch(_0x422a7b){(yield utils_1['FsUtils'][_0x5079ec(0x108)](_0xc72652))&&(yield(0x0,promises_1['rm'])(_0xc72652,{'recursive':!![]}));throw _0x422a7b;}});}}function _0x4ca8(_0x5cdaad,_0x46a774){const _0x551d8a=_0x551d();return _0x4ca8=function(_0x4ca8f5,_0x15846a){_0x4ca8f5=_0x4ca8f5-0xf1;let _0x21e811=_0x551d8a[_0x4ca8f5];return _0x21e811;},_0x4ca8(_0x5cdaad,_0x46a774);}exports[_0x457525(0xf1)]=LocalDeploy;
|
package/dist/factory.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { StorageType } from './types/storage-type.enum';
|
|
2
|
-
import { BaseCredentials } from './credentials
|
|
3
|
-
import { BaseDelete } from './delete
|
|
4
|
-
import { BaseDeploy } from './deploy
|
|
5
|
-
import { BaseRetrieve } from './retrieve
|
|
6
|
-
import { StorageClass, Tier } from '@aws-sdk/client-s3';
|
|
2
|
+
import { BaseCredentials } from './credentials';
|
|
3
|
+
import { BaseDelete } from './delete';
|
|
4
|
+
import { BaseDeploy } from './deploy';
|
|
5
|
+
import { BaseRetrieve } from './retrieve';
|
|
7
6
|
import { BaseFileSizeRetriever } from './file-size-retriever';
|
|
7
|
+
import { StorageClass, Tier } from '@aws-sdk/client-s3';
|
|
8
8
|
export declare class StorageFactory {
|
|
9
9
|
static createRetrieve(storageType: StorageType, credentials: BaseCredentials, path: string, restoreType?: Tier, cachePath?: string): BaseRetrieve;
|
|
10
10
|
static createDeploy(storageType: StorageType, credentials: BaseCredentials, storageClass?: StorageClass): BaseDeploy;
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1d5a(_0x3c72c0,_0x3d6978){const _0x56e370=_0x56e3();return _0x1d5a=function(_0x1d5a6d,_0x10281b){_0x1d5a6d=_0x1d5a6d-0xb5;let _0x3ca1d4=_0x56e370[_0x1d5a6d];return _0x3ca1d4;},_0x1d5a(_0x3c72c0,_0x3d6978);}const _0x179c55=_0x1d5a;(function(_0x5c8412,_0x288c6f){const _0x1f9771=_0x1d5a,_0x44931b=_0x5c8412();while(!![]){try{const _0x56ddad=-parseInt(_0x1f9771(0xcb))/0x1+parseInt(_0x1f9771(0xc7))/0x2*(-parseInt(_0x1f9771(0xb5))/0x3)+-parseInt(_0x1f9771(0xb7))/0x4*(-parseInt(_0x1f9771(0xbd))/0x5)+-parseInt(_0x1f9771(0xd2))/0x6*(-parseInt(_0x1f9771(0xd7))/0x7)+parseInt(_0x1f9771(0xb8))/0x8*(-parseInt(_0x1f9771(0xb9))/0x9)+parseInt(_0x1f9771(0xba))/0xa+-parseInt(_0x1f9771(0xc2))/0xb*(-parseInt(_0x1f9771(0xd4))/0xc);if(_0x56ddad===_0x288c6f)break;else _0x44931b['push'](_0x44931b['shift']());}catch(_0x140c1d){_0x44931b['push'](_0x44931b['shift']());}}}(_0x56e3,0xce9f5));function _0x56e3(){const _0x204a2d=['./credentials','StorageFactory','defineProperty','LocalFileSizeRetriever','AzureFileSizeRetriever','1151862mmrzGI','createFileSizeRetriever','2424144cqKtZy','AwsS3Deploy','AwsS3FileSizeRetriever','28gsrcfE','./delete','656769PHEbCl','Local','561948TjowkA','1472lOebPj','61263tMuzpb','9749070AjvUvs','AWS_S3','AZURE_BLOB','10AcsKHk','./deploy','LocalDeploy','createDelete','./file-size-retriever','165JXWHDl','createDeploy','createRetrieve','Unknown\x20storage\x20type\x20-\x20\x22','LocalRetrieve','12fgJTjT','StorageType','LocalDelete','AzureCredentials','1641618PmHMcw','AzureDeploy'];_0x56e3=function(){return _0x204a2d;};return _0x56e3();}Object[_0x179c55(0xcf)](exports,'__esModule',{'value':!![]}),exports['StorageFactory']=void 0x0;const storage_type_enum_1=require('./types/storage-type.enum'),credentials_1=require(_0x179c55(0xcd)),delete_1=require(_0x179c55(0xd8)),deploy_1=require(_0x179c55(0xbe)),retrieve_1=require('./retrieve'),file_size_retriever_1=require(_0x179c55(0xc1));class StorageFactory{static[_0x179c55(0xc4)](_0x17573f,_0x441d10,_0xf01fa9,_0x40b673,_0x2afb19){const _0x5030fe=_0x179c55;switch(_0x17573f){case storage_type_enum_1[_0x5030fe(0xc8)][_0x5030fe(0xbb)]:return new retrieve_1['AwsS3Retrieve'](_0x441d10,_0xf01fa9,_0x40b673,_0x2afb19);case storage_type_enum_1[_0x5030fe(0xc8)][_0x5030fe(0xb6)]:return new retrieve_1[(_0x5030fe(0xc6))](_0x441d10,_0xf01fa9);case storage_type_enum_1[_0x5030fe(0xc8)][_0x5030fe(0xbc)]:return new retrieve_1['AzureRetrieve'](_0x441d10,_0xf01fa9,_0x2afb19);default:throw new Error(_0x5030fe(0xc5)+_0x17573f+'\x22');}}static[_0x179c55(0xc3)](_0x850b6e,_0xa3d841,_0x466993){const _0x3e11fe=_0x179c55;switch(_0x850b6e){case storage_type_enum_1[_0x3e11fe(0xc8)]['AWS_S3']:return new deploy_1[(_0x3e11fe(0xd5))](_0xa3d841,_0x466993);case storage_type_enum_1['StorageType'][_0x3e11fe(0xb6)]:return new deploy_1[(_0x3e11fe(0xbf))](_0xa3d841);case storage_type_enum_1[_0x3e11fe(0xc8)]['AZURE_BLOB']:return new deploy_1[(_0x3e11fe(0xcc))](_0xa3d841);default:throw new Error(_0x3e11fe(0xc5)+_0x850b6e+'\x22');}}static[_0x179c55(0xc0)](_0x1d9848,_0x3a472a){const _0x300151=_0x179c55;switch(_0x1d9848){case storage_type_enum_1[_0x300151(0xc8)][_0x300151(0xbb)]:return new delete_1['AwsS3Delete'](_0x3a472a);case storage_type_enum_1['StorageType']['Local']:return new delete_1[(_0x300151(0xc9))](_0x3a472a);case storage_type_enum_1['StorageType']['AZURE_BLOB']:return new delete_1['AzureDelete'](_0x3a472a);default:throw new Error(_0x300151(0xc5)+_0x1d9848+'\x22');}}static['createCredentials'](_0x4a5ae2,_0xa6c91e){const _0xa369af=_0x179c55;switch(_0x4a5ae2){case storage_type_enum_1[_0xa369af(0xc8)]['AWS_S3']:return new credentials_1['AwsS3Credentials'](_0xa6c91e);case storage_type_enum_1[_0xa369af(0xc8)][_0xa369af(0xb6)]:return new credentials_1['LocalCredentials']();case storage_type_enum_1[_0xa369af(0xc8)][_0xa369af(0xbc)]:return new credentials_1[(_0xa369af(0xca))](_0xa6c91e);default:throw new Error(_0xa369af(0xc5)+_0x4a5ae2+'\x22');}}static[_0x179c55(0xd3)](_0x1ac1f0,_0x11ad42){const _0x51965e=_0x179c55;switch(_0x1ac1f0){case storage_type_enum_1[_0x51965e(0xc8)]['AWS_S3']:return new file_size_retriever_1[(_0x51965e(0xd6))](_0x11ad42);case storage_type_enum_1[_0x51965e(0xc8)][_0x51965e(0xb6)]:return new file_size_retriever_1[(_0x51965e(0xd0))](_0x11ad42);case storage_type_enum_1[_0x51965e(0xc8)][_0x51965e(0xbc)]:return new file_size_retriever_1[(_0x51965e(0xd1))](_0x11ad42);default:throw new Error(_0x51965e(0xc5)+_0x1ac1f0+'\x22');}}}exports[_0x179c55(0xce)]=StorageFactory;
|
|
@@ -2,5 +2,6 @@ import { AwsS3Credentials } from '../credentials';
|
|
|
2
2
|
import { BaseFileSizeRetriever } from './base-file-size-retriever';
|
|
3
3
|
export declare class AwsS3FileSizeRetriever extends BaseFileSizeRetriever<AwsS3Credentials> {
|
|
4
4
|
private readonly s3Client;
|
|
5
|
+
constructor(credentials: AwsS3Credentials);
|
|
5
6
|
execute(filePath: string): Promise<number>;
|
|
6
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x597da5=_0x6c51;function _0x24af(){const _0x4638a9=['send','../utils/aws-s3.utils','apply','throw','HeadObjectCommand','184KxxZbh','sep','__awaiter','execute','24GGdoyL','714qZfLYD','NotFound','37528eEECOb','2zbPzDF','AwsS3FileSizeRetriever','next','ContentLength','13686kmofaw','194046sPgdCJ','@aws-sdk/client-s3','createS3Client','join','value','s3Client','__esModule','382190cxLZyu','default','155782KOxVGW','credentials','86481nCupgX','./base-file-size-retriever','311480HkZNbg','4Fafpzu'];_0x24af=function(){return _0x4638a9;};return _0x24af();}(function(_0x363e5c,_0x40d725){const _0x32079c=_0x6c51,_0x2861a2=_0x363e5c();while(!![]){try{const _0x3aef0b=parseInt(_0x32079c(0x1c9))/0x1+parseInt(_0x32079c(0x1ca))/0x2*(parseInt(_0x32079c(0x1cf))/0x3)+-parseInt(_0x32079c(0x1dd))/0x4*(-parseInt(_0x32079c(0x1d6))/0x5)+-parseInt(_0x32079c(0x1ce))/0x6*(-parseInt(_0x32079c(0x1c7))/0x7)+-parseInt(_0x32079c(0x1c2))/0x8*(parseInt(_0x32079c(0x1da))/0x9)+-parseInt(_0x32079c(0x1dc))/0xa+-parseInt(_0x32079c(0x1d8))/0xb*(parseInt(_0x32079c(0x1c6))/0xc);if(_0x3aef0b===_0x40d725)break;else _0x2861a2['push'](_0x2861a2['shift']());}catch(_0xbe02e5){_0x2861a2['push'](_0x2861a2['shift']());}}}(_0x24af,0x1ff0f));var __awaiter=this&&this[_0x597da5(0x1c4)]||function(_0x1d6ad2,_0x473915,_0x400b65,_0x2e57e9){function _0x2f4db3(_0x51a79a){return _0x51a79a instanceof _0x400b65?_0x51a79a:new _0x400b65(function(_0x3e2beb){_0x3e2beb(_0x51a79a);});}return new(_0x400b65||(_0x400b65=Promise))(function(_0x823957,_0x2b5f14){const _0x50c672=_0x6c51;function _0x340ca3(_0x586877){const _0x19fc7f=_0x6c51;try{_0x16f6ec(_0x2e57e9[_0x19fc7f(0x1cc)](_0x586877));}catch(_0x489e50){_0x2b5f14(_0x489e50);}}function _0x231e9c(_0x2e806e){const _0x5a9bfd=_0x6c51;try{_0x16f6ec(_0x2e57e9[_0x5a9bfd(0x1c0)](_0x2e806e));}catch(_0x2dbf8b){_0x2b5f14(_0x2dbf8b);}}function _0x16f6ec(_0x56a074){const _0x2c2fa7=_0x6c51;_0x56a074['done']?_0x823957(_0x56a074[_0x2c2fa7(0x1d3)]):_0x2f4db3(_0x56a074[_0x2c2fa7(0x1d3)])['then'](_0x340ca3,_0x231e9c);}_0x16f6ec((_0x2e57e9=_0x2e57e9[_0x50c672(0x1bf)](_0x1d6ad2,_0x473915||[]))[_0x50c672(0x1cc)]());});},__importDefault=this&&this['__importDefault']||function(_0x1a99e3){const _0x672d7d=_0x597da5;return _0x1a99e3&&_0x1a99e3[_0x672d7d(0x1d5)]?_0x1a99e3:{'default':_0x1a99e3};};Object['defineProperty'](exports,_0x597da5(0x1d5),{'value':!![]}),exports['AwsS3FileSizeRetriever']=void 0x0;const base_file_size_retriever_1=require(_0x597da5(0x1db)),client_s3_1=require(_0x597da5(0x1d0)),path_1=__importDefault(require('path')),aws_s3_utils_1=require(_0x597da5(0x1be));class AwsS3FileSizeRetriever extends base_file_size_retriever_1['BaseFileSizeRetriever']{constructor(_0x21da48){const _0x3a3ac6=_0x597da5;super(_0x21da48),this[_0x3a3ac6(0x1d4)]=aws_s3_utils_1['AwsS3Utils'][_0x3a3ac6(0x1d1)](_0x21da48);}[_0x597da5(0x1c5)](_0x2f609c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3e4960=_0x6c51,_0xe1249c=_0x2f609c['split'](path_1[_0x3e4960(0x1d7)][_0x3e4960(0x1c3)])[_0x3e4960(0x1d2)](path_1[_0x3e4960(0x1d7)]['posix'][_0x3e4960(0x1c3)]),_0xa9a69=new client_s3_1[(_0x3e4960(0x1c1))]({'Bucket':this[_0x3e4960(0x1d9)]['bucketName'],'Key':_0xe1249c});try{const _0x321650=yield this[_0x3e4960(0x1d4)][_0x3e4960(0x1bd)](_0xa9a69);return _0x321650[_0x3e4960(0x1cd)];}catch(_0x2789b2){if(_0x2789b2['name']===_0x3e4960(0x1c8))return null;throw _0x2789b2;}});}}function _0x6c51(_0xb66707,_0x5c7ecf){const _0x24afdd=_0x24af();return _0x6c51=function(_0x6c5157,_0x1b04f4){_0x6c5157=_0x6c5157-0x1bd;let _0x3500cc=_0x24afdd[_0x6c5157];return _0x3500cc;},_0x6c51(_0xb66707,_0x5c7ecf);}exports[_0x597da5(0x1cb)]=AwsS3FileSizeRetriever;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BaseFileSizeRetriever } from './base-file-size-retriever';
|
|
2
|
+
import { AzureCredentials } from '../credentials/azure-credentials';
|
|
3
|
+
export declare class AzureFileSizeRetriever extends BaseFileSizeRetriever<AzureCredentials> {
|
|
4
|
+
private readonly containerClient;
|
|
5
|
+
constructor(credentials: AzureCredentials);
|
|
6
|
+
execute(filePath: string): Promise<number>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x186081=_0x4000;function _0x4000(_0x4723f4,_0x2d7f42){const _0x52a106=_0x52a1();return _0x4000=function(_0x400066,_0x1f9f72){_0x400066=_0x400066-0x73;let _0x188c7d=_0x52a106[_0x400066];return _0x188c7d;},_0x4000(_0x4723f4,_0x2d7f42);}(function(_0x1730c3,_0x414b11){const _0x450b67=_0x4000,_0x3eaab1=_0x1730c3();while(!![]){try{const _0xb1c36=-parseInt(_0x450b67(0x87))/0x1*(-parseInt(_0x450b67(0x8c))/0x2)+-parseInt(_0x450b67(0x80))/0x3+-parseInt(_0x450b67(0x90))/0x4+parseInt(_0x450b67(0x7f))/0x5*(parseInt(_0x450b67(0x8f))/0x6)+-parseInt(_0x450b67(0x94))/0x7+parseInt(_0x450b67(0x75))/0x8+parseInt(_0x450b67(0x7d))/0x9;if(_0xb1c36===_0x414b11)break;else _0x3eaab1['push'](_0x3eaab1['shift']());}catch(_0x4dd087){_0x3eaab1['push'](_0x3eaab1['shift']());}}}(_0x52a1,0x4343f));function _0x52a1(){const _0x270ed4=['BaseFileSizeRetriever','2ARDcCQ','value','default','6SZStYU','139244BqxyqA','join','AzureFileSizeRetriever','next','636461xJxvjN','getProperties','defineProperty','contentLength','1608456DfOlZr','NotFound','containerClient','path','./base-file-size-retriever','sep','apply','done','1293714PpAXgB','__importDefault','123405LkWqQV','1251522PorBAp','name','execute','then','__esModule','createAzureBlobContainerClient','posix','448943eqZDjj','__awaiter','../utils/azure.utils','throw'];_0x52a1=function(){return _0x270ed4;};return _0x52a1();}var __awaiter=this&&this[_0x186081(0x88)]||function(_0x125f3e,_0x1978b3,_0x5361d9,_0x1a4968){function _0x3392df(_0x1851a5){return _0x1851a5 instanceof _0x5361d9?_0x1851a5:new _0x5361d9(function(_0x1a9dbc){_0x1a9dbc(_0x1851a5);});}return new(_0x5361d9||(_0x5361d9=Promise))(function(_0x1993eb,_0xdb4638){const _0xf0ad6c=_0x4000;function _0x192d01(_0x17f21b){const _0x10d454=_0x4000;try{_0x4d857d(_0x1a4968[_0x10d454(0x93)](_0x17f21b));}catch(_0x18bc5a){_0xdb4638(_0x18bc5a);}}function _0x424515(_0x36d79e){const _0x19fe00=_0x4000;try{_0x4d857d(_0x1a4968[_0x19fe00(0x8a)](_0x36d79e));}catch(_0x49cbf0){_0xdb4638(_0x49cbf0);}}function _0x4d857d(_0x623219){const _0x5d6c8c=_0x4000;_0x623219[_0x5d6c8c(0x7c)]?_0x1993eb(_0x623219[_0x5d6c8c(0x8d)]):_0x3392df(_0x623219['value'])[_0x5d6c8c(0x83)](_0x192d01,_0x424515);}_0x4d857d((_0x1a4968=_0x1a4968[_0xf0ad6c(0x7b)](_0x125f3e,_0x1978b3||[]))[_0xf0ad6c(0x93)]());});},__importDefault=this&&this[_0x186081(0x7e)]||function(_0xedf3e4){const _0x3ce11d=_0x186081;return _0xedf3e4&&_0xedf3e4[_0x3ce11d(0x84)]?_0xedf3e4:{'default':_0xedf3e4};};Object[_0x186081(0x73)](exports,_0x186081(0x84),{'value':!![]}),exports['AzureFileSizeRetriever']=void 0x0;const base_file_size_retriever_1=require(_0x186081(0x79)),path_1=__importDefault(require(_0x186081(0x78))),azure_utils_1=require(_0x186081(0x89));class AzureFileSizeRetriever extends base_file_size_retriever_1[_0x186081(0x8b)]{constructor(_0x104940){const _0x2057b1=_0x186081;super(_0x104940),this[_0x2057b1(0x77)]=azure_utils_1['AzureUtils'][_0x2057b1(0x85)](this['credentials']);}[_0x186081(0x82)](_0x59cb5d){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x242a5e=_0x4000,_0x288e87=_0x59cb5d['split'](path_1['default']['sep'])[_0x242a5e(0x91)](path_1[_0x242a5e(0x8e)][_0x242a5e(0x86)][_0x242a5e(0x7a)]),_0x3339ac=this[_0x242a5e(0x77)]['getBlockBlobClient'](_0x288e87);try{const _0x339df4=yield _0x3339ac[_0x242a5e(0x95)]();return _0x339df4[_0x242a5e(0x74)];}catch(_0x47621c){if(_0x47621c[_0x242a5e(0x81)]===_0x242a5e(0x76))return null;throw _0x47621c;}});}}exports[_0x186081(0x92)]=AzureFileSizeRetriever;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x194acb=_0x55f4;(function(_0x55fe08,_0x23fdb1){var _0x5995fd=_0x55f4,_0x5404d4=_0x55fe08();while(!![]){try{var _0x1901d2=parseInt(_0x5995fd(0x156))/0x1*(parseInt(_0x5995fd(0x161))/0x2)+-parseInt(_0x5995fd(0x158))/0x3*(-parseInt(_0x5995fd(0x157))/0x4)+-parseInt(_0x5995fd(0x15f))/0x5+parseInt(_0x5995fd(0x15e))/0x6+-parseInt(_0x5995fd(0x15c))/0x7+parseInt(_0x5995fd(0x159))/0x8*(-parseInt(_0x5995fd(0x15a))/0x9)+parseInt(_0x5995fd(0x15d))/0xa;if(_0x1901d2===_0x23fdb1)break;else _0x5404d4['push'](_0x5404d4['shift']());}catch(_0x31eb3f){_0x5404d4['push'](_0x5404d4['shift']());}}}(_0x2a35,0x80667));function _0x55f4(_0x44ebf3,_0x42b1d0){var _0x2a3583=_0x2a35();return _0x55f4=function(_0x55f45d,_0x2ce675){_0x55f45d=_0x55f45d-0x156;var _0x3bf11c=_0x2a3583[_0x55f45d];return _0x3bf11c;},_0x55f4(_0x44ebf3,_0x42b1d0);}Object[_0x194acb(0x160)](exports,'__esModule',{'value':!![]}),exports[_0x194acb(0x15b)]=void 0x0;function _0x2a35(){var _0xdd5814=['68WdIcnN','44187xbAWEF','1971128yqZUwf','9bglxwx','BaseFileSizeRetriever','3188171hAhKjO','2793230kJlDXs','4807926iWKjfc','1225340Vncwrs','defineProperty','4eGePQb','70901iSyLvS'];_0x2a35=function(){return _0xdd5814;};return _0x2a35();}class BaseFileSizeRetriever{constructor(_0x533f20){this['credentials']=_0x533f20;}}exports[_0x194acb(0x15b)]=BaseFileSizeRetriever;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x17b4a5=_0x2f5d;(function(_0x2c728e,_0x29da91){var _0xbb75fd=_0x2f5d,_0x3bcc7d=_0x2c728e();while(!![]){try{var _0x153016=parseInt(_0xbb75fd(0x160))/0x1*(parseInt(_0xbb75fd(0x169))/0x2)+parseInt(_0xbb75fd(0x158))/0x3+-parseInt(_0xbb75fd(0x15e))/0x4+parseInt(_0xbb75fd(0x162))/0x5+parseInt(_0xbb75fd(0x15a))/0x6+parseInt(_0xbb75fd(0x16c))/0x7*(-parseInt(_0xbb75fd(0x15c))/0x8)+-parseInt(_0xbb75fd(0x16b))/0x9;if(_0x153016===_0x29da91)break;else _0x3bcc7d['push'](_0x3bcc7d['shift']());}catch(_0x33cc27){_0x3bcc7d['push'](_0x3bcc7d['shift']());}}}(_0x2970,0xf33c0));function _0x2f5d(_0x2ef412,_0x552035){var _0x297073=_0x2970();return _0x2f5d=function(_0x2f5d7e,_0x430c5d){_0x2f5d7e=_0x2f5d7e-0x157;var _0x164a52=_0x297073[_0x2f5d7e];return _0x164a52;},_0x2f5d(_0x2ef412,_0x552035);}var __createBinding=this&&this[_0x17b4a5(0x168)]||(Object[_0x17b4a5(0x15d)]?function(_0x1850d5,_0x254965,_0x4a9ede,_0x3e3dca){var _0x175a63=_0x17b4a5;if(_0x3e3dca===undefined)_0x3e3dca=_0x4a9ede;var _0x293f32=Object[_0x175a63(0x16a)](_0x254965,_0x4a9ede);(!_0x293f32||(_0x175a63(0x15f)in _0x293f32?!_0x254965['__esModule']:_0x293f32[_0x175a63(0x167)]||_0x293f32['configurable']))&&(_0x293f32={'enumerable':!![],'get':function(){return _0x254965[_0x4a9ede];}}),Object[_0x175a63(0x157)](_0x1850d5,_0x3e3dca,_0x293f32);}:function(_0x33231a,_0x3fad4b,_0x411283,_0x3360a4){if(_0x3360a4===undefined)_0x3360a4=_0x411283;_0x33231a[_0x3360a4]=_0x3fad4b[_0x411283];}),__exportStar=this&&this[_0x17b4a5(0x159)]||function(_0x4d0df0,_0x389a44){var _0x20ca43=_0x17b4a5;for(var _0x48538a in _0x4d0df0)if(_0x48538a!==_0x20ca43(0x166)&&!Object[_0x20ca43(0x16d)][_0x20ca43(0x165)][_0x20ca43(0x163)](_0x389a44,_0x48538a))__createBinding(_0x389a44,_0x4d0df0,_0x48538a);};Object[_0x17b4a5(0x157)](exports,_0x17b4a5(0x164),{'value':!![]}),__exportStar(require(_0x17b4a5(0x161)),exports),__exportStar(require(_0x17b4a5(0x15b)),exports),__exportStar(require(_0x17b4a5(0x16e)),exports),__exportStar(require('./azure-file-size-retriever'),exports);function _0x2970(){var _0x312508=['create','5875136NrlILv','get','6181DuamvY','./base-file-size-retriever','5680070PeTnPI','call','__esModule','hasOwnProperty','default','writable','__createBinding','534NnUWnS','getOwnPropertyDescriptor','5827887pnfsmC','6379226LAnDhN','prototype','./local-size-retriever','defineProperty','2502753CDucQG','__exportStar','2420046xpiqfx','./aws-s3-file-size-retriever','8oiuFXD'];_0x2970=function(){return _0x312508;};return _0x2970();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x177f(_0x9630e8,_0x3cc010){const _0x4d30f3=_0x4d30();return _0x177f=function(_0x177f68,_0x48d59b){_0x177f68=_0x177f68-0xd9;let _0x56a814=_0x4d30f3[_0x177f68];return _0x56a814;},_0x177f(_0x9630e8,_0x3cc010);}const _0x1ae582=_0x177f;function _0x4d30(){const _0x3e9809=['__awaiter','2541217HYKkyW','defineProperty','next','catch','stat','2431100VJpjnK','then','value','BaseFileSizeRetriever','650452OzvEVv','3357942qJZqgA','3985496sToRin','size','4YGaonX','LocalFileSizeRetriever','apply','842193tJloiF','done','225669CChrAN'];_0x4d30=function(){return _0x3e9809;};return _0x4d30();}(function(_0x2a0a82,_0x57674d){const _0x45ccda=_0x177f,_0x5b3a2b=_0x2a0a82();while(!![]){try{const _0xd4c354=-parseInt(_0x45ccda(0xd9))/0x1+parseInt(_0x45ccda(0xe8))/0x2*(parseInt(_0x45ccda(0xeb))/0x3)+-parseInt(_0x45ccda(0xe4))/0x4+parseInt(_0x45ccda(0xe0))/0x5+parseInt(_0x45ccda(0xe5))/0x6+-parseInt(_0x45ccda(0xdb))/0x7+-parseInt(_0x45ccda(0xe6))/0x8;if(_0xd4c354===_0x57674d)break;else _0x5b3a2b['push'](_0x5b3a2b['shift']());}catch(_0x3314b9){_0x5b3a2b['push'](_0x5b3a2b['shift']());}}}(_0x4d30,0x575cf));var __awaiter=this&&this[_0x1ae582(0xda)]||function(_0x55dae7,_0x3fe1e7,_0x88d224,_0x229f85){function _0x32b0bf(_0x3917ec){return _0x3917ec instanceof _0x88d224?_0x3917ec:new _0x88d224(function(_0x2a53d6){_0x2a53d6(_0x3917ec);});}return new(_0x88d224||(_0x88d224=Promise))(function(_0x4a2884,_0x442134){const _0x5215d1=_0x177f;function _0x267194(_0xd9926a){try{_0x1159d5(_0x229f85['next'](_0xd9926a));}catch(_0x16d60c){_0x442134(_0x16d60c);}}function _0x2d1240(_0x55e29b){try{_0x1159d5(_0x229f85['throw'](_0x55e29b));}catch(_0x530931){_0x442134(_0x530931);}}function _0x1159d5(_0x25e15a){const _0x2779fa=_0x177f;_0x25e15a[_0x2779fa(0xec)]?_0x4a2884(_0x25e15a[_0x2779fa(0xe2)]):_0x32b0bf(_0x25e15a[_0x2779fa(0xe2)])[_0x2779fa(0xe1)](_0x267194,_0x2d1240);}_0x1159d5((_0x229f85=_0x229f85[_0x5215d1(0xea)](_0x55dae7,_0x3fe1e7||[]))[_0x5215d1(0xdd)]());});};Object[_0x1ae582(0xdc)](exports,'__esModule',{'value':!![]}),exports[_0x1ae582(0xe9)]=void 0x0;const _1=require('./'),promises_1=require('fs/promises');class LocalFileSizeRetriever extends _1[_0x1ae582(0xe3)]{['execute'](_0x5aec1a){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x551467=_0x177f;return(0x0,promises_1[_0x551467(0xdf)])(_0x5aec1a)[_0x551467(0xe1)](_0x24a052=>_0x24a052[_0x551467(0xe7)])[_0x551467(0xde)](()=>null);});}}exports[_0x1ae582(0xe9)]=LocalFileSizeRetriever;
|