@flosum/storages 1.3.3-beta.4 → 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.
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 +4 -4
@@ -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';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 _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 _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 _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 _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.4",
3
+ "version": "1.3.3-beta.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -28,10 +28,10 @@
28
28
  "author": "Flosum",
29
29
  "license": "ISC",
30
30
  "dependencies": {
31
- "@aws-sdk/client-s3": "3.670.0",
32
- "@aws-sdk/lib-storage": "3.670.0",
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
- "@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"