@flosum/storages 1.3.3-beta.5 → 1.3.3
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.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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4e935b=_0x30b5;(function(_0x6d3c00,_0x311450){const _0x7d2828=_0x30b5,_0x44c9b8=_0x6d3c00();while(!![]){try{const _0x588994=parseInt(_0x7d2828(0x97))/0x1+parseInt(_0x7d2828(0x77))/0x2+parseInt(_0x7d2828(0x8c))/0x3*(parseInt(_0x7d2828(0x8d))/0x4)+-parseInt(_0x7d2828(0x7e))/0x5+-parseInt(_0x7d2828(0x86))/0x6*(-parseInt(_0x7d2828(0x7a))/0x7)+-parseInt(_0x7d2828(0x83))/0x8+-parseInt(_0x7d2828(0x89))/0x9*(parseInt(_0x7d2828(0x91))/0xa);if(_0x588994===_0x311450)break;else _0x44c9b8['push'](_0x44c9b8['shift']());}catch(_0x1664fa){_0x44c9b8['push'](_0x44c9b8['shift']());}}}(_0x3b72,0x9bb3a));function _0x30b5(_0xf9e3b9,_0x19fc83){const _0x3b7224=_0x3b72();return _0x30b5=function(_0x30b517,_0x5ef8b8){_0x30b517=_0x30b517-0x74;let _0x36e60b=_0x3b7224[_0x30b517];return _0x36e60b;},_0x30b5(_0xf9e3b9,_0x19fc83);}var __awaiter=this&&this[_0x4e935b(0x8b)]||function(_0x188546,_0x48b8e0,_0x1fe608,_0x1497a6){function _0x1ee54c(_0x5a9eaf){return _0x5a9eaf instanceof _0x1fe608?_0x5a9eaf:new _0x1fe608(function(_0x559ac1){_0x559ac1(_0x5a9eaf);});}return new(_0x1fe608||(_0x1fe608=Promise))(function(_0x347e3f,_0x194b4e){const _0x3182fd=_0x30b5;function _0x327901(_0x2d1edd){const _0x5607d6=_0x30b5;try{_0x10fa39(_0x1497a6[_0x5607d6(0x82)](_0x2d1edd));}catch(_0x3e9a22){_0x194b4e(_0x3e9a22);}}function _0x5b48d1(_0x205dba){const _0x142155=_0x30b5;try{_0x10fa39(_0x1497a6[_0x142155(0x7b)](_0x205dba));}catch(_0x51e9a6){_0x194b4e(_0x51e9a6);}}function _0x10fa39(_0x3f1c14){const _0x236b33=_0x30b5;_0x3f1c14[_0x236b33(0x79)]?_0x347e3f(_0x3f1c14[_0x236b33(0x98)]):_0x1ee54c(_0x3f1c14[_0x236b33(0x98)])[_0x236b33(0x92)](_0x327901,_0x5b48d1);}_0x10fa39((_0x1497a6=_0x1497a6[_0x3182fd(0x95)](_0x188546,_0x48b8e0||[]))[_0x3182fd(0x82)]());});};Object[_0x4e935b(0x7f)](exports,'__esModule',{'value':!![]}),exports[_0x4e935b(0x81)]=void 0x0;const init_1=require(_0x4e935b(0x78)),aws_types_1=require(_0x4e935b(0x87)),client_s3_1=require(_0x4e935b(0x9d)),ARCHIVE_TYPES=[_0x4e935b(0x9b),_0x4e935b(0x84),'DEEP_ARCHIVE'];function _0x3b72(){const _0x11e3f5=['1041wydDuc','14092UnqBXN','extractFileRetrieveStatusFromFileInfo','applyMiddlewaresToS3Client','NeedRestore','270zmuRsT','then','credentials','S3Client','apply','Restoring','782420TEirWN','value','Available','AwsFileRetrieveStatus','GLACIER','includes','@aws-sdk/client-s3','false','extractFileRetrieveStatusFromRestoreField','send','push','Restore','HttpHandler','length','917132irbJLF','../init','done','5592573JADArq','throw','getFilesPaths','StorageClass','1762965kfpJWt','defineProperty','add','AwsS3Utils','next','8214120SuchxC','GLACIER_IR','middlewareStack','6wjiGqo','../types/aws.types','Key','415098FdTcnG','match','__awaiter'];_0x3b72=function(){return _0x11e3f5;};return _0x3b72();}class AwsS3Utils{static[_0x4e935b(0x8e)](_0x268d0){const _0x11cc02=_0x4e935b;if(ARCHIVE_TYPES[_0x11cc02(0x9c)](_0x268d0[_0x11cc02(0x7d)])){if(_0x268d0[_0x11cc02(0x74)])return AwsS3Utils[_0x11cc02(0x9f)](_0x268d0[_0x11cc02(0x74)]);return aws_types_1['AwsFileRetrieveStatus'][_0x11cc02(0x90)];}return aws_types_1[_0x11cc02(0x9a)][_0x11cc02(0x99)];}static[_0x4e935b(0x9f)](_0x44b465){const _0x1a30af=_0x4e935b,_0x2d01d2=/ongoing-request="([^"]+)"/,_0x1c6d38=_0x44b465[_0x1a30af(0x8a)](_0x2d01d2);return _0x1c6d38[0x1]===_0x1a30af(0x9e)?aws_types_1[_0x1a30af(0x9a)][_0x1a30af(0x99)]:aws_types_1[_0x1a30af(0x9a)][_0x1a30af(0x96)];}static[_0x4e935b(0x7c)](_0x493290,_0x2c3050,_0x3b2fc4){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1650c9=_0x30b5,_0x59630e=[];let _0x4e489e,_0x25c725=null;do{const _0x4cf257=new client_s3_1['ListObjectsCommand']({'Bucket':_0x2c3050,'Prefix':_0x493290,'Marker':_0x25c725}),{Contents:_0x16785b,IsTruncated:_0xa942fc}=yield _0x3b2fc4[_0x1650c9(0xa0)](_0x4cf257);if(!_0x16785b)return _0x59630e;for(const _0x6e1073 of _0x16785b){_0x59630e[_0x1650c9(0xa1)](_0x6e1073[_0x1650c9(0x88)]);}_0x4e489e=_0xa942fc,_0x4e489e&&(_0x25c725=_0x16785b['at'](-0x1)[_0x1650c9(0x88)]);}while(_0x4e489e);return _0x59630e;});}static['createS3Client']({region:_0x18f713,accessKeyId:_0x3124f3,secretAccessKey:_0x43b275},_0x55131c){const _0x5278cc=_0x4e935b,_0xf1bff={'region':_0x18f713,'requestHandler':new init_1[(_0x5278cc(0x75))]()};_0x3124f3&&_0x43b275&&(_0xf1bff[_0x5278cc(0x93)]={'accessKeyId':_0x3124f3,'secretAccessKey':_0x43b275});const _0x535d3f=new client_s3_1[(_0x5278cc(0x94))](_0xf1bff);if(!(_0x55131c===null||_0x55131c===void 0x0?void 0x0:_0x55131c[_0x5278cc(0x76)]))return _0x535d3f;return this[_0x5278cc(0x8f)](_0x535d3f,_0x55131c);}static[_0x4e935b(0x8f)](_0x25c0d4,_0x2e978f){const _0x461b35=_0x4e935b;for(const {handler:_0xb22765,options:_0x400344}of _0x2e978f){_0x25c0d4[_0x461b35(0x85)][_0x461b35(0x80)](_0xb22765,_0x400344);}return _0x25c0d4;}}exports['AwsS3Utils']=AwsS3Utils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x3e640d=_0x3bea;(function(_0x4e1479,_0x324143){var _0x4a2bfe=_0x3bea,_0x3ff1fc=_0x4e1479();while(!![]){try{var _0x1a642f=parseInt(_0x4a2bfe(0x1df))/0x1+-parseInt(_0x4a2bfe(0x1e6))/0x2+parseInt(_0x4a2bfe(0x1e1))/0x3*(-parseInt(_0x4a2bfe(0x1fb))/0x4)+parseInt(_0x4a2bfe(0x1de))/0x5+parseInt(_0x4a2bfe(0x1f5))/0x6+parseInt(_0x4a2bfe(0x1e8))/0x7*(parseInt(_0x4a2bfe(0x1ee))/0x8)+parseInt(_0x4a2bfe(0x1f2))/0x9*(parseInt(_0x4a2bfe(0x1f9))/0xa);if(_0x1a642f===_0x324143)break;else _0x3ff1fc['push'](_0x3ff1fc['shift']());}catch(_0x53d43a){_0x3ff1fc['push'](_0x3ff1fc['shift']());}}}(_0x29ab,0x3fae7));var __awaiter=this&&this[_0x3e640d(0x1ec)]||function(_0xbb6b7,_0x44ba83,_0x5abcdf,_0x1966db){function _0x460ee9(_0x584345){return _0x584345 instanceof _0x5abcdf?_0x584345:new _0x5abcdf(function(_0x3c00d6){_0x3c00d6(_0x584345);});}return new(_0x5abcdf||(_0x5abcdf=Promise))(function(_0xe4d057,_0x1273cb){var _0x224f67=_0x3bea;function _0x66e9fd(_0x506d16){var _0x38b161=_0x3bea;try{_0x3ab38a(_0x1966db[_0x38b161(0x1e9)](_0x506d16));}catch(_0x3077a8){_0x1273cb(_0x3077a8);}}function _0x4eca0d(_0x8b778e){var _0x3d981c=_0x3bea;try{_0x3ab38a(_0x1966db[_0x3d981c(0x1fc)](_0x8b778e));}catch(_0x38bdb9){_0x1273cb(_0x38bdb9);}}function _0x3ab38a(_0x145208){var _0x52ea58=_0x3bea;_0x145208[_0x52ea58(0x1f4)]?_0xe4d057(_0x145208[_0x52ea58(0x1e0)]):_0x460ee9(_0x145208[_0x52ea58(0x1e0)])[_0x52ea58(0x1e4)](_0x66e9fd,_0x4eca0d);}_0x3ab38a((_0x1966db=_0x1966db[_0x224f67(0x1f8)](_0xbb6b7,_0x44ba83||[]))[_0x224f67(0x1e9)]());});},__asyncValues=this&&this[_0x3e640d(0x1fe)]||function(_0x2c6a01){var _0x1c8e61=_0x3e640d;if(!Symbol[_0x1c8e61(0x1e5)])throw new TypeError(_0x1c8e61(0x1f1));var _0x218ff0=_0x2c6a01[Symbol[_0x1c8e61(0x1e5)]],_0x46af99;return _0x218ff0?_0x218ff0['call'](_0x2c6a01):(_0x2c6a01=typeof __values==='function'?__values(_0x2c6a01):_0x2c6a01[Symbol['iterator']](),_0x46af99={},_0x2d403e(_0x1c8e61(0x1e9)),_0x2d403e('throw'),_0x2d403e(_0x1c8e61(0x1f6)),_0x46af99[Symbol[_0x1c8e61(0x1e5)]]=function(){return this;},_0x46af99);function _0x2d403e(_0x1e0ff1){_0x46af99[_0x1e0ff1]=_0x2c6a01[_0x1e0ff1]&&function(_0x1ba00d){return new Promise(function(_0x788eb2,_0x288f97){var _0x3d7754=_0x3bea;_0x1ba00d=_0x2c6a01[_0x1e0ff1](_0x1ba00d),_0x55ae0a(_0x788eb2,_0x288f97,_0x1ba00d[_0x3d7754(0x1f4)],_0x1ba00d[_0x3d7754(0x1e0)]);});};}function _0x55ae0a(_0x39e4d8,_0x47e63a,_0x2f6e6f,_0x2a22c5){var _0x2079b7=_0x1c8e61;Promise[_0x2079b7(0x200)](_0x2a22c5)[_0x2079b7(0x1e4)](function(_0xdd18fa){_0x39e4d8({'value':_0xdd18fa,'done':_0x2f6e6f});},_0x47e63a);}};Object[_0x3e640d(0x1fd)](exports,'__esModule',{'value':!![]}),exports[_0x3e640d(0x1e2)]=void 0x0;function _0x29ab(){var _0x2843d5=['error','resolve','1174660Kayqag','215947ZIAbbG','value','912921yXaRkd','AzureUtils','getAzureBlobsPaths','then','asyncIterator','918376kzmDCt','call','651THBSIg','next','StorageSharedKeyCredential','https://','__awaiter','.blob.core.windows.net','6648xrTqzo','name','createAzureBlobContainerClient','Symbol.asyncIterator\x20is\x20not\x20defined.','7173cNVJLd','deleted','done','2790534VlrJxT','return','createAzureBlobServiceClient','apply','390KAZScB','push','4sLECDy','throw','defineProperty','__asyncValues'];_0x29ab=function(){return _0x2843d5;};return _0x29ab();}function _0x3bea(_0x260ddc,_0x32d1e5){var _0x29ab49=_0x29ab();return _0x3bea=function(_0x3bea1e,_0x1de81d){_0x3bea1e=_0x3bea1e-0x1de;var _0x12e260=_0x29ab49[_0x3bea1e];return _0x12e260;},_0x3bea(_0x260ddc,_0x32d1e5);}const storage_blob_1=require('@azure/storage-blob');class AzureUtils{static['createAzureBlobServiceClient']({accountName:_0x455b59,accountKey:_0x37916a}){var _0x3df741=_0x3e640d;const _0x186291=new storage_blob_1[(_0x3df741(0x1ea))](_0x455b59,_0x37916a);return new storage_blob_1['BlobServiceClient'](_0x3df741(0x1eb)+_0x455b59+_0x3df741(0x1ed),_0x186291);}static[_0x3e640d(0x1f0)](_0x3baec7){var _0xb0df96=_0x3e640d;const _0x52b624=this[_0xb0df96(0x1f7)](_0x3baec7);return _0x52b624['getContainerClient'](_0x3baec7['containerName']);}static[_0x3e640d(0x1e3)](_0x3729bc,_0x5c7b84){var _0x3443e1,_0x28242b;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x24cb5a=_0x3bea;const _0x2f0616=[];try{for(var _0x508eff=__asyncValues(_0x5c7b84['listBlobsFlat']({'prefix':_0x3729bc})),_0x4ab759;_0x4ab759=yield _0x508eff['next'](),!_0x4ab759[_0x24cb5a(0x1f4)];){const _0x32a7aa=_0x4ab759[_0x24cb5a(0x1e0)];!_0x32a7aa[_0x24cb5a(0x1f3)]&&_0x2f0616[_0x24cb5a(0x1fa)](_0x32a7aa[_0x24cb5a(0x1ef)]);}}catch(_0x5279df){_0x3443e1={'error':_0x5279df};}finally{try{if(_0x4ab759&&!_0x4ab759[_0x24cb5a(0x1f4)]&&(_0x28242b=_0x508eff['return']))yield _0x28242b[_0x24cb5a(0x1e7)](_0x508eff);}finally{if(_0x3443e1)throw _0x3443e1[_0x24cb5a(0x1ff)];}}return _0x2f0616;});}}exports[_0x3e640d(0x1e2)]=AzureUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1d772b=_0x2463;(function(_0x1ca589,_0x27f55b){const _0x2a7821=_0x2463,_0x3072f5=_0x1ca589();while(!![]){try{const _0x10084c=parseInt(_0x2a7821(0xd7))/0x1*(parseInt(_0x2a7821(0xd9))/0x2)+-parseInt(_0x2a7821(0xc3))/0x3*(-parseInt(_0x2a7821(0xc5))/0x4)+-parseInt(_0x2a7821(0xda))/0x5*(parseInt(_0x2a7821(0xcc))/0x6)+-parseInt(_0x2a7821(0xc8))/0x7*(parseInt(_0x2a7821(0xc1))/0x8)+parseInt(_0x2a7821(0xd6))/0x9*(parseInt(_0x2a7821(0xd3))/0xa)+parseInt(_0x2a7821(0xc2))/0xb+parseInt(_0x2a7821(0xc4))/0xc*(-parseInt(_0x2a7821(0xcb))/0xd);if(_0x10084c===_0x27f55b)break;else _0x3072f5['push'](_0x3072f5['shift']());}catch(_0x3d1d56){_0x3072f5['push'](_0x3072f5['shift']());}}}(_0x1978,0x5c063));var __awaiter=this&&this[_0x1d772b(0xcf)]||function(_0x1235d1,_0x433168,_0xeb70fa,_0x125dc3){function _0x463546(_0x372215){return _0x372215 instanceof _0xeb70fa?_0x372215:new _0xeb70fa(function(_0x1ef018){_0x1ef018(_0x372215);});}return new(_0xeb70fa||(_0xeb70fa=Promise))(function(_0x1b724e,_0x469ad9){const _0x27d2aa=_0x2463;function _0x184fb8(_0x2dfa03){const _0x11a7a6=_0x2463;try{_0x3138b6(_0x125dc3[_0x11a7a6(0xd8)](_0x2dfa03));}catch(_0x537c8b){_0x469ad9(_0x537c8b);}}function _0x6dd41a(_0xf7a4f3){const _0x5be594=_0x2463;try{_0x3138b6(_0x125dc3[_0x5be594(0xca)](_0xf7a4f3));}catch(_0x3af3fb){_0x469ad9(_0x3af3fb);}}function _0x3138b6(_0x6e3a89){const _0x649913=_0x2463;_0x6e3a89['done']?_0x1b724e(_0x6e3a89['value']):_0x463546(_0x6e3a89[_0x649913(0xdb)])[_0x649913(0xd1)](_0x184fb8,_0x6dd41a);}_0x3138b6((_0x125dc3=_0x125dc3[_0x27d2aa(0xc9)](_0x1235d1,_0x433168||[]))[_0x27d2aa(0xd8)]());});},__importDefault=this&&this[_0x1d772b(0xce)]||function(_0x403e1c){const _0x5c7bc5=_0x1d772b;return _0x403e1c&&_0x403e1c[_0x5c7bc5(0xd0)]?_0x403e1c:{'default':_0x403e1c};};Object[_0x1d772b(0xc6)](exports,_0x1d772b(0xd0),{'value':!![]}),exports[_0x1d772b(0xcd)]=void 0x0;function _0x2463(_0x572f01,_0x19445b){const _0x197813=_0x1978();return _0x2463=function(_0x24637a,_0x3c081b){_0x24637a=_0x24637a-0xc1;let _0x59debb=_0x197813[_0x24637a];return _0x59debb;},_0x2463(_0x572f01,_0x19445b);}const path_1=__importDefault(require('path')),crypto_1=require(_0x1d772b(0xd4)),promises_1=require('fs/promises'),fs_1=require('fs');class CacheUtils{static[_0x1d772b(0xde)](_0x2ffb4d,_0x549a47){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4e5838=_0x2463,_0x3e8d38=path_1[_0x4e5838(0xdd)][_0x4e5838(0xdc)](_0x549a47,(0x0,crypto_1['randomUUID'])());yield(0x0,promises_1[_0x4e5838(0xc7)])(_0x3e8d38,_0x2ffb4d);const _0x26b77a=(0x0,fs_1[_0x4e5838(0xd2)])(_0x3e8d38);return _0x26b77a['on'](_0x4e5838(0xd5),()=>(0x0,promises_1['rm'])(_0x3e8d38)),_0x26b77a;});}}function _0x1978(){const _0x3c19bc=['then','createReadStream','50010zOGMlp','crypto','close','621zwcWfb','1xMDzPd','next','277286pGIrpP','5YvZnJM','value','join','default','createCacheFileStream','388440EjiJIB','3517151xSxnyY','116268cesBag','864DRyDeA','20SUjBPH','defineProperty','writeFile','63tWIdAX','apply','throw','15847HnbNQE','573234XwEGzz','CacheUtils','__importDefault','__awaiter','__esModule'];_0x1978=function(){return _0x3c19bc;};return _0x1978();}exports[_0x1d772b(0xcd)]=CacheUtils;
|