@flosum/storages 1.3.3-beta.5 → 1.3.3-beta.6
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 +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x21d4(_0x1e2eab,_0x2142e4){const _0x3a965d=_0x3a96();return _0x21d4=function(_0x21d424,_0x33fccf){_0x21d424=_0x21d424-0xeb;let _0x554615=_0x3a965d[_0x21d424];return _0x554615;},_0x21d4(_0x1e2eab,_0x2142e4);}const _0x447b51=_0x21d4;(function(_0x147ca6,_0x530130){const _0x448383=_0x21d4,_0x523939=_0x147ca6();while(!![]){try{const _0x33ed02=-parseInt(_0x448383(0x10a))/0x1*(-parseInt(_0x448383(0xff))/0x2)+parseInt(_0x448383(0xf2))/0x3*(parseInt(_0x448383(0xf6))/0x4)+-parseInt(_0x448383(0x102))/0x5*(parseInt(_0x448383(0xf0))/0x6)+parseInt(_0x448383(0x10d))/0x7+-parseInt(_0x448383(0xfa))/0x8+parseInt(_0x448383(0x104))/0x9+parseInt(_0x448383(0xfb))/0xa;if(_0x33ed02===_0x530130)break;else _0x523939['push'](_0x523939['shift']());}catch(_0x2631ca){_0x523939['push'](_0x523939['shift']());}}}(_0x3a96,0xdb88e));var __awaiter=this&&this[_0x447b51(0xf7)]||function(_0x250f8c,_0x5fb41b,_0x44ff48,_0x4492ea){function _0x54c56b(_0x290106){return _0x290106 instanceof _0x44ff48?_0x290106:new _0x44ff48(function(_0x25a22b){_0x25a22b(_0x290106);});}return new(_0x44ff48||(_0x44ff48=Promise))(function(_0x8d8f3e,_0x1010bd){const _0x4ac0f6=_0x21d4;function _0x1492a5(_0x1578f7){const _0x3e4241=_0x21d4;try{_0x10e20f(_0x4492ea[_0x3e4241(0xfc)](_0x1578f7));}catch(_0xab538c){_0x1010bd(_0xab538c);}}function _0x12db78(_0x122bb7){try{_0x10e20f(_0x4492ea['throw'](_0x122bb7));}catch(_0x5cd496){_0x1010bd(_0x5cd496);}}function _0x10e20f(_0x19b599){const _0x2e2aa6=_0x21d4;_0x19b599['done']?_0x8d8f3e(_0x19b599[_0x2e2aa6(0x10f)]):_0x54c56b(_0x19b599[_0x2e2aa6(0x10f)])['then'](_0x1492a5,_0x12db78);}_0x10e20f((_0x4492ea=_0x4492ea['apply'](_0x250f8c,_0x5fb41b||[]))[_0x4ac0f6(0xfc)]());});};Object[_0x447b51(0x108)](exports,'__esModule',{'value':!![]}),exports[_0x447b51(0xf9)]=void 0x0;function _0x3a96(){const _0xe82c06=['next','@aws-sdk/client-s3','getFilesPaths','9754oyzgJn','ListObjectsCommand','S3Client','136245CJdmrP','AwsFileRetrieveStatus','5748957xirkCs','credentials','Available','extractFileRetrieveStatusFromRestoreField','defineProperty','createS3Client','28EUfodA','HttpHandler','includes','3238886wzpGjt','add','value','false','DEEP_ARCHIVE','../init','send','middlewareStack','push','extractFileRetrieveStatusFromFileInfo','length','Key','216lrRXrz','Restore','12fIgdea','applyMiddlewaresToS3Client','GLACIER','NeedRestore','451492UTSAXB','__awaiter','../types/aws.types','AwsS3Utils','5254888FjYnOP','8475200eVogZi'];_0x3a96=function(){return _0xe82c06;};return _0x3a96();}const init_1=require(_0x447b51(0x112)),aws_types_1=require(_0x447b51(0xf8)),client_s3_1=require(_0x447b51(0xfd)),ARCHIVE_TYPES=[_0x447b51(0xf4),'GLACIER_IR',_0x447b51(0x111)];class AwsS3Utils{static[_0x447b51(0xed)](_0x209f5d){const _0x13c013=_0x447b51;if(ARCHIVE_TYPES[_0x13c013(0x10c)](_0x209f5d['StorageClass'])){if(_0x209f5d[_0x13c013(0xf1)])return AwsS3Utils[_0x13c013(0x107)](_0x209f5d[_0x13c013(0xf1)]);return aws_types_1['AwsFileRetrieveStatus'][_0x13c013(0xf5)];}return aws_types_1[_0x13c013(0x103)]['Available'];}static[_0x447b51(0x107)](_0x11612c){const _0x1d27a5=_0x447b51,_0xe2baf6=/ongoing-request="([^"]+)"/,_0x1d4110=_0x11612c['match'](_0xe2baf6);return _0x1d4110[0x1]===_0x1d27a5(0x110)?aws_types_1['AwsFileRetrieveStatus'][_0x1d27a5(0x106)]:aws_types_1[_0x1d27a5(0x103)]['Restoring'];}static[_0x447b51(0xfe)](_0x2b7b06,_0x50a99d,_0x26bfa0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x151887=_0x21d4,_0x45aa1e=[];let _0x57397a,_0x386e8f=null;do{const _0x78da0c=new client_s3_1[(_0x151887(0x100))]({'Bucket':_0x50a99d,'Prefix':_0x2b7b06,'Marker':_0x386e8f}),{Contents:_0x546a5a,IsTruncated:_0x47e558}=yield _0x26bfa0[_0x151887(0x113)](_0x78da0c);if(!_0x546a5a)return _0x45aa1e;for(const _0x1e6978 of _0x546a5a){_0x45aa1e[_0x151887(0xec)](_0x1e6978[_0x151887(0xef)]);}_0x57397a=_0x47e558,_0x57397a&&(_0x386e8f=_0x546a5a['at'](-0x1)[_0x151887(0xef)]);}while(_0x57397a);return _0x45aa1e;});}static[_0x447b51(0x109)]({region:_0x4e1eee,accessKeyId:_0x4c374d,secretAccessKey:_0x387dea},_0x11e01b){const _0x821642=_0x447b51,_0x3c5910={'region':_0x4e1eee,'requestHandler':new init_1[(_0x821642(0x10b))]()};_0x4c374d&&_0x387dea&&(_0x3c5910[_0x821642(0x105)]={'accessKeyId':_0x4c374d,'secretAccessKey':_0x387dea});const _0x509c71=new client_s3_1[(_0x821642(0x101))](_0x3c5910);if(!(_0x11e01b===null||_0x11e01b===void 0x0?void 0x0:_0x11e01b[_0x821642(0xee)]))return _0x509c71;return this[_0x821642(0xf3)](_0x509c71,_0x11e01b);}static[_0x447b51(0xf3)](_0x501a50,_0x40f890){const _0x458d0b=_0x447b51;for(const {handler:_0x31c62b,options:_0x375162}of _0x40f890){_0x501a50[_0x458d0b(0xeb)][_0x458d0b(0x10e)](_0x31c62b,_0x375162);}return _0x501a50;}}exports['AwsS3Utils']=AwsS3Utils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x32eb0e=_0xad50;(function(_0x524653,_0x901158){var _0x518293=_0xad50,_0x3fcaa2=_0x524653();while(!![]){try{var _0x308470=parseInt(_0x518293(0x1a7))/0x1*(-parseInt(_0x518293(0x1a6))/0x2)+parseInt(_0x518293(0x1a0))/0x3+-parseInt(_0x518293(0x199))/0x4*(parseInt(_0x518293(0x1a5))/0x5)+parseInt(_0x518293(0x1a1))/0x6+-parseInt(_0x518293(0x1a9))/0x7+-parseInt(_0x518293(0x198))/0x8+parseInt(_0x518293(0x191))/0x9*(parseInt(_0x518293(0x1a3))/0xa);if(_0x308470===_0x901158)break;else _0x3fcaa2['push'](_0x3fcaa2['shift']());}catch(_0x474663){_0x3fcaa2['push'](_0x3fcaa2['shift']());}}}(_0x3158,0x7a6a3));function _0x3158(){var _0x49e62f=['throw','then','deleted','getAzureBlobsPaths','next','117kZVoVA','createAzureBlobServiceClient','apply','containerName','listBlobsFlat','push','asyncIterator','4056DhdgWb','4qdBsei','createAzureBlobContainerClient','error','name','function','@azure/storage-blob','value','2202402WMvUWf','844158BrOqRZ','getContainerClient','1279400TzeuvF','return','3768085HTIBUi','6fXVdNb','94876wqLIBq','done','6985188UszIlM','__asyncValues','Symbol.asyncIterator\x20is\x20not\x20defined.','https://','__awaiter','call','BlobServiceClient','__esModule'];_0x3158=function(){return _0x49e62f;};return _0x3158();}var __awaiter=this&&this[_0x32eb0e(0x1ad)]||function(_0x5e654c,_0xf9bf57,_0x26a9b1,_0x3d81f1){function _0x30220f(_0x348b63){return _0x348b63 instanceof _0x26a9b1?_0x348b63:new _0x26a9b1(function(_0x58cb44){_0x58cb44(_0x348b63);});}return new(_0x26a9b1||(_0x26a9b1=Promise))(function(_0x543ce3,_0x4e96fe){var _0x58f700=_0xad50;function _0x2b98a5(_0x168a57){try{_0x245206(_0x3d81f1['next'](_0x168a57));}catch(_0x40dead){_0x4e96fe(_0x40dead);}}function _0x182c3c(_0x1e8f51){try{_0x245206(_0x3d81f1['throw'](_0x1e8f51));}catch(_0x4afe5f){_0x4e96fe(_0x4afe5f);}}function _0x245206(_0x915aad){var _0x50f1e7=_0xad50;_0x915aad[_0x50f1e7(0x1a8)]?_0x543ce3(_0x915aad[_0x50f1e7(0x19f)]):_0x30220f(_0x915aad['value'])[_0x50f1e7(0x1b2)](_0x2b98a5,_0x182c3c);}_0x245206((_0x3d81f1=_0x3d81f1[_0x58f700(0x193)](_0x5e654c,_0xf9bf57||[]))[_0x58f700(0x190)]());});},__asyncValues=this&&this[_0x32eb0e(0x1aa)]||function(_0x32be28){var _0x5c78a6=_0x32eb0e;if(!Symbol[_0x5c78a6(0x197)])throw new TypeError(_0x5c78a6(0x1ab));var _0x499d8b=_0x32be28[Symbol[_0x5c78a6(0x197)]],_0x286cd1;return _0x499d8b?_0x499d8b[_0x5c78a6(0x1ae)](_0x32be28):(_0x32be28=typeof __values===_0x5c78a6(0x19d)?__values(_0x32be28):_0x32be28[Symbol['iterator']](),_0x286cd1={},_0x4dd6a5(_0x5c78a6(0x190)),_0x4dd6a5(_0x5c78a6(0x1b1)),_0x4dd6a5(_0x5c78a6(0x1a4)),_0x286cd1[Symbol[_0x5c78a6(0x197)]]=function(){return this;},_0x286cd1);function _0x4dd6a5(_0x565db5){_0x286cd1[_0x565db5]=_0x32be28[_0x565db5]&&function(_0x24d4d4){return new Promise(function(_0x246478,_0x2895b6){_0x24d4d4=_0x32be28[_0x565db5](_0x24d4d4),_0x379470(_0x246478,_0x2895b6,_0x24d4d4['done'],_0x24d4d4['value']);});};}function _0x379470(_0x419485,_0x43377a,_0x307ae9,_0x5eb97d){Promise['resolve'](_0x5eb97d)['then'](function(_0x4a4d37){_0x419485({'value':_0x4a4d37,'done':_0x307ae9});},_0x43377a);}};Object['defineProperty'](exports,_0x32eb0e(0x1b0),{'value':!![]}),exports['AzureUtils']=void 0x0;function _0xad50(_0x334091,_0x18e31e){var _0x315870=_0x3158();return _0xad50=function(_0xad5032,_0x4dd72b){_0xad5032=_0xad5032-0x18e;var _0x30a3ba=_0x315870[_0xad5032];return _0x30a3ba;},_0xad50(_0x334091,_0x18e31e);}const storage_blob_1=require(_0x32eb0e(0x19e));class AzureUtils{static[_0x32eb0e(0x192)]({accountName:_0x3403ea,accountKey:_0x3dfedc}){var _0x4688a3=_0x32eb0e;const _0x4af32e=new storage_blob_1['StorageSharedKeyCredential'](_0x3403ea,_0x3dfedc);return new storage_blob_1[(_0x4688a3(0x1af))](_0x4688a3(0x1ac)+_0x3403ea+'.blob.core.windows.net',_0x4af32e);}static[_0x32eb0e(0x19a)](_0x4c7f8a){var _0x1f1f85=_0x32eb0e;const _0x23f40c=this[_0x1f1f85(0x192)](_0x4c7f8a);return _0x23f40c[_0x1f1f85(0x1a2)](_0x4c7f8a[_0x1f1f85(0x194)]);}static[_0x32eb0e(0x18f)](_0x24bba7,_0xb8edcf){var _0x591284,_0x2553f0;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x7b28f=_0xad50;const _0x3d2781=[];try{for(var _0x1490de=__asyncValues(_0xb8edcf[_0x7b28f(0x195)]({'prefix':_0x24bba7})),_0x306cbf;_0x306cbf=yield _0x1490de[_0x7b28f(0x190)](),!_0x306cbf[_0x7b28f(0x1a8)];){const _0x26e8e1=_0x306cbf[_0x7b28f(0x19f)];!_0x26e8e1[_0x7b28f(0x18e)]&&_0x3d2781[_0x7b28f(0x196)](_0x26e8e1[_0x7b28f(0x19c)]);}}catch(_0x33d7f1){_0x591284={'error':_0x33d7f1};}finally{try{if(_0x306cbf&&!_0x306cbf[_0x7b28f(0x1a8)]&&(_0x2553f0=_0x1490de['return']))yield _0x2553f0[_0x7b28f(0x1ae)](_0x1490de);}finally{if(_0x591284)throw _0x591284[_0x7b28f(0x19b)];}}return _0x3d2781;});}}exports['AzureUtils']=AzureUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x165e7c=_0x356f;(function(_0x105491,_0x3756d6){const _0x28e26b=_0x356f,_0x4df37d=_0x105491();while(!![]){try{const _0x3d5c2b=parseInt(_0x28e26b(0x1ea))/0x1*(parseInt(_0x28e26b(0x1e1))/0x2)+-parseInt(_0x28e26b(0x1f2))/0x3*(parseInt(_0x28e26b(0x1f6))/0x4)+-parseInt(_0x28e26b(0x1ee))/0x5+-parseInt(_0x28e26b(0x1f0))/0x6+parseInt(_0x28e26b(0x1f3))/0x7+-parseInt(_0x28e26b(0x1ef))/0x8+parseInt(_0x28e26b(0x1ed))/0x9*(parseInt(_0x28e26b(0x1eb))/0xa);if(_0x3d5c2b===_0x3756d6)break;else _0x4df37d['push'](_0x4df37d['shift']());}catch(_0x514f97){_0x4df37d['push'](_0x4df37d['shift']());}}}(_0x4a4b,0x39b62));function _0x4a4b(){const _0x545af3=['__importDefault','join','defineProperty','2lCGWiN','next','apply','default','crypto','throw','then','close','value','332872dKFfBg','650530GZLtag','createCacheFileStream','81zkuCgK','1525855vXSFrw','844472GFPRoo','1136604vtOKgp','createReadStream','3nwgaKE','1353310uZnRuu','done','CacheUtils','1100516EKsWWC','fs/promises','__awaiter','randomUUID'];_0x4a4b=function(){return _0x545af3;};return _0x4a4b();}function _0x356f(_0x536d11,_0x579499){const _0x4a4bc3=_0x4a4b();return _0x356f=function(_0x356f1e,_0x14886f){_0x356f1e=_0x356f1e-0x1dc;let _0x35a325=_0x4a4bc3[_0x356f1e];return _0x35a325;},_0x356f(_0x536d11,_0x579499);}var __awaiter=this&&this[_0x165e7c(0x1dc)]||function(_0x20654a,_0x15744f,_0x1b7b1e,_0x1d0094){function _0x4673ef(_0x55af5b){return _0x55af5b instanceof _0x1b7b1e?_0x55af5b:new _0x1b7b1e(function(_0x529b0d){_0x529b0d(_0x55af5b);});}return new(_0x1b7b1e||(_0x1b7b1e=Promise))(function(_0x5d24cb,_0x406318){const _0x254dd5=_0x356f;function _0x44cc33(_0x24b908){try{_0x1ae0c8(_0x1d0094['next'](_0x24b908));}catch(_0x3e3411){_0x406318(_0x3e3411);}}function _0x4d736b(_0x2dfbea){const _0x3bfc91=_0x356f;try{_0x1ae0c8(_0x1d0094[_0x3bfc91(0x1e6)](_0x2dfbea));}catch(_0x491c85){_0x406318(_0x491c85);}}function _0x1ae0c8(_0xa66e73){const _0x389f30=_0x356f;_0xa66e73[_0x389f30(0x1f4)]?_0x5d24cb(_0xa66e73[_0x389f30(0x1e9)]):_0x4673ef(_0xa66e73[_0x389f30(0x1e9)])[_0x389f30(0x1e7)](_0x44cc33,_0x4d736b);}_0x1ae0c8((_0x1d0094=_0x1d0094[_0x254dd5(0x1e3)](_0x20654a,_0x15744f||[]))[_0x254dd5(0x1e2)]());});},__importDefault=this&&this[_0x165e7c(0x1de)]||function(_0x33b466){return _0x33b466&&_0x33b466['__esModule']?_0x33b466:{'default':_0x33b466};};Object[_0x165e7c(0x1e0)](exports,'__esModule',{'value':!![]}),exports[_0x165e7c(0x1f5)]=void 0x0;const path_1=__importDefault(require('path')),crypto_1=require(_0x165e7c(0x1e5)),promises_1=require(_0x165e7c(0x1f7)),fs_1=require('fs');class CacheUtils{static[_0x165e7c(0x1ec)](_0x41d4a6,_0x10682d){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1b41cb=_0x356f,_0x9a361b=path_1[_0x1b41cb(0x1e4)][_0x1b41cb(0x1df)](_0x10682d,(0x0,crypto_1[_0x1b41cb(0x1dd)])());yield(0x0,promises_1['writeFile'])(_0x9a361b,_0x41d4a6);const _0x426e6f=(0x0,fs_1[_0x1b41cb(0x1f1)])(_0x9a361b);return _0x426e6f['on'](_0x1b41cb(0x1e8),()=>(0x0,promises_1['rm'])(_0x9a361b)),_0x426e6f;});}}exports[_0x165e7c(0x1f5)]=CacheUtils;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flosum/storages",
|
|
3
|
-
"version": "1.3.3-beta.
|
|
3
|
+
"version": "1.3.3-beta.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -28,8 +28,8 @@
|
|
|
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",
|