@flosum/storages 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/copy/aws-s3-copy.js +1 -1
- package/dist/copy/base-copy.js +1 -1
- package/dist/copy/index.js +1 -1
- package/dist/copy/local-copy.js +1 -1
- package/dist/credentials/aws-s3-credentials.d.ts +0 -2
- package/dist/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/azure-credentials.d.ts +0 -2
- package/dist/credentials/azure-credentials.js +1 -1
- package/dist/credentials/base-credentials.js +1 -1
- package/dist/credentials/google-cloud-credentials-validator.d.ts +0 -2
- package/dist/credentials/google-cloud-credentials-validator.js +1 -1
- package/dist/credentials/google-cloud-credentials.js +1 -1
- package/dist/credentials/index.js +1 -1
- package/dist/credentials/local-credentials.js +1 -1
- package/dist/delete/aws-s3-delete.js +1 -1
- package/dist/delete/azure-delete.js +1 -1
- package/dist/delete/base-delete.js +1 -1
- package/dist/delete/google-cloud-delete.js +1 -1
- package/dist/delete/index.js +1 -1
- package/dist/delete/local-delete.js +1 -1
- package/dist/deploy/aws-s3-deploy.js +1 -1
- package/dist/deploy/azure-deploy.js +1 -1
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/google-cloud-deploy.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/google-cloud-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/instances/aws-s3.storage-instance.js +1 -1
- package/dist/instances/base.storage-instance.js +1 -1
- package/dist/instances/index.js +1 -1
- package/dist/instances/local.storage-instance.js +1 -1
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/google-cloud-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/google-cloud-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/google-cloud.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/dist/utils/google-cloud.utils.js +1 -1
- package/package.json +1 -1
package/dist/copy/aws-s3-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4121da=_0x5412;(function(_0x78a98b,_0x3f1b1a){const _0x119f33=_0x5412,_0x5202ad=_0x78a98b();while(!![]){try{const _0x20ad78=-parseInt(_0x119f33(0x17d))/0x1*(parseInt(_0x119f33(0x16d))/0x2)+-parseInt(_0x119f33(0x16e))/0x3*(-parseInt(_0x119f33(0x183))/0x4)+-parseInt(_0x119f33(0x170))/0x5*(parseInt(_0x119f33(0x174))/0x6)+parseInt(_0x119f33(0x182))/0x7*(-parseInt(_0x119f33(0x185))/0x8)+parseInt(_0x119f33(0x187))/0x9+parseInt(_0x119f33(0x179))/0xa*(-parseInt(_0x119f33(0x176))/0xb)+parseInt(_0x119f33(0x17c))/0xc;if(_0x20ad78===_0x3f1b1a)break;else _0x5202ad['push'](_0x5202ad['shift']());}catch(_0xf65b98){_0x5202ad['push'](_0x5202ad['shift']());}}}(_0x3650,0xe92e4));function _0x3650(){const _0x3079a3=['447048mUPxjv','__awaiter','6502608lxLNyT','../utils/aws-s3.utils','defineProperty','10uBvtzK','6LIbrNi','CopyObjectCommand','7413865Msmmrh','./base-copy','@aws-sdk/client-s3','credentials','6hkAuKL','bucketName','18951438LXBnPR','send','AwsS3Copy','10OyuLoG','value','done','70665456IjAJUi','272042RGLQOD','__esModule','then','s3Client','apply','175LGFCcF','613348Gnrxzv','BaseCopy'];_0x3650=function(){return _0x3079a3;};return _0x3650();}function _0x5412(_0x24d4c6,_0x5d2999){_0x24d4c6=_0x24d4c6-0x16c;const _0x3650e7=_0x3650();let _0x541202=_0x3650e7[_0x24d4c6];return _0x541202;}var __awaiter=this&&this[_0x4121da(0x186)]||function(_0x2d25fa,_0x1118f1,_0x371d49,_0x2ee60c){function _0x1f011b(_0x38439e){return _0x38439e instanceof _0x371d49?_0x38439e:new _0x371d49(function(_0x2e1e24){_0x2e1e24(_0x38439e);});}return new(_0x371d49||(_0x371d49=Promise))(function(_0x3a6e24,_0x398334){const _0x190ad9=_0x5412;function _0x361a6b(_0x54f5db){try{_0x44968a(_0x2ee60c['next'](_0x54f5db));}catch(_0x26ff5c){_0x398334(_0x26ff5c);}}function _0x5dd9f8(_0x16eb82){try{_0x44968a(_0x2ee60c['throw'](_0x16eb82));}catch(_0x32206a){_0x398334(_0x32206a);}}function _0x44968a(_0x523f07){const _0x2b5214=_0x5412;_0x523f07[_0x2b5214(0x17b)]?_0x3a6e24(_0x523f07[_0x2b5214(0x17a)]):_0x1f011b(_0x523f07['value'])[_0x2b5214(0x17f)](_0x361a6b,_0x5dd9f8);}_0x44968a((_0x2ee60c=_0x2ee60c[_0x190ad9(0x181)](_0x2d25fa,_0x1118f1||[]))['next']());});};Object[_0x4121da(0x16c)](exports,_0x4121da(0x17e),{'value':!![]}),exports[_0x4121da(0x178)]=void 0x0;const base_copy_1=require(_0x4121da(0x171)),client_s3_1=require(_0x4121da(0x172)),aws_s3_utils_1=require(_0x4121da(0x188));class AwsS3Copy extends base_copy_1[_0x4121da(0x184)]{constructor(_0x1c9756,_0x29eb50){const _0x2cde35=_0x4121da;super(_0x1c9756),this[_0x2cde35(0x180)]=_0x29eb50||aws_s3_utils_1['AwsS3Utils']['createS3Client'](_0x1c9756);}['execute'](_0x3f1ead,_0x426ae3){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x40cdbd=_0x5412,_0x5764e8=new client_s3_1[(_0x40cdbd(0x16f))]({'Bucket':this[_0x40cdbd(0x173)][_0x40cdbd(0x175)],'CopySource':_0x3f1ead,'Key':_0x426ae3});yield this[_0x40cdbd(0x180)][_0x40cdbd(0x177)](_0x5764e8);});}}exports[_0x4121da(0x178)]=AwsS3Copy;
|
package/dist/copy/base-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x9cd083=_0x1d78;function _0x36ac(){var _0x19b42a=['242874kpKDZo','6564nIOCfR','credentials','72728bFWgQQ','defineProperty','721OtYUuC','23703cQjwmI','2457URYyGD','BaseCopy','14230sUTYXi','731150OelcOH','796346GZRvQC','116uiJVjn'];_0x36ac=function(){return _0x19b42a;};return _0x36ac();}function _0x1d78(_0x38cb2e,_0x4302ad){_0x38cb2e=_0x38cb2e-0x167;var _0x36ac72=_0x36ac();var _0x1d7837=_0x36ac72[_0x38cb2e];return _0x1d7837;}(function(_0x113248,_0x51d4bc){var _0xf3837c=_0x1d78,_0x1e13db=_0x113248();while(!![]){try{var _0x85be6e=parseInt(_0xf3837c(0x16c))/0x1+parseInt(_0xf3837c(0x16a))/0x2+-parseInt(_0xf3837c(0x172))/0x3*(-parseInt(_0xf3837c(0x16b))/0x4)+-parseInt(_0xf3837c(0x169))/0x5+parseInt(_0xf3837c(0x16d))/0x6*(-parseInt(_0xf3837c(0x171))/0x7)+parseInt(_0xf3837c(0x16f))/0x8+parseInt(_0xf3837c(0x173))/0x9*(-parseInt(_0xf3837c(0x168))/0xa);if(_0x85be6e===_0x51d4bc)break;else _0x1e13db['push'](_0x1e13db['shift']());}catch(_0x2e4772){_0x1e13db['push'](_0x1e13db['shift']());}}}(_0x36ac,0x389c4));Object[_0x9cd083(0x170)](exports,'__esModule',{'value':!![]}),exports[_0x9cd083(0x167)]=void 0x0;class BaseCopy{constructor(_0x511a2d){var _0x266932=_0x9cd083;this[_0x266932(0x16e)]=_0x511a2d;}}exports[_0x9cd083(0x167)]=BaseCopy;
|
package/dist/copy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4bc7(){var _0x26996d=['defineProperty','105nYcTXS','7644kTdbGK','./base-copy','__esModule','./aws-s3-copy','115832kIILGU','432898SOHNwg','3360429Qbeacp','804900EeSGbj','AwsS3Copy','1332416ISUEQH','LocalCopy','3waIAkN','BaseCopy','992145qnvRhg'];_0x4bc7=function(){return _0x26996d;};return _0x4bc7();}var _0x229852=_0x43eb;(function(_0x2d6c21,_0x41dc06){var _0x57fab8=_0x43eb,_0x3ddb6d=_0x2d6c21();while(!![]){try{var _0x3299e6=parseInt(_0x57fab8(0x15d))/0x1+-parseInt(_0x57fab8(0x15e))/0x2*(parseInt(_0x57fab8(0x154))/0x3)+parseInt(_0x57fab8(0x160))/0x4+-parseInt(_0x57fab8(0x156))/0x5+parseInt(_0x57fab8(0x159))/0x6*(parseInt(_0x57fab8(0x158))/0x7)+-parseInt(_0x57fab8(0x152))/0x8+parseInt(_0x57fab8(0x15f))/0x9;if(_0x3299e6===_0x41dc06)break;else _0x3ddb6d['push'](_0x3ddb6d['shift']());}catch(_0x435dbc){_0x3ddb6d['push'](_0x3ddb6d['shift']());}}}(_0x4bc7,0x1f476));Object[_0x229852(0x157)](exports,_0x229852(0x15b),{'value':!![]}),exports[_0x229852(0x151)]=exports[_0x229852(0x153)]=exports[_0x229852(0x155)]=void 0x0;var base_copy_1=require(_0x229852(0x15a));Object['defineProperty'](exports,_0x229852(0x155),{'enumerable':!![],'get':function(){var _0x3c838e=_0x229852;return base_copy_1[_0x3c838e(0x155)];}});var local_copy_1=require('./local-copy');Object[_0x229852(0x157)](exports,_0x229852(0x153),{'enumerable':!![],'get':function(){return local_copy_1['LocalCopy'];}});function _0x43eb(_0x169b8f,_0x561ddb){_0x169b8f=_0x169b8f-0x151;var _0x4bc776=_0x4bc7();var _0x43eb15=_0x4bc776[_0x169b8f];return _0x43eb15;}var aws_s3_copy_1=require(_0x229852(0x15c));Object[_0x229852(0x157)](exports,_0x229852(0x151),{'enumerable':!![],'get':function(){return aws_s3_copy_1['AwsS3Copy'];}});
|
package/dist/copy/local-copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x7c1f33=_0x5b43;function _0x5b43(_0x31fec2,_0x2d4271){_0x31fec2=_0x31fec2-0x1c5;const _0x229813=_0x2298();let _0x5b4301=_0x229813[_0x31fec2];return _0x5b4301;}(function(_0x2a7b4b,_0x3df78e){const _0xb654c=_0x5b43,_0x4e8931=_0x2a7b4b();while(!![]){try{const _0x33c75e=parseInt(_0xb654c(0x1d2))/0x1+parseInt(_0xb654c(0x1db))/0x2+-parseInt(_0xb654c(0x1d8))/0x3*(-parseInt(_0xb654c(0x1da))/0x4)+-parseInt(_0xb654c(0x1d1))/0x5+-parseInt(_0xb654c(0x1d7))/0x6+parseInt(_0xb654c(0x1d4))/0x7+-parseInt(_0xb654c(0x1c8))/0x8*(parseInt(_0xb654c(0x1dc))/0x9);if(_0x33c75e===_0x3df78e)break;else _0x4e8931['push'](_0x4e8931['shift']());}catch(_0x1ef190){_0x4e8931['push'](_0x4e8931['shift']());}}}(_0x2298,0x27208));var __awaiter=this&&this[_0x7c1f33(0x1d6)]||function(_0x5d9d17,_0x373116,_0x622f42,_0x51d2c3){function _0x474130(_0x5eda1d){return _0x5eda1d instanceof _0x622f42?_0x5eda1d:new _0x622f42(function(_0x1d4e34){_0x1d4e34(_0x5eda1d);});}return new(_0x622f42||(_0x622f42=Promise))(function(_0x5cb3c2,_0x204020){const _0x32d89d=_0x5b43;function _0xaf17ef(_0x189128){const _0x2f33ba=_0x5b43;try{_0x3e592a(_0x51d2c3[_0x2f33ba(0x1c7)](_0x189128));}catch(_0x4ab7b9){_0x204020(_0x4ab7b9);}}function _0x1d2730(_0x2ed25b){const _0x2e0f01=_0x5b43;try{_0x3e592a(_0x51d2c3[_0x2e0f01(0x1cb)](_0x2ed25b));}catch(_0x189e26){_0x204020(_0x189e26);}}function _0x3e592a(_0x5b81ae){const _0x1005a9=_0x5b43;_0x5b81ae['done']?_0x5cb3c2(_0x5b81ae['value']):_0x474130(_0x5b81ae[_0x1005a9(0x1d0)])[_0x1005a9(0x1ce)](_0xaf17ef,_0x1d2730);}_0x3e592a((_0x51d2c3=_0x51d2c3['apply'](_0x5d9d17,_0x373116||[]))[_0x32d89d(0x1c7)]());});};Object[_0x7c1f33(0x1cd)](exports,_0x7c1f33(0x1c5),{'value':!![]}),exports['LocalCopy']=void 0x0;const base_copy_1=require(_0x7c1f33(0x1d5)),promises_1=require(_0x7c1f33(0x1c9)),path_1=require(_0x7c1f33(0x1cc));function _0x2298(){const _0x1c6fb1=['209200OaArqX','5202itBxxG','__esModule','BaseCopy','next','7256pRlygT','fs/promises','execute','throw','path','defineProperty','then','LocalCopy','value','214205JLxkWZ','143470ATaKpS','mkdir','2078587ZsJuIV','./base-copy','__awaiter','392262eOsvPm','3inHpEf','dirname','990868IKwKyo'];_0x2298=function(){return _0x1c6fb1;};return _0x2298();}class LocalCopy extends base_copy_1[_0x7c1f33(0x1c6)]{[_0x7c1f33(0x1ca)](_0x1610b4,_0x132f07){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5b2e99=_0x5b43,_0x4a1c74=(0x0,path_1[_0x5b2e99(0x1d9)])(_0x132f07);yield(0x0,promises_1[_0x5b2e99(0x1d3)])(_0x4a1c74,{'recursive':!![]}),yield(0x0,promises_1['copyFile'])(_0x1610b4,_0x132f07);});}}exports[_0x7c1f33(0x1cf)]=LocalCopy;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { BaseCredentials } from './base-credentials';
|
|
2
2
|
import { AwsCredentials } from '../types/aws.types';
|
|
3
3
|
export declare class AwsS3Credentials extends BaseCredentials<AwsCredentials> {
|
|
4
|
-
private readonly s3Client;
|
|
5
|
-
constructor(rawCredentials?: Record<string, any>);
|
|
6
4
|
get accessKeyId(): string;
|
|
7
5
|
get secretAccessKey(): string;
|
|
8
6
|
get bucketName(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x3da2e6=_0x446a;function _0x446a(_0x3c3b2e,_0x351135){_0x3c3b2e=_0x3c3b2e-0x178;const _0x4fcaee=_0x4fca();let _0x446ae7=_0x4fcaee[_0x3c3b2e];return _0x446ae7;}(function(_0x280268,_0x438f0e){const _0x38d3b8=_0x446a,_0x10eaa0=_0x280268();while(!![]){try{const _0x502c67=-parseInt(_0x38d3b8(0x189))/0x1*(parseInt(_0x38d3b8(0x17e))/0x2)+parseInt(_0x38d3b8(0x180))/0x3+-parseInt(_0x38d3b8(0x184))/0x4+parseInt(_0x38d3b8(0x17b))/0x5*(-parseInt(_0x38d3b8(0x197))/0x6)+-parseInt(_0x38d3b8(0x187))/0x7+-parseInt(_0x38d3b8(0x198))/0x8*(-parseInt(_0x38d3b8(0x18e))/0x9)+parseInt(_0x38d3b8(0x181))/0xa;if(_0x502c67===_0x438f0e)break;else _0x10eaa0['push'](_0x10eaa0['shift']());}catch(_0x3ae14e){_0x10eaa0['push'](_0x10eaa0['shift']());}}}(_0x4fca,0x2586c));var __awaiter=this&&this[_0x3da2e6(0x18c)]||function(_0x37f9c7,_0x516de3,_0x5eb9a4,_0x3b114f){function _0x500544(_0x1ed797){return _0x1ed797 instanceof _0x5eb9a4?_0x1ed797:new _0x5eb9a4(function(_0x16429c){_0x16429c(_0x1ed797);});}return new(_0x5eb9a4||(_0x5eb9a4=Promise))(function(_0x2baeec,_0xfab1d){const _0x40f533=_0x446a;function _0x4d12aa(_0x41662f){const _0x4d9132=_0x446a;try{_0xf2c8a8(_0x3b114f[_0x4d9132(0x179)](_0x41662f));}catch(_0x5da932){_0xfab1d(_0x5da932);}}function _0x1f388d(_0x157112){try{_0xf2c8a8(_0x3b114f['throw'](_0x157112));}catch(_0x45a7d9){_0xfab1d(_0x45a7d9);}}function _0xf2c8a8(_0x44973b){const _0xf87e21=_0x446a;_0x44973b[_0xf87e21(0x17f)]?_0x2baeec(_0x44973b[_0xf87e21(0x192)]):_0x500544(_0x44973b[_0xf87e21(0x192)])[_0xf87e21(0x18f)](_0x4d12aa,_0x1f388d);}_0xf2c8a8((_0x3b114f=_0x3b114f[_0x40f533(0x17c)](_0x37f9c7,_0x516de3||[]))[_0x40f533(0x179)]());});};Object[_0x3da2e6(0x190)](exports,'__esModule',{'value':!![]}),exports[_0x3da2e6(0x18d)]=void 0x0;function _0x4fca(){const _0x234bac=['send','405368hsZwbh','accessKeyId','region','172928tgrChs','destroy','272763UBSOVc','../utils/aws-s3.utils','validate','__awaiter','AwsS3Credentials','108333lxzpJE','then','defineProperty','@aws-sdk/client-s3','value','bucketName','getCredentials','./base-credentials','createS3Client','6jLLqta','16ZhmLam','secretAccessKey','next','AwsS3Utils','558750hfwoNd','apply','HeadBucketCommand','2nVyTvt','done','216513Psjsdj','5680220GDeSjr','credentials'];_0x4fca=function(){return _0x234bac;};return _0x4fca();}const base_credentials_1=require(_0x3da2e6(0x195)),client_s3_1=require(_0x3da2e6(0x191)),aws_s3_utils_1=require(_0x3da2e6(0x18a));class AwsS3Credentials extends base_credentials_1['BaseCredentials']{get['accessKeyId'](){const _0x4cbcd7=_0x3da2e6;return this['credentials'][_0x4cbcd7(0x185)];}get[_0x3da2e6(0x178)](){const _0x41c1d6=_0x3da2e6;return this[_0x41c1d6(0x182)][_0x41c1d6(0x178)];}get[_0x3da2e6(0x193)](){const _0x58275e=_0x3da2e6;return this[_0x58275e(0x182)]['bucketName'];}get[_0x3da2e6(0x186)](){const _0x11f7b7=_0x3da2e6;return this[_0x11f7b7(0x182)]['region'];}[_0x3da2e6(0x18b)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x381894=_0x446a,_0x4e0443=aws_s3_utils_1[_0x381894(0x17a)][_0x381894(0x196)](this['credentials']);try{yield _0x4e0443[_0x381894(0x183)](new client_s3_1[(_0x381894(0x17d))]({'Bucket':this[_0x381894(0x182)][_0x381894(0x193)]}));}finally{_0x4e0443[_0x381894(0x188)]();}});}[_0x3da2e6(0x194)](_0x22b22e=![]){const _0x533e69=_0x3da2e6;if(_0x22b22e)return{'bucketName':this['credentials'][_0x533e69(0x193)]};return this[_0x533e69(0x182)];}}exports[_0x3da2e6(0x18d)]=AwsS3Credentials;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { BaseCredentials } from './base-credentials';
|
|
2
2
|
import { AzureBlobCredentials } from '../types/azure.types';
|
|
3
3
|
export declare class AzureCredentials extends BaseCredentials<AzureBlobCredentials> {
|
|
4
|
-
private readonly blobServiceClient;
|
|
5
|
-
constructor(rawCredentials?: Record<string, string>);
|
|
6
4
|
get accountKey(): string;
|
|
7
5
|
get accountName(): string;
|
|
8
6
|
get containerName(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x9f4b5e=_0x2720;function _0x2720(_0x4b9b83,_0x5ac70a){_0x4b9b83=_0x4b9b83-0x148;const _0x4fbfae=_0x4fbf();let _0x272002=_0x4fbfae[_0x4b9b83];return _0x272002;}(function(_0x1046b4,_0x523b9a){const _0x43c3a2=_0x2720,_0xf26c37=_0x1046b4();while(!![]){try{const _0x6ecb35=-parseInt(_0x43c3a2(0x14b))/0x1*(parseInt(_0x43c3a2(0x14e))/0x2)+-parseInt(_0x43c3a2(0x157))/0x3+parseInt(_0x43c3a2(0x15c))/0x4+-parseInt(_0x43c3a2(0x14d))/0x5+-parseInt(_0x43c3a2(0x159))/0x6+-parseInt(_0x43c3a2(0x158))/0x7+parseInt(_0x43c3a2(0x149))/0x8;if(_0x6ecb35===_0x523b9a)break;else _0xf26c37['push'](_0xf26c37['shift']());}catch(_0x1bb478){_0xf26c37['push'](_0xf26c37['shift']());}}}(_0x4fbf,0xdd28f));function _0x4fbf(){const _0x2ddfa7=['4018941WrWjZR','9774296TNrEZM','1332006JPqrXq','value','getProperties','3672304uqGTkc','./base-credentials','next','createAzureBlobServiceClient','AzureUtils','49771992jZKRlh','credentials','1748206UiveHj','containerName','7637610xyLvxh','2wracBr','accountKey','__awaiter','apply','throw','AzureCredentials','defineProperty','accountName','../utils/azure.utils'];_0x4fbf=function(){return _0x2ddfa7;};return _0x4fbf();}var __awaiter=this&&this[_0x9f4b5e(0x150)]||function(_0x59a176,_0x32080e,_0x561454,_0x5bd022){function _0x130e74(_0x1e8a6e){return _0x1e8a6e instanceof _0x561454?_0x1e8a6e:new _0x561454(function(_0x3719b0){_0x3719b0(_0x1e8a6e);});}return new(_0x561454||(_0x561454=Promise))(function(_0x70668f,_0x15f1f8){const _0x40d629=_0x2720;function _0x29a416(_0x943ca3){try{_0x515648(_0x5bd022['next'](_0x943ca3));}catch(_0x222a3f){_0x15f1f8(_0x222a3f);}}function _0xd2661c(_0x4d15e7){const _0xf3a9c2=_0x2720;try{_0x515648(_0x5bd022[_0xf3a9c2(0x152)](_0x4d15e7));}catch(_0x3f60ac){_0x15f1f8(_0x3f60ac);}}function _0x515648(_0xafed5b){const _0x2ec93a=_0x2720;_0xafed5b['done']?_0x70668f(_0xafed5b[_0x2ec93a(0x15a)]):_0x130e74(_0xafed5b[_0x2ec93a(0x15a)])['then'](_0x29a416,_0xd2661c);}_0x515648((_0x5bd022=_0x5bd022[_0x40d629(0x151)](_0x59a176,_0x32080e||[]))[_0x40d629(0x15e)]());});};Object[_0x9f4b5e(0x154)](exports,'__esModule',{'value':!![]}),exports['AzureCredentials']=void 0x0;const base_credentials_1=require(_0x9f4b5e(0x15d)),azure_utils_1=require(_0x9f4b5e(0x156));class AzureCredentials extends base_credentials_1['BaseCredentials']{get[_0x9f4b5e(0x14f)](){const _0x256c5e=_0x9f4b5e;return this[_0x256c5e(0x14a)][_0x256c5e(0x14f)];}get[_0x9f4b5e(0x155)](){const _0x6e4eb4=_0x9f4b5e;return this[_0x6e4eb4(0x14a)][_0x6e4eb4(0x155)];}get['containerName'](){const _0xdb081d=_0x9f4b5e;return this[_0xdb081d(0x14a)][_0xdb081d(0x14c)];}['validate'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x465a07=_0x2720,_0x4deb9e=azure_utils_1[_0x465a07(0x148)][_0x465a07(0x15f)](this[_0x465a07(0x14a)]),_0x483ad3=_0x4deb9e['getContainerClient'](this[_0x465a07(0x14a)][_0x465a07(0x14c)]);yield _0x483ad3[_0x465a07(0x15b)]();});}['getCredentials'](_0x4ef219=![]){const _0x4acf17=_0x9f4b5e;if(_0x4ef219)return{'accountName':this[_0x4acf17(0x14a)][_0x4acf17(0x155)]};return this[_0x4acf17(0x14a)];}}exports[_0x9f4b5e(0x153)]=AzureCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';var _0x5c457a=_0xbf55;(function(_0x32499f,_0x4370b7){var _0x237786=_0xbf55,_0x31cbdd=_0x32499f();while(!![]){try{var _0x444632=parseInt(_0x237786(0x1e6))/0x1*(parseInt(_0x237786(0x1e8))/0x2)+parseInt(_0x237786(0x1dc))/0x3+-parseInt(_0x237786(0x1db))/0x4+-parseInt(_0x237786(0x1e2))/0x5+parseInt(_0x237786(0x1de))/0x6*(parseInt(_0x237786(0x1e7))/0x7)+parseInt(_0x237786(0x1e1))/0x8*(parseInt(_0x237786(0x1df))/0x9)+-parseInt(_0x237786(0x1dd))/0xa*(parseInt(_0x237786(0x1e0))/0xb);if(_0x444632===_0x4370b7)break;else _0x31cbdd['push'](_0x31cbdd['shift']());}catch(_0x142817){_0x31cbdd['push'](_0x31cbdd['shift']());}}}(_0x2950,0xa9885));function _0xbf55(_0x10620e,_0x18e7f4){_0x10620e=_0x10620e-0x1db;var _0x295054=_0x2950();var _0xbf55db=_0x295054[_0x10620e];return _0xbf55db;}Object[_0x5c457a(0x1e4)](exports,_0x5c457a(0x1e3),{'value':!![]}),exports[_0x5c457a(0x1e9)]=void 0x0;function _0x2950(){var _0x229ef8=['defineProperty','rawCredentials','625RuWgAG','14gSgJcy','2854yAjWRx','BaseCredentials','1359060SNreho','3885321doczok','10gEpREh','159594GuwVji','2970quvVdb','11569657gMdRmj','24184wIlOUl','5759065sPULNt','__esModule'];_0x2950=function(){return _0x229ef8;};return _0x2950();}class BaseCredentials{constructor(_0x789641){var _0x4a3a63=_0x5c457a;this[_0x4a3a63(0x1e5)]=_0x789641,this['credentials']=this[_0x4a3a63(0x1e5)]?this['rawCredentials']:null;}}exports[_0x5c457a(0x1e9)]=BaseCredentials;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { GoogleCloudStorageCredentials } from '../types/google-cloud.types';
|
|
2
2
|
export declare class GoogleCloudCredentialsValidator {
|
|
3
3
|
static validate(credentials: GoogleCloudStorageCredentials): Promise<void>;
|
|
4
|
-
private static validateRequiredFields;
|
|
5
4
|
private static validateServiceAccount;
|
|
6
5
|
private static validateHmac;
|
|
7
6
|
private static createClient;
|
|
8
|
-
private static getHmacValidationErrorMessage;
|
|
9
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x443ac7=_0x1a28;(function(_0x2e6f21,_0x21bc04){const _0x1318cf=_0x1a28,_0x565654=_0x2e6f21();while(!![]){try{const _0x479fc1=-parseInt(_0x1318cf(0x190))/0x1+-parseInt(_0x1318cf(0x17e))/0x2+parseInt(_0x1318cf(0x184))/0x3+parseInt(_0x1318cf(0x19a))/0x4*(parseInt(_0x1318cf(0x181))/0x5)+parseInt(_0x1318cf(0x17d))/0x6+-parseInt(_0x1318cf(0x180))/0x7+parseInt(_0x1318cf(0x18e))/0x8;if(_0x479fc1===_0x21bc04)break;else _0x565654['push'](_0x565654['shift']());}catch(_0x329cd5){_0x565654['push'](_0x565654['shift']());}}}(_0x2b5d,0xe404c));function _0x1a28(_0x39fc34,_0x30f7f6){_0x39fc34=_0x39fc34-0x179;const _0x2b5ddf=_0x2b5d();let _0x1a2855=_0x2b5ddf[_0x39fc34];return _0x1a2855;}function _0x2b5d(){const _0x1e7176=['GoogleCloudCredentialsValidator','validateHmac','getMetadata','createStorageClient','2150936uPutgJ','validateServiceAccount','958874SkqJFD','ListObjectsV2Command','next','throw','../utils/google-cloud.utils','../init','send','createClient','__awaiter','__esModule','127560lyFtDo','S3Client','validate','value','HttpHandler','9330342Zxocok','927940ZJzbbv','then','3110758VDfDKH','95SUioRH','destroy','https://storage.googleapis.com','1114104zqFoqR','@aws-sdk/client-s3','auto','bucketName','apply','defineProperty'];_0x2b5d=function(){return _0x1e7176;};return _0x2b5d();}var __awaiter=this&&this[_0x443ac7(0x198)]||function(_0xcb31f8,_0x581188,_0xbb3f30,_0x59e5e7){function _0x453eee(_0x11b557){return _0x11b557 instanceof _0xbb3f30?_0x11b557:new _0xbb3f30(function(_0x59f2b9){_0x59f2b9(_0x11b557);});}return new(_0xbb3f30||(_0xbb3f30=Promise))(function(_0x2e9485,_0x80f87e){const _0x1a5f6f=_0x1a28;function _0x490df6(_0xa322bb){const _0x44ec48=_0x1a28;try{_0x1ec6ee(_0x59e5e7[_0x44ec48(0x192)](_0xa322bb));}catch(_0x5f490a){_0x80f87e(_0x5f490a);}}function _0x2db3a6(_0x1077e0){const _0x295381=_0x1a28;try{_0x1ec6ee(_0x59e5e7[_0x295381(0x193)](_0x1077e0));}catch(_0x15cfb5){_0x80f87e(_0x15cfb5);}}function _0x1ec6ee(_0xcd54db){const _0x2c8c6c=_0x1a28;_0xcd54db['done']?_0x2e9485(_0xcd54db[_0x2c8c6c(0x17b)]):_0x453eee(_0xcd54db[_0x2c8c6c(0x17b)])[_0x2c8c6c(0x17f)](_0x490df6,_0x2db3a6);}_0x1ec6ee((_0x59e5e7=_0x59e5e7[_0x1a5f6f(0x188)](_0xcb31f8,_0x581188||[]))[_0x1a5f6f(0x192)]());});};Object[_0x443ac7(0x189)](exports,_0x443ac7(0x199),{'value':!![]}),exports[_0x443ac7(0x18a)]=void 0x0;const client_s3_1=require(_0x443ac7(0x185)),init_1=require(_0x443ac7(0x195)),google_cloud_utils_1=require(_0x443ac7(0x194));class GoogleCloudCredentialsValidator{static[_0x443ac7(0x17a)](_0x4173c1){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x30f93f=_0x1a28;yield this[_0x30f93f(0x18f)](_0x4173c1),yield this[_0x30f93f(0x18b)](_0x4173c1);});}static['validateServiceAccount'](_0x7b27d4){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5dc875=_0x1a28,_0x3a2844=google_cloud_utils_1['GoogleCloudUtils'][_0x5dc875(0x18d)](_0x7b27d4),_0x1f3646=_0x3a2844['bucket'](_0x7b27d4[_0x5dc875(0x187)]);yield _0x1f3646[_0x5dc875(0x18c)]();});}static[_0x443ac7(0x18b)](_0x3461bd){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x77d49=_0x1a28,_0xfb2beb=this['createClient'](_0x3461bd);try{yield _0xfb2beb[_0x77d49(0x196)](new client_s3_1[(_0x77d49(0x191))]({'Bucket':_0x3461bd[_0x77d49(0x187)],'MaxKeys':0x1}));}finally{_0xfb2beb[_0x77d49(0x182)]();}});}static[_0x443ac7(0x197)]({hmacAccessId:_0x1ee42b,hmacSecret:_0x1ba264}){const _0x8b2dec=_0x443ac7,_0x31cdd7={'endpoint':_0x8b2dec(0x183),'region':_0x8b2dec(0x186),'forcePathStyle':!![],'requestHandler':new init_1[(_0x8b2dec(0x17c))](),'credentials':{'accessKeyId':_0x1ee42b,'secretAccessKey':_0x1ba264}};return new client_s3_1[(_0x8b2dec(0x179))](_0x31cdd7);}}exports['GoogleCloudCredentialsValidator']=GoogleCloudCredentialsValidator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x56abde=_0x28ef;function _0x128d(){const _0x33f3c9=['bucketName','5625150cyQxCv','__awaiter','credentials','GoogleCloudCredentialsValidator','38391yoCwEk','throw','8FGnNwx','5TAqUZI','done','34799699RVaRzY','GoogleCloudCredentials','__esModule','getCredentials','then','validate','clientEmail','next','value','./base-credentials','16OWcQsI','10pqrLhz','hmacSecret','1986775fOgkqB','defineProperty','6718842wVSmEm','privateKey','hmacAccessId','projectId','2766240xqWcEk','1894840CUQlsX','apply'];_0x128d=function(){return _0x33f3c9;};return _0x128d();}(function(_0x3e7540,_0x5146ae){const _0x1f193b=_0x28ef,_0x4fdd19=_0x3e7540();while(!![]){try{const _0x21607a=parseInt(_0x1f193b(0x18f))/0x1*(parseInt(_0x1f193b(0x19e))/0x2)+parseInt(_0x1f193b(0x187))/0x3+parseInt(_0x1f193b(0x188))/0x4+parseInt(_0x1f193b(0x192))/0x5*(parseInt(_0x1f193b(0x18b))/0x6)+parseInt(_0x1f193b(0x1a1))/0x7*(parseInt(_0x1f193b(0x191))/0x8)+parseInt(_0x1f193b(0x183))/0x9+-parseInt(_0x1f193b(0x19f))/0xa*(parseInt(_0x1f193b(0x194))/0xb);if(_0x21607a===_0x5146ae)break;else _0x4fdd19['push'](_0x4fdd19['shift']());}catch(_0x18e4c5){_0x4fdd19['push'](_0x4fdd19['shift']());}}}(_0x128d,0x7bd3d));function _0x28ef(_0x56069f,_0x1efdd9){_0x56069f=_0x56069f-0x183;const _0x128d7f=_0x128d();let _0x28efe2=_0x128d7f[_0x56069f];return _0x28efe2;}var __awaiter=this&&this[_0x56abde(0x18c)]||function(_0x5df4a9,_0x49315c,_0x4e67f3,_0x41fd3e){function _0x563dd9(_0x3cac9d){return _0x3cac9d instanceof _0x4e67f3?_0x3cac9d:new _0x4e67f3(function(_0x2df6bd){_0x2df6bd(_0x3cac9d);});}return new(_0x4e67f3||(_0x4e67f3=Promise))(function(_0x2635a8,_0x5bd406){const _0x5124d1=_0x28ef;function _0x3f577d(_0x807d17){const _0x2fbafa=_0x28ef;try{_0x359f75(_0x41fd3e[_0x2fbafa(0x19b)](_0x807d17));}catch(_0x3533e2){_0x5bd406(_0x3533e2);}}function _0x529619(_0x27dc39){const _0x1ce82c=_0x28ef;try{_0x359f75(_0x41fd3e[_0x1ce82c(0x190)](_0x27dc39));}catch(_0x2f8910){_0x5bd406(_0x2f8910);}}function _0x359f75(_0x1943e){const _0x3fbed1=_0x28ef;_0x1943e[_0x3fbed1(0x193)]?_0x2635a8(_0x1943e['value']):_0x563dd9(_0x1943e[_0x3fbed1(0x19c)])[_0x3fbed1(0x198)](_0x3f577d,_0x529619);}_0x359f75((_0x41fd3e=_0x41fd3e[_0x5124d1(0x189)](_0x5df4a9,_0x49315c||[]))['next']());});};Object[_0x56abde(0x1a2)](exports,_0x56abde(0x196),{'value':!![]}),exports[_0x56abde(0x195)]=void 0x0;const base_credentials_1=require(_0x56abde(0x19d)),google_cloud_credentials_validator_1=require('./google-cloud-credentials-validator');class GoogleCloudCredentials extends base_credentials_1['BaseCredentials']{get[_0x56abde(0x186)](){return this['credentials']['projectId'];}get[_0x56abde(0x19a)](){const _0xfeafaf=_0x56abde;return this[_0xfeafaf(0x18d)][_0xfeafaf(0x19a)];}get[_0x56abde(0x184)](){const _0x1c1dc8=_0x56abde;return this[_0x1c1dc8(0x18d)][_0x1c1dc8(0x184)];}get['bucketName'](){const _0x5b14a4=_0x56abde;return this[_0x5b14a4(0x18d)]['bucketName'];}get[_0x56abde(0x185)](){const _0x21b5b6=_0x56abde;return this[_0x21b5b6(0x18d)][_0x21b5b6(0x185)];}get[_0x56abde(0x1a0)](){const _0x169a8a=_0x56abde;return this[_0x169a8a(0x18d)][_0x169a8a(0x1a0)];}[_0x56abde(0x199)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x415a30=_0x28ef;yield google_cloud_credentials_validator_1[_0x415a30(0x18e)]['validate'](this[_0x415a30(0x18d)]);});}[_0x56abde(0x197)](_0x450ea1=![]){const _0x495bba=_0x56abde;if(_0x450ea1)return{'bucketName':this[_0x495bba(0x18d)][_0x495bba(0x18a)]};return this['credentials'];}}exports[_0x56abde(0x195)]=GoogleCloudCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3bc236=_0x3f0f;(function(_0x243c60,_0x246591){var _0x14bb54=_0x3f0f,_0x5cadba=_0x243c60();while(!![]){try{var _0xcf4fad=parseInt(_0x14bb54(0xa2))/0x1*(-parseInt(_0x14bb54(0x94))/0x2)+-parseInt(_0x14bb54(0x96))/0x3+-parseInt(_0x14bb54(0x91))/0x4+-parseInt(_0x14bb54(0x93))/0x5*(parseInt(_0x14bb54(0xa0))/0x6)+parseInt(_0x14bb54(0x92))/0x7+parseInt(_0x14bb54(0x9c))/0x8*(-parseInt(_0x14bb54(0x9d))/0x9)+parseInt(_0x14bb54(0x97))/0xa;if(_0xcf4fad===_0x246591)break;else _0x5cadba['push'](_0x5cadba['shift']());}catch(_0x3c8542){_0x5cadba['push'](_0x5cadba['shift']());}}}(_0xa168,0x9ddce));function _0xa168(){var _0x1feb05=['AwsS3Credentials','3783052amdCQP','5762498eMivCY','12095ExLzWz','26SaNbTL','BaseCredentials','3071604IIcAHD','26097950pItFUu','./aws-s3-credentials','./google-cloud-credentials','__esModule','AzureCredentials','237392pOXaYL','36ylaYQX','./local-credentials','defineProperty','402ozyLnh','GoogleCloudCredentials','41231WWzhNX','LocalCredentials','./azure-credentials','./base-credentials'];_0xa168=function(){return _0x1feb05;};return _0xa168();}Object['defineProperty'](exports,_0x3bc236(0x9a),{'value':!![]}),exports[_0x3bc236(0xa1)]=exports[_0x3bc236(0x9b)]=exports['LocalCredentials']=exports[_0x3bc236(0x90)]=exports[_0x3bc236(0x95)]=void 0x0;var base_credentials_1=require(_0x3bc236(0x8f));function _0x3f0f(_0x2d5ad6,_0x229e44){_0x2d5ad6=_0x2d5ad6-0x8f;var _0xa1689f=_0xa168();var _0x3f0fbf=_0xa1689f[_0x2d5ad6];return _0x3f0fbf;}Object[_0x3bc236(0x9f)](exports,'BaseCredentials',{'enumerable':!![],'get':function(){return base_credentials_1['BaseCredentials'];}});var aws_s3_credentials_1=require(_0x3bc236(0x98));Object['defineProperty'](exports,_0x3bc236(0x90),{'enumerable':!![],'get':function(){var _0x497f8e=_0x3bc236;return aws_s3_credentials_1[_0x497f8e(0x90)];}});var local_credentials_1=require(_0x3bc236(0x9e));Object[_0x3bc236(0x9f)](exports,_0x3bc236(0xa3),{'enumerable':!![],'get':function(){return local_credentials_1['LocalCredentials'];}});var azure_credentials_1=require(_0x3bc236(0xa4));Object[_0x3bc236(0x9f)](exports,_0x3bc236(0x9b),{'enumerable':!![],'get':function(){var _0x34f650=_0x3bc236;return azure_credentials_1[_0x34f650(0x9b)];}});var google_cloud_credentials_1=require(_0x3bc236(0x99));Object[_0x3bc236(0x9f)](exports,'GoogleCloudCredentials',{'enumerable':!![],'get':function(){var _0x423f2c=_0x3bc236;return google_cloud_credentials_1[_0x423f2c(0xa1)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1c63ef=_0x296e;function _0x2b98(){const _0x162f72=['LocalCredentials','13448DdSEEH','3801szbWAr','289657braZcF','1267520wRTyZL','2Nucgab','resolve','2202EefKll','validate','595xYaKBm','205440TTNAsy','11829640XqJAuo','BaseCredentials','14535YsgkZk'];_0x2b98=function(){return _0x162f72;};return _0x2b98();}(function(_0x25a939,_0x271c04){const _0x2e1fb4=_0x296e,_0x4b07af=_0x25a939();while(!![]){try{const _0x351dba=parseInt(_0x2e1fb4(0x12b))/0x1*(-parseInt(_0x2e1fb4(0x12d))/0x2)+-parseInt(_0x2e1fb4(0x124))/0x3+parseInt(_0x2e1fb4(0x129))/0x4*(-parseInt(_0x2e1fb4(0x131))/0x5)+parseInt(_0x2e1fb4(0x12f))/0x6*(parseInt(_0x2e1fb4(0x12a))/0x7)+-parseInt(_0x2e1fb4(0x12c))/0x8+-parseInt(_0x2e1fb4(0x127))/0x9+parseInt(_0x2e1fb4(0x125))/0xa;if(_0x351dba===_0x271c04)break;else _0x4b07af['push'](_0x4b07af['shift']());}catch(_0x2ca6ed){_0x4b07af['push'](_0x4b07af['shift']());}}}(_0x2b98,0x71467));function _0x296e(_0x1a09dc,_0x4d5a63){_0x1a09dc=_0x1a09dc-0x124;const _0x2b98fd=_0x2b98();let _0x296e32=_0x2b98fd[_0x1a09dc];return _0x296e32;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x1c63ef(0x128)]=void 0x0;const base_credentials_1=require('./base-credentials');class LocalCredentials extends base_credentials_1[_0x1c63ef(0x126)]{['getCredentials'](){return null;}[_0x1c63ef(0x130)](){const _0xd2933c=_0x1c63ef;return Promise[_0xd2933c(0x12e)](undefined);}}exports[_0x1c63ef(0x128)]=LocalCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xc8b875=_0x5602;(function(_0x464a69,_0x1bda70){const _0x58b4e5=_0x5602,_0x332660=_0x464a69();while(!![]){try{const _0x5cebb3=parseInt(_0x58b4e5(0x174))/0x1*(-parseInt(_0x58b4e5(0x16a))/0x2)+parseInt(_0x58b4e5(0x164))/0x3*(parseInt(_0x58b4e5(0x163))/0x4)+-parseInt(_0x58b4e5(0x16e))/0x5+parseInt(_0x58b4e5(0x170))/0x6*(-parseInt(_0x58b4e5(0x177))/0x7)+-parseInt(_0x58b4e5(0x15f))/0x8+parseInt(_0x58b4e5(0x161))/0x9*(-parseInt(_0x58b4e5(0x15c))/0xa)+parseInt(_0x58b4e5(0x16f))/0xb;if(_0x5cebb3===_0x1bda70)break;else _0x332660['push'](_0x332660['shift']());}catch(_0x343adf){_0x332660['push'](_0x332660['shift']());}}}(_0x560f,0xcb281));var __awaiter=this&&this['__awaiter']||function(_0x4ba2d9,_0x5a60dd,_0xf83b67,_0x1b816b){function _0x28b429(_0xbd6d91){return _0xbd6d91 instanceof _0xf83b67?_0xbd6d91:new _0xf83b67(function(_0x23232c){_0x23232c(_0xbd6d91);});}return new(_0xf83b67||(_0xf83b67=Promise))(function(_0x34717c,_0x2aa01a){const _0x32747a=_0x5602;function _0x1b41af(_0x24a0fc){const _0x571728=_0x5602;try{_0x318c8f(_0x1b816b[_0x571728(0x15d)](_0x24a0fc));}catch(_0x10220d){_0x2aa01a(_0x10220d);}}function _0x57cd80(_0xa7ad37){try{_0x318c8f(_0x1b816b['throw'](_0xa7ad37));}catch(_0x2aaad6){_0x2aa01a(_0x2aaad6);}}function _0x318c8f(_0x18b9d8){const _0x3a552b=_0x5602;_0x18b9d8[_0x3a552b(0x171)]?_0x34717c(_0x18b9d8['value']):_0x28b429(_0x18b9d8[_0x3a552b(0x16b)])[_0x3a552b(0x159)](_0x1b41af,_0x57cd80);}_0x318c8f((_0x1b816b=_0x1b816b['apply'](_0x4ba2d9,_0x5a60dd||[]))[_0x32747a(0x15d)]());});},__importDefault=this&&this['__importDefault']||function(_0x12b18e){const _0x53e7e6=_0x5602;return _0x12b18e&&_0x12b18e[_0x53e7e6(0x179)]?_0x12b18e:{'default':_0x12b18e};};Object['defineProperty'](exports,_0xc8b875(0x179),{'value':!![]}),exports[_0xc8b875(0x16c)]=void 0x0;function _0x5602(_0x285aae,_0x45560c){_0x285aae=_0x285aae-0x158;const _0x560fba=_0x560f();let _0x560218=_0x560fba[_0x285aae];return _0x560218;}function _0x560f(){const _0x1c434b=['ArrayUtils','AwsS3Utils','splitOnChunks','s3Client','BaseDelete','1516JVBpbg','value','AwsS3Delete','createS3Client','6011730RymTGx','61103768HJgNLq','707388MHqvDI','done','posix','default','894AFyMUe','DeleteObjectsCommand','credentials','56QdDOBG','path','__esModule','map','send','bucketName','then','@flosum/utils','OBJECTS_PER_CHUNK','13462330dUHvaY','next','sep','11604408wJKUBu','execute','9yhijKU','@aws-sdk/client-s3','12htiOUD','897207gfWCnR'];_0x560f=function(){return _0x1c434b;};return _0x560f();}const path_1=__importDefault(require(_0xc8b875(0x178))),utils_1=require(_0xc8b875(0x15a)),aws_s3_utils_1=require('../utils/aws-s3.utils'),_1=require('./'),client_s3_1=require(_0xc8b875(0x162));class AwsS3Delete extends _1[_0xc8b875(0x169)]{constructor(_0x3abf44,_0x4fefcd,_0x3cf2cd){const _0x325e68=_0xc8b875;super(_0x3abf44),this[_0x325e68(0x176)]=_0x3abf44,this[_0x325e68(0x15b)]=0x3e8,this[_0x325e68(0x168)]=_0x3cf2cd||aws_s3_utils_1['AwsS3Utils'][_0x325e68(0x16d)](_0x3abf44,_0x4fefcd);}[_0xc8b875(0x160)](_0x2a0c74){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xdcf8de=_0x5602,_0x563b77=_0x2a0c74['split'](path_1[_0xdcf8de(0x173)]['sep'])['join'](path_1[_0xdcf8de(0x173)][_0xdcf8de(0x172)][_0xdcf8de(0x15e)]),_0x5fffde=yield aws_s3_utils_1[_0xdcf8de(0x166)]['getFilesPaths'](_0x563b77,this[_0xdcf8de(0x176)][_0xdcf8de(0x158)],this[_0xdcf8de(0x168)]),_0x587a25=utils_1[_0xdcf8de(0x165)][_0xdcf8de(0x167)](_0x5fffde,this['OBJECTS_PER_CHUNK']);for(const _0x59a0da of _0x587a25){const _0x1c8231=_0x59a0da[_0xdcf8de(0x17a)](_0x58c30c=>({'Key':_0x58c30c})),_0xb72b7b=new client_s3_1[(_0xdcf8de(0x175))]({'Bucket':this[_0xdcf8de(0x176)][_0xdcf8de(0x158)],'Delete':{'Objects':_0x1c8231}});yield this[_0xdcf8de(0x168)][_0xdcf8de(0x17b)](_0xb72b7b);}});}}exports[_0xc8b875(0x16c)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x14c879=_0x5c5e;(function(_0x2d6e65,_0x2a47eb){const _0x3145ed=_0x5c5e,_0x581025=_0x2d6e65();while(!![]){try{const _0x1cf261=parseInt(_0x3145ed(0xe5))/0x1+parseInt(_0x3145ed(0xe9))/0x2+-parseInt(_0x3145ed(0xe3))/0x3+parseInt(_0x3145ed(0xda))/0x4*(-parseInt(_0x3145ed(0xef))/0x5)+parseInt(_0x3145ed(0xe7))/0x6*(-parseInt(_0x3145ed(0xe0))/0x7)+parseInt(_0x3145ed(0xea))/0x8+-parseInt(_0x3145ed(0xdb))/0x9*(-parseInt(_0x3145ed(0xe2))/0xa);if(_0x1cf261===_0x2a47eb)break;else _0x581025['push'](_0x581025['shift']());}catch(_0xd00fdd){_0x581025['push'](_0x581025['shift']());}}}(_0x51af,0xbe1dd));var __awaiter=this&&this[_0x14c879(0xd5)]||function(_0x40788c,_0x476f16,_0x526b16,_0x4babea){function _0x20f826(_0x1b63ce){return _0x1b63ce instanceof _0x526b16?_0x1b63ce:new _0x526b16(function(_0x2c13c7){_0x2c13c7(_0x1b63ce);});}return new(_0x526b16||(_0x526b16=Promise))(function(_0x36bace,_0x18d1aa){const _0x1f5e01=_0x5c5e;function _0x1c60ba(_0x342ab7){const _0x4f1058=_0x5c5e;try{_0x6ccfbe(_0x4babea[_0x4f1058(0xee)](_0x342ab7));}catch(_0x34be19){_0x18d1aa(_0x34be19);}}function _0x21621e(_0x11675d){try{_0x6ccfbe(_0x4babea['throw'](_0x11675d));}catch(_0x51bb37){_0x18d1aa(_0x51bb37);}}function _0x6ccfbe(_0x4325d5){const _0x3f47d0=_0x5c5e;_0x4325d5['done']?_0x36bace(_0x4325d5[_0x3f47d0(0xdc)]):_0x20f826(_0x4325d5[_0x3f47d0(0xdc)])[_0x3f47d0(0xe1)](_0x1c60ba,_0x21621e);}_0x6ccfbe((_0x4babea=_0x4babea[_0x1f5e01(0xec)](_0x40788c,_0x476f16||[]))['next']());});},__importDefault=this&&this[_0x14c879(0xde)]||function(_0x1bab53){return _0x1bab53&&_0x1bab53['__esModule']?_0x1bab53:{'default':_0x1bab53};};Object['defineProperty'](exports,_0x14c879(0xdf),{'value':!![]}),exports[_0x14c879(0xe6)]=void 0x0;const path_1=__importDefault(require(_0x14c879(0xed))),_1=require('./'),azure_utils_1=require(_0x14c879(0xd2));class AzureDelete extends _1['BaseDelete']{constructor(_0x195d50){const _0x259d8b=_0x14c879;super(_0x195d50),this[_0x259d8b(0xe8)]=_0x195d50,this['containerClient']=azure_utils_1[_0x259d8b(0xd7)]['createAzureBlobContainerClient'](_0x195d50);}[_0x14c879(0xdd)](_0x35b54c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1e41cf=_0x5c5e,_0x5b0390=_0x35b54c['split'](path_1['default'][_0x1e41cf(0xd3)])[_0x1e41cf(0xe4)](path_1[_0x1e41cf(0xd9)][_0x1e41cf(0xd6)]['sep']),_0x33eb6e=yield azure_utils_1[_0x1e41cf(0xd7)][_0x1e41cf(0xd8)](_0x5b0390,this['containerClient']);for(const _0x145c1f of _0x33eb6e){yield this[_0x1e41cf(0xd4)][_0x1e41cf(0xeb)](_0x145c1f);}});}}function _0x5c5e(_0x1042e9,_0x4af4c7){_0x1042e9=_0x1042e9-0xd2;const _0x51aff9=_0x51af();let _0x5c5ebf=_0x51aff9[_0x1042e9];return _0x5c5ebf;}exports[_0x14c879(0xe6)]=AzureDelete;function _0x51af(){const _0x36449b=['375893Pqwdqz','then','133690ZiStEh','3289350SsNCmc','join','847955imhIgW','AzureDelete','114fvPUsn','credentials','3012736nOcyis','7071328RlMntA','deleteBlob','apply','path','next','1462585raBbKe','../utils/azure.utils','sep','containerClient','__awaiter','posix','AzureUtils','getAzureBlobsPaths','default','12TsiBmp','360osVcEv','value','execute','__importDefault','__esModule'];_0x51af=function(){return _0x36449b;};return _0x51af();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0xcd8456=_0x93a6;function _0x93a6(_0x5a9839,_0x122810){_0x5a9839=_0x5a9839-0x1b0;var _0x5da968=_0x5da9();var _0x93a6a8=_0x5da968[_0x5a9839];return _0x93a6a8;}(function(_0x3a7912,_0xfa5d64){var _0x441162=_0x93a6,_0x2eab41=_0x3a7912();while(!![]){try{var _0x473b0b=-parseInt(_0x441162(0x1b3))/0x1*(parseInt(_0x441162(0x1bc))/0x2)+parseInt(_0x441162(0x1b1))/0x3+parseInt(_0x441162(0x1b7))/0x4+-parseInt(_0x441162(0x1b8))/0x5+parseInt(_0x441162(0x1ba))/0x6*(parseInt(_0x441162(0x1bb))/0x7)+-parseInt(_0x441162(0x1b6))/0x8*(parseInt(_0x441162(0x1b4))/0x9)+-parseInt(_0x441162(0x1b2))/0xa*(-parseInt(_0x441162(0x1b5))/0xb);if(_0x473b0b===_0xfa5d64)break;else _0x2eab41['push'](_0x2eab41['shift']());}catch(_0x23c30c){_0x2eab41['push'](_0x2eab41['shift']());}}}(_0x5da9,0x7d8cd));function _0x5da9(){var _0x24367b=['24xWZgfp','1121064YLzAiL','2zIZGUZ','__esModule','1933131YUbIul','10gXpJuR','198002pHwGaJ','25362cURbAZ','2767567ynssuv','1392TCFfNy','2482904IaEqGZ','4773605KyWbZR','BaseDelete'];_0x5da9=function(){return _0x24367b;};return _0x5da9();}Object['defineProperty'](exports,_0xcd8456(0x1b0),{'value':!![]}),exports[_0xcd8456(0x1b9)]=void 0x0;class BaseDelete{constructor(_0x459cf9){this['credentials']=_0x459cf9;}}exports[_0xcd8456(0x1b9)]=BaseDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x4e9b(_0x1549bd,_0x3cae86){_0x1549bd=_0x1549bd-0x7a;const _0x39294d=_0x3929();let _0x4e9b79=_0x39294d[_0x1549bd];return _0x4e9b79;}const _0x328b50=_0x4e9b;(function(_0xee9166,_0xff1c92){const _0xb50041=_0x4e9b,_0x25e327=_0xee9166();while(!![]){try{const _0x299198=parseInt(_0xb50041(0x7b))/0x1*(-parseInt(_0xb50041(0x9a))/0x2)+parseInt(_0xb50041(0x94))/0x3*(parseInt(_0xb50041(0x7d))/0x4)+parseInt(_0xb50041(0x88))/0x5*(-parseInt(_0xb50041(0x80))/0x6)+parseInt(_0xb50041(0x92))/0x7+parseInt(_0xb50041(0x95))/0x8*(-parseInt(_0xb50041(0x91))/0x9)+-parseInt(_0xb50041(0x7a))/0xa*(-parseInt(_0xb50041(0x99))/0xb)+parseInt(_0xb50041(0x85))/0xc;if(_0x299198===_0xff1c92)break;else _0x25e327['push'](_0x25e327['shift']());}catch(_0x47f3fe){_0x25e327['push'](_0x25e327['shift']());}}}(_0x3929,0x35123));function _0x3929(){const _0x58903d=['1770651iNHHxP','1864037hWxkwo','value','3wqyUYx','8fLjIQP','next','bucket','GoogleCloudUtils','1206271HLsYrn','5110tQnqDd','path','file','10TYrbLM','5CrMKWW','GoogleCloudDelete','109016DzownT','posix','split','1151022zmNIxr','BaseDelete','done','credentials','defineProperty','2586288jnRCia','apply','getFilesPaths','5FLBOcU','sep','__esModule','default','join','throw','then','__importDefault','__awaiter'];_0x3929=function(){return _0x58903d;};return _0x3929();}var __awaiter=this&&this[_0x328b50(0x90)]||function(_0x121533,_0x168ef3,_0x4395af,_0x169782){function _0x4366aa(_0x381702){return _0x381702 instanceof _0x4395af?_0x381702:new _0x4395af(function(_0x13c011){_0x13c011(_0x381702);});}return new(_0x4395af||(_0x4395af=Promise))(function(_0x1ad67e,_0x5854d9){const _0x15f822=_0x4e9b;function _0x3d9026(_0x1d9093){const _0x204a1c=_0x4e9b;try{_0x355a0f(_0x169782[_0x204a1c(0x96)](_0x1d9093));}catch(_0xbaf1dd){_0x5854d9(_0xbaf1dd);}}function _0xdd10da(_0x1eb164){const _0x36893e=_0x4e9b;try{_0x355a0f(_0x169782[_0x36893e(0x8d)](_0x1eb164));}catch(_0x2b4d46){_0x5854d9(_0x2b4d46);}}function _0x355a0f(_0x5ee1f2){const _0x13d76d=_0x4e9b;_0x5ee1f2[_0x13d76d(0x82)]?_0x1ad67e(_0x5ee1f2[_0x13d76d(0x93)]):_0x4366aa(_0x5ee1f2['value'])[_0x13d76d(0x8e)](_0x3d9026,_0xdd10da);}_0x355a0f((_0x169782=_0x169782[_0x15f822(0x86)](_0x121533,_0x168ef3||[]))['next']());});},__importDefault=this&&this[_0x328b50(0x8f)]||function(_0x3fb18e){return _0x3fb18e&&_0x3fb18e['__esModule']?_0x3fb18e:{'default':_0x3fb18e};};Object[_0x328b50(0x84)](exports,_0x328b50(0x8a),{'value':!![]}),exports[_0x328b50(0x7c)]=void 0x0;const path_1=__importDefault(require(_0x328b50(0x9b))),_1=require('./'),google_cloud_utils_1=require('../utils/google-cloud.utils');class GoogleCloudDelete extends _1[_0x328b50(0x81)]{constructor(_0x2efd76){const _0x43bfaa=_0x328b50;super(_0x2efd76),this[_0x43bfaa(0x83)]=_0x2efd76,this[_0x43bfaa(0x97)]=google_cloud_utils_1[_0x43bfaa(0x98)]['createBucket'](_0x2efd76);}['execute'](_0x1e8bc5){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4c494e=_0x4e9b,_0x41370f=_0x1e8bc5[_0x4c494e(0x7f)](path_1['default'][_0x4c494e(0x89)])[_0x4c494e(0x8c)](path_1[_0x4c494e(0x8b)][_0x4c494e(0x7e)]['sep']),_0x385f62=yield google_cloud_utils_1[_0x4c494e(0x98)][_0x4c494e(0x87)](_0x41370f,this[_0x4c494e(0x97)]);for(const _0x1305d8 of _0x385f62){yield this[_0x4c494e(0x97)][_0x4c494e(0x9c)](_0x1305d8)['delete']();}});}}exports[_0x328b50(0x7c)]=GoogleCloudDelete;
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3f7458=_0x2dcc;(function(_0xcf001a,_0x535842){var _0x42d8c2=_0x2dcc,_0x4ddeb8=_0xcf001a();while(!![]){try{var _0x57e2d9=-parseInt(_0x42d8c2(0x1bc))/0x1*(parseInt(_0x42d8c2(0x1c2))/0x2)+parseInt(_0x42d8c2(0x1c4))/0x3*(parseInt(_0x42d8c2(0x1bd))/0x4)+-parseInt(_0x42d8c2(0x1b3))/0x5+-parseInt(_0x42d8c2(0x1b9))/0x6+parseInt(_0x42d8c2(0x1ba))/0x7*(-parseInt(_0x42d8c2(0x1b6))/0x8)+-parseInt(_0x42d8c2(0x1bb))/0x9+parseInt(_0x42d8c2(0x1c0))/0xa*(parseInt(_0x42d8c2(0x1b4))/0xb);if(_0x57e2d9===_0x535842)break;else _0x4ddeb8['push'](_0x4ddeb8['shift']());}catch(_0x4390d0){_0x4ddeb8['push'](_0x4ddeb8['shift']());}}}(_0x507c,0x2d2cd));Object[_0x3f7458(0x1b7)](exports,_0x3f7458(0x1c1),{'value':!![]}),exports[_0x3f7458(0x1c5)]=exports['AzureDelete']=exports[_0x3f7458(0x1c6)]=exports['AwsS3Delete']=exports[_0x3f7458(0x1b2)]=void 0x0;var base_delete_1=require('./base-delete');function _0x2dcc(_0xd37909,_0x75a362){_0xd37909=_0xd37909-0x1b2;var _0x507c41=_0x507c();var _0x2dcc13=_0x507c41[_0xd37909];return _0x2dcc13;}Object[_0x3f7458(0x1b7)](exports,_0x3f7458(0x1b2),{'enumerable':!![],'get':function(){var _0x899956=_0x3f7458;return base_delete_1[_0x899956(0x1b2)];}});var aws_s3_delete_1=require(_0x3f7458(0x1b5));Object[_0x3f7458(0x1b7)](exports,_0x3f7458(0x1b8),{'enumerable':!![],'get':function(){var _0x3bf566=_0x3f7458;return aws_s3_delete_1[_0x3bf566(0x1b8)];}});var local_delete_1=require(_0x3f7458(0x1bf));Object[_0x3f7458(0x1b7)](exports,_0x3f7458(0x1c6),{'enumerable':!![],'get':function(){var _0x5289cb=_0x3f7458;return local_delete_1[_0x5289cb(0x1c6)];}});var azure_delete_1=require(_0x3f7458(0x1be));Object['defineProperty'](exports,'AzureDelete',{'enumerable':!![],'get':function(){var _0x2fb927=_0x3f7458;return azure_delete_1[_0x2fb927(0x1c3)];}});var google_cloud_delete_1=require('./google-cloud-delete');Object[_0x3f7458(0x1b7)](exports,'GoogleCloudDelete',{'enumerable':!![],'get':function(){return google_cloud_delete_1['GoogleCloudDelete'];}});function _0x507c(){var _0x13f753=['LocalDelete','BaseDelete','1773815isGWPp','121OqYCVF','./aws-s3-delete','128NusaSF','defineProperty','AwsS3Delete','435528RKTIsR','114527lgysYj','239823VdElKF','4987vshyCZ','16twrpWG','./azure-delete','./local-delete','913460otXHPz','__esModule','42drbVQR','AzureDelete','549HDzNEl','GoogleCloudDelete'];_0x507c=function(){return _0x13f753;};return _0x507c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x21e2c6=_0x5d07;(function(_0x48b94c,_0x4a4324){const _0x20a983=_0x5d07,_0x3c7ff7=_0x48b94c();while(!![]){try{const _0xe09bb7=parseInt(_0x20a983(0x15f))/0x1*(-parseInt(_0x20a983(0x161))/0x2)+parseInt(_0x20a983(0x16a))/0x3*(parseInt(_0x20a983(0x15c))/0x4)+parseInt(_0x20a983(0x163))/0x5+-parseInt(_0x20a983(0x168))/0x6*(-parseInt(_0x20a983(0x167))/0x7)+parseInt(_0x20a983(0x15e))/0x8*(-parseInt(_0x20a983(0x156))/0x9)+parseInt(_0x20a983(0x159))/0xa*(parseInt(_0x20a983(0x155))/0xb)+-parseInt(_0x20a983(0x15d))/0xc*(parseInt(_0x20a983(0x16b))/0xd);if(_0xe09bb7===_0x4a4324)break;else _0x3c7ff7['push'](_0x3c7ff7['shift']());}catch(_0x3cb4b5){_0x3c7ff7['push'](_0x3c7ff7['shift']());}}}(_0x3092,0x314ea));var __awaiter=this&&this[_0x21e2c6(0x158)]||function(_0xb30c9a,_0x4b64e2,_0x2e0245,_0xfe13e1){function _0x2f96c7(_0x13d423){return _0x13d423 instanceof _0x2e0245?_0x13d423:new _0x2e0245(function(_0x49e7aa){_0x49e7aa(_0x13d423);});}return new(_0x2e0245||(_0x2e0245=Promise))(function(_0x92cbe9,_0x157d64){const _0x319091=_0x5d07;function _0x53ecc7(_0x1519c1){const _0x494e76=_0x5d07;try{_0xc67aac(_0xfe13e1[_0x494e76(0x164)](_0x1519c1));}catch(_0x5a9bd6){_0x157d64(_0x5a9bd6);}}function _0x3b4bc3(_0x28adb3){const _0x129e2b=_0x5d07;try{_0xc67aac(_0xfe13e1[_0x129e2b(0x16c)](_0x28adb3));}catch(_0x3706fa){_0x157d64(_0x3706fa);}}function _0xc67aac(_0x16093e){const _0x4ec2fa=_0x5d07;_0x16093e[_0x4ec2fa(0x157)]?_0x92cbe9(_0x16093e[_0x4ec2fa(0x15b)]):_0x2f96c7(_0x16093e[_0x4ec2fa(0x15b)])[_0x4ec2fa(0x166)](_0x53ecc7,_0x3b4bc3);}_0xc67aac((_0xfe13e1=_0xfe13e1['apply'](_0xb30c9a,_0x4b64e2||[]))[_0x319091(0x164)]());});};function _0x5d07(_0x1c6c97,_0x796c83){_0x1c6c97=_0x1c6c97-0x155;const _0x309227=_0x3092();let _0x5d0743=_0x309227[_0x1c6c97];return _0x5d0743;}Object[_0x21e2c6(0x162)](exports,'__esModule',{'value':!![]}),exports[_0x21e2c6(0x169)]=void 0x0;function _0x3092(){const _0x267167=['isExistsPath','value','808nzpriQ','45732DnYMhI','66800SsBBRc','1RcLMvy','execute','444542wLWshK','defineProperty','1867135OMQuEI','next','FsUtils','then','1322587CuDOwe','12LRKcuq','LocalDelete','2991RZeSJG','1495Vnutal','throw','178783AWorUk','360DGAqvl','done','__awaiter','150MsGnoy'];_0x3092=function(){return _0x267167;};return _0x3092();}const promises_1=require('fs/promises'),utils_1=require('@flosum/utils'),_1=require('./');class LocalDelete extends _1['BaseDelete']{[_0x21e2c6(0x160)](_0x12de5f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2f82c7=_0x5d07;if(yield utils_1[_0x2f82c7(0x165)][_0x2f82c7(0x15a)](_0x12de5f))yield(0x0,promises_1['rm'])(_0x12de5f,{'recursive':!![]});});}}exports[_0x21e2c6(0x169)]=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3760bb=_0x5038;(function(_0x5de8e0,_0x548b6e){const _0xd23f1c=_0x5038,_0x47f603=_0x5de8e0();while(!![]){try{const _0x5efb54=parseInt(_0xd23f1c(0x20b))/0x1*(-parseInt(_0xd23f1c(0x210))/0x2)+-parseInt(_0xd23f1c(0x1f8))/0x3*(-parseInt(_0xd23f1c(0x1f7))/0x4)+-parseInt(_0xd23f1c(0x204))/0x5*(parseInt(_0xd23f1c(0x213))/0x6)+-parseInt(_0xd23f1c(0x1f4))/0x7*(parseInt(_0xd23f1c(0x1fd))/0x8)+parseInt(_0xd23f1c(0x20e))/0x9+-parseInt(_0xd23f1c(0x211))/0xa+-parseInt(_0xd23f1c(0x1ff))/0xb*(-parseInt(_0xd23f1c(0x201))/0xc);if(_0x5efb54===_0x548b6e)break;else _0x47f603['push'](_0x47f603['shift']());}catch(_0x1ce305){_0x47f603['push'](_0x47f603['shift']());}}}(_0x451f,0x39e3e));var __awaiter=this&&this[_0x3760bb(0x209)]||function(_0x32c749,_0x4a7513,_0x467841,_0xbadcd9){function _0x28b7ee(_0x22eb33){return _0x22eb33 instanceof _0x467841?_0x22eb33:new _0x467841(function(_0x2b11d){_0x2b11d(_0x22eb33);});}return new(_0x467841||(_0x467841=Promise))(function(_0x8be7a2,_0x575b3c){const _0xe380f9=_0x5038;function _0x258320(_0x3f75ec){const _0x161e33=_0x5038;try{_0x4aa233(_0xbadcd9[_0x161e33(0x1f9)](_0x3f75ec));}catch(_0x2deea4){_0x575b3c(_0x2deea4);}}function _0x4e8802(_0x114da2){const _0x117f40=_0x5038;try{_0x4aa233(_0xbadcd9[_0x117f40(0x20c)](_0x114da2));}catch(_0x541a6e){_0x575b3c(_0x541a6e);}}function _0x4aa233(_0x313321){const _0x3b0ffd=_0x5038;_0x313321[_0x3b0ffd(0x207)]?_0x8be7a2(_0x313321[_0x3b0ffd(0x203)]):_0x28b7ee(_0x313321[_0x3b0ffd(0x203)])['then'](_0x258320,_0x4e8802);}_0x4aa233((_0xbadcd9=_0xbadcd9[_0xe380f9(0x1fc)](_0x32c749,_0x4a7513||[]))[_0xe380f9(0x1f9)]());});},__importDefault=this&&this[_0x3760bb(0x1ef)]||function(_0x1e17f1){return _0x1e17f1&&_0x1e17f1['__esModule']?_0x1e17f1:{'default':_0x1e17f1};};Object[_0x3760bb(0x208)](exports,_0x3760bb(0x1f0),{'value':!![]}),exports[_0x3760bb(0x1f6)]=void 0x0;const path_1=__importDefault(require(_0x3760bb(0x1fb))),_1=require('./'),lib_storage_1=require(_0x3760bb(0x20d)),aws_s3_utils_1=require(_0x3760bb(0x1f5));class AwsS3Deploy extends _1['BaseDeploy']{constructor(_0x4d62ba,_0x3ec634,_0x435600,_0xc00ab6){const _0x14a512=_0x3760bb;super(_0x4d62ba),this['credentials']=_0x4d62ba,this[_0x14a512(0x202)]=_0x3ec634,this[_0x14a512(0x1fe)]=_0xc00ab6||aws_s3_utils_1['AwsS3Utils'][_0x14a512(0x1f3)](_0x4d62ba,_0x435600);}[_0x3760bb(0x1fa)](_0x22efc4,_0x2d2381){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5e85c4=_0x5038,_0x2fac52=new lib_storage_1[(_0x5e85c4(0x20f))]({'client':this[_0x5e85c4(0x1fe)],'params':{'Bucket':this[_0x5e85c4(0x20a)][_0x5e85c4(0x1f2)],'Key':_0x2d2381,'Body':_0x22efc4,'StorageClass':this[_0x5e85c4(0x202)]}});yield _0x2fac52[_0x5e85c4(0x207)]();});}[_0x3760bb(0x212)](_0x5724a4,_0x2ae2d7){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2af9db=_0x5038;try{const _0x115b04=_0x2ae2d7['split'](path_1['default'][_0x2af9db(0x200)])[_0x2af9db(0x1f1)](path_1[_0x2af9db(0x206)][_0x2af9db(0x205)][_0x2af9db(0x200)]);yield this['upload'](_0x5724a4,_0x115b04);}catch(_0x20729a){throw _0x20729a;}});}}exports['AwsS3Deploy']=AwsS3Deploy;function _0x5038(_0x3de6be,_0xc2a0fa){_0x3de6be=_0x3de6be-0x1ef;const _0x451fb8=_0x451f();let _0x50388f=_0x451fb8[_0x3de6be];return _0x50388f;}function _0x451f(){const _0x2b2b9b=['s3Client','3355vyebNS','sep','28932hnWIQZ','storageClass','value','1004360hsUKBn','posix','default','done','defineProperty','__awaiter','credentials','194855SWciiE','throw','@aws-sdk/lib-storage','1624815onkkze','Upload','2UKsnKJ','2993070pUQWNh','execute','6NSgevD','__importDefault','__esModule','join','bucketName','createS3Client','197015QqaRDh','../utils/aws-s3.utils','AwsS3Deploy','92TTUOoU','38832bQoJPM','next','upload','path','apply','80gUhBRP'];_0x451f=function(){return _0x2b2b9b;};return _0x451f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x20ff(){const _0x4b53eb=['then','isBuffer','upload','20347370kyKgtU','5024130eAgGlH','4wTJTLw','AzureDeploy','done','11DaDoCZ','301545neBSzg','value','444054BzuBYJ','BaseDeploy','8851144hKLzZC','__esModule','containerClient','path','AzureUtils','default','320238tSTRZe','createAzureBlobContainerClient','sep','apply','71210WHpfxQ','execute','split','credentials','defineProperty','getBlockBlobClient','uploadStream','__awaiter','__importDefault','63qejqQZ','throw','byteLength','98hBkswy','join'];_0x20ff=function(){return _0x4b53eb;};return _0x20ff();}const _0x871656=_0x4820;(function(_0x10c815,_0x1aa3cd){const _0x3d6888=_0x4820,_0x4b7887=_0x10c815();while(!![]){try{const _0x58298c=parseInt(_0x3d6888(0x97))/0x1+parseInt(_0x3d6888(0x9b))/0x2*(-parseInt(_0x3d6888(0xa4))/0x3)+parseInt(_0x3d6888(0xae))/0x4*(-parseInt(_0x3d6888(0xad))/0x5)+-parseInt(_0x3d6888(0xb4))/0x6*(parseInt(_0x3d6888(0xa7))/0x7)+parseInt(_0x3d6888(0xb6))/0x8+parseInt(_0x3d6888(0xb2))/0x9+-parseInt(_0x3d6888(0xac))/0xa*(-parseInt(_0x3d6888(0xb1))/0xb);if(_0x58298c===_0x1aa3cd)break;else _0x4b7887['push'](_0x4b7887['shift']());}catch(_0x35001a){_0x4b7887['push'](_0x4b7887['shift']());}}}(_0x20ff,0xac6a8));function _0x4820(_0x844fa1,_0x1c6b6d){_0x844fa1=_0x844fa1-0x94;const _0x20ff3c=_0x20ff();let _0x482001=_0x20ff3c[_0x844fa1];return _0x482001;}var __awaiter=this&&this[_0x871656(0xa2)]||function(_0x437ddd,_0x3586cc,_0x5bad71,_0x37b960){function _0x2c681d(_0x31817a){return _0x31817a instanceof _0x5bad71?_0x31817a:new _0x5bad71(function(_0x2c00af){_0x2c00af(_0x31817a);});}return new(_0x5bad71||(_0x5bad71=Promise))(function(_0x3ff7e1,_0x20b504){const _0x2ed350=_0x4820;function _0x12ef84(_0x500a52){try{_0x317048(_0x37b960['next'](_0x500a52));}catch(_0x20b759){_0x20b504(_0x20b759);}}function _0x533ee7(_0xe7affe){const _0x520918=_0x4820;try{_0x317048(_0x37b960[_0x520918(0xa5)](_0xe7affe));}catch(_0x5cd720){_0x20b504(_0x5cd720);}}function _0x317048(_0x400605){const _0xeaa96c=_0x4820;_0x400605[_0xeaa96c(0xb0)]?_0x3ff7e1(_0x400605[_0xeaa96c(0xb3)]):_0x2c681d(_0x400605['value'])[_0xeaa96c(0xa9)](_0x12ef84,_0x533ee7);}_0x317048((_0x37b960=_0x37b960[_0x2ed350(0x9a)](_0x437ddd,_0x3586cc||[]))['next']());});},__importDefault=this&&this[_0x871656(0xa3)]||function(_0xe0a2bd){const _0x59ca45=_0x871656;return _0xe0a2bd&&_0xe0a2bd[_0x59ca45(0xb7)]?_0xe0a2bd:{'default':_0xe0a2bd};};Object[_0x871656(0x9f)](exports,_0x871656(0xb7),{'value':!![]}),exports[_0x871656(0xaf)]=void 0x0;const path_1=__importDefault(require(_0x871656(0x94))),_1=require('./'),azure_utils_1=require('../utils/azure.utils');class AzureDeploy extends _1[_0x871656(0xb5)]{constructor(_0x1c577){const _0x4ad74f=_0x871656;super(_0x1c577),this['credentials']=_0x1c577,this[_0x4ad74f(0xb8)]=azure_utils_1[_0x4ad74f(0x95)][_0x4ad74f(0x98)](this[_0x4ad74f(0x9e)]);}[_0x871656(0xab)](_0xb547a0,_0x25c5c2){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x837b56=_0x4820,_0x5a9a6b=this[_0x837b56(0xb8)][_0x837b56(0xa0)](_0x25c5c2);Buffer[_0x837b56(0xaa)](_0xb547a0)?yield _0x5a9a6b[_0x837b56(0xab)](_0xb547a0,_0xb547a0[_0x837b56(0xa6)]):yield _0x5a9a6b[_0x837b56(0xa1)](_0xb547a0);});}[_0x871656(0x9c)](_0x3eb552,_0x56f261){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2d1ce1=_0x4820,_0x15b295=_0x56f261[_0x2d1ce1(0x9d)](path_1[_0x2d1ce1(0x96)][_0x2d1ce1(0x99)])[_0x2d1ce1(0xa8)](path_1[_0x2d1ce1(0x96)]['posix'][_0x2d1ce1(0x99)]);yield this[_0x2d1ce1(0xab)](_0x3eb552,_0x15b295);});}}exports[_0x871656(0xaf)]=AzureDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x4dba9e=_0x43ab;(function(_0x548417,_0x21620e){var _0x17949d=_0x43ab,_0x599144=_0x548417();while(!![]){try{var _0x158698=parseInt(_0x17949d(0x16f))/0x1*(parseInt(_0x17949d(0x170))/0x2)+-parseInt(_0x17949d(0x17b))/0x3*(-parseInt(_0x17949d(0x178))/0x4)+parseInt(_0x17949d(0x173))/0x5+parseInt(_0x17949d(0x171))/0x6+parseInt(_0x17949d(0x17c))/0x7*(-parseInt(_0x17949d(0x176))/0x8)+parseInt(_0x17949d(0x17a))/0x9*(parseInt(_0x17949d(0x175))/0xa)+-parseInt(_0x17949d(0x172))/0xb;if(_0x158698===_0x21620e)break;else _0x599144['push'](_0x599144['shift']());}catch(_0x3e91ee){_0x599144['push'](_0x599144['shift']());}}}(_0x24c7,0x3b24d));function _0x24c7(){var _0x31f90f=['2415786YHquJF','6008200cBKIqe','479060wcoBDT','__esModule','22690fKYQCy','16VmIryb','BaseDeploy','19744QPqDWl','defineProperty','234lQFKSI','201qtIJgR','739767nVmMrE','1006urndlU','222tdhTFJ'];_0x24c7=function(){return _0x31f90f;};return _0x24c7();}Object[_0x4dba9e(0x179)](exports,_0x4dba9e(0x174),{'value':!![]}),exports['BaseDeploy']=void 0x0;class BaseDeploy{constructor(_0x12b3e5){this['credentials']=_0x12b3e5;}}function _0x43ab(_0x53ee98,_0x288fa5){_0x53ee98=_0x53ee98-0x16f;var _0x24c72e=_0x24c7();var _0x43ab72=_0x24c72e[_0x53ee98];return _0x43ab72;}exports[_0x4dba9e(0x177)]=BaseDeploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x408c(){const _0x2b97d6=['__importDefault','15023310PZOQlp','../utils/google-cloud.utils','file','52472gAwESH','962652LUbnpO','__esModule','next','6610212xhxILM','812aAZVFH','614908hEIpYm','GoogleCloudDeploy','bucket','GoogleCloudUtils','1wkfWsv','defineProperty','then','2286897aOeXao','default','save','value','join','25qgiRDF','__awaiter','path','848418nlOPNM','upload','sep','split','throw','credentials','apply'];_0x408c=function(){return _0x2b97d6;};return _0x408c();}const _0xd40d09=_0x2804;(function(_0x5df75d,_0x2fb748){const _0x396873=_0x2804,_0x5a8d4d=_0x5df75d();while(!![]){try{const _0x464999=-parseInt(_0x396873(0xd6))/0x1*(-parseInt(_0x396873(0xe1))/0x2)+parseInt(_0x396873(0xd9))/0x3+parseInt(_0x396873(0xd2))/0x4*(-parseInt(_0x396873(0xde))/0x5)+parseInt(_0x396873(0xcd))/0x6+-parseInt(_0x396873(0xd1))/0x7*(parseInt(_0x396873(0xcc))/0x8)+-parseInt(_0x396873(0xd0))/0x9+parseInt(_0x396873(0xe9))/0xa;if(_0x464999===_0x2fb748)break;else _0x5a8d4d['push'](_0x5a8d4d['shift']());}catch(_0x1b9004){_0x5a8d4d['push'](_0x5a8d4d['shift']());}}}(_0x408c,0x8ee76));function _0x2804(_0x508250,_0x3dcb8b){_0x508250=_0x508250-0xca;const _0x408cb4=_0x408c();let _0x2804f2=_0x408cb4[_0x508250];return _0x2804f2;}var __awaiter=this&&this[_0xd40d09(0xdf)]||function(_0x175d77,_0x50f9d1,_0x54b9be,_0x2b9282){function _0x3492c1(_0x5241a9){return _0x5241a9 instanceof _0x54b9be?_0x5241a9:new _0x54b9be(function(_0x395f87){_0x395f87(_0x5241a9);});}return new(_0x54b9be||(_0x54b9be=Promise))(function(_0x2b317c,_0x35de8a){const _0x5d8cc9=_0x2804;function _0x24b167(_0xb0e33b){const _0x4bb467=_0x2804;try{_0x2c2089(_0x2b9282[_0x4bb467(0xcf)](_0xb0e33b));}catch(_0x3e7863){_0x35de8a(_0x3e7863);}}function _0x1419cb(_0x462d6c){const _0x35dab4=_0x2804;try{_0x2c2089(_0x2b9282[_0x35dab4(0xe5)](_0x462d6c));}catch(_0x5ad004){_0x35de8a(_0x5ad004);}}function _0x2c2089(_0x13fef6){const _0x4c9279=_0x2804;_0x13fef6['done']?_0x2b317c(_0x13fef6[_0x4c9279(0xdc)]):_0x3492c1(_0x13fef6[_0x4c9279(0xdc)])[_0x4c9279(0xd8)](_0x24b167,_0x1419cb);}_0x2c2089((_0x2b9282=_0x2b9282[_0x5d8cc9(0xe7)](_0x175d77,_0x50f9d1||[]))['next']());});},__importDefault=this&&this[_0xd40d09(0xe8)]||function(_0x38dfa9){const _0x426cee=_0xd40d09;return _0x38dfa9&&_0x38dfa9[_0x426cee(0xce)]?_0x38dfa9:{'default':_0x38dfa9};};Object[_0xd40d09(0xd7)](exports,_0xd40d09(0xce),{'value':!![]}),exports['GoogleCloudDeploy']=void 0x0;const path_1=__importDefault(require(_0xd40d09(0xe0))),_1=require('./'),google_cloud_utils_1=require(_0xd40d09(0xca));class GoogleCloudDeploy extends _1['BaseDeploy']{constructor(_0x3f264e){const _0x13cf9a=_0xd40d09;super(_0x3f264e),this[_0x13cf9a(0xe6)]=_0x3f264e,this[_0x13cf9a(0xd4)]=google_cloud_utils_1[_0x13cf9a(0xd5)]['createBucket'](this['credentials']);}['upload'](_0x131e81,_0x25df34){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x58f433=_0x2804;yield this[_0x58f433(0xd4)][_0x58f433(0xcb)](_0x25df34)[_0x58f433(0xdb)](_0x131e81);});}['execute'](_0x36656f,_0x3aec05){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x525ec7=_0x2804,_0x1e4b2d=_0x3aec05[_0x525ec7(0xe4)](path_1[_0x525ec7(0xda)]['sep'])[_0x525ec7(0xdd)](path_1[_0x525ec7(0xda)]['posix'][_0x525ec7(0xe3)]);yield this[_0x525ec7(0xe2)](_0x36656f,_0x1e4b2d);});}}exports[_0xd40d09(0xd3)]=GoogleCloudDeploy;
|