@flosum/storages 1.3.3 → 1.3.4-backup.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/copy/aws-s3-copy.js +1 -1
- package/dist/copy/base-copy.js +1 -1
- package/dist/copy/index.js +1 -1
- package/dist/copy/local-copy.js +1 -1
- package/dist/credentials/aws-s3-credentials.js +1 -1
- package/dist/credentials/azure-credentials.js +1 -1
- package/dist/credentials/base-credentials.js +1 -1
- package/dist/credentials/index.js +1 -1
- package/dist/credentials/local-credentials.js +1 -1
- package/dist/delete/aws-s3-delete.js +1 -1
- package/dist/delete/azure-delete.js +1 -1
- package/dist/delete/base-delete.js +1 -1
- package/dist/delete/index.js +1 -1
- package/dist/delete/local-delete.js +1 -1
- package/dist/deploy/aws-s3-deploy.js +1 -1
- package/dist/deploy/azure-deploy.js +1 -1
- package/dist/deploy/base-deploy.js +1 -1
- package/dist/deploy/index.js +1 -1
- package/dist/deploy/local-deploy.js +1 -1
- package/dist/factory.js +1 -1
- package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
- package/dist/file-size-retriever/index.js +1 -1
- package/dist/file-size-retriever/local-size-retriever.js +1 -1
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/retrieve/aws-s3-import-helper.d.ts +4 -0
- package/dist/retrieve/aws-s3-import-helper.js +1 -1
- package/dist/retrieve/aws-s3-retrieve.js +1 -1
- package/dist/retrieve/azure-retrieve.js +1 -1
- package/dist/retrieve/base-retrieve.js +1 -1
- package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
- package/dist/retrieve/helpers/azure-helper.js +1 -1
- package/dist/retrieve/helpers/base-helper.js +1 -1
- package/dist/retrieve/helpers/local-helper.js +1 -1
- package/dist/retrieve/index.js +1 -1
- package/dist/retrieve/local-retrieve.js +1 -1
- package/dist/types/aws.types.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 +4 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x26d465=_0x59fb;(function(_0x5ea006,_0x21bc7f){const _0x4f08f0=_0x59fb,_0x16e71b=_0x5ea006();while(!![]){try{const _0x17de9a=parseInt(_0x4f08f0(0xd9))/0x1+-parseInt(_0x4f08f0(0xdd))/0x2*(parseInt(_0x4f08f0(0xcd))/0x3)+-parseInt(_0x4f08f0(0xe3))/0x4*(-parseInt(_0x4f08f0(0xc6))/0x5)+-parseInt(_0x4f08f0(0xd3))/0x6*(-parseInt(_0x4f08f0(0xce))/0x7)+-parseInt(_0x4f08f0(0xd5))/0x8*(-parseInt(_0x4f08f0(0xcf))/0x9)+-parseInt(_0x4f08f0(0xdc))/0xa*(-parseInt(_0x4f08f0(0xd7))/0xb)+-parseInt(_0x4f08f0(0xc0))/0xc;if(_0x17de9a===_0x21bc7f)break;else _0x16e71b['push'](_0x16e71b['shift']());}catch(_0xaa3a49){_0x16e71b['push'](_0x16e71b['shift']());}}}(_0x46b1,0x32a99));function _0x46b1(){const _0x5859fb=['5718sHBUMU','S3Client','30280SelsmO','DEEP_ARCHIVE','654445pLOoIs','next','78430dfnCde','StorageClass','push','10KuvWHf','14692quvTUk','defineProperty','getFilesPaths','false','Restore','then','4AzRpPZ','apply','HttpHandler','length','applyMiddlewaresToS3Client','extractFileRetrieveStatusFromRestoreField','ListObjectsCommand','Available','value','createS3Client','match','1761744PKVzug','Key','credentials','GLACIER','send','add','137990sRGHNn','done','AwsFileRetrieveStatus','AwsS3Utils','includes','../init','middlewareStack','108XPDyee','1967zneoRE','441ykBYiK','NeedRestore','Restoring','throw'];_0x46b1=function(){return _0x5859fb;};return _0x46b1();}var __awaiter=this&&this['__awaiter']||function(_0x2c7b67,_0x58ce85,_0x360267,_0x31e7b9){function _0x2d39e6(_0x55ae71){return _0x55ae71 instanceof _0x360267?_0x55ae71:new _0x360267(function(_0x17760d){_0x17760d(_0x55ae71);});}return new(_0x360267||(_0x360267=Promise))(function(_0x476b85,_0x5f2eac){const _0x49e85e=_0x59fb;function _0x430c37(_0x22cd7f){const _0x457d04=_0x59fb;try{_0x29e0bf(_0x31e7b9[_0x457d04(0xd8)](_0x22cd7f));}catch(_0xb42fb6){_0x5f2eac(_0xb42fb6);}}function _0x6b8b62(_0xefff25){const _0x43560b=_0x59fb;try{_0x29e0bf(_0x31e7b9[_0x43560b(0xd2)](_0xefff25));}catch(_0x58e10a){_0x5f2eac(_0x58e10a);}}function _0x29e0bf(_0x19e468){const _0x4c2935=_0x59fb;_0x19e468[_0x4c2935(0xc7)]?_0x476b85(_0x19e468['value']):_0x2d39e6(_0x19e468[_0x4c2935(0xbd)])[_0x4c2935(0xe2)](_0x430c37,_0x6b8b62);}_0x29e0bf((_0x31e7b9=_0x31e7b9[_0x49e85e(0xb6)](_0x2c7b67,_0x58ce85||[]))['next']());});};Object[_0x26d465(0xde)](exports,'__esModule',{'value':!![]}),exports[_0x26d465(0xc9)]=void 0x0;const init_1=require(_0x26d465(0xcb)),aws_types_1=require('../types/aws.types'),client_s3_1=require('@aws-sdk/client-s3'),ARCHIVE_TYPES=[_0x26d465(0xc3),'GLACIER_IR',_0x26d465(0xd6)];class AwsS3Utils{static['extractFileRetrieveStatusFromFileInfo'](_0x131d4c){const _0x2b5e41=_0x26d465;if(ARCHIVE_TYPES[_0x2b5e41(0xca)](_0x131d4c[_0x2b5e41(0xda)])){if(_0x131d4c[_0x2b5e41(0xe1)])return AwsS3Utils[_0x2b5e41(0xba)](_0x131d4c[_0x2b5e41(0xe1)]);return aws_types_1[_0x2b5e41(0xc8)][_0x2b5e41(0xd0)];}return aws_types_1[_0x2b5e41(0xc8)][_0x2b5e41(0xbc)];}static[_0x26d465(0xba)](_0x5880dd){const _0x17117c=_0x26d465,_0x58eb8e=/ongoing-request="([^"]+)"/,_0x1b7b2b=_0x5880dd[_0x17117c(0xbf)](_0x58eb8e);return _0x1b7b2b[0x1]===_0x17117c(0xe0)?aws_types_1[_0x17117c(0xc8)][_0x17117c(0xbc)]:aws_types_1[_0x17117c(0xc8)][_0x17117c(0xd1)];}static[_0x26d465(0xdf)](_0x63df28,_0x1d9824,_0x26eb97){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x52ab1b=_0x59fb,_0x19101a=[];let _0x45d8bc,_0x13587a=null;do{const _0x55dae5=new client_s3_1[(_0x52ab1b(0xbb))]({'Bucket':_0x1d9824,'Prefix':_0x63df28,'Marker':_0x13587a}),{Contents:_0x52bc27,IsTruncated:_0x350ae6}=yield _0x26eb97[_0x52ab1b(0xc4)](_0x55dae5);if(!_0x52bc27)return _0x19101a;for(const _0x4016ef of _0x52bc27){_0x19101a[_0x52ab1b(0xdb)](_0x4016ef[_0x52ab1b(0xc1)]);}_0x45d8bc=_0x350ae6,_0x45d8bc&&(_0x13587a=_0x52bc27['at'](-0x1)['Key']);}while(_0x45d8bc);return _0x19101a;});}static[_0x26d465(0xbe)]({region:_0x28f988,accessKeyId:_0x17d172,secretAccessKey:_0x1599e2},_0x90c950){const _0x542d9e=_0x26d465,_0x549917={'region':_0x28f988,'requestHandler':new init_1[(_0x542d9e(0xb7))]()};_0x17d172&&_0x1599e2&&(_0x549917[_0x542d9e(0xc2)]={'accessKeyId':_0x17d172,'secretAccessKey':_0x1599e2});const _0x147fb8=new client_s3_1[(_0x542d9e(0xd4))](_0x549917);if(!(_0x90c950===null||_0x90c950===void 0x0?void 0x0:_0x90c950[_0x542d9e(0xb8)]))return _0x147fb8;return this['applyMiddlewaresToS3Client'](_0x147fb8,_0x90c950);}static[_0x26d465(0xb9)](_0x588d9a,_0x4a0d59){const _0x4cec8d=_0x26d465;for(const {handler:_0x1c58b3,options:_0x168b01}of _0x4a0d59){_0x588d9a[_0x4cec8d(0xcc)][_0x4cec8d(0xc5)](_0x1c58b3,_0x168b01);}return _0x588d9a;}}function _0x59fb(_0x485b9a,_0x17151b){const _0x46b197=_0x46b1();return _0x59fb=function(_0x59fb93,_0x50a775){_0x59fb93=_0x59fb93-0xb6;let _0x52c508=_0x46b197[_0x59fb93];return _0x52c508;},_0x59fb(_0x485b9a,_0x17151b);}exports['AwsS3Utils']=AwsS3Utils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x176dbe=_0x4397;(function(_0x2978ab,_0x2f222b){var _0x178a3e=_0x4397,_0x174ba2=_0x2978ab();while(!![]){try{var _0x55ecef=-parseInt(_0x178a3e(0x1b2))/0x1+parseInt(_0x178a3e(0x1a5))/0x2*(-parseInt(_0x178a3e(0x1be))/0x3)+-parseInt(_0x178a3e(0x1a3))/0x4*(-parseInt(_0x178a3e(0x1a2))/0x5)+-parseInt(_0x178a3e(0x1ad))/0x6*(parseInt(_0x178a3e(0x1b5))/0x7)+-parseInt(_0x178a3e(0x19f))/0x8*(parseInt(_0x178a3e(0x1b7))/0x9)+-parseInt(_0x178a3e(0x1af))/0xa+parseInt(_0x178a3e(0x1b1))/0xb;if(_0x55ecef===_0x2f222b)break;else _0x174ba2['push'](_0x174ba2['shift']());}catch(_0x36d5fa){_0x174ba2['push'](_0x174ba2['shift']());}}}(_0x2c5d,0x51c3c));var __awaiter=this&&this[_0x176dbe(0x1b3)]||function(_0x386be7,_0x1b5ed1,_0x352ef7,_0x23b9ea){function _0x46cd38(_0x3e61eb){return _0x3e61eb instanceof _0x352ef7?_0x3e61eb:new _0x352ef7(function(_0x258c5e){_0x258c5e(_0x3e61eb);});}return new(_0x352ef7||(_0x352ef7=Promise))(function(_0xe1072,_0x3b02fd){function _0x335862(_0x344b8a){var _0x1d22f4=_0x4397;try{_0x27d8e4(_0x23b9ea[_0x1d22f4(0x1ac)](_0x344b8a));}catch(_0x34d283){_0x3b02fd(_0x34d283);}}function _0x7af42c(_0x4fd2d0){try{_0x27d8e4(_0x23b9ea['throw'](_0x4fd2d0));}catch(_0x26b0d4){_0x3b02fd(_0x26b0d4);}}function _0x27d8e4(_0x7a5bbd){var _0x56cd9c=_0x4397;_0x7a5bbd[_0x56cd9c(0x1ae)]?_0xe1072(_0x7a5bbd[_0x56cd9c(0x1c0)]):_0x46cd38(_0x7a5bbd[_0x56cd9c(0x1c0)])['then'](_0x335862,_0x7af42c);}_0x27d8e4((_0x23b9ea=_0x23b9ea['apply'](_0x386be7,_0x1b5ed1||[]))['next']());});},__asyncValues=this&&this[_0x176dbe(0x1b6)]||function(_0x41dacb){var _0x1ce82c=_0x176dbe;if(!Symbol['asyncIterator'])throw new TypeError(_0x1ce82c(0x1bd));var _0x1cf34a=_0x41dacb[Symbol[_0x1ce82c(0x1bc)]],_0x8a4e22;return _0x1cf34a?_0x1cf34a['call'](_0x41dacb):(_0x41dacb=typeof __values===_0x1ce82c(0x1ba)?__values(_0x41dacb):_0x41dacb[Symbol[_0x1ce82c(0x1bb)]](),_0x8a4e22={},_0x28e528(_0x1ce82c(0x1ac)),_0x28e528(_0x1ce82c(0x1a0)),_0x28e528(_0x1ce82c(0x1ab)),_0x8a4e22[Symbol[_0x1ce82c(0x1bc)]]=function(){return this;},_0x8a4e22);function _0x28e528(_0x5d5a52){_0x8a4e22[_0x5d5a52]=_0x41dacb[_0x5d5a52]&&function(_0x2df0b2){return new Promise(function(_0x3bb120,_0x34ba36){var _0x2e8ee2=_0x4397;_0x2df0b2=_0x41dacb[_0x5d5a52](_0x2df0b2),_0x1dbcc6(_0x3bb120,_0x34ba36,_0x2df0b2['done'],_0x2df0b2[_0x2e8ee2(0x1c0)]);});};}function _0x1dbcc6(_0x43cbdd,_0x357833,_0x62d97a,_0x2c7d54){var _0xa7c7b0=_0x1ce82c;Promise[_0xa7c7b0(0x1b8)](_0x2c7d54)[_0xa7c7b0(0x1aa)](function(_0x3f4a7e){_0x43cbdd({'value':_0x3f4a7e,'done':_0x62d97a});},_0x357833);}};function _0x2c5d(){var _0x2e71f7=['asyncIterator','Symbol.asyncIterator\x20is\x20not\x20defined.','477Jnjswe','BlobServiceClient','value','createAzureBlobServiceClient','push','call','defineProperty','name','892648OXqCBZ','throw','error','1622930WGFmAQ','4IHSYSS','getAzureBlobsPaths','1686prVjuZ','AzureUtils','deleted','createAzureBlobContainerClient','.blob.core.windows.net','then','return','next','745458nHSCWs','done','1241280mapENi','containerName','13401476HbxUGh','490843SSwuga','__awaiter','__esModule','7MkrEfF','__asyncValues','27ajOtaG','resolve','getContainerClient','function','iterator'];_0x2c5d=function(){return _0x2e71f7;};return _0x2c5d();}Object[_0x176dbe(0x19d)](exports,_0x176dbe(0x1b4),{'value':!![]}),exports[_0x176dbe(0x1a6)]=void 0x0;const storage_blob_1=require('@azure/storage-blob');class AzureUtils{static[_0x176dbe(0x19a)]({accountName:_0x2ebb7b,accountKey:_0x1b1416}){var _0x4f4899=_0x176dbe;const _0x78abef=new storage_blob_1['StorageSharedKeyCredential'](_0x2ebb7b,_0x1b1416);return new storage_blob_1[(_0x4f4899(0x1bf))]('https://'+_0x2ebb7b+_0x4f4899(0x1a9),_0x78abef);}static[_0x176dbe(0x1a8)](_0x50016b){var _0x3580a6=_0x176dbe;const _0x196900=this[_0x3580a6(0x19a)](_0x50016b);return _0x196900[_0x3580a6(0x1b9)](_0x50016b[_0x3580a6(0x1b0)]);}static[_0x176dbe(0x1a4)](_0x5a7324,_0x1a1f33){var _0x83c4e3,_0x64d981;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x2f7c80=_0x4397;const _0x3f05d4=[];try{for(var _0x5d1011=__asyncValues(_0x1a1f33['listBlobsFlat']({'prefix':_0x5a7324})),_0x55ceb6;_0x55ceb6=yield _0x5d1011[_0x2f7c80(0x1ac)](),!_0x55ceb6[_0x2f7c80(0x1ae)];){const _0xf7d48b=_0x55ceb6[_0x2f7c80(0x1c0)];!_0xf7d48b[_0x2f7c80(0x1a7)]&&_0x3f05d4[_0x2f7c80(0x19b)](_0xf7d48b[_0x2f7c80(0x19e)]);}}catch(_0x593f99){_0x83c4e3={'error':_0x593f99};}finally{try{if(_0x55ceb6&&!_0x55ceb6[_0x2f7c80(0x1ae)]&&(_0x64d981=_0x5d1011[_0x2f7c80(0x1ab)]))yield _0x64d981[_0x2f7c80(0x19c)](_0x5d1011);}finally{if(_0x83c4e3)throw _0x83c4e3[_0x2f7c80(0x1a1)];}}return _0x3f05d4;});}}function _0x4397(_0x513fe9,_0x52c679){var _0x2c5d1d=_0x2c5d();return _0x4397=function(_0x439733,_0x3c2351){_0x439733=_0x439733-0x19a;var _0x249a00=_0x2c5d1d[_0x439733];return _0x249a00;},_0x4397(_0x513fe9,_0x52c679);}exports[_0x176dbe(0x1a6)]=AzureUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3e2a(_0x143186,_0x11a34b){const _0x3a6b7f=_0x3a6b();return _0x3e2a=function(_0x3e2a3f,_0x8e0ea9){_0x3e2a3f=_0x3e2a3f-0x95;let _0x2e8ae6=_0x3a6b7f[_0x3e2a3f];return _0x2e8ae6;},_0x3e2a(_0x143186,_0x11a34b);}function _0x3a6b(){const _0x2fa11c=['done','createReadStream','352915rNpYJL','writeFile','10fXVIfo','apply','430092mflnlk','144LtolpH','2243440ARHJzK','crypto','126RAGLKt','createCacheFileStream','7166929TPUCHX','join','40iyTNAt','865916ipFsZL','close','7329651DdgHnc','then','throw','randomUUID','path','__esModule','defineProperty','fs/promises','173199dVrmaj','value'];_0x3a6b=function(){return _0x2fa11c;};return _0x3a6b();}const _0x306187=_0x3e2a;(function(_0xe22675,_0x2e21a9){const _0x2939e0=_0x3e2a,_0x5766d0=_0xe22675();while(!![]){try{const _0x407423=-parseInt(_0x2939e0(0x99))/0x1+parseInt(_0x2939e0(0xad))/0x2+-parseInt(_0x2939e0(0xa3))/0x3*(parseInt(_0x2939e0(0x98))/0x4)+parseInt(_0x2939e0(0xa7))/0x5*(-parseInt(_0x2939e0(0xaf))/0x6)+parseInt(_0x2939e0(0x9b))/0x7+parseInt(_0x2939e0(0xac))/0x8*(parseInt(_0x2939e0(0xab))/0x9)+parseInt(_0x2939e0(0xa9))/0xa*(parseInt(_0x2939e0(0x96))/0xb);if(_0x407423===_0x2e21a9)break;else _0x5766d0['push'](_0x5766d0['shift']());}catch(_0x4148d5){_0x5766d0['push'](_0x5766d0['shift']());}}}(_0x3a6b,0xb8567));var __awaiter=this&&this['__awaiter']||function(_0x1204b5,_0x389183,_0x536c5a,_0x38aa0b){function _0x139b76(_0x10cb30){return _0x10cb30 instanceof _0x536c5a?_0x10cb30:new _0x536c5a(function(_0x27d9d0){_0x27d9d0(_0x10cb30);});}return new(_0x536c5a||(_0x536c5a=Promise))(function(_0x3148cd,_0x43404c){const _0x44da91=_0x3e2a;function _0x1bc81f(_0x26c45d){try{_0x53a96f(_0x38aa0b['next'](_0x26c45d));}catch(_0x3d8d89){_0x43404c(_0x3d8d89);}}function _0x573f53(_0x5a120a){const _0x2056c7=_0x3e2a;try{_0x53a96f(_0x38aa0b[_0x2056c7(0x9d)](_0x5a120a));}catch(_0x4fa0ff){_0x43404c(_0x4fa0ff);}}function _0x53a96f(_0x2f7005){const _0x1e9155=_0x3e2a;_0x2f7005[_0x1e9155(0xa5)]?_0x3148cd(_0x2f7005[_0x1e9155(0xa4)]):_0x139b76(_0x2f7005[_0x1e9155(0xa4)])[_0x1e9155(0x9c)](_0x1bc81f,_0x573f53);}_0x53a96f((_0x38aa0b=_0x38aa0b[_0x44da91(0xaa)](_0x1204b5,_0x389183||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0x4282f0){const _0x1c3953=_0x3e2a;return _0x4282f0&&_0x4282f0[_0x1c3953(0xa0)]?_0x4282f0:{'default':_0x4282f0};};Object[_0x306187(0xa1)](exports,_0x306187(0xa0),{'value':!![]}),exports['CacheUtils']=void 0x0;const path_1=__importDefault(require(_0x306187(0x9f))),crypto_1=require(_0x306187(0xae)),promises_1=require(_0x306187(0xa2)),fs_1=require('fs');class CacheUtils{static[_0x306187(0x95)](_0x24abb5,_0x19ecd0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x38f93f=_0x3e2a,_0x26d931=path_1['default'][_0x38f93f(0x97)](_0x19ecd0,(0x0,crypto_1[_0x38f93f(0x9e)])());yield(0x0,promises_1[_0x38f93f(0xa8)])(_0x26d931,_0x24abb5);const _0x51b80d=(0x0,fs_1[_0x38f93f(0xa6)])(_0x26d931);return _0x51b80d['on'](_0x38f93f(0x9a),()=>(0x0,promises_1['rm'])(_0x26d931)),_0x51b80d;});}}exports['CacheUtils']=CacheUtils;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flosum/storages",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4-backup.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -28,13 +28,12 @@
|
|
|
28
28
|
"author": "Flosum",
|
|
29
29
|
"license": "ISC",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/client-s3": "3.
|
|
32
|
-
"@aws-sdk/lib-storage": "3.
|
|
31
|
+
"@aws-sdk/client-s3": "3.832.0",
|
|
32
|
+
"@aws-sdk/lib-storage": "3.832.0",
|
|
33
33
|
"@azure/storage-blob": "12.26.0",
|
|
34
34
|
"@flosum/utils": "1.0.14",
|
|
35
35
|
"@smithy/node-http-handler": "2.1.10",
|
|
36
|
-
"https-proxy-agent": "^5.0.1"
|
|
37
|
-
"request": "2.88.0"
|
|
36
|
+
"https-proxy-agent": "^5.0.1"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"@types/jest": "27.4.1",
|