@flosum/storages 1.3.3-beta.4 → 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.
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 _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 _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 _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 _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 _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;
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",
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"