@flosum/storages 1.3.3-beta.4 → 1.3.3-beta.5

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.
Files changed (47) hide show
  1. package/dist/copy/aws-s3-copy.js +1 -1
  2. package/dist/copy/base-copy.js +1 -1
  3. package/dist/copy/index.js +1 -1
  4. package/dist/copy/local-copy.js +1 -1
  5. package/dist/credentials/aws-s3-credentials.js +1 -1
  6. package/dist/credentials/azure-credentials.js +1 -1
  7. package/dist/credentials/base-credentials.js +1 -1
  8. package/dist/credentials/index.js +1 -1
  9. package/dist/credentials/local-credentials.js +1 -1
  10. package/dist/delete/aws-s3-delete.js +1 -1
  11. package/dist/delete/azure-delete.js +1 -1
  12. package/dist/delete/base-delete.js +1 -1
  13. package/dist/delete/index.js +1 -1
  14. package/dist/delete/local-delete.js +1 -1
  15. package/dist/deploy/aws-s3-deploy.js +1 -1
  16. package/dist/deploy/azure-deploy.js +1 -1
  17. package/dist/deploy/base-deploy.js +1 -1
  18. package/dist/deploy/index.js +1 -1
  19. package/dist/deploy/local-deploy.js +1 -1
  20. package/dist/factory.js +1 -1
  21. package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
  22. package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
  23. package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
  24. package/dist/file-size-retriever/index.js +1 -1
  25. package/dist/file-size-retriever/local-size-retriever.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/init.js +1 -1
  28. package/dist/retrieve/aws-s3-import-helper.js +1 -1
  29. package/dist/retrieve/aws-s3-retrieve.js +1 -1
  30. package/dist/retrieve/azure-retrieve.js +1 -1
  31. package/dist/retrieve/base-retrieve.js +1 -1
  32. package/dist/retrieve/helpers/aws-s3-helper.js +1 -1
  33. package/dist/retrieve/helpers/azure-helper.js +1 -1
  34. package/dist/retrieve/helpers/base-helper.js +1 -1
  35. package/dist/retrieve/helpers/local-helper.js +1 -1
  36. package/dist/retrieve/index.js +1 -1
  37. package/dist/retrieve/local-retrieve.js +1 -1
  38. package/dist/types/aws.types.js +1 -1
  39. package/dist/types/azure.types.js +1 -1
  40. package/dist/types/index.js +1 -1
  41. package/dist/types/internal.types.js +1 -1
  42. package/dist/types/retrieve-status.enum.js +1 -1
  43. package/dist/types/storage-type.enum.js +1 -1
  44. package/dist/utils/aws-s3.utils.js +1 -1
  45. package/dist/utils/azure.utils.js +1 -1
  46. package/dist/utils/cache.utils.js +1 -1
  47. package/package.json +2 -2
@@ -1 +1 @@
1
- 'use strict';const _0xd7c679=_0x14c2;(function(_0x392654,_0x6f3bc8){const _0x57d3af=_0x14c2,_0x55175d=_0x392654();while(!![]){try{const _0x54e877=-parseInt(_0x57d3af(0x19b))/0x1+-parseInt(_0x57d3af(0x1a5))/0x2+parseInt(_0x57d3af(0x199))/0x3*(parseInt(_0x57d3af(0x18b))/0x4)+parseInt(_0x57d3af(0x189))/0x5+-parseInt(_0x57d3af(0x19d))/0x6+-parseInt(_0x57d3af(0x18f))/0x7+parseInt(_0x57d3af(0x196))/0x8;if(_0x54e877===_0x6f3bc8)break;else _0x55175d['push'](_0x55175d['shift']());}catch(_0x5cf602){_0x55175d['push'](_0x55175d['shift']());}}}(_0x43da,0xeddf8));var __awaiter=this&&this[_0xd7c679(0x18d)]||function(_0x30b573,_0x130560,_0x1cfc2e,_0x2bd812){function _0x3e32f9(_0x2b465f){return _0x2b465f instanceof _0x1cfc2e?_0x2b465f:new _0x1cfc2e(function(_0x4974d3){_0x4974d3(_0x2b465f);});}return new(_0x1cfc2e||(_0x1cfc2e=Promise))(function(_0x3ce7f7,_0x3289a0){const _0xb03d25=_0x14c2;function _0x336f57(_0x2072f1){const _0x557010=_0x14c2;try{_0x100430(_0x2bd812[_0x557010(0x192)](_0x2072f1));}catch(_0x1eac22){_0x3289a0(_0x1eac22);}}function _0x295e02(_0x256ac6){const _0x51a5b2=_0x14c2;try{_0x100430(_0x2bd812[_0x51a5b2(0x1aa)](_0x256ac6));}catch(_0x4eb4c1){_0x3289a0(_0x4eb4c1);}}function _0x100430(_0x48e44b){const _0xac775c=_0x14c2;_0x48e44b[_0xac775c(0x198)]?_0x3ce7f7(_0x48e44b[_0xac775c(0x1a9)]):_0x3e32f9(_0x48e44b[_0xac775c(0x1a9)])[_0xac775c(0x193)](_0x336f57,_0x295e02);}_0x100430((_0x2bd812=_0x2bd812[_0xb03d25(0x1ac)](_0x30b573,_0x130560||[]))['next']());});};Object[_0xd7c679(0x19f)](exports,_0xd7c679(0x19c),{'value':!![]}),exports['AwsS3Utils']=void 0x0;function _0x14c2(_0x563be7,_0x517f2b){const _0x43daab=_0x43da();return _0x14c2=function(_0x14c2ae,_0x4f12c5){_0x14c2ae=_0x14c2ae-0x188;let _0x5de7e2=_0x43daab[_0x14c2ae];return _0x5de7e2;},_0x14c2(_0x563be7,_0x517f2b);}const init_1=require(_0xd7c679(0x18a)),aws_types_1=require('../types/aws.types'),client_s3_1=require(_0xd7c679(0x194)),ARCHIVE_TYPES=['GLACIER','GLACIER_IR',_0xd7c679(0x1a7)];function _0x43da(){const _0x5eec1d=['apply','HttpHandler','5624125qwoNHn','../init','8DhCJwA','extractFileRetrieveStatusFromRestoreField','__awaiter','AwsFileRetrieveStatus','7383089FhKogN','AwsS3Utils','match','next','then','@aws-sdk/client-s3','includes','9214408jNUnhj','ListObjectsCommand','done','2349099DqdeVa','Restore','82884zwgItc','__esModule','4531320RxWgRp','applyMiddlewaresToS3Client','defineProperty','extractFileRetrieveStatusFromFileInfo','send','Available','push','Key','1951066VKdDcC','StorageClass','DEEP_ARCHIVE','getFilesPaths','value','throw','length'];_0x43da=function(){return _0x5eec1d;};return _0x43da();}class AwsS3Utils{static[_0xd7c679(0x1a0)](_0x4eb33e){const _0xb8d0f4=_0xd7c679;if(ARCHIVE_TYPES[_0xb8d0f4(0x195)](_0x4eb33e[_0xb8d0f4(0x1a6)])){if(_0x4eb33e[_0xb8d0f4(0x19a)])return AwsS3Utils[_0xb8d0f4(0x18c)](_0x4eb33e['Restore']);return aws_types_1[_0xb8d0f4(0x18e)]['NeedRestore'];}return aws_types_1[_0xb8d0f4(0x18e)][_0xb8d0f4(0x1a2)];}static['extractFileRetrieveStatusFromRestoreField'](_0x551383){const _0x413b57=_0xd7c679,_0x3d24a7=/ongoing-request="([^"]+)"/,_0x34e798=_0x551383[_0x413b57(0x191)](_0x3d24a7);return _0x34e798[0x1]==='false'?aws_types_1[_0x413b57(0x18e)]['Available']:aws_types_1[_0x413b57(0x18e)]['Restoring'];}static[_0xd7c679(0x1a8)](_0x2cdbfb,_0xaa8ae3,_0x4dc55c){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x590244=_0x14c2,_0x1edc85=[];let _0x1dc2e4,_0x4126bd=null;do{const _0x375bf0=new client_s3_1[(_0x590244(0x197))]({'Bucket':_0xaa8ae3,'Prefix':_0x2cdbfb,'Marker':_0x4126bd}),{Contents:_0x4bc112,IsTruncated:_0xc6c6f6}=yield _0x4dc55c[_0x590244(0x1a1)](_0x375bf0);if(!_0x4bc112)return _0x1edc85;for(const _0x38e1ca of _0x4bc112){_0x1edc85[_0x590244(0x1a3)](_0x38e1ca['Key']);}_0x1dc2e4=_0xc6c6f6,_0x1dc2e4&&(_0x4126bd=_0x4bc112['at'](-0x1)[_0x590244(0x1a4)]);}while(_0x1dc2e4);return _0x1edc85;});}static['createS3Client']({region:_0x2e2632,accessKeyId:_0x42ee69,secretAccessKey:_0x49a2b4},_0x4eeb3f){const _0x29a08c=_0xd7c679,_0x1d188c={'region':_0x2e2632,'requestHandler':new init_1[(_0x29a08c(0x188))]()};_0x42ee69&&_0x49a2b4&&(_0x1d188c['credentials']={'accessKeyId':_0x42ee69,'secretAccessKey':_0x49a2b4});const _0x2870f9=new client_s3_1['S3Client'](_0x1d188c);if(!(_0x4eeb3f===null||_0x4eeb3f===void 0x0?void 0x0:_0x4eeb3f[_0x29a08c(0x1ab)]))return _0x2870f9;return this[_0x29a08c(0x19e)](_0x2870f9,_0x4eeb3f);}static[_0xd7c679(0x19e)](_0x4f8bdd,_0x57a1bb){for(const {handler:_0x3e7a34,options:_0x845749}of _0x57a1bb){_0x4f8bdd['middlewareStack']['add'](_0x3e7a34,_0x845749);}return _0x4f8bdd;}}exports[_0xd7c679(0x190)]=AwsS3Utils;
1
+ 'use strict';const _0x479b85=_0x511d;function _0x2cbf(){const _0x407741=['25MpfLQL','send','12935380WlKcky','NeedRestore','S3Client','Restore','applyMiddlewaresToS3Client','Restoring','includes','done','throw','push','then','Available','../types/aws.types','785736FiqBjY','DEEP_ARCHIVE','createS3Client','Key','5616ajbBrV','341334XJYQxX','22JmDTGY','getFilesPaths','StorageClass','HttpHandler','AwsS3Utils','1719wZzCtL','extractFileRetrieveStatusFromRestoreField','next','add','53072yxlJJr','8375916eaqWKk','@aws-sdk/client-s3','value','length','match','__esModule','894538DHnKPp','9DOFnzD','48oXBlPn','apply','GLACIER','AwsFileRetrieveStatus','middlewareStack'];_0x2cbf=function(){return _0x407741;};return _0x2cbf();}(function(_0x29921e,_0x25bce3){const _0x2507a8=_0x511d,_0x37497d=_0x29921e();while(!![]){try{const _0x364dca=-parseInt(_0x2507a8(0x1aa))/0x1+-parseInt(_0x2507a8(0x1bb))/0x2*(-parseInt(_0x2507a8(0x1bc))/0x3)+parseInt(_0x2507a8(0x1a9))/0x4*(-parseInt(_0x2507a8(0x1c2))/0x5)+-parseInt(_0x2507a8(0x1bd))/0x6*(-parseInt(_0x2507a8(0x1d1))/0x7)+parseInt(_0x2507a8(0x1b4))/0x8*(-parseInt(_0x2507a8(0x1b0))/0x9)+-parseInt(_0x2507a8(0x1c4))/0xa+parseInt(_0x2507a8(0x1ab))/0xb*(parseInt(_0x2507a8(0x1b5))/0xc);if(_0x364dca===_0x25bce3)break;else _0x37497d['push'](_0x37497d['shift']());}catch(_0x341b70){_0x37497d['push'](_0x37497d['shift']());}}}(_0x2cbf,0xb1707));var __awaiter=this&&this['__awaiter']||function(_0x4b98e3,_0x172b8f,_0x16452c,_0x3c2611){function _0x448282(_0x49c635){return _0x49c635 instanceof _0x16452c?_0x49c635:new _0x16452c(function(_0x455f6b){_0x455f6b(_0x49c635);});}return new(_0x16452c||(_0x16452c=Promise))(function(_0x5a7b84,_0xc53bce){const _0xd8ca31=_0x511d;function _0x470180(_0x56e7de){const _0x3dcd81=_0x511d;try{_0x51faf1(_0x3c2611[_0x3dcd81(0x1b2)](_0x56e7de));}catch(_0x572891){_0xc53bce(_0x572891);}}function _0x3acee1(_0x2214d7){const _0x38788f=_0x511d;try{_0x51faf1(_0x3c2611[_0x38788f(0x1cc)](_0x2214d7));}catch(_0x243931){_0xc53bce(_0x243931);}}function _0x51faf1(_0x3ba694){const _0x22cff9=_0x511d;_0x3ba694[_0x22cff9(0x1cb)]?_0x5a7b84(_0x3ba694[_0x22cff9(0x1b7)]):_0x448282(_0x3ba694[_0x22cff9(0x1b7)])[_0x22cff9(0x1ce)](_0x470180,_0x3acee1);}_0x51faf1((_0x3c2611=_0x3c2611[_0xd8ca31(0x1be)](_0x4b98e3,_0x172b8f||[]))[_0xd8ca31(0x1b2)]());});};Object['defineProperty'](exports,_0x479b85(0x1ba),{'value':!![]}),exports[_0x479b85(0x1af)]=void 0x0;const init_1=require('../init'),aws_types_1=require(_0x479b85(0x1d0)),client_s3_1=require(_0x479b85(0x1b6)),ARCHIVE_TYPES=[_0x479b85(0x1bf),'GLACIER_IR',_0x479b85(0x1d2)];class AwsS3Utils{static['extractFileRetrieveStatusFromFileInfo'](_0x5ef4ef){const _0x843fea=_0x479b85;if(ARCHIVE_TYPES[_0x843fea(0x1ca)](_0x5ef4ef[_0x843fea(0x1ad)])){if(_0x5ef4ef[_0x843fea(0x1c7)])return AwsS3Utils[_0x843fea(0x1b1)](_0x5ef4ef[_0x843fea(0x1c7)]);return aws_types_1[_0x843fea(0x1c0)][_0x843fea(0x1c5)];}return aws_types_1[_0x843fea(0x1c0)][_0x843fea(0x1cf)];}static[_0x479b85(0x1b1)](_0x523a73){const _0x5b4b38=_0x479b85,_0xd0a547=/ongoing-request="([^"]+)"/,_0x29f699=_0x523a73[_0x5b4b38(0x1b9)](_0xd0a547);return _0x29f699[0x1]==='false'?aws_types_1[_0x5b4b38(0x1c0)]['Available']:aws_types_1['AwsFileRetrieveStatus'][_0x5b4b38(0x1c9)];}static[_0x479b85(0x1ac)](_0x2c27f6,_0x1e3d58,_0x1085a7){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1907b1=_0x511d,_0x78eeb8=[];let _0x273346,_0x45bd72=null;do{const _0x2553fe=new client_s3_1['ListObjectsCommand']({'Bucket':_0x1e3d58,'Prefix':_0x2c27f6,'Marker':_0x45bd72}),{Contents:_0x53b516,IsTruncated:_0x26cffa}=yield _0x1085a7[_0x1907b1(0x1c3)](_0x2553fe);if(!_0x53b516)return _0x78eeb8;for(const _0x4a1cc4 of _0x53b516){_0x78eeb8[_0x1907b1(0x1cd)](_0x4a1cc4[_0x1907b1(0x1a8)]);}_0x273346=_0x26cffa,_0x273346&&(_0x45bd72=_0x53b516['at'](-0x1)[_0x1907b1(0x1a8)]);}while(_0x273346);return _0x78eeb8;});}static[_0x479b85(0x1d3)]({region:_0x595142,accessKeyId:_0x24e8a9,secretAccessKey:_0x96b2be},_0x3e11d8){const _0x4e3c91=_0x479b85,_0x584199={'region':_0x595142,'requestHandler':new init_1[(_0x4e3c91(0x1ae))]()};_0x24e8a9&&_0x96b2be&&(_0x584199['credentials']={'accessKeyId':_0x24e8a9,'secretAccessKey':_0x96b2be});const _0x334d27=new client_s3_1[(_0x4e3c91(0x1c6))](_0x584199);if(!(_0x3e11d8===null||_0x3e11d8===void 0x0?void 0x0:_0x3e11d8[_0x4e3c91(0x1b8)]))return _0x334d27;return this['applyMiddlewaresToS3Client'](_0x334d27,_0x3e11d8);}static[_0x479b85(0x1c8)](_0x1e3006,_0x1e7a5f){const _0x55c4ca=_0x479b85;for(const {handler:_0x46d785,options:_0x3fc963}of _0x1e7a5f){_0x1e3006[_0x55c4ca(0x1c1)][_0x55c4ca(0x1b3)](_0x46d785,_0x3fc963);}return _0x1e3006;}}function _0x511d(_0x785aca,_0x13824e){const _0x2cbf35=_0x2cbf();return _0x511d=function(_0x511de2,_0x4522ae){_0x511de2=_0x511de2-0x1a8;let _0x4684d4=_0x2cbf35[_0x511de2];return _0x4684d4;},_0x511d(_0x785aca,_0x13824e);}exports[_0x479b85(0x1af)]=AwsS3Utils;
@@ -1 +1 @@
1
- 'use strict';var _0x3e3bc5=_0x5767;(function(_0x8fb654,_0x1fb415){var _0x2a587f=_0x5767,_0x1c70e4=_0x8fb654();while(!![]){try{var _0x56f823=-parseInt(_0x2a587f(0x1b5))/0x1+-parseInt(_0x2a587f(0x1b2))/0x2*(-parseInt(_0x2a587f(0x1ad))/0x3)+-parseInt(_0x2a587f(0x1bd))/0x4*(-parseInt(_0x2a587f(0x1c9))/0x5)+-parseInt(_0x2a587f(0x1bf))/0x6*(-parseInt(_0x2a587f(0x1be))/0x7)+parseInt(_0x2a587f(0x1c1))/0x8+parseInt(_0x2a587f(0x1c2))/0x9*(parseInt(_0x2a587f(0x1aa))/0xa)+-parseInt(_0x2a587f(0x1c8))/0xb;if(_0x56f823===_0x1fb415)break;else _0x1c70e4['push'](_0x1c70e4['shift']());}catch(_0x54f812){_0x1c70e4['push'](_0x1c70e4['shift']());}}}(_0x216a,0x19e41));function _0x5767(_0xb0b7b1,_0x259332){var _0x216ab6=_0x216a();return _0x5767=function(_0x57674a,_0x1cedd4){_0x57674a=_0x57674a-0x1a8;var _0x1f87dc=_0x216ab6[_0x57674a];return _0x1f87dc;},_0x5767(_0xb0b7b1,_0x259332);}var __awaiter=this&&this[_0x3e3bc5(0x1bc)]||function(_0x5d6c63,_0x3b0f63,_0x274c6f,_0x5d33b6){function _0x1058dc(_0x41921b){return _0x41921b instanceof _0x274c6f?_0x41921b:new _0x274c6f(function(_0x14cf84){_0x14cf84(_0x41921b);});}return new(_0x274c6f||(_0x274c6f=Promise))(function(_0x372edb,_0x49bc9b){var _0x2501a9=_0x5767;function _0x3305d1(_0x576e50){var _0x2f6ae1=_0x5767;try{_0x44dd3f(_0x5d33b6[_0x2f6ae1(0x1b1)](_0x576e50));}catch(_0x55765c){_0x49bc9b(_0x55765c);}}function _0x10fffe(_0x5502e5){var _0x410b5b=_0x5767;try{_0x44dd3f(_0x5d33b6[_0x410b5b(0x1c0)](_0x5502e5));}catch(_0x1ef440){_0x49bc9b(_0x1ef440);}}function _0x44dd3f(_0x476c05){var _0x53483d=_0x5767;_0x476c05[_0x53483d(0x1c6)]?_0x372edb(_0x476c05[_0x53483d(0x1b0)]):_0x1058dc(_0x476c05[_0x53483d(0x1b0)])[_0x53483d(0x1b6)](_0x3305d1,_0x10fffe);}_0x44dd3f((_0x5d33b6=_0x5d33b6[_0x2501a9(0x1b4)](_0x5d6c63,_0x3b0f63||[]))[_0x2501a9(0x1b1)]());});},__asyncValues=this&&this[_0x3e3bc5(0x1ac)]||function(_0x38217e){var _0x70fdda=_0x3e3bc5;if(!Symbol[_0x70fdda(0x1ba)])throw new TypeError('Symbol.asyncIterator\x20is\x20not\x20defined.');var _0x2a2394=_0x38217e[Symbol[_0x70fdda(0x1ba)]],_0x2ea4fb;return _0x2a2394?_0x2a2394['call'](_0x38217e):(_0x38217e=typeof __values==='function'?__values(_0x38217e):_0x38217e[Symbol[_0x70fdda(0x1b9)]](),_0x2ea4fb={},_0x203240(_0x70fdda(0x1b1)),_0x203240(_0x70fdda(0x1c0)),_0x203240('return'),_0x2ea4fb[Symbol[_0x70fdda(0x1ba)]]=function(){return this;},_0x2ea4fb);function _0x203240(_0x1234ed){_0x2ea4fb[_0x1234ed]=_0x38217e[_0x1234ed]&&function(_0x5d1dd9){return new Promise(function(_0x21ed4e,_0x3a468b){var _0x4db557=_0x5767;_0x5d1dd9=_0x38217e[_0x1234ed](_0x5d1dd9),_0x41e7cf(_0x21ed4e,_0x3a468b,_0x5d1dd9[_0x4db557(0x1c6)],_0x5d1dd9[_0x4db557(0x1b0)]);});};}function _0x41e7cf(_0x206045,_0xaec6d3,_0x2dc76f,_0x373dfc){var _0x8d73f2=_0x70fdda;Promise[_0x8d73f2(0x1a8)](_0x373dfc)[_0x8d73f2(0x1b6)](function(_0x151b1f){_0x206045({'value':_0x151b1f,'done':_0x2dc76f});},_0xaec6d3);}};Object[_0x3e3bc5(0x1ca)](exports,_0x3e3bc5(0x1b7),{'value':!![]}),exports['AzureUtils']=void 0x0;const storage_blob_1=require(_0x3e3bc5(0x1af));class AzureUtils{static['createAzureBlobServiceClient']({accountName:_0x986ef6,accountKey:_0x568103}){var _0x163e84=_0x3e3bc5;const _0x32b871=new storage_blob_1['StorageSharedKeyCredential'](_0x986ef6,_0x568103);return new storage_blob_1[(_0x163e84(0x1bb))](_0x163e84(0x1b8)+_0x986ef6+_0x163e84(0x1ab),_0x32b871);}static['createAzureBlobContainerClient'](_0x48a7b2){var _0x34ed2c=_0x3e3bc5;const _0x472d82=this['createAzureBlobServiceClient'](_0x48a7b2);return _0x472d82['getContainerClient'](_0x48a7b2[_0x34ed2c(0x1c3)]);}static['getAzureBlobsPaths'](_0x496f12,_0x4886da){var _0x15f95a,_0x5e4815;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x5ef1aa=_0x5767;const _0x5c27d6=[];try{for(var _0x534383=__asyncValues(_0x4886da[_0x5ef1aa(0x1c7)]({'prefix':_0x496f12})),_0x58d004;_0x58d004=yield _0x534383[_0x5ef1aa(0x1b1)](),!_0x58d004[_0x5ef1aa(0x1c6)];){const _0x5da125=_0x58d004[_0x5ef1aa(0x1b0)];!_0x5da125[_0x5ef1aa(0x1c5)]&&_0x5c27d6[_0x5ef1aa(0x1ae)](_0x5da125[_0x5ef1aa(0x1b3)]);}}catch(_0x57a7dc){_0x15f95a={'error':_0x57a7dc};}finally{try{if(_0x58d004&&!_0x58d004[_0x5ef1aa(0x1c6)]&&(_0x5e4815=_0x534383[_0x5ef1aa(0x1a9)]))yield _0x5e4815['call'](_0x534383);}finally{if(_0x15f95a)throw _0x15f95a['error'];}}return _0x5c27d6;});}}exports[_0x3e3bc5(0x1c4)]=AzureUtils;function _0x216a(){var _0x386005=['__awaiter','404972MJJIqe','2877TLXIjx','1866VNKKvX','throw','781504hOlnWx','27TCvAuX','containerName','AzureUtils','deleted','done','listBlobsFlat','2477992ivDKIO','5LFWlhr','defineProperty','resolve','return','204860xVgUHX','.blob.core.windows.net','__asyncValues','1881phphWQ','push','@azure/storage-blob','value','next','316HvSxSr','name','apply','155955RkHfaw','then','__esModule','https://','iterator','asyncIterator','BlobServiceClient'];_0x216a=function(){return _0x386005;};return _0x216a();}
1
+ 'use strict';var _0x4e4610=_0x308f;function _0x1dfd(){var _0x2f349c=['error','return','name','AzureUtils','resolve','throw','next','asyncIterator','50TIqLtF','value','createAzureBlobServiceClient','49568KEziap','push','iterator','8LAvSYm','402021sSMBVx','call','function','4PBVMoz','getContainerClient','10509wHTnlB','__esModule','getAzureBlobsPaths','then','20NFCPsn','128526wTupEm','__asyncValues','done','BlobServiceClient','__awaiter','Symbol.asyncIterator\x20is\x20not\x20defined.','deleted','listBlobsFlat','1432081FMEZEh','53140dFZgxt','createAzureBlobContainerClient','defineProperty','containerName','https://','@azure/storage-blob','2382776bwnrfe'];_0x1dfd=function(){return _0x2f349c;};return _0x1dfd();}(function(_0x377063,_0x213cc5){var _0x59b946=_0x308f,_0x2be021=_0x377063();while(!![]){try{var _0x4cbaaa=-parseInt(_0x59b946(0xec))/0x1+parseInt(_0x59b946(0xf9))/0x2*(-parseInt(_0x59b946(0xf5))/0x3)+parseInt(_0x59b946(0xf3))/0x4*(parseInt(_0x59b946(0xda))/0x5)+parseInt(_0x59b946(0xfa))/0x6+parseInt(_0x59b946(0xd9))/0x7*(parseInt(_0x59b946(0xef))/0x8)+-parseInt(_0x59b946(0xf0))/0x9*(-parseInt(_0x59b946(0xe9))/0xa)+-parseInt(_0x59b946(0xe0))/0xb;if(_0x4cbaaa===_0x213cc5)break;else _0x2be021['push'](_0x2be021['shift']());}catch(_0x694dc7){_0x2be021['push'](_0x2be021['shift']());}}}(_0x1dfd,0x26c2b));function _0x308f(_0x5765d0,_0x4a47c5){var _0x1dfd24=_0x1dfd();return _0x308f=function(_0x308fe0,_0x111098){_0x308fe0=_0x308fe0-0xd5;var _0xfb9e21=_0x1dfd24[_0x308fe0];return _0xfb9e21;},_0x308f(_0x5765d0,_0x4a47c5);}var __awaiter=this&&this[_0x4e4610(0xd5)]||function(_0x58fa24,_0x22a236,_0x462100,_0x4f582b){function _0x5d5bdf(_0x64e6e7){return _0x64e6e7 instanceof _0x462100?_0x64e6e7:new _0x462100(function(_0x760f20){_0x760f20(_0x64e6e7);});}return new(_0x462100||(_0x462100=Promise))(function(_0x3e2074,_0x42e6c0){var _0x186dbe=_0x308f;function _0x2cc9b0(_0xc47a40){var _0x1a1adc=_0x308f;try{_0x35e779(_0x4f582b[_0x1a1adc(0xe7)](_0xc47a40));}catch(_0x19b0f4){_0x42e6c0(_0x19b0f4);}}function _0x5e8322(_0x4985a8){var _0x1899c5=_0x308f;try{_0x35e779(_0x4f582b[_0x1899c5(0xe6)](_0x4985a8));}catch(_0x88cd89){_0x42e6c0(_0x88cd89);}}function _0x35e779(_0x4a1eb4){var _0x4892ed=_0x308f;_0x4a1eb4[_0x4892ed(0xfc)]?_0x3e2074(_0x4a1eb4['value']):_0x5d5bdf(_0x4a1eb4[_0x4892ed(0xea)])[_0x4892ed(0xf8)](_0x2cc9b0,_0x5e8322);}_0x35e779((_0x4f582b=_0x4f582b['apply'](_0x58fa24,_0x22a236||[]))[_0x186dbe(0xe7)]());});},__asyncValues=this&&this[_0x4e4610(0xfb)]||function(_0x4b36ca){var _0x2310c0=_0x4e4610;if(!Symbol[_0x2310c0(0xe8)])throw new TypeError(_0x2310c0(0xd6));var _0x1a0fb6=_0x4b36ca[Symbol[_0x2310c0(0xe8)]],_0x3fb063;return _0x1a0fb6?_0x1a0fb6[_0x2310c0(0xf1)](_0x4b36ca):(_0x4b36ca=typeof __values===_0x2310c0(0xf2)?__values(_0x4b36ca):_0x4b36ca[Symbol[_0x2310c0(0xee)]](),_0x3fb063={},_0xe404e5(_0x2310c0(0xe7)),_0xe404e5(_0x2310c0(0xe6)),_0xe404e5(_0x2310c0(0xe2)),_0x3fb063[Symbol['asyncIterator']]=function(){return this;},_0x3fb063);function _0xe404e5(_0x131270){_0x3fb063[_0x131270]=_0x4b36ca[_0x131270]&&function(_0x451820){return new Promise(function(_0x3d6c6b,_0x19f558){_0x451820=_0x4b36ca[_0x131270](_0x451820),_0x313b81(_0x3d6c6b,_0x19f558,_0x451820['done'],_0x451820['value']);});};}function _0x313b81(_0x51cbda,_0x364e34,_0x2a1e32,_0x372bc7){var _0x50813a=_0x2310c0;Promise[_0x50813a(0xe5)](_0x372bc7)[_0x50813a(0xf8)](function(_0x462670){_0x51cbda({'value':_0x462670,'done':_0x2a1e32});},_0x364e34);}};Object[_0x4e4610(0xdc)](exports,_0x4e4610(0xf6),{'value':!![]}),exports[_0x4e4610(0xe4)]=void 0x0;const storage_blob_1=require(_0x4e4610(0xdf));class AzureUtils{static[_0x4e4610(0xeb)]({accountName:_0x12e037,accountKey:_0x4b31ac}){var _0x5ce2ea=_0x4e4610;const _0x55cb06=new storage_blob_1['StorageSharedKeyCredential'](_0x12e037,_0x4b31ac);return new storage_blob_1[(_0x5ce2ea(0xfd))](_0x5ce2ea(0xde)+_0x12e037+'.blob.core.windows.net',_0x55cb06);}static[_0x4e4610(0xdb)](_0x2c248c){var _0x57e38c=_0x4e4610;const _0x2dc7b9=this[_0x57e38c(0xeb)](_0x2c248c);return _0x2dc7b9[_0x57e38c(0xf4)](_0x2c248c[_0x57e38c(0xdd)]);}static[_0x4e4610(0xf7)](_0x21d1e5,_0x294c99){var _0x3847ff,_0x3bfd8b;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x1174f2=_0x308f;const _0x8c3ab6=[];try{for(var _0x4b1e66=__asyncValues(_0x294c99[_0x1174f2(0xd8)]({'prefix':_0x21d1e5})),_0x499605;_0x499605=yield _0x4b1e66['next'](),!_0x499605[_0x1174f2(0xfc)];){const _0x2ccd2c=_0x499605[_0x1174f2(0xea)];!_0x2ccd2c[_0x1174f2(0xd7)]&&_0x8c3ab6[_0x1174f2(0xed)](_0x2ccd2c[_0x1174f2(0xe3)]);}}catch(_0x34c2b7){_0x3847ff={'error':_0x34c2b7};}finally{try{if(_0x499605&&!_0x499605[_0x1174f2(0xfc)]&&(_0x3bfd8b=_0x4b1e66['return']))yield _0x3bfd8b['call'](_0x4b1e66);}finally{if(_0x3847ff)throw _0x3847ff[_0x1174f2(0xe1)];}}return _0x8c3ab6;});}}exports[_0x4e4610(0xe4)]=AzureUtils;
@@ -1 +1 @@
1
- 'use strict';const _0x3b9b05=_0x1203;(function(_0x3bfe87,_0x382dfc){const _0x4de612=_0x1203,_0x5cc2d6=_0x3bfe87();while(!![]){try{const _0xf4d193=-parseInt(_0x4de612(0x1ac))/0x1+parseInt(_0x4de612(0x1c1))/0x2+parseInt(_0x4de612(0x1a9))/0x3+-parseInt(_0x4de612(0x1b9))/0x4+parseInt(_0x4de612(0x1ad))/0x5+parseInt(_0x4de612(0x1b3))/0x6*(-parseInt(_0x4de612(0x1c4))/0x7)+parseInt(_0x4de612(0x1b2))/0x8;if(_0xf4d193===_0x382dfc)break;else _0x5cc2d6['push'](_0x5cc2d6['shift']());}catch(_0x814d15){_0x5cc2d6['push'](_0x5cc2d6['shift']());}}}(_0x2362,0x2d138));var __awaiter=this&&this[_0x3b9b05(0x1af)]||function(_0x27138e,_0x35108e,_0x1e2d72,_0x230bf2){function _0xf19338(_0x29f42c){return _0x29f42c instanceof _0x1e2d72?_0x29f42c:new _0x1e2d72(function(_0x2e6201){_0x2e6201(_0x29f42c);});}return new(_0x1e2d72||(_0x1e2d72=Promise))(function(_0x226849,_0x1ea094){const _0x4336d3=_0x1203;function _0x1b2ae3(_0x1ef6c3){const _0x1f85d9=_0x1203;try{_0x220407(_0x230bf2[_0x1f85d9(0x1aa)](_0x1ef6c3));}catch(_0x3dd46d){_0x1ea094(_0x3dd46d);}}function _0x5b2dcf(_0x266b17){const _0x4eb9f1=_0x1203;try{_0x220407(_0x230bf2[_0x4eb9f1(0x1a8)](_0x266b17));}catch(_0x22e161){_0x1ea094(_0x22e161);}}function _0x220407(_0xff4273){const _0x3e9424=_0x1203;_0xff4273[_0x3e9424(0x1b5)]?_0x226849(_0xff4273[_0x3e9424(0x1ab)]):_0xf19338(_0xff4273[_0x3e9424(0x1ab)])[_0x3e9424(0x1bf)](_0x1b2ae3,_0x5b2dcf);}_0x220407((_0x230bf2=_0x230bf2[_0x4336d3(0x1bd)](_0x27138e,_0x35108e||[]))[_0x4336d3(0x1aa)]());});},__importDefault=this&&this[_0x3b9b05(0x1bc)]||function(_0x5693cb){const _0x4cd350=_0x3b9b05;return _0x5693cb&&_0x5693cb[_0x4cd350(0x1b8)]?_0x5693cb:{'default':_0x5693cb};};Object[_0x3b9b05(0x1c3)](exports,_0x3b9b05(0x1b8),{'value':!![]}),exports[_0x3b9b05(0x1ba)]=void 0x0;function _0x2362(){const _0x508707=['CacheUtils','join','__importDefault','apply','close','then','randomUUID','598852gDVyOA','createReadStream','defineProperty','208922ejFOEl','throw','628182ewDIlY','next','value','4656jbsfYg','346680gcfhkd','fs/promises','__awaiter','path','crypto','1233520DQjYUX','42ERzUZD','createCacheFileStream','done','writeFile','default','__esModule','1336544xiQHBk'];_0x2362=function(){return _0x508707;};return _0x2362();}const path_1=__importDefault(require(_0x3b9b05(0x1b0))),crypto_1=require(_0x3b9b05(0x1b1)),promises_1=require(_0x3b9b05(0x1ae)),fs_1=require('fs');function _0x1203(_0xb240c4,_0x3c3431){const _0x236233=_0x2362();return _0x1203=function(_0x1203aa,_0x1b8527){_0x1203aa=_0x1203aa-0x1a8;let _0x222158=_0x236233[_0x1203aa];return _0x222158;},_0x1203(_0xb240c4,_0x3c3431);}class CacheUtils{static[_0x3b9b05(0x1b4)](_0x62411a,_0x34294a){return __awaiter(this,void 0x0,void 0x0,function*(){const _0xfd6456=_0x1203,_0x106d97=path_1[_0xfd6456(0x1b7)][_0xfd6456(0x1bb)](_0x34294a,(0x0,crypto_1[_0xfd6456(0x1c0)])());yield(0x0,promises_1[_0xfd6456(0x1b6)])(_0x106d97,_0x62411a);const _0xb1ff20=(0x0,fs_1[_0xfd6456(0x1c2)])(_0x106d97);return _0xb1ff20['on'](_0xfd6456(0x1be),()=>(0x0,promises_1['rm'])(_0x106d97)),_0xb1ff20;});}}exports[_0x3b9b05(0x1ba)]=CacheUtils;
1
+ 'use strict';const _0x2583a3=_0x19df;function _0x19df(_0x1fc464,_0x21cce1){const _0xde44b5=_0xde44();return _0x19df=function(_0x19dfbb,_0x445aa4){_0x19dfbb=_0x19dfbb-0x1b7;let _0x12795d=_0xde44b5[_0x19dfbb];return _0x12795d;},_0x19df(_0x1fc464,_0x21cce1);}(function(_0x413912,_0x205e04){const _0x70fa60=_0x19df,_0x4b0848=_0x413912();while(!![]){try{const _0x31360b=parseInt(_0x70fa60(0x1cc))/0x1+-parseInt(_0x70fa60(0x1cd))/0x2+parseInt(_0x70fa60(0x1ce))/0x3+-parseInt(_0x70fa60(0x1ba))/0x4+-parseInt(_0x70fa60(0x1b7))/0x5*(parseInt(_0x70fa60(0x1c3))/0x6)+parseInt(_0x70fa60(0x1bd))/0x7+parseInt(_0x70fa60(0x1be))/0x8*(parseInt(_0x70fa60(0x1c8))/0x9);if(_0x31360b===_0x205e04)break;else _0x4b0848['push'](_0x4b0848['shift']());}catch(_0x5f326e){_0x4b0848['push'](_0x4b0848['shift']());}}}(_0xde44,0xa203d));function _0xde44(){const _0x3eb3cc=['next','fs/promises','150abxDos','join','__esModule','done','__importDefault','9zLiiSZ','then','apply','path','1320181GjTNKM','11516cxhEeC','1344594hixunE','close','250595wuiAmB','createReadStream','default','4306164yeUOtA','writeFile','createCacheFileStream','881223QvFOBS','8836952NSoujJ','throw','value'];_0xde44=function(){return _0x3eb3cc;};return _0xde44();}var __awaiter=this&&this['__awaiter']||function(_0x549047,_0x30bc58,_0x440246,_0x479b43){function _0xcf0cda(_0x32af79){return _0x32af79 instanceof _0x440246?_0x32af79:new _0x440246(function(_0x143c99){_0x143c99(_0x32af79);});}return new(_0x440246||(_0x440246=Promise))(function(_0x57afcd,_0x1650dc){const _0x4bf23f=_0x19df;function _0x1256da(_0x20a151){const _0xa57902=_0x19df;try{_0x340ec2(_0x479b43[_0xa57902(0x1c1)](_0x20a151));}catch(_0x107d98){_0x1650dc(_0x107d98);}}function _0x171db2(_0x233630){const _0x3ea26f=_0x19df;try{_0x340ec2(_0x479b43[_0x3ea26f(0x1bf)](_0x233630));}catch(_0x5ec11a){_0x1650dc(_0x5ec11a);}}function _0x340ec2(_0x1ac37f){const _0x5727e7=_0x19df;_0x1ac37f[_0x5727e7(0x1c6)]?_0x57afcd(_0x1ac37f[_0x5727e7(0x1c0)]):_0xcf0cda(_0x1ac37f[_0x5727e7(0x1c0)])[_0x5727e7(0x1c9)](_0x1256da,_0x171db2);}_0x340ec2((_0x479b43=_0x479b43[_0x4bf23f(0x1ca)](_0x549047,_0x30bc58||[]))[_0x4bf23f(0x1c1)]());});},__importDefault=this&&this[_0x2583a3(0x1c7)]||function(_0x197f7a){const _0x372ae7=_0x2583a3;return _0x197f7a&&_0x197f7a[_0x372ae7(0x1c5)]?_0x197f7a:{'default':_0x197f7a};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CacheUtils']=void 0x0;const path_1=__importDefault(require(_0x2583a3(0x1cb))),crypto_1=require('crypto'),promises_1=require(_0x2583a3(0x1c2)),fs_1=require('fs');class CacheUtils{static[_0x2583a3(0x1bc)](_0x161ad8,_0x32acd6){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1e4c4b=_0x19df,_0x16e79a=path_1[_0x1e4c4b(0x1b9)][_0x1e4c4b(0x1c4)](_0x32acd6,(0x0,crypto_1['randomUUID'])());yield(0x0,promises_1[_0x1e4c4b(0x1bb)])(_0x16e79a,_0x161ad8);const _0x443807=(0x0,fs_1[_0x1e4c4b(0x1b8)])(_0x16e79a);return _0x443807['on'](_0x1e4c4b(0x1cf),()=>(0x0,promises_1['rm'])(_0x16e79a)),_0x443807;});}}exports['CacheUtils']=CacheUtils;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flosum/storages",
3
- "version": "1.3.3-beta.4",
3
+ "version": "1.3.3-beta.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -31,7 +31,7 @@
31
31
  "@aws-sdk/client-s3": "3.670.0",
32
32
  "@aws-sdk/lib-storage": "3.670.0",
33
33
  "@azure/storage-blob": "12.26.0",
34
- "@flosum/utils": "1.0.13",
34
+ "@flosum/utils": "1.0.14",
35
35
  "@smithy/node-http-handler": "2.1.10",
36
36
  "https-proxy-agent": "^5.0.1",
37
37
  "request": "2.88.0"