@flosum/storages 1.3.3-beta.2 → 1.3.3-beta.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/README.md +25 -0
- package/dist/copy/aws-s3-copy.d.ts +7 -0
- package/dist/copy/aws-s3-copy.js +1 -0
- package/dist/copy/base-copy.d.ts +6 -0
- package/dist/copy/base-copy.js +1 -0
- package/dist/copy/index.d.ts +3 -0
- package/dist/copy/index.js +1 -0
- package/dist/copy/local-copy.d.ts +5 -0
- package/dist/copy/local-copy.js +1 -0
- package/dist/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/azure-credentials.js +1 -1
- package/dist/credentials/base-credentials.js +1 -1
- package/dist/credentials/index.js +1 -1
- package/dist/credentials/local-credentials.js +1 -1
- package/dist/delete/aws-s3-delete.js +1 -1
- package/dist/delete/azure-delete.js +1 -1
- package/dist/delete/base-delete.js +1 -1
- package/dist/delete/index.js +1 -1
- package/dist/delete/local-delete.js +1 -1
- package/dist/deploy/aws-s3-deploy.js +1 -1
- package/dist/deploy/azure-deploy.js +1 -1
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.d.ts +2 -0
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.d.ts +1 -0
- 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.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/helpers/aws-s3-helper.d.ts +2 -9
- package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
- package/dist/retrieve/helpers/azure-helper.js +1 -1
- package/dist/retrieve/helpers/base-helper.js +1 -1
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.js +1 -1
- package/dist/types/azure.types.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/internal.types.js +1 -1
- package/dist/types/retrieve-status.enum.js +1 -1
- package/dist/types/storage-type.enum.js +1 -1
- package/dist/utils/aws-s3.utils.js +1 -1
- package/dist/utils/azure.utils.js +1 -1
- package/dist/utils/cache.utils.js +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Flosum Storages
|
|
2
|
+
|
|
3
|
+
## AWS IAM Policy Example for S3
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{
|
|
7
|
+
"Version": "2012-10-17",
|
|
8
|
+
"Statement": [
|
|
9
|
+
{
|
|
10
|
+
"Effect": "Allow",
|
|
11
|
+
"Action": [
|
|
12
|
+
"s3:ListBucket",
|
|
13
|
+
"s3:GetObject",
|
|
14
|
+
"s3:HeadObject",
|
|
15
|
+
"s3:RestoreObject",
|
|
16
|
+
"s3:DeleteObject",
|
|
17
|
+
"s3:HeadBucket"
|
|
18
|
+
],
|
|
19
|
+
"Resource": [
|
|
20
|
+
"arn:aws:s3:::your-bucket-name",
|
|
21
|
+
"arn:aws:s3:::your-bucket-name/*"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AwsS3Credentials } from '../credentials';
|
|
2
|
+
import { BaseCopy } from './base-copy';
|
|
3
|
+
export declare class AwsS3Copy extends BaseCopy<AwsS3Credentials> {
|
|
4
|
+
private readonly s3Client;
|
|
5
|
+
constructor(credentials: AwsS3Credentials);
|
|
6
|
+
execute(sourcePath: string, destinationPath: string): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';function _0x4775(_0x50bf14,_0x4e4afc){const _0x3dfb43=_0x3dfb();return _0x4775=function(_0x477579,_0x42040b){_0x477579=_0x477579-0x1bd;let _0x4d5b34=_0x3dfb43[_0x477579];return _0x4d5b34;},_0x4775(_0x50bf14,_0x4e4afc);}const _0x54648d=_0x4775;(function(_0x14007e,_0x4a4f81){const _0x3268ae=_0x4775,_0x3f08d3=_0x14007e();while(!![]){try{const _0x3267a4=parseInt(_0x3268ae(0x1d8))/0x1+-parseInt(_0x3268ae(0x1cb))/0x2*(-parseInt(_0x3268ae(0x1d0))/0x3)+parseInt(_0x3268ae(0x1cd))/0x4*(-parseInt(_0x3268ae(0x1c0))/0x5)+-parseInt(_0x3268ae(0x1ca))/0x6+parseInt(_0x3268ae(0x1d5))/0x7+-parseInt(_0x3268ae(0x1c6))/0x8+-parseInt(_0x3268ae(0x1d6))/0x9*(-parseInt(_0x3268ae(0x1c5))/0xa);if(_0x3267a4===_0x4a4f81)break;else _0x3f08d3['push'](_0x3f08d3['shift']());}catch(_0x2dc33e){_0x3f08d3['push'](_0x3f08d3['shift']());}}}(_0x3dfb,0x6e772));function _0x3dfb(){const _0x4b12e7=['12Pphzkv','apply','s3Client','10662HjRlqQ','CopyObjectCommand','bucketName','BaseCopy','credentials','2796381dTNmAU','5024691KqCCdO','defineProperty','859871ccStnS','done','AwsS3Utils','execute','next','541455oHxiVm','../utils/aws-s3.utils','value','./base-copy','then','10PIJmDS','5474880MSjgHX','@aws-sdk/client-s3','send','AwsS3Copy','4012236XYescW','176ijNfOL','createS3Client'];_0x3dfb=function(){return _0x4b12e7;};return _0x3dfb();}var __awaiter=this&&this['__awaiter']||function(_0x2cf02b,_0x14e43c,_0x1d0a7a,_0x4e5e1c){function _0x19193d(_0x4d4560){return _0x4d4560 instanceof _0x1d0a7a?_0x4d4560:new _0x1d0a7a(function(_0x5b517e){_0x5b517e(_0x4d4560);});}return new(_0x1d0a7a||(_0x1d0a7a=Promise))(function(_0x27acde,_0x321d89){const _0x49e150=_0x4775;function _0x2bed27(_0x417e83){const _0x281f3c=_0x4775;try{_0x550daf(_0x4e5e1c[_0x281f3c(0x1bf)](_0x417e83));}catch(_0xa619ee){_0x321d89(_0xa619ee);}}function _0x1fa4f4(_0x22764b){try{_0x550daf(_0x4e5e1c['throw'](_0x22764b));}catch(_0x6c1209){_0x321d89(_0x6c1209);}}function _0x550daf(_0x43a90c){const _0xf1e767=_0x4775;_0x43a90c[_0xf1e767(0x1d9)]?_0x27acde(_0x43a90c['value']):_0x19193d(_0x43a90c[_0xf1e767(0x1c2)])[_0xf1e767(0x1c4)](_0x2bed27,_0x1fa4f4);}_0x550daf((_0x4e5e1c=_0x4e5e1c[_0x49e150(0x1ce)](_0x2cf02b,_0x14e43c||[]))['next']());});};Object[_0x54648d(0x1d7)](exports,'__esModule',{'value':!![]}),exports[_0x54648d(0x1c9)]=void 0x0;const base_copy_1=require(_0x54648d(0x1c3)),client_s3_1=require(_0x54648d(0x1c7)),aws_s3_utils_1=require(_0x54648d(0x1c1));class AwsS3Copy extends base_copy_1[_0x54648d(0x1d3)]{constructor(_0x1f2f42){const _0x18ca4e=_0x54648d;super(_0x1f2f42),this[_0x18ca4e(0x1cf)]=aws_s3_utils_1[_0x18ca4e(0x1bd)][_0x18ca4e(0x1cc)](_0x1f2f42);}[_0x54648d(0x1be)](_0xde6430,_0xe9c368){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1eced4=_0x4775,_0x575dc8=new client_s3_1[(_0x1eced4(0x1d1))]({'Bucket':this[_0x1eced4(0x1d4)][_0x1eced4(0x1d2)],'CopySource':_0xde6430,'Key':_0xe9c368});yield this[_0x1eced4(0x1cf)][_0x1eced4(0x1c8)](_0x575dc8);});}}exports['AwsS3Copy']=AwsS3Copy;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseCredentials } from '../credentials';
|
|
2
|
+
export declare abstract class BaseCopy<T extends BaseCredentials = BaseCredentials> {
|
|
3
|
+
protected readonly credentials: T;
|
|
4
|
+
constructor(credentials: T);
|
|
5
|
+
abstract execute(sourcePath: string, destinationPath: string): Promise<void>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x14c034=_0x2007;function _0x2007(_0x3aaa88,_0x25ef65){var _0x2138e4=_0x2138();return _0x2007=function(_0x2007f9,_0x5f4034){_0x2007f9=_0x2007f9-0x19e;var _0x2742da=_0x2138e4[_0x2007f9];return _0x2742da;},_0x2007(_0x3aaa88,_0x25ef65);}(function(_0x27ed1d,_0x241bab){var _0x914ad1=_0x2007,_0x1c1c60=_0x27ed1d();while(!![]){try{var _0x2a0ca1=-parseInt(_0x914ad1(0x1a8))/0x1*(-parseInt(_0x914ad1(0x1a4))/0x2)+parseInt(_0x914ad1(0x1a0))/0x3+-parseInt(_0x914ad1(0x1a1))/0x4+parseInt(_0x914ad1(0x1a5))/0x5+parseInt(_0x914ad1(0x1a7))/0x6+-parseInt(_0x914ad1(0x19f))/0x7+-parseInt(_0x914ad1(0x1a3))/0x8;if(_0x2a0ca1===_0x241bab)break;else _0x1c1c60['push'](_0x1c1c60['shift']());}catch(_0x277826){_0x1c1c60['push'](_0x1c1c60['shift']());}}}(_0x2138,0xb0e3b));function _0x2138(){var _0x1dd3e1=['2987550ziXEmG','3339416NXSBjr','__esModule','3118448UZpXZx','47494NVdFKS','4044595gTIsPJ','defineProperty','144918HyVbFR','22LuVQKE','BaseCopy','2815099kOOAkf'];_0x2138=function(){return _0x1dd3e1;};return _0x2138();}Object[_0x14c034(0x1a6)](exports,_0x14c034(0x1a2),{'value':!![]}),exports[_0x14c034(0x19e)]=void 0x0;class BaseCopy{constructor(_0x547130){this['credentials']=_0x547130;}}exports[_0x14c034(0x19e)]=BaseCopy;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var _0x4f7ba7=_0xefc5;(function(_0x57eb9c,_0xa9af96){var _0x178982=_0xefc5,_0x2b1101=_0x57eb9c();while(!![]){try{var _0x2016d8=-parseInt(_0x178982(0xd1))/0x1*(-parseInt(_0x178982(0xd5))/0x2)+parseInt(_0x178982(0xe0))/0x3*(-parseInt(_0x178982(0xd9))/0x4)+-parseInt(_0x178982(0xdc))/0x5+parseInt(_0x178982(0xde))/0x6+parseInt(_0x178982(0xda))/0x7*(-parseInt(_0x178982(0xdf))/0x8)+parseInt(_0x178982(0xdd))/0x9+parseInt(_0x178982(0xdb))/0xa;if(_0x2016d8===_0xa9af96)break;else _0x2b1101['push'](_0x2b1101['shift']());}catch(_0x6f7aa7){_0x2b1101['push'](_0x2b1101['shift']());}}}(_0x4282,0x5823e));function _0x4282(){var _0x13eda0=['AwsS3Copy','LocalCopy','./aws-s3-copy','376cIkemb','3993689ldJyvE','5869490KleIec','2564405eStwob','345726BmwLVG','2388462pCKWri','8uPlKUE','7806HyyCcF','BaseCopy','./base-copy','4967ZCGBoK','defineProperty','./local-copy','__esModule','268eoUFKs'];_0x4282=function(){return _0x13eda0;};return _0x4282();}function _0xefc5(_0x4cb959,_0x5b43b9){var _0x428278=_0x4282();return _0xefc5=function(_0xefc59e,_0x42ceec){_0xefc59e=_0xefc59e-0xcf;var _0x4d5bb0=_0x428278[_0xefc59e];return _0x4d5bb0;},_0xefc5(_0x4cb959,_0x5b43b9);}Object['defineProperty'](exports,_0x4f7ba7(0xd4),{'value':!![]}),exports[_0x4f7ba7(0xd6)]=exports[_0x4f7ba7(0xd7)]=exports[_0x4f7ba7(0xcf)]=void 0x0;var base_copy_1=require(_0x4f7ba7(0xd0));Object[_0x4f7ba7(0xd2)](exports,_0x4f7ba7(0xcf),{'enumerable':!![],'get':function(){var _0x162431=_0x4f7ba7;return base_copy_1[_0x162431(0xcf)];}});var local_copy_1=require(_0x4f7ba7(0xd3));Object[_0x4f7ba7(0xd2)](exports,_0x4f7ba7(0xd7),{'enumerable':!![],'get':function(){var _0x4d1683=_0x4f7ba7;return local_copy_1[_0x4d1683(0xd7)];}});var aws_s3_copy_1=require(_0x4f7ba7(0xd8));Object[_0x4f7ba7(0xd2)](exports,_0x4f7ba7(0xd6),{'enumerable':!![],'get':function(){var _0x3bfb4e=_0x4f7ba7;return aws_s3_copy_1[_0x3bfb4e(0xd6)];}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const _0x21d517=_0x4ddd;(function(_0x132af8,_0x4474ea){const _0xb2193c=_0x4ddd,_0x125268=_0x132af8();while(!![]){try{const _0x3c3fb9=parseInt(_0xb2193c(0x137))/0x1*(parseInt(_0xb2193c(0x143))/0x2)+parseInt(_0xb2193c(0x145))/0x3*(-parseInt(_0xb2193c(0x13c))/0x4)+parseInt(_0xb2193c(0x13e))/0x5+parseInt(_0xb2193c(0x135))/0x6+-parseInt(_0xb2193c(0x136))/0x7+-parseInt(_0xb2193c(0x13b))/0x8+parseInt(_0xb2193c(0x140))/0x9;if(_0x3c3fb9===_0x4474ea)break;else _0x125268['push'](_0x125268['shift']());}catch(_0x3b2374){_0x125268['push'](_0x125268['shift']());}}}(_0x1aa8,0x34570));function _0x4ddd(_0x44acd5,_0x170952){const _0x1aa8af=_0x1aa8();return _0x4ddd=function(_0x4ddd50,_0x1a3b53){_0x4ddd50=_0x4ddd50-0x133;let _0x86d92f=_0x1aa8af[_0x4ddd50];return _0x86d92f;},_0x4ddd(_0x44acd5,_0x170952);}function _0x1aa8(){const _0x370da5=['38438rIhErW','mkdir','LocalCopy','next','3155120JrvQLN','4xjVJGb','value','236370QUvEct','BaseCopy','9135513goYUvS','fs/promises','done','2owiCeC','dirname','830541dVfEdl','defineProperty','path','1044378CUNaKT','2724477wVoAZB'];_0x1aa8=function(){return _0x370da5;};return _0x1aa8();}var __awaiter=this&&this['__awaiter']||function(_0x5f52ab,_0xdf5995,_0x138056,_0x4c211){function _0x1490a7(_0xeaec75){return _0xeaec75 instanceof _0x138056?_0xeaec75:new _0x138056(function(_0x3b0f4c){_0x3b0f4c(_0xeaec75);});}return new(_0x138056||(_0x138056=Promise))(function(_0x570784,_0x187ffd){const _0x30cf94=_0x4ddd;function _0x1810d9(_0x3e70e4){const _0x3494b4=_0x4ddd;try{_0x398254(_0x4c211[_0x3494b4(0x13a)](_0x3e70e4));}catch(_0x48b425){_0x187ffd(_0x48b425);}}function _0x348f67(_0x555ec9){try{_0x398254(_0x4c211['throw'](_0x555ec9));}catch(_0x10d122){_0x187ffd(_0x10d122);}}function _0x398254(_0x48dfa2){const _0x368317=_0x4ddd;_0x48dfa2[_0x368317(0x142)]?_0x570784(_0x48dfa2[_0x368317(0x13d)]):_0x1490a7(_0x48dfa2[_0x368317(0x13d)])['then'](_0x1810d9,_0x348f67);}_0x398254((_0x4c211=_0x4c211['apply'](_0x5f52ab,_0xdf5995||[]))[_0x30cf94(0x13a)]());});};Object[_0x21d517(0x133)](exports,'__esModule',{'value':!![]}),exports[_0x21d517(0x139)]=void 0x0;const base_copy_1=require('./base-copy'),promises_1=require(_0x21d517(0x141)),path_1=require(_0x21d517(0x134));class LocalCopy extends base_copy_1[_0x21d517(0x13f)]{['execute'](_0x558e57,_0x110af1){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x5abbb5=_0x4ddd,_0x308b0d=(0x0,path_1[_0x5abbb5(0x144)])(_0x110af1);yield(0x0,promises_1[_0x5abbb5(0x138)])(_0x308b0d,{'recursive':!![]}),yield(0x0,promises_1['copyFile'])(_0x558e57,_0x110af1);});}}exports[_0x21d517(0x139)]=LocalCopy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1787(){const _0xe318=['accessKeyId','@aws-sdk/client-s3','done','Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20','4341804zxBJUY','then','message','__awaiter','secretAccessKey','region','throw','credentials','../utils/aws-s3.utils','apply','send','AwsS3Credentials','1579604WLGhZn','createS3Client','next','4872784QMlJet','value','3311230ptebfs','./base-credentials','8eGnbGh','43353xyJvFS','607481UjLhJC','BaseCredentials','4078624nLLqCA'];_0x1787=function(){return _0xe318;};return _0x1787();}const _0x1ad869=_0x4202;(function(_0x4c8f93,_0xb32959){const _0x611135=_0x4202,_0x2d5887=_0x4c8f93();while(!![]){try{const _0x1a20d3=parseInt(_0x611135(0x14e))/0x1+parseInt(_0x611135(0x14c))/0x2*(parseInt(_0x611135(0x14d))/0x3)+-parseInt(_0x611135(0x145))/0x4+-parseInt(_0x611135(0x14a))/0x5+parseInt(_0x611135(0x155))/0x6+parseInt(_0x611135(0x148))/0x7+-parseInt(_0x611135(0x150))/0x8;if(_0x1a20d3===_0xb32959)break;else _0x2d5887['push'](_0x2d5887['shift']());}catch(_0x2356f9){_0x2d5887['push'](_0x2d5887['shift']());}}}(_0x1787,0x7e7a8));function _0x4202(_0x29d2f7,_0x4ac107){const _0x1787e7=_0x1787();return _0x4202=function(_0x4202f9,_0x382ad1){_0x4202f9=_0x4202f9-0x141;let _0x20a8d3=_0x1787e7[_0x4202f9];return _0x20a8d3;},_0x4202(_0x29d2f7,_0x4ac107);}var __awaiter=this&&this[_0x1ad869(0x158)]||function(_0xbd20db,_0x34d90e,_0x54c23e,_0xe0be78){function _0x56c520(_0x24ac0c){return _0x24ac0c instanceof _0x54c23e?_0x24ac0c:new _0x54c23e(function(_0x305689){_0x305689(_0x24ac0c);});}return new(_0x54c23e||(_0x54c23e=Promise))(function(_0x504b0b,_0x57c460){const _0x42725d=_0x4202;function _0x4e5d63(_0x3dff2f){const _0x4d1fda=_0x4202;try{_0xd7242e(_0xe0be78[_0x4d1fda(0x147)](_0x3dff2f));}catch(_0x59f5be){_0x57c460(_0x59f5be);}}function _0x584926(_0x2f61af){const _0x48e0b0=_0x4202;try{_0xd7242e(_0xe0be78[_0x48e0b0(0x15b)](_0x2f61af));}catch(_0xef4972){_0x57c460(_0xef4972);}}function _0xd7242e(_0x5c0ce8){const _0x83d528=_0x4202;_0x5c0ce8[_0x83d528(0x153)]?_0x504b0b(_0x5c0ce8[_0x83d528(0x149)]):_0x56c520(_0x5c0ce8[_0x83d528(0x149)])[_0x83d528(0x156)](_0x4e5d63,_0x584926);}_0xd7242e((_0xe0be78=_0xe0be78[_0x42725d(0x142)](_0xbd20db,_0x34d90e||[]))[_0x42725d(0x147)]());});};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x1ad869(0x144)]=void 0x0;const base_credentials_1=require(_0x1ad869(0x14b)),client_s3_1=require(_0x1ad869(0x152)),aws_s3_utils_1=require(_0x1ad869(0x141));class AwsS3Credentials extends base_credentials_1[_0x1ad869(0x14f)]{constructor(_0x47371c){const _0x5c85a9=_0x1ad869;super(_0x47371c),this['s3Client']=aws_s3_utils_1['AwsS3Utils'][_0x5c85a9(0x146)](this[_0x5c85a9(0x15c)]);}get[_0x1ad869(0x151)](){const _0x1f1d9c=_0x1ad869;return this[_0x1f1d9c(0x15c)][_0x1f1d9c(0x151)];}get[_0x1ad869(0x159)](){const _0x3465f3=_0x1ad869;return this[_0x3465f3(0x15c)][_0x3465f3(0x159)];}get['bucketName'](){const _0x5eec22=_0x1ad869;return this[_0x5eec22(0x15c)]['bucketName'];}get[_0x1ad869(0x15a)](){const _0x503b20=_0x1ad869;return this[_0x503b20(0x15c)][_0x503b20(0x15a)];}['validate'](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x12da8e=_0x4202;try{const _0xbb94d2=new client_s3_1['HeadBucketCommand']({'Bucket':this[_0x12da8e(0x15c)]['bucketName']});yield this['s3Client'][_0x12da8e(0x143)](_0xbb94d2);}catch(_0x346a87){throw new Error(_0x12da8e(0x154)+_0x346a87[_0x12da8e(0x157)]);}});}['getCredentials'](_0x61f291=![]){const _0x105aaa=_0x1ad869;if(_0x61f291)return{'bucketName':this[_0x105aaa(0x15c)]['bucketName']};return this[_0x105aaa(0x15c)];}}exports[_0x1ad869(0x144)]=AwsS3Credentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x40cf(_0x39db28,_0x59beec){const _0x10c32e=_0x10c3();return _0x40cf=function(_0x40cf05,_0x34a880){_0x40cf05=_0x40cf05-0x153;let _0x1bdbbf=_0x10c32e[_0x40cf05];return _0x1bdbbf;},_0x40cf(_0x39db28,_0x59beec);}const _0x29faf3=_0x40cf;(function(_0x50119a,_0x485555){const _0x59f6c1=_0x40cf,_0x542830=_0x50119a();while(!![]){try{const _0xa2cc58=-parseInt(_0x59f6c1(0x156))/0x1*(-parseInt(_0x59f6c1(0x16c))/0x2)+parseInt(_0x59f6c1(0x167))/0x3+parseInt(_0x59f6c1(0x170))/0x4*(parseInt(_0x59f6c1(0x16e))/0x5)+parseInt(_0x59f6c1(0x15b))/0x6+parseInt(_0x59f6c1(0x162))/0x7*(-parseInt(_0x59f6c1(0x171))/0x8)+parseInt(_0x59f6c1(0x168))/0x9+parseInt(_0x59f6c1(0x159))/0xa*(-parseInt(_0x59f6c1(0x15c))/0xb);if(_0xa2cc58===_0x485555)break;else _0x542830['push'](_0x542830['shift']());}catch(_0x4ad252){_0x542830['push'](_0x542830['shift']());}}}(_0x10c3,0xaef2d));var __awaiter=this&&this[_0x29faf3(0x16d)]||function(_0x2ff80a,_0x253d47,_0x5e8aca,_0xe4c9cf){function _0x6338c(_0x6ae882){return _0x6ae882 instanceof _0x5e8aca?_0x6ae882:new _0x5e8aca(function(_0x433460){_0x433460(_0x6ae882);});}return new(_0x5e8aca||(_0x5e8aca=Promise))(function(_0x4cf3f9,_0x3410b6){const _0x31a33f=_0x40cf;function _0x57b105(_0x2169d5){const _0x43aabc=_0x40cf;try{_0x50bbd8(_0xe4c9cf[_0x43aabc(0x166)](_0x2169d5));}catch(_0x424b7c){_0x3410b6(_0x424b7c);}}function _0x28f875(_0x11774){const _0x243efd=_0x40cf;try{_0x50bbd8(_0xe4c9cf[_0x243efd(0x154)](_0x11774));}catch(_0x1b89d7){_0x3410b6(_0x1b89d7);}}function _0x50bbd8(_0x411606){const _0x54e51d=_0x40cf;_0x411606[_0x54e51d(0x163)]?_0x4cf3f9(_0x411606[_0x54e51d(0x169)]):_0x6338c(_0x411606[_0x54e51d(0x169)])[_0x54e51d(0x157)](_0x57b105,_0x28f875);}_0x50bbd8((_0xe4c9cf=_0xe4c9cf[_0x31a33f(0x153)](_0x2ff80a,_0x253d47||[]))[_0x31a33f(0x166)]());});};Object[_0x29faf3(0x16f)](exports,'__esModule',{'value':!![]}),exports[_0x29faf3(0x155)]=void 0x0;const base_credentials_1=require(_0x29faf3(0x16b)),azure_utils_1=require('../utils/azure.utils');function _0x10c3(){const _0x42c76a=['2347875xOJgeD','12498903gYmiCe','value','blobServiceClient','./base-credentials','2qpuBps','__awaiter','485PVDnYE','defineProperty','22856vUaCqq','184EEcaZK','AzureUtils','apply','throw','AzureCredentials','184453ejyiuU','then','accountKey','607690nTfFFV','getCredentials','3835890EOuMZX','462OWZgBD','credentials','validate','BaseCredentials','exists','getContainerClient','85379uTbCzm','done','containerName','createAzureBlobServiceClient','next'];_0x10c3=function(){return _0x42c76a;};return _0x10c3();}class AzureCredentials extends base_credentials_1[_0x29faf3(0x15f)]{constructor(_0x28ef44){const _0x43c589=_0x29faf3;super(_0x28ef44),this[_0x43c589(0x16a)]=azure_utils_1[_0x43c589(0x172)][_0x43c589(0x165)](this[_0x43c589(0x15d)]);}get[_0x29faf3(0x158)](){const _0x3574b7=_0x29faf3;return this['credentials'][_0x3574b7(0x158)];}get['accountName'](){const _0x191b64=_0x29faf3;return this[_0x191b64(0x15d)]['accountName'];}get[_0x29faf3(0x164)](){const _0x8ea5f8=_0x29faf3;return this[_0x8ea5f8(0x15d)][_0x8ea5f8(0x164)];}[_0x29faf3(0x15e)](){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x28462=_0x40cf;try{const _0xf1822e=this[_0x28462(0x16a)][_0x28462(0x161)](this[_0x28462(0x15d)][_0x28462(0x164)]);yield _0xf1822e[_0x28462(0x160)]();}catch(_0x4b5272){throw new Error('Failed\x20to\x20validate\x20storage\x20credentials.\x20Raw\x20error:\x20'+_0x4b5272['message']);}});}[_0x29faf3(0x15a)](_0x55bc4f=![]){const _0x4602e8=_0x29faf3;if(_0x55bc4f)return{'accountName':this['credentials']['accountName']};return this[_0x4602e8(0x15d)];}}exports['AzureCredentials']=AzureCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0xb980f2=_0x5aa3;(function(_0x42fc26,_0x31f83d){var _0x499871=_0x5aa3,_0xaaeb0a=_0x42fc26();while(!![]){try{var _0x19af53=-parseInt(_0x499871(0x15c))/0x1+parseInt(_0x499871(0x164))/0x2*(parseInt(_0x499871(0x161))/0x3)+-parseInt(_0x499871(0x163))/0x4*(-parseInt(_0x499871(0x166))/0x5)+-parseInt(_0x499871(0x15d))/0x6*(-parseInt(_0x499871(0x165))/0x7)+parseInt(_0x499871(0x15a))/0x8+-parseInt(_0x499871(0x159))/0x9*(parseInt(_0x499871(0x15b))/0xa)+parseInt(_0x499871(0x162))/0xb;if(_0x19af53===_0x31f83d)break;else _0xaaeb0a['push'](_0xaaeb0a['shift']());}catch(_0x31b835){_0xaaeb0a['push'](_0xaaeb0a['shift']());}}}(_0x5828,0xdce07));function _0x5828(){var _0x3124d3=['8893413DWbuWl','7339064SznyWl','10ETsjcp','1496953nCafcx','1104jYCdrg','BaseCredentials','__esModule','defineProperty','3016137ampwdO','4833059urxNqE','1768WWYHYM','2VZySkr','32354rCqyAN','2005SNjpLD','rawCredentials'];_0x5828=function(){return _0x3124d3;};return _0x5828();}function _0x5aa3(_0x4cd849,_0x3b9662){var _0x582821=_0x5828();return _0x5aa3=function(_0x5aa35b,_0x1c3d4d){_0x5aa35b=_0x5aa35b-0x158;var _0x4699c2=_0x582821[_0x5aa35b];return _0x4699c2;},_0x5aa3(_0x4cd849,_0x3b9662);}Object[_0xb980f2(0x160)](exports,_0xb980f2(0x15f),{'value':!![]}),exports[_0xb980f2(0x15e)]=void 0x0;class BaseCredentials{constructor(_0x53b8ea){var _0x278ccd=_0xb980f2;this[_0x278ccd(0x158)]=_0x53b8ea,this['credentials']=this[_0x278ccd(0x158)]?this[_0x278ccd(0x158)]:null;}}exports['BaseCredentials']=BaseCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x5ae84d=_0x38dc;(function(_0x464d7f,_0x167c24){var _0x14a9db=_0x38dc,_0x2896b4=_0x464d7f();while(!![]){try{var _0x367d19=parseInt(_0x14a9db(0x142))/0x1*(-parseInt(_0x14a9db(0x14d))/0x2)+-parseInt(_0x14a9db(0x151))/0x3*(-parseInt(_0x14a9db(0x152))/0x4)+parseInt(_0x14a9db(0x150))/0x5*(-parseInt(_0x14a9db(0x141))/0x6)+parseInt(_0x14a9db(0x144))/0x7+parseInt(_0x14a9db(0x14f))/0x8*(parseInt(_0x14a9db(0x13f))/0x9)+parseInt(_0x14a9db(0x148))/0xa+-parseInt(_0x14a9db(0x147))/0xb;if(_0x367d19===_0x167c24)break;else _0x2896b4['push'](_0x2896b4['shift']());}catch(_0x2a6948){_0x2896b4['push'](_0x2896b4['shift']());}}}(_0x5a0f,0x91edb));Object[_0x5ae84d(0x153)](exports,_0x5ae84d(0x14a),{'value':!![]}),exports['AzureCredentials']=exports[_0x5ae84d(0x14b)]=exports['AwsS3Credentials']=exports[_0x5ae84d(0x140)]=void 0x0;var base_credentials_1=require(_0x5ae84d(0x146));Object[_0x5ae84d(0x153)](exports,_0x5ae84d(0x140),{'enumerable':!![],'get':function(){var _0x464805=_0x5ae84d;return base_credentials_1[_0x464805(0x140)];}});var aws_s3_credentials_1=require(_0x5ae84d(0x14e));Object[_0x5ae84d(0x153)](exports,_0x5ae84d(0x145),{'enumerable':!![],'get':function(){var _0x501a9f=_0x5ae84d;return aws_s3_credentials_1[_0x501a9f(0x145)];}});function _0x38dc(_0x1f23d1,_0x2d359e){var _0x5a0f7f=_0x5a0f();return _0x38dc=function(_0x38dc9a,_0x3434a3){_0x38dc9a=_0x38dc9a-0x13f;var _0x8e57d0=_0x5a0f7f[_0x38dc9a];return _0x8e57d0;},_0x38dc(_0x1f23d1,_0x2d359e);}var local_credentials_1=require(_0x5ae84d(0x143));function _0x5a0f(){var _0x4eab11=['5234124zvwOoa','AwsS3Credentials','./base-credentials','4936899FGQXrV','8203470UiCSYC','AzureCredentials','__esModule','LocalCredentials','./azure-credentials','19682ZZMebm','./aws-s3-credentials','2289296upSTPw','275IWCmFW','3XLDhHl','1003016wrhIBS','defineProperty','9ELUHkK','BaseCredentials','53202miXWrb','58YpCSnW','./local-credentials'];_0x5a0f=function(){return _0x4eab11;};return _0x5a0f();}Object[_0x5ae84d(0x153)](exports,_0x5ae84d(0x14b),{'enumerable':!![],'get':function(){return local_credentials_1['LocalCredentials'];}});var azure_credentials_1=require(_0x5ae84d(0x14c));Object[_0x5ae84d(0x153)](exports,'AzureCredentials',{'enumerable':!![],'get':function(){var _0x539ff8=_0x5ae84d;return azure_credentials_1[_0x539ff8(0x149)];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x583543=_0x1171;(function(_0x3b08f8,_0xbf4edb){const _0x3f7d42=_0x1171,_0x3380aa=_0x3b08f8();while(!![]){try{const _0x4c2e2c=-parseInt(_0x3f7d42(0x198))/0x1*(-parseInt(_0x3f7d42(0x193))/0x2)+-parseInt(_0x3f7d42(0x19b))/0x3+parseInt(_0x3f7d42(0x199))/0x4*(-parseInt(_0x3f7d42(0x19f))/0x5)+parseInt(_0x3f7d42(0x191))/0x6+parseInt(_0x3f7d42(0x19e))/0x7*(-parseInt(_0x3f7d42(0x196))/0x8)+parseInt(_0x3f7d42(0x195))/0x9+parseInt(_0x3f7d42(0x19a))/0xa;if(_0x4c2e2c===_0xbf4edb)break;else _0x3380aa['push'](_0x3380aa['shift']());}catch(_0x4a8835){_0x3380aa['push'](_0x3380aa['shift']());}}}(_0x5661,0xb79bf));Object[_0x583543(0x197)](exports,'__esModule',{'value':!![]}),exports[_0x583543(0x192)]=void 0x0;function _0x5661(){const _0x3e0342=['defineProperty','3713RRvRfI','5515188QOwVaU','9153830rHHEDl','2504301wEbbeD','getCredentials','resolve','1352701GkLkpz','5ZZWmNh','./base-credentials','validate','5705970XSaBwz','LocalCredentials','634mTuNpM','BaseCredentials','1039239rOtHxZ','8klEHhk'];_0x5661=function(){return _0x3e0342;};return _0x5661();}const base_credentials_1=require(_0x583543(0x1a0));function _0x1171(_0x19ffad,_0x5127ff){const _0x5661b7=_0x5661();return _0x1171=function(_0x117114,_0x6142b){_0x117114=_0x117114-0x191;let _0x278d9f=_0x5661b7[_0x117114];return _0x278d9f;},_0x1171(_0x19ffad,_0x5127ff);}class LocalCredentials extends base_credentials_1[_0x583543(0x194)]{[_0x583543(0x19c)](){return null;}[_0x583543(0x1a1)](){const _0x373f28=_0x583543;return Promise[_0x373f28(0x19d)](undefined);}}exports[_0x583543(0x192)]=LocalCredentials;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4434(){const _0x108613=['throw','576910dwIBlt','done','AwsS3Delete','send','value','__esModule','596586jxEvSJ','351966NUXhKf','12oZbhIs','2350143YyYLWk','DeleteObjectsCommand','ArrayUtils','split','apply','__awaiter','path','next','8xNgLHM','OBJECTS_PER_CHUNK','1249479tgEeqd','2xnMVTt','11IwTfBY','join','243290rxrQqy','AwsS3Utils','bucketName','@flosum/utils','posix','default','../utils/aws-s3.utils','createS3Client','s3Client','sep','credentials','1145438cHfmIw','__importDefault'];_0x4434=function(){return _0x108613;};return _0x4434();}const _0x2e3f62=_0xa631;(function(_0x1019e5,_0xe4f993){const _0x4af450=_0xa631,_0x297581=_0x1019e5();while(!![]){try{const _0x546245=parseInt(_0x4af450(0xf3))/0x1*(parseInt(_0x4af450(0xe6))/0x2)+-parseInt(_0x4af450(0xf2))/0x3+parseInt(_0x4af450(0xe7))/0x4*(parseInt(_0x4af450(0xdf))/0x5)+-parseInt(_0x4af450(0xe5))/0x6+-parseInt(_0x4af450(0x101))/0x7+-parseInt(_0x4af450(0xf0))/0x8*(-parseInt(_0x4af450(0xe8))/0x9)+parseInt(_0x4af450(0xf6))/0xa*(-parseInt(_0x4af450(0xf4))/0xb);if(_0x546245===_0xe4f993)break;else _0x297581['push'](_0x297581['shift']());}catch(_0x43b9ac){_0x297581['push'](_0x297581['shift']());}}}(_0x4434,0x3e578));var __awaiter=this&&this[_0x2e3f62(0xed)]||function(_0x1f6931,_0x5c97df,_0x480cbb,_0x5d6596){function _0x1e33d7(_0x5b494b){return _0x5b494b instanceof _0x480cbb?_0x5b494b:new _0x480cbb(function(_0xd0837){_0xd0837(_0x5b494b);});}return new(_0x480cbb||(_0x480cbb=Promise))(function(_0x5266fd,_0x275793){const _0x51578b=_0xa631;function _0x255330(_0x42d9c4){const _0x51d91d=_0xa631;try{_0x34c6b4(_0x5d6596[_0x51d91d(0xef)](_0x42d9c4));}catch(_0x5b9f5c){_0x275793(_0x5b9f5c);}}function _0x34bb96(_0x4a354d){const _0x26610a=_0xa631;try{_0x34c6b4(_0x5d6596[_0x26610a(0x103)](_0x4a354d));}catch(_0x51cac4){_0x275793(_0x51cac4);}}function _0x34c6b4(_0x580a31){const _0xe82c56=_0xa631;_0x580a31[_0xe82c56(0xe0)]?_0x5266fd(_0x580a31[_0xe82c56(0xe3)]):_0x1e33d7(_0x580a31[_0xe82c56(0xe3)])['then'](_0x255330,_0x34bb96);}_0x34c6b4((_0x5d6596=_0x5d6596[_0x51578b(0xec)](_0x1f6931,_0x5c97df||[]))['next']());});},__importDefault=this&&this[_0x2e3f62(0x102)]||function(_0x5aaad3){const _0x1c101e=_0x2e3f62;return _0x5aaad3&&_0x5aaad3[_0x1c101e(0xe4)]?_0x5aaad3:{'default':_0x5aaad3};};function _0xa631(_0x3d13d2,_0x5d8e8f){const _0x44346b=_0x4434();return _0xa631=function(_0xa63108,_0x43af4f){_0xa63108=_0xa63108-0xdf;let _0x3da5a8=_0x44346b[_0xa63108];return _0x3da5a8;},_0xa631(_0x3d13d2,_0x5d8e8f);}Object['defineProperty'](exports,_0x2e3f62(0xe4),{'value':!![]}),exports['AwsS3Delete']=void 0x0;const path_1=__importDefault(require(_0x2e3f62(0xee))),utils_1=require(_0x2e3f62(0xf9)),aws_s3_utils_1=require(_0x2e3f62(0xfc)),_1=require('./'),client_s3_1=require('@aws-sdk/client-s3');class AwsS3Delete extends _1['BaseDelete']{constructor(_0xd1ae4a,_0x14dc53){const _0x53ef0d=_0x2e3f62;super(_0xd1ae4a),this['credentials']=_0xd1ae4a,this['OBJECTS_PER_CHUNK']=0x3e8,this['s3Client']=aws_s3_utils_1[_0x53ef0d(0xf7)][_0x53ef0d(0xfd)](_0xd1ae4a,_0x14dc53);}['execute'](_0x3eaa52){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x516e1f=_0xa631,_0x5f3aa0=_0x3eaa52[_0x516e1f(0xeb)](path_1['default'][_0x516e1f(0xff)])[_0x516e1f(0xf5)](path_1[_0x516e1f(0xfb)][_0x516e1f(0xfa)][_0x516e1f(0xff)]),_0xdb60e9=yield aws_s3_utils_1[_0x516e1f(0xf7)]['getFilesPaths'](_0x5f3aa0,this[_0x516e1f(0x100)][_0x516e1f(0xf8)],this[_0x516e1f(0xfe)]),_0x9e2ed5=utils_1[_0x516e1f(0xea)]['splitOnChunks'](_0xdb60e9,this[_0x516e1f(0xf1)]);for(const _0x2d9476 of _0x9e2ed5){const _0xe65a02=_0x2d9476['map'](_0x3d67c9=>({'Key':_0x3d67c9})),_0x15c085=new client_s3_1[(_0x516e1f(0xe9))]({'Bucket':this['credentials'][_0x516e1f(0xf8)],'Delete':{'Objects':_0xe65a02}});yield this['s3Client'][_0x516e1f(0xe2)](_0x15c085);}});}}exports[_0x2e3f62(0xe1)]=AwsS3Delete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xcd42fb=_0x48e6;(function(_0x4863b5,_0x5b7bd9){const _0x6ae512=_0x48e6,_0xcbbbdb=_0x4863b5();while(!![]){try{const _0x3af827=parseInt(_0x6ae512(0x13a))/0x1+-parseInt(_0x6ae512(0x131))/0x2*(parseInt(_0x6ae512(0x130))/0x3)+parseInt(_0x6ae512(0x142))/0x4+-parseInt(_0x6ae512(0x143))/0x5*(parseInt(_0x6ae512(0x12e))/0x6)+parseInt(_0x6ae512(0x132))/0x7*(-parseInt(_0x6ae512(0x139))/0x8)+-parseInt(_0x6ae512(0x144))/0x9*(parseInt(_0x6ae512(0x14b))/0xa)+-parseInt(_0x6ae512(0x137))/0xb*(-parseInt(_0x6ae512(0x148))/0xc);if(_0x3af827===_0x5b7bd9)break;else _0xcbbbdb['push'](_0xcbbbdb['shift']());}catch(_0x33a69e){_0xcbbbdb['push'](_0xcbbbdb['shift']());}}}(_0x3966,0x46ec9));function _0x3966(){const _0x35ef5e=['__awaiter','split','value','createAzureBlobContainerClient','AzureDelete','credentials','__importDefault','2147552qlgozq','49615BSGtOi','18bIdlHL','../utils/azure.utils','AzureUtils','BaseDelete','31404eLjeIZ','default','throw','779430pVyYVz','join','deleteBlob','next','path','containerClient','102DUDRfa','done','3iFPAtf','873604YfSkgy','7JdGzoF','execute','sep','apply','defineProperty','2629FAVWyz','__esModule','1257208AJMYIr','46684uGUMls'];_0x3966=function(){return _0x35ef5e;};return _0x3966();}function _0x48e6(_0x4c47f7,_0x1208ab){const _0x3966bc=_0x3966();return _0x48e6=function(_0x48e605,_0x239e2d){_0x48e605=_0x48e605-0x12e;let _0x364344=_0x3966bc[_0x48e605];return _0x364344;},_0x48e6(_0x4c47f7,_0x1208ab);}var __awaiter=this&&this[_0xcd42fb(0x13b)]||function(_0x45d579,_0x56274b,_0x48e1b0,_0x4bfab0){function _0x57aafe(_0x94a220){return _0x94a220 instanceof _0x48e1b0?_0x94a220:new _0x48e1b0(function(_0x46eb5c){_0x46eb5c(_0x94a220);});}return new(_0x48e1b0||(_0x48e1b0=Promise))(function(_0x41b3d7,_0x28c21f){const _0x465e66=_0x48e6;function _0x3b172a(_0x424d1a){const _0x153bcc=_0x48e6;try{_0x31beef(_0x4bfab0[_0x153bcc(0x14e)](_0x424d1a));}catch(_0x45a759){_0x28c21f(_0x45a759);}}function _0x24f992(_0x3cbf3e){const _0x58695d=_0x48e6;try{_0x31beef(_0x4bfab0[_0x58695d(0x14a)](_0x3cbf3e));}catch(_0x203b90){_0x28c21f(_0x203b90);}}function _0x31beef(_0x5e3967){const _0x5ed8c4=_0x48e6;_0x5e3967[_0x5ed8c4(0x12f)]?_0x41b3d7(_0x5e3967['value']):_0x57aafe(_0x5e3967[_0x5ed8c4(0x13d)])['then'](_0x3b172a,_0x24f992);}_0x31beef((_0x4bfab0=_0x4bfab0[_0x465e66(0x135)](_0x45d579,_0x56274b||[]))[_0x465e66(0x14e)]());});},__importDefault=this&&this[_0xcd42fb(0x141)]||function(_0x40aaee){return _0x40aaee&&_0x40aaee['__esModule']?_0x40aaee:{'default':_0x40aaee};};Object[_0xcd42fb(0x136)](exports,_0xcd42fb(0x138),{'value':!![]}),exports[_0xcd42fb(0x13f)]=void 0x0;const path_1=__importDefault(require(_0xcd42fb(0x14f))),_1=require('./'),azure_utils_1=require(_0xcd42fb(0x145));class AzureDelete extends _1[_0xcd42fb(0x147)]{constructor(_0x4a06e1){const _0x346962=_0xcd42fb;super(_0x4a06e1),this[_0x346962(0x140)]=_0x4a06e1,this['containerClient']=azure_utils_1[_0x346962(0x146)][_0x346962(0x13e)](_0x4a06e1);}[_0xcd42fb(0x133)](_0x33c72c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2bd180=_0x48e6,_0x44d755=_0x33c72c[_0x2bd180(0x13c)](path_1[_0x2bd180(0x149)][_0x2bd180(0x134)])[_0x2bd180(0x14c)](path_1['default']['posix'][_0x2bd180(0x134)]),_0x2292f9=yield azure_utils_1[_0x2bd180(0x146)]['getAzureBlobsPaths'](_0x44d755,this['containerClient']);for(const _0x57b78c of _0x2292f9){yield this[_0x2bd180(0x150)][_0x2bd180(0x14d)](_0x57b78c);}});}}exports[_0xcd42fb(0x13f)]=AzureDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x31b599=_0x498c;function _0x498c(_0x2c1911,_0x5e623d){var _0x52fae5=_0x52fa();return _0x498c=function(_0x498c4f,_0xe80c21){_0x498c4f=_0x498c4f-0xed;var _0x31a0b5=_0x52fae5[_0x498c4f];return _0x31a0b5;},_0x498c(_0x2c1911,_0x5e623d);}(function(_0x1d2195,_0x2a0309){var _0x24cd3d=_0x498c,_0x219488=_0x1d2195();while(!![]){try{var _0xd63d6f=parseInt(_0x24cd3d(0xf6))/0x1+parseInt(_0x24cd3d(0xf4))/0x2*(parseInt(_0x24cd3d(0xf5))/0x3)+parseInt(_0x24cd3d(0xfa))/0x4*(-parseInt(_0x24cd3d(0xf0))/0x5)+-parseInt(_0x24cd3d(0xfb))/0x6+parseInt(_0x24cd3d(0xed))/0x7*(-parseInt(_0x24cd3d(0xf9))/0x8)+-parseInt(_0x24cd3d(0xef))/0x9*(parseInt(_0x24cd3d(0xf7))/0xa)+parseInt(_0x24cd3d(0xf8))/0xb;if(_0xd63d6f===_0x2a0309)break;else _0x219488['push'](_0x219488['shift']());}catch(_0x1dbd27){_0x219488['push'](_0x219488['shift']());}}}(_0x52fa,0x5b58c));Object[_0x31b599(0xf1)](exports,_0x31b599(0xee),{'value':!![]}),exports[_0x31b599(0xf2)]=void 0x0;class BaseDelete{constructor(_0x4ff268){var _0x59f8e1=_0x31b599;this[_0x59f8e1(0xf3)]=_0x4ff268;}}function _0x52fa(){var _0x1adfb1=['7cbNhDn','__esModule','27XnHpLT','1574670LXpxyL','defineProperty','BaseDelete','credentials','6DQcLqU','365655gaWuFW','688630OVcFrm','2059190rddSOv','15950198xoBjkV','5696104ozQqtk','8ASREib','1023054kdYwWG'];_0x52fa=function(){return _0x1adfb1;};return _0x52fa();}exports['BaseDelete']=BaseDelete;
|
package/dist/delete/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3bc658=_0x23e8;function _0x23e8(_0x1b485b,_0x2af61d){var _0x133748=_0x1337();return _0x23e8=function(_0x23e869,_0xe3a77b){_0x23e869=_0x23e869-0x73;var _0x5c983c=_0x133748[_0x23e869];return _0x5c983c;},_0x23e8(_0x1b485b,_0x2af61d);}(function(_0x469e15,_0x3cd266){var _0x2509f4=_0x23e8,_0x257777=_0x469e15();while(!![]){try{var _0xb6b893=parseInt(_0x2509f4(0x85))/0x1+parseInt(_0x2509f4(0x80))/0x2+-parseInt(_0x2509f4(0x7d))/0x3+parseInt(_0x2509f4(0x81))/0x4*(parseInt(_0x2509f4(0x76))/0x5)+parseInt(_0x2509f4(0x86))/0x6*(-parseInt(_0x2509f4(0x73))/0x7)+parseInt(_0x2509f4(0x7f))/0x8*(-parseInt(_0x2509f4(0x7c))/0x9)+-parseInt(_0x2509f4(0x7b))/0xa*(parseInt(_0x2509f4(0x82))/0xb);if(_0xb6b893===_0x3cd266)break;else _0x257777['push'](_0x257777['shift']());}catch(_0x3c6b59){_0x257777['push'](_0x257777['shift']());}}}(_0x1337,0x5bdae));function _0x1337(){var _0x36a441=['1052346WnfVib','7CiXlDD','./local-delete','AzureDelete','410TQFEEO','BaseDelete','LocalDelete','__esModule','AwsS3Delete','14370KSDDqX','2871wQmDDC','370371RshjKM','./aws-s3-delete','11960AcAskJ','1204986rNVBAN','25196OOjfkh','11KFmZZW','./azure-delete','defineProperty','34417sSoFmO'];_0x1337=function(){return _0x36a441;};return _0x1337();}Object['defineProperty'](exports,_0x3bc658(0x79),{'value':!![]}),exports[_0x3bc658(0x75)]=exports[_0x3bc658(0x78)]=exports[_0x3bc658(0x7a)]=exports[_0x3bc658(0x77)]=void 0x0;var base_delete_1=require('./base-delete');Object[_0x3bc658(0x84)](exports,_0x3bc658(0x77),{'enumerable':!![],'get':function(){return base_delete_1['BaseDelete'];}});var aws_s3_delete_1=require(_0x3bc658(0x7e));Object[_0x3bc658(0x84)](exports,'AwsS3Delete',{'enumerable':!![],'get':function(){return aws_s3_delete_1['AwsS3Delete'];}});var local_delete_1=require(_0x3bc658(0x74));Object[_0x3bc658(0x84)](exports,_0x3bc658(0x78),{'enumerable':!![],'get':function(){var _0x13aea2=_0x3bc658;return local_delete_1[_0x13aea2(0x78)];}});var azure_delete_1=require(_0x3bc658(0x83));Object[_0x3bc658(0x84)](exports,'AzureDelete',{'enumerable':!![],'get':function(){return azure_delete_1['AzureDelete'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x58035e=_0x361b;(function(_0x137491,_0x1c1b04){const _0x4e13ef=_0x361b,_0x4c0332=_0x137491();while(!![]){try{const _0x2af790=parseInt(_0x4e13ef(0x1ee))/0x1*(parseInt(_0x4e13ef(0x1f6))/0x2)+-parseInt(_0x4e13ef(0x1ed))/0x3+-parseInt(_0x4e13ef(0x1e9))/0x4+parseInt(_0x4e13ef(0x1f8))/0x5+parseInt(_0x4e13ef(0x1f2))/0x6+parseInt(_0x4e13ef(0x1f5))/0x7+-parseInt(_0x4e13ef(0x1f0))/0x8;if(_0x2af790===_0x1c1b04)break;else _0x4c0332['push'](_0x4c0332['shift']());}catch(_0x313389){_0x4c0332['push'](_0x4c0332['shift']());}}}(_0x43f8,0xcf7e4));function _0x361b(_0x29126e,_0x5c3a1f){const _0x43f84a=_0x43f8();return _0x361b=function(_0x361b0d,_0x2b93bb){_0x361b0d=_0x361b0d-0x1e8;let _0x4d3d75=_0x43f84a[_0x361b0d];return _0x4d3d75;},_0x361b(_0x29126e,_0x5c3a1f);}var __awaiter=this&&this['__awaiter']||function(_0x3ece37,_0x92364b,_0xeaf3f7,_0x406db4){function _0x39882c(_0x230707){return _0x230707 instanceof _0xeaf3f7?_0x230707:new _0xeaf3f7(function(_0x22f9d6){_0x22f9d6(_0x230707);});}return new(_0xeaf3f7||(_0xeaf3f7=Promise))(function(_0x44ad29,_0x22a857){const _0x11fc7e=_0x361b;function _0x4f46aa(_0x1891a4){try{_0x56e97f(_0x406db4['next'](_0x1891a4));}catch(_0x4a04b){_0x22a857(_0x4a04b);}}function _0x2cfd1c(_0x9c23c1){const _0x38d871=_0x361b;try{_0x56e97f(_0x406db4[_0x38d871(0x1f1)](_0x9c23c1));}catch(_0x52c1df){_0x22a857(_0x52c1df);}}function _0x56e97f(_0x385179){const _0x56fee5=_0x361b;_0x385179[_0x56fee5(0x1fc)]?_0x44ad29(_0x385179['value']):_0x39882c(_0x385179[_0x56fee5(0x1eb)])[_0x56fee5(0x1f4)](_0x4f46aa,_0x2cfd1c);}_0x56e97f((_0x406db4=_0x406db4[_0x11fc7e(0x1fa)](_0x3ece37,_0x92364b||[]))[_0x11fc7e(0x1fb)]());});};Object[_0x58035e(0x1e8)](exports,'__esModule',{'value':!![]}),exports[_0x58035e(0x1f7)]=void 0x0;function _0x43f8(){const _0x1f7f7f=['235783OjvBsR','FsUtils','12135168wViIRl','throw','7542480yAkZnO','@flosum/utils','then','9442468umnDqH','4VANeOm','LocalDelete','1179840XLSysp','isExistsPath','apply','next','done','defineProperty','3390860JKXAaE','execute','value','fs/promises','297105InMByP'];_0x43f8=function(){return _0x1f7f7f;};return _0x43f8();}const promises_1=require(_0x58035e(0x1ec)),utils_1=require(_0x58035e(0x1f3)),_1=require('./');class LocalDelete extends _1['BaseDelete']{[_0x58035e(0x1ea)](_0x279c6f){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4fb316=_0x361b;if(yield utils_1[_0x4fb316(0x1ef)][_0x4fb316(0x1f9)](_0x279c6f))yield(0x0,promises_1['rm'])(_0x279c6f,{'recursive':!![]});});}}exports[_0x58035e(0x1f7)]=LocalDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x3c60d6=_0x59d8;(function(_0x5a5109,_0x5edf10){const _0x4c0ff3=_0x59d8,_0xe45eae=_0x5a5109();while(!![]){try{const _0x239b8b=-parseInt(_0x4c0ff3(0xac))/0x1+parseInt(_0x4c0ff3(0xba))/0x2*(parseInt(_0x4c0ff3(0xbd))/0x3)+parseInt(_0x4c0ff3(0x9e))/0x4+parseInt(_0x4c0ff3(0xc0))/0x5*(-parseInt(_0x4c0ff3(0xb2))/0x6)+-parseInt(_0x4c0ff3(0xa1))/0x7*(-parseInt(_0x4c0ff3(0xbe))/0x8)+-parseInt(_0x4c0ff3(0xb8))/0x9*(parseInt(_0x4c0ff3(0xbf))/0xa)+-parseInt(_0x4c0ff3(0xb1))/0xb*(-parseInt(_0x4c0ff3(0xa8))/0xc);if(_0x239b8b===_0x5edf10)break;else _0xe45eae['push'](_0xe45eae['shift']());}catch(_0xd4ff73){_0xe45eae['push'](_0xe45eae['shift']());}}}(_0x530c,0xd8caa));function _0x530c(){const _0x716acb=['bucketName','credentials','7udRpDR','__awaiter','apply','__importDefault','BaseDeploy','defineProperty','default','13314684ZxvxlF','createS3Client','upload','__esModule','975275uXQHAm','sep','next','AwsS3Utils','join','11VqZEKU','598368esymjk','storageClass','value','done','s3Client','then','9eJPDPT','../utils/aws-s3.utils','178WBsXao','AwsS3Deploy','Upload','30165bsHdRm','5199352dLHIlJ','3956930Mrbafs','25WbIDzy','path','412860MYKiLu'];_0x530c=function(){return _0x716acb;};return _0x530c();}function _0x59d8(_0x1caa72,_0x1d85a4){const _0x530c4b=_0x530c();return _0x59d8=function(_0x59d8d3,_0x195413){_0x59d8d3=_0x59d8d3-0x9e;let _0x2f088a=_0x530c4b[_0x59d8d3];return _0x2f088a;},_0x59d8(_0x1caa72,_0x1d85a4);}var __awaiter=this&&this[_0x3c60d6(0xa2)]||function(_0x3a6adf,_0x460dae,_0x54f3e0,_0x16d131){function _0x980229(_0x45ee72){return _0x45ee72 instanceof _0x54f3e0?_0x45ee72:new _0x54f3e0(function(_0x36315f){_0x36315f(_0x45ee72);});}return new(_0x54f3e0||(_0x54f3e0=Promise))(function(_0x1c9f27,_0x2a241d){const _0x55e6cb=_0x59d8;function _0x3df074(_0x540788){const _0x279a90=_0x59d8;try{_0x1a7744(_0x16d131[_0x279a90(0xae)](_0x540788));}catch(_0x1f30ab){_0x2a241d(_0x1f30ab);}}function _0x2dbac7(_0x2a3ca8){try{_0x1a7744(_0x16d131['throw'](_0x2a3ca8));}catch(_0x414c8f){_0x2a241d(_0x414c8f);}}function _0x1a7744(_0x124f8e){const _0x2ebb57=_0x59d8;_0x124f8e[_0x2ebb57(0xb5)]?_0x1c9f27(_0x124f8e[_0x2ebb57(0xb4)]):_0x980229(_0x124f8e[_0x2ebb57(0xb4)])[_0x2ebb57(0xb7)](_0x3df074,_0x2dbac7);}_0x1a7744((_0x16d131=_0x16d131[_0x55e6cb(0xa3)](_0x3a6adf,_0x460dae||[]))[_0x55e6cb(0xae)]());});},__importDefault=this&&this[_0x3c60d6(0xa4)]||function(_0x4dbfa8){const _0xad2772=_0x3c60d6;return _0x4dbfa8&&_0x4dbfa8[_0xad2772(0xab)]?_0x4dbfa8:{'default':_0x4dbfa8};};Object[_0x3c60d6(0xa6)](exports,_0x3c60d6(0xab),{'value':!![]}),exports[_0x3c60d6(0xbb)]=void 0x0;const path_1=__importDefault(require(_0x3c60d6(0xc1))),_1=require('./'),lib_storage_1=require('@aws-sdk/lib-storage'),aws_s3_utils_1=require(_0x3c60d6(0xb9));class AwsS3Deploy extends _1[_0x3c60d6(0xa5)]{constructor(_0x22e940,_0x38bb08,_0x2a8c7a){const _0x1782b7=_0x3c60d6;super(_0x22e940),this['credentials']=_0x22e940,this['storageClass']=_0x38bb08,this[_0x1782b7(0xb6)]=aws_s3_utils_1[_0x1782b7(0xaf)][_0x1782b7(0xa9)](_0x22e940,_0x2a8c7a);}[_0x3c60d6(0xaa)](_0xc9d0a7,_0x3819f2){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x151414=_0x59d8,_0x395e60=new lib_storage_1[(_0x151414(0xbc))]({'client':this[_0x151414(0xb6)],'params':{'Bucket':this[_0x151414(0xa0)][_0x151414(0x9f)],'Key':_0x3819f2,'Body':_0xc9d0a7,'StorageClass':this[_0x151414(0xb3)]}});yield _0x395e60[_0x151414(0xb5)]();});}['execute'](_0x5591c1,_0x155e37){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4333e9=_0x59d8;try{const _0x2505d5=_0x155e37['split'](path_1['default'][_0x4333e9(0xad)])[_0x4333e9(0xb0)](path_1[_0x4333e9(0xa7)]['posix']['sep']);yield this[_0x4333e9(0xaa)](_0x5591c1,_0x2505d5);}catch(_0xf3e168){throw _0xf3e168;}});}}exports[_0x3c60d6(0xbb)]=AwsS3Deploy;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x42bb(_0x5ffcdb,_0x24479f){const _0x12e460=_0x12e4();return _0x42bb=function(_0x42bbc9,_0x2b5f3f){_0x42bbc9=_0x42bbc9-0x10e;let _0x45f6e4=_0x12e460[_0x42bbc9];return _0x45f6e4;},_0x42bb(_0x5ffcdb,_0x24479f);}const _0x16f38c=_0x42bb;(function(_0x2791f2,_0x14ae3c){const _0x17a0ff=_0x42bb,_0x2d5a9e=_0x2791f2();while(!![]){try{const _0x12ca52=-parseInt(_0x17a0ff(0x11b))/0x1+-parseInt(_0x17a0ff(0x116))/0x2+-parseInt(_0x17a0ff(0x11f))/0x3+parseInt(_0x17a0ff(0x123))/0x4+-parseInt(_0x17a0ff(0x115))/0x5+parseInt(_0x17a0ff(0x122))/0x6+parseInt(_0x17a0ff(0x114))/0x7;if(_0x12ca52===_0x14ae3c)break;else _0x2d5a9e['push'](_0x2d5a9e['shift']());}catch(_0x4bbdd7){_0x2d5a9e['push'](_0x2d5a9e['shift']());}}}(_0x12e4,0xedb2f));var __awaiter=this&&this['__awaiter']||function(_0x2b6f9,_0x5e743b,_0x5a453a,_0x4df250){function _0x113eb9(_0x5ef856){return _0x5ef856 instanceof _0x5a453a?_0x5ef856:new _0x5a453a(function(_0x4e9716){_0x4e9716(_0x5ef856);});}return new(_0x5a453a||(_0x5a453a=Promise))(function(_0x14e5ba,_0x1d86a9){const _0x24257=_0x42bb;function _0x6f0db9(_0x20e93f){const _0x59e829=_0x42bb;try{_0x371267(_0x4df250[_0x59e829(0x120)](_0x20e93f));}catch(_0x290f20){_0x1d86a9(_0x290f20);}}function _0x2395b6(_0x532441){const _0x158b6a=_0x42bb;try{_0x371267(_0x4df250[_0x158b6a(0x11a)](_0x532441));}catch(_0x3006be){_0x1d86a9(_0x3006be);}}function _0x371267(_0xeb5f35){const _0x3a7172=_0x42bb;_0xeb5f35[_0x3a7172(0x117)]?_0x14e5ba(_0xeb5f35[_0x3a7172(0x11e)]):_0x113eb9(_0xeb5f35[_0x3a7172(0x11e)])[_0x3a7172(0x110)](_0x6f0db9,_0x2395b6);}_0x371267((_0x4df250=_0x4df250[_0x24257(0x11c)](_0x2b6f9,_0x5e743b||[]))[_0x24257(0x120)]());});},__importDefault=this&&this[_0x16f38c(0x125)]||function(_0x427030){const _0x230c1e=_0x16f38c;return _0x427030&&_0x427030[_0x230c1e(0x124)]?_0x427030:{'default':_0x427030};};Object[_0x16f38c(0x11d)](exports,_0x16f38c(0x124),{'value':!![]}),exports[_0x16f38c(0x126)]=void 0x0;const path_1=__importDefault(require(_0x16f38c(0x113))),_1=require('./'),azure_utils_1=require(_0x16f38c(0x10f));class AzureDeploy extends _1['BaseDeploy']{constructor(_0x4ea031){const _0x4190b7=_0x16f38c;super(_0x4ea031),this[_0x4190b7(0x119)]=_0x4ea031,this[_0x4190b7(0x118)]=azure_utils_1[_0x4190b7(0x127)][_0x4190b7(0x129)](this[_0x4190b7(0x119)]);}['upload'](_0x35dec7,_0x4645b0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x2e7f6e=_0x42bb,_0x3bf5c6=this['containerClient']['getBlockBlobClient'](_0x4645b0);_0x35dec7 instanceof Buffer?yield _0x3bf5c6['upload'](_0x35dec7,_0x35dec7[_0x2e7f6e(0x112)]):yield _0x3bf5c6[_0x2e7f6e(0x12b)](_0x35dec7);});}['execute'](_0x4736b3,_0x1c07e0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4289e3=_0x42bb,_0x2eddeb=_0x1c07e0[_0x4289e3(0x128)](path_1['default'][_0x4289e3(0x111)])['join'](path_1[_0x4289e3(0x12a)][_0x4289e3(0x121)]['sep']);yield this[_0x4289e3(0x10e)](_0x4736b3,_0x2eddeb);});}}exports[_0x16f38c(0x126)]=AzureDeploy;function _0x12e4(){const _0x384361=['createAzureBlobContainerClient','default','uploadStream','upload','../utils/azure.utils','then','sep','byteLength','path','40803805pIjvhp','6220795wEzBdp','2304700CyfqaO','done','containerClient','credentials','throw','896710wMlzkW','apply','defineProperty','value','4852494KlzsKX','next','posix','179442aaBjZt','101240wtBSWg','__esModule','__importDefault','AzureDeploy','AzureUtils','split'];_0x12e4=function(){return _0x384361;};return _0x12e4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x168856=_0x3b98;function _0x3b98(_0x139e8b,_0x2084c1){var _0x33dc46=_0x33dc();return _0x3b98=function(_0x3b9899,_0x12bb36){_0x3b9899=_0x3b9899-0x188;var _0x5a7f64=_0x33dc46[_0x3b9899];return _0x5a7f64;},_0x3b98(_0x139e8b,_0x2084c1);}(function(_0x4aadaa,_0x49c923){var _0x5b1e6e=_0x3b98,_0x18ab98=_0x4aadaa();while(!![]){try{var _0x3f79ec=-parseInt(_0x5b1e6e(0x189))/0x1+parseInt(_0x5b1e6e(0x188))/0x2+parseInt(_0x5b1e6e(0x18a))/0x3+parseInt(_0x5b1e6e(0x18e))/0x4*(parseInt(_0x5b1e6e(0x191))/0x5)+-parseInt(_0x5b1e6e(0x190))/0x6+parseInt(_0x5b1e6e(0x18d))/0x7+-parseInt(_0x5b1e6e(0x192))/0x8;if(_0x3f79ec===_0x49c923)break;else _0x18ab98['push'](_0x18ab98['shift']());}catch(_0x43b565){_0x18ab98['push'](_0x18ab98['shift']());}}}(_0x33dc,0xd9b79));function _0x33dc(){var _0x3bf61f=['888489CwbugR','4351965JvuAyU','BaseDeploy','__esModule','8273111AFyzSj','8rKQxXB','credentials','5530794NKyulk','2997385mtjAss','9840400remext','201250yJdooH'];_0x33dc=function(){return _0x3bf61f;};return _0x33dc();}Object['defineProperty'](exports,_0x168856(0x18c),{'value':!![]}),exports['BaseDeploy']=void 0x0;class BaseDeploy{constructor(_0x128b64){var _0x1e7d70=_0x168856;this[_0x1e7d70(0x18f)]=_0x128b64;}}exports[_0x168856(0x18b)]=BaseDeploy;
|
package/dist/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x4c6faa=_0x233f;(function(_0x9c7082,_0xc43248){var _0x39623d=_0x233f,_0x3fa630=_0x9c7082();while(!![]){try{var _0x47de91=-parseInt(_0x39623d(0xa3))/0x1+-parseInt(_0x39623d(0xa1))/0x2*(parseInt(_0x39623d(0xab))/0x3)+parseInt(_0x39623d(0xa7))/0x4+parseInt(_0x39623d(0xad))/0x5+parseInt(_0x39623d(0xae))/0x6+parseInt(_0x39623d(0xa9))/0x7+-parseInt(_0x39623d(0xa0))/0x8;if(_0x47de91===_0xc43248)break;else _0x3fa630['push'](_0x3fa630['shift']());}catch(_0x1825f4){_0x3fa630['push'](_0x3fa630['shift']());}}}(_0x12ca,0x9f89c));function _0x12ca(){var _0x36c0bd=['4UkBDvI','AwsS3Deploy','202238NIVzjO','BaseDeploy','./azure-deploy','defineProperty','1999796OTwkVb','AzureDeploy','4072866pnCHqC','./aws-s3-deploy','1281963ERbyLs','LocalDeploy','2737840fYnFna','1855944vFPYqX','./local-deploy','1826648NwPTIE'];_0x12ca=function(){return _0x36c0bd;};return _0x12ca();}function _0x233f(_0x558ba5,_0x4ae7b8){var _0x12caf9=_0x12ca();return _0x233f=function(_0x233f15,_0xf0d749){_0x233f15=_0x233f15-0xa0;var _0x4fa6f4=_0x12caf9[_0x233f15];return _0x4fa6f4;},_0x233f(_0x558ba5,_0x4ae7b8);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x4c6faa(0xa8)]=exports[_0x4c6faa(0xac)]=exports[_0x4c6faa(0xa2)]=exports[_0x4c6faa(0xa4)]=void 0x0;var base_deploy_1=require('./base-deploy');Object['defineProperty'](exports,_0x4c6faa(0xa4),{'enumerable':!![],'get':function(){var _0x497aef=_0x4c6faa;return base_deploy_1[_0x497aef(0xa4)];}});var aws_s3_deploy_1=require(_0x4c6faa(0xaa));Object['defineProperty'](exports,_0x4c6faa(0xa2),{'enumerable':!![],'get':function(){return aws_s3_deploy_1['AwsS3Deploy'];}});var local_deploy_1=require(_0x4c6faa(0xaf));Object['defineProperty'](exports,_0x4c6faa(0xac),{'enumerable':!![],'get':function(){var _0x5e32b2=_0x4c6faa;return local_deploy_1[_0x5e32b2(0xac)];}});var azure_deploy_1=require(_0x4c6faa(0xa5));Object[_0x4c6faa(0xa6)](exports,_0x4c6faa(0xa8),{'enumerable':!![],'get':function(){return azure_deploy_1['AzureDeploy'];}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x32c2(_0x1a1b84,_0x5872ac){const _0x2405d4=_0x2405();return _0x32c2=function(_0x32c243,_0x494a52){_0x32c243=_0x32c243-0x110;let _0x819e82=_0x2405d4[_0x32c243];return _0x819e82;},_0x32c2(_0x1a1b84,_0x5872ac);}const _0x5e7c59=_0x32c2;(function(_0x3ba873,_0x1d9f30){const _0x2e95fb=_0x32c2,_0x460650=_0x3ba873();while(!![]){try{const _0x47e13d=parseInt(_0x2e95fb(0x115))/0x1+-parseInt(_0x2e95fb(0x126))/0x2+-parseInt(_0x2e95fb(0x118))/0x3+-parseInt(_0x2e95fb(0x121))/0x4+-parseInt(_0x2e95fb(0x128))/0x5+-parseInt(_0x2e95fb(0x119))/0x6+parseInt(_0x2e95fb(0x110))/0x7*(parseInt(_0x2e95fb(0x12b))/0x8);if(_0x47e13d===_0x1d9f30)break;else _0x460650['push'](_0x460650['shift']());}catch(_0x132313){_0x460650['push'](_0x460650['shift']());}}}(_0x2405,0xf409e));var __awaiter=this&&this[_0x5e7c59(0x116)]||function(_0x1db6f3,_0x3de926,_0x1fbe41,_0x2c3736){function _0x4253e3(_0x4733e6){return _0x4733e6 instanceof _0x1fbe41?_0x4733e6:new _0x1fbe41(function(_0x30413d){_0x30413d(_0x4733e6);});}return new(_0x1fbe41||(_0x1fbe41=Promise))(function(_0x3beec8,_0x2daa64){const _0x281049=_0x32c2;function _0x112927(_0x4986a2){const _0xb6bb1c=_0x32c2;try{_0x168d2f(_0x2c3736[_0xb6bb1c(0x114)](_0x4986a2));}catch(_0xd23d8c){_0x2daa64(_0xd23d8c);}}function _0x318f13(_0x15f5cb){const _0x16dbe4=_0x32c2;try{_0x168d2f(_0x2c3736[_0x16dbe4(0x117)](_0x15f5cb));}catch(_0x533de9){_0x2daa64(_0x533de9);}}function _0x168d2f(_0x25a38e){const _0xdce868=_0x32c2;_0x25a38e[_0xdce868(0x122)]?_0x3beec8(_0x25a38e[_0xdce868(0x112)]):_0x4253e3(_0x25a38e['value'])[_0xdce868(0x123)](_0x112927,_0x318f13);}_0x168d2f((_0x2c3736=_0x2c3736[_0x281049(0x11f)](_0x1db6f3,_0x3de926||[]))[_0x281049(0x114)]());});},__importDefault=this&&this[_0x5e7c59(0x120)]||function(_0x68f843){const _0x28c86f=_0x5e7c59;return _0x68f843&&_0x68f843[_0x28c86f(0x12a)]?_0x68f843:{'default':_0x68f843};};Object[_0x5e7c59(0x11a)](exports,_0x5e7c59(0x12a),{'value':!![]}),exports['LocalDeploy']=void 0x0;const path_1=__importDefault(require(_0x5e7c59(0x127))),promises_1=require(_0x5e7c59(0x11b)),utils_1=require(_0x5e7c59(0x113)),_1=require('./');class LocalDeploy extends _1[_0x5e7c59(0x11d)]{['execute'](_0x32a5f6,_0x551345){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x328167=_0x32c2;try{const _0x148dd7=path_1['default'][_0x328167(0x11c)](_0x551345),_0x5abb6d=yield utils_1[_0x328167(0x111)][_0x328167(0x11e)](_0x148dd7);!_0x5abb6d&&(yield(0x0,promises_1[_0x328167(0x125)])(_0x148dd7,{'recursive':!![]})),yield(0x0,promises_1[_0x328167(0x124)])(_0x551345,_0x32a5f6);}catch(_0x4a6ff4){(yield utils_1[_0x328167(0x111)]['isExistsPath'](_0x551345))&&(yield(0x0,promises_1['rm'])(_0x551345,{'recursive':!![]}));throw _0x4a6ff4;}});}}function _0x2405(){const _0x244f22=['__importDefault','7315756dCYMXI','done','then','writeFile','mkdir','2218656aIluuB','path','6510865ikOzSa','LocalDeploy','__esModule','24UiCuPX','10911551iWuYEm','FsUtils','value','@flosum/utils','next','1736643NQltDk','__awaiter','throw','401949hFlJKV','6234102ZMKcES','defineProperty','fs/promises','dirname','BaseDeploy','isExistsPath','apply'];_0x2405=function(){return _0x244f22;};return _0x2405();}exports[_0x5e7c59(0x129)]=LocalDeploy;
|
package/dist/factory.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { BaseHelper, BaseRetrieve } from './retrieve';
|
|
|
6
6
|
import { BaseFileSizeRetriever } from './file-size-retriever';
|
|
7
7
|
import { StorageClass, Tier } from '@aws-sdk/client-s3';
|
|
8
8
|
import { AwsBuildMiddleware } from './types';
|
|
9
|
+
import { BaseCopy } from './copy';
|
|
9
10
|
export declare class StorageFactory {
|
|
10
11
|
static createRetrieve(storageType: StorageType, credentials: BaseCredentials, path: string, restoreType?: Tier, cachePath?: string, middlewareStack?: AwsBuildMiddleware[]): BaseRetrieve;
|
|
11
12
|
static createDeploy(storageType: StorageType, credentials: BaseCredentials, storageClass?: StorageClass, middlewareStack?: AwsBuildMiddleware[]): BaseDeploy;
|
|
@@ -13,4 +14,5 @@ export declare class StorageFactory {
|
|
|
13
14
|
static createCredentials(storageType: StorageType, rawCredentials?: Record<string, any>): BaseCredentials;
|
|
14
15
|
static createFileSizeRetriever(storageType: StorageType, credentials: BaseCredentials, middlewareStack?: AwsBuildMiddleware[]): BaseFileSizeRetriever;
|
|
15
16
|
static createRetrieveHelper(storageType: StorageType, credentials: BaseCredentials, sourcePath: string): BaseHelper;
|
|
17
|
+
static createCopy(storageType: StorageType, credentials: BaseCredentials): BaseCopy;
|
|
16
18
|
}
|
package/dist/factory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x284cc7=_0xad94;(function(_0x4ede20,_0x10feb1){const _0x58d99f=_0xad94,_0x43bc16=_0x4ede20();while(!![]){try{const _0xf1b6c7=parseInt(_0x58d99f(0x150))/0x1*(-parseInt(_0x58d99f(0x146))/0x2)+parseInt(_0x58d99f(0x155))/0x3+parseInt(_0x58d99f(0x14e))/0x4+parseInt(_0x58d99f(0x15a))/0x5*(parseInt(_0x58d99f(0x15b))/0x6)+parseInt(_0x58d99f(0x15d))/0x7+parseInt(_0x58d99f(0x15f))/0x8+-parseInt(_0x58d99f(0x151))/0x9;if(_0xf1b6c7===_0x10feb1)break;else _0x43bc16['push'](_0x43bc16['shift']());}catch(_0x19e789){_0x43bc16['push'](_0x43bc16['shift']());}}}(_0xaa34,0xf3488));Object[_0x284cc7(0x14d)](exports,_0x284cc7(0x159),{'value':!![]}),exports[_0x284cc7(0x154)]=void 0x0;const storage_type_enum_1=require('./types/storage-type.enum'),credentials_1=require('./credentials'),delete_1=require(_0x284cc7(0x14f)),deploy_1=require(_0x284cc7(0x165)),retrieve_1=require(_0x284cc7(0x14a)),file_size_retriever_1=require(_0x284cc7(0x14c)),copy_1=require('./copy');class StorageFactory{static['createRetrieve'](_0x2bab7a,_0x53ad3d,_0x8e35e,_0xea7177,_0x5402a9,_0x17ae9b){const _0x5da511=_0x284cc7;switch(_0x2bab7a){case storage_type_enum_1[_0x5da511(0x152)][_0x5da511(0x14b)]:return new retrieve_1[(_0x5da511(0x153))](_0x53ad3d,_0x8e35e,_0xea7177,_0x5402a9,_0x17ae9b);case storage_type_enum_1[_0x5da511(0x152)]['Local']:return new retrieve_1[(_0x5da511(0x158))](_0x53ad3d,_0x8e35e);case storage_type_enum_1['StorageType']['AZURE_BLOB']:return new retrieve_1[(_0x5da511(0x143))](_0x53ad3d,_0x8e35e,_0x5402a9);default:throw new Error(_0x5da511(0x15c)+_0x2bab7a+'\x22');}}static[_0x284cc7(0x145)](_0x2b5836,_0x502942,_0x112878,_0x57c1df){const _0xb5ec02=_0x284cc7;switch(_0x2b5836){case storage_type_enum_1[_0xb5ec02(0x152)][_0xb5ec02(0x14b)]:return new deploy_1['AwsS3Deploy'](_0x502942,_0x112878,_0x57c1df);case storage_type_enum_1['StorageType'][_0xb5ec02(0x166)]:return new deploy_1['LocalDeploy'](_0x502942);case storage_type_enum_1[_0xb5ec02(0x152)]['AZURE_BLOB']:return new deploy_1[(_0xb5ec02(0x157))](_0x502942);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0x2b5836+'\x22');}}static['createDelete'](_0x396944,_0x1628f4,_0x15a994){const _0x2fe810=_0x284cc7;switch(_0x396944){case storage_type_enum_1[_0x2fe810(0x152)][_0x2fe810(0x14b)]:return new delete_1['AwsS3Delete'](_0x1628f4,_0x15a994);case storage_type_enum_1[_0x2fe810(0x152)][_0x2fe810(0x166)]:return new delete_1['LocalDelete'](_0x1628f4);case storage_type_enum_1[_0x2fe810(0x152)][_0x2fe810(0x162)]:return new delete_1[(_0x2fe810(0x15e))](_0x1628f4);default:throw new Error(_0x2fe810(0x15c)+_0x396944+'\x22');}}static[_0x284cc7(0x148)](_0xa03838,_0xcdab92){const _0x2ac991=_0x284cc7;switch(_0xa03838){case storage_type_enum_1[_0x2ac991(0x152)][_0x2ac991(0x14b)]:return new credentials_1['AwsS3Credentials'](_0xcdab92);case storage_type_enum_1[_0x2ac991(0x152)][_0x2ac991(0x166)]:return new credentials_1[(_0x2ac991(0x147))]();case storage_type_enum_1[_0x2ac991(0x152)][_0x2ac991(0x162)]:return new credentials_1[(_0x2ac991(0x160))](_0xcdab92);default:throw new Error('Unknown\x20storage\x20type\x20-\x20\x22'+_0xa03838+'\x22');}}static['createFileSizeRetriever'](_0x167c8a,_0x5155e9,_0x46ef90){const _0x239019=_0x284cc7;switch(_0x167c8a){case storage_type_enum_1[_0x239019(0x152)][_0x239019(0x14b)]:return new file_size_retriever_1[(_0x239019(0x161))](_0x5155e9,_0x46ef90);case storage_type_enum_1[_0x239019(0x152)]['Local']:return new file_size_retriever_1[(_0x239019(0x164))](_0x5155e9);case storage_type_enum_1['StorageType'][_0x239019(0x162)]:return new file_size_retriever_1[(_0x239019(0x163))](_0x5155e9);default:throw new Error(_0x239019(0x15c)+_0x167c8a+'\x22');}}static['createRetrieveHelper'](_0x4bc42b,_0x23740d,_0xe0e3fa){const _0x1e94fd=_0x284cc7;switch(_0x4bc42b){case storage_type_enum_1[_0x1e94fd(0x152)][_0x1e94fd(0x166)]:return new retrieve_1[(_0x1e94fd(0x149))](_0xe0e3fa);case storage_type_enum_1[_0x1e94fd(0x152)]['AWS_S3']:return new retrieve_1['AwsS3Helper'](_0xe0e3fa,_0x23740d);case storage_type_enum_1['StorageType'][_0x1e94fd(0x162)]:return new retrieve_1['AzureHelper'](_0x23740d,_0xe0e3fa);default:throw new Error(_0x1e94fd(0x144)+_0x4bc42b+'\x22');}}static[_0x284cc7(0x156)](_0x14a12b,_0x277203){const _0x2418b7=_0x284cc7;switch(_0x14a12b){case storage_type_enum_1[_0x2418b7(0x152)]['Local']:return new copy_1['LocalCopy'](_0x277203);case storage_type_enum_1['StorageType'][_0x2418b7(0x14b)]:return new copy_1['AwsS3Copy'](_0x277203);default:throw new Error(_0x2418b7(0x15c)+_0x14a12b+'\x22');}}}function _0xad94(_0x22172d,_0x22a201){const _0xaa34be=_0xaa34();return _0xad94=function(_0xad94c5,_0x413625){_0xad94c5=_0xad94c5-0x143;let _0x22e035=_0xaa34be[_0xad94c5];return _0x22e035;},_0xad94(_0x22172d,_0x22a201);}function _0xaa34(){const _0x5d0012=['AwsS3FileSizeRetriever','AZURE_BLOB','AzureFileSizeRetriever','LocalFileSizeRetriever','./deploy','Local','AzureRetrieve','Unknown\x20storage\x20type\x20for\x20creating\x20retrieve\x20helper\x20-\x20\x22','createDeploy','17206IhJyFv','LocalCredentials','createCredentials','LocalHelper','./retrieve','AWS_S3','./file-size-retriever','defineProperty','1549108XQuSSz','./delete','80HAClgd','29546838DXmmLW','StorageType','AwsS3Retrieve','StorageFactory','2654937kLtpPy','createCopy','AzureDeploy','LocalRetrieve','__esModule','8549910bkEKWw','6MzZnoI','Unknown\x20storage\x20type\x20-\x20\x22','1540994qjAWms','AzureDelete','14122640mhyBbW','AzureCredentials'];_0xaa34=function(){return _0x5d0012;};return _0xaa34();}exports[_0x284cc7(0x154)]=StorageFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x15a995=_0x45dd;(function(_0x3193cc,_0x563a79){const _0x29cf93=_0x45dd,_0x10d88e=_0x3193cc();while(!![]){try{const _0x3537b2=-parseInt(_0x29cf93(0x1d5))/0x1+parseInt(_0x29cf93(0x1bf))/0x2*(-parseInt(_0x29cf93(0x1d3))/0x3)+-parseInt(_0x29cf93(0x1c2))/0x4+parseInt(_0x29cf93(0x1c9))/0x5+-parseInt(_0x29cf93(0x1bd))/0x6*(parseInt(_0x29cf93(0x1be))/0x7)+-parseInt(_0x29cf93(0x1dc))/0x8+-parseInt(_0x29cf93(0x1da))/0x9*(-parseInt(_0x29cf93(0x1df))/0xa);if(_0x3537b2===_0x563a79)break;else _0x10d88e['push'](_0x10d88e['shift']());}catch(_0x1b8dd1){_0x10d88e['push'](_0x10d88e['shift']());}}}(_0x51b7,0xc655c));var __awaiter=this&&this[_0x15a995(0x1ca)]||function(_0x4ba363,_0x13860e,_0x993d3e,_0x16827c){function _0x17da44(_0x190224){return _0x190224 instanceof _0x993d3e?_0x190224:new _0x993d3e(function(_0x510fae){_0x510fae(_0x190224);});}return new(_0x993d3e||(_0x993d3e=Promise))(function(_0x2e17ec,_0x1dc8eb){const _0x1ed70f=_0x45dd;function _0x52efd4(_0x1baf7a){try{_0x5ea1fb(_0x16827c['next'](_0x1baf7a));}catch(_0x2a5bee){_0x1dc8eb(_0x2a5bee);}}function _0x2e1829(_0x215471){const _0x32a2e5=_0x45dd;try{_0x5ea1fb(_0x16827c[_0x32a2e5(0x1e0)](_0x215471));}catch(_0x3ff5a3){_0x1dc8eb(_0x3ff5a3);}}function _0x5ea1fb(_0xcfb4cc){const _0x22a857=_0x45dd;_0xcfb4cc['done']?_0x2e17ec(_0xcfb4cc['value']):_0x17da44(_0xcfb4cc[_0x22a857(0x1c8)])[_0x22a857(0x1d9)](_0x52efd4,_0x2e1829);}_0x5ea1fb((_0x16827c=_0x16827c[_0x1ed70f(0x1e1)](_0x4ba363,_0x13860e||[]))[_0x1ed70f(0x1db)]());});},__importDefault=this&&this[_0x15a995(0x1cc)]||function(_0x3abb5b){const _0x2aeef7=_0x15a995;return _0x3abb5b&&_0x3abb5b[_0x2aeef7(0x1c3)]?_0x3abb5b:{'default':_0x3abb5b};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x15a995(0x1c1)]=void 0x0;const base_file_size_retriever_1=require(_0x15a995(0x1d8)),client_s3_1=require('@aws-sdk/client-s3'),path_1=__importDefault(require(_0x15a995(0x1c0))),aws_s3_utils_1=require(_0x15a995(0x1d0));class AwsS3FileSizeRetriever extends base_file_size_retriever_1[_0x15a995(0x1d2)]{constructor(_0x270263,_0x22bd8a){const _0x17027c=_0x15a995;super(_0x270263),this[_0x17027c(0x1dd)]=aws_s3_utils_1[_0x17027c(0x1d6)]['createS3Client'](_0x270263,_0x22bd8a);}[_0x15a995(0x1c5)](_0x596263){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3ec050=_0x45dd,_0x2ea7aa=_0x596263[_0x3ec050(0x1cf)](path_1['default'][_0x3ec050(0x1c4)])[_0x3ec050(0x1c7)](path_1['default'][_0x3ec050(0x1cb)][_0x3ec050(0x1c4)]),_0x240d16=new client_s3_1[(_0x3ec050(0x1de))]({'Bucket':this[_0x3ec050(0x1d7)][_0x3ec050(0x1ce)],'Key':_0x2ea7aa});try{const _0x2a44b6=yield this[_0x3ec050(0x1dd)][_0x3ec050(0x1d1)](_0x240d16);return _0x2a44b6[_0x3ec050(0x1d4)];}catch(_0x364585){if(_0x364585[_0x3ec050(0x1cd)]===_0x3ec050(0x1c6))return null;throw _0x364585;}});}}function _0x45dd(_0x2b6f80,_0x4d79ad){const _0x51b73d=_0x51b7();return _0x45dd=function(_0x45dd67,_0x4b7db0){_0x45dd67=_0x45dd67-0x1bd;let _0x16d027=_0x51b73d[_0x45dd67];return _0x16d027;},_0x45dd(_0x2b6f80,_0x4d79ad);}function _0x51b7(){const _0x18c3ce=['6064056rzMivN','s3Client','HeadObjectCommand','82230qroOOe','throw','apply','4447932dceRqP','7YQZCeQ','8596FDMWkB','path','AwsS3FileSizeRetriever','4642756GSLMxc','__esModule','sep','execute','NotFound','join','value','7600280tUCGPq','__awaiter','posix','__importDefault','name','bucketName','split','../utils/aws-s3.utils','send','BaseFileSizeRetriever','69kmiSsL','ContentLength','234798JmbcYR','AwsS3Utils','credentials','./base-file-size-retriever','then','2502pSXXNl','next'];_0x51b7=function(){return _0x18c3ce;};return _0x51b7();}exports['AwsS3FileSizeRetriever']=AwsS3FileSizeRetriever;
|