@flosum/storages 1.3.3-beta.8 → 1.3.4-backup.0
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 +4 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2b14c2=_0x4e18;(function(_0x57e6ab,_0x2f9875){const _0x1ceeb4=_0x4e18,_0x41a35c=_0x57e6ab();while(!![]){try{const _0x17772e=-parseInt(_0x1ceeb4(0x14f))/0x1+-parseInt(_0x1ceeb4(0x133))/0x2+-parseInt(_0x1ceeb4(0x147))/0x3*(-parseInt(_0x1ceeb4(0x13f))/0x4)+-parseInt(_0x1ceeb4(0x153))/0x5+parseInt(_0x1ceeb4(0x151))/0x6+-parseInt(_0x1ceeb4(0x14e))/0x7*(parseInt(_0x1ceeb4(0x148))/0x8)+parseInt(_0x1ceeb4(0x145))/0x9;if(_0x17772e===_0x2f9875)break;else _0x41a35c['push'](_0x41a35c['shift']());}catch(_0x336787){_0x41a35c['push'](_0x41a35c['shift']());}}}(_0xe46b,0x3e540));var __awaiter=this&&this[_0x2b14c2(0x150)]||function(_0x205411,_0x2bed65,_0x478908,_0x1decdf){function _0x1234e9(_0x41f1ac){return _0x41f1ac instanceof _0x478908?_0x41f1ac:new _0x478908(function(_0x1f552b){_0x1f552b(_0x41f1ac);});}return new(_0x478908||(_0x478908=Promise))(function(_0x3a15f0,_0x3a3278){const _0x46c84d=_0x4e18;function _0x121f8d(_0x2581ea){const _0x31db83=_0x4e18;try{_0x5e48c3(_0x1decdf[_0x31db83(0x156)](_0x2581ea));}catch(_0x41e1f2){_0x3a3278(_0x41e1f2);}}function _0x411d8c(_0x3e398e){const _0x328b33=_0x4e18;try{_0x5e48c3(_0x1decdf[_0x328b33(0x136)](_0x3e398e));}catch(_0xc2c0ff){_0x3a3278(_0xc2c0ff);}}function _0x5e48c3(_0x2b2f4e){const _0x33d71b=_0x4e18;_0x2b2f4e[_0x33d71b(0x143)]?_0x3a15f0(_0x2b2f4e[_0x33d71b(0x15b)]):_0x1234e9(_0x2b2f4e['value'])[_0x33d71b(0x15f)](_0x121f8d,_0x411d8c);}_0x5e48c3((_0x1decdf=_0x1decdf[_0x46c84d(0x15e)](_0x205411,_0x2bed65||[]))['next']());});};Object[_0x2b14c2(0x14c)](exports,_0x2b14c2(0x134),{'value':!![]}),exports[_0x2b14c2(0x13c)]=void 0x0;const init_1=require(_0x2b14c2(0x140)),aws_types_1=require(_0x2b14c2(0x14b)),client_s3_1=require(_0x2b14c2(0x15a)),ARCHIVE_TYPES=[_0x2b14c2(0x13e),_0x2b14c2(0x132),_0x2b14c2(0x141)];function _0x4e18(_0x126286,_0x1db0e4){const _0xe46bb3=_0xe46b();return _0x4e18=function(_0x4e1834,_0x4973b1){_0x4e1834=_0x4e1834-0x132;let _0x2ea108=_0xe46bb3[_0x4e1834];return _0x2ea108;},_0x4e18(_0x126286,_0x1db0e4);}function _0xe46b(){const _0x3f2a6e=['Key','throw','Available','createS3Client','add','extractFileRetrieveStatusFromFileInfo','match','AwsS3Utils','includes','GLACIER','1981076QtSiXv','../init','DEEP_ARCHIVE','Restore','done','push','210672nRQfTl','middlewareStack','3lcPioy','24nJCRIS','S3Client','NeedRestore','../types/aws.types','defineProperty','false','28308CQCmaj','107639pvjpnr','__awaiter','1937130reMUHw','extractFileRetrieveStatusFromRestoreField','280085djalux','AwsFileRetrieveStatus','StorageClass','next','length','HttpHandler','Restoring','@aws-sdk/client-s3','value','getFilesPaths','applyMiddlewaresToS3Client','apply','then','GLACIER_IR','820896QUDCDw','__esModule'];_0xe46b=function(){return _0x3f2a6e;};return _0xe46b();}class AwsS3Utils{static[_0x2b14c2(0x13a)](_0x841e8a){const _0x3ba10b=_0x2b14c2;if(ARCHIVE_TYPES[_0x3ba10b(0x13d)](_0x841e8a[_0x3ba10b(0x155)])){if(_0x841e8a['Restore'])return AwsS3Utils[_0x3ba10b(0x152)](_0x841e8a[_0x3ba10b(0x142)]);return aws_types_1[_0x3ba10b(0x154)][_0x3ba10b(0x14a)];}return aws_types_1['AwsFileRetrieveStatus'][_0x3ba10b(0x137)];}static['extractFileRetrieveStatusFromRestoreField'](_0x4cd9ff){const _0x5c5bf3=_0x2b14c2,_0x2fcdd0=/ongoing-request="([^"]+)"/,_0x5be73f=_0x4cd9ff[_0x5c5bf3(0x13b)](_0x2fcdd0);return _0x5be73f[0x1]===_0x5c5bf3(0x14d)?aws_types_1[_0x5c5bf3(0x154)]['Available']:aws_types_1['AwsFileRetrieveStatus'][_0x5c5bf3(0x159)];}static[_0x2b14c2(0x15c)](_0x394595,_0x192bdd,_0x272a81){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1809ee=_0x4e18,_0x4dd540=[];let _0x29fb06,_0x84933e=null;do{const _0x2b8a65=new client_s3_1['ListObjectsCommand']({'Bucket':_0x192bdd,'Prefix':_0x394595,'Marker':_0x84933e}),{Contents:_0x2ba724,IsTruncated:_0x24b433}=yield _0x272a81['send'](_0x2b8a65);if(!_0x2ba724)return _0x4dd540;for(const _0x3222c0 of _0x2ba724){_0x4dd540[_0x1809ee(0x144)](_0x3222c0['Key']);}_0x29fb06=_0x24b433,_0x29fb06&&(_0x84933e=_0x2ba724['at'](-0x1)[_0x1809ee(0x135)]);}while(_0x29fb06);return _0x4dd540;});}static[_0x2b14c2(0x138)]({region:_0x149741,accessKeyId:_0x240453,secretAccessKey:_0x1338e7},_0x4a958f){const _0x412103=_0x2b14c2,_0x3f0885={'region':_0x149741,'requestHandler':new init_1[(_0x412103(0x158))]()};_0x240453&&_0x1338e7&&(_0x3f0885['credentials']={'accessKeyId':_0x240453,'secretAccessKey':_0x1338e7});const _0x5b2edb=new client_s3_1[(_0x412103(0x149))](_0x3f0885);if(!(_0x4a958f===null||_0x4a958f===void 0x0?void 0x0:_0x4a958f[_0x412103(0x157)]))return _0x5b2edb;return this[_0x412103(0x15d)](_0x5b2edb,_0x4a958f);}static[_0x2b14c2(0x15d)](_0x757eb9,_0x3359b7){const _0x535b15=_0x2b14c2;for(const {handler:_0x2f1a70,options:_0x483405}of _0x3359b7){_0x757eb9[_0x535b15(0x146)][_0x535b15(0x139)](_0x2f1a70,_0x483405);}return _0x757eb9;}}exports[_0x2b14c2(0x13c)]=AwsS3Utils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x3e6b(){var _0x1a85e0=['done','25248BfjPaw','containerName','throw','value','error','resolve','https://','createAzureBlobContainerClient','15970LxxbZN','name','294hNUXsu','call','5106095EGwNbp','asyncIterator','22278dxnrhG','30SYETrk','856056mTGSvQ','.blob.core.windows.net','deleted','__awaiter','defineProperty','then','__asyncValues','createAzureBlobServiceClient','AzureUtils','getAzureBlobsPaths','9nuuSOz','__esModule','return','iterator','push','1917ZQIQtb','Symbol.asyncIterator\x20is\x20not\x20defined.','apply','next','6353824OoRGaV','function','21051954mWFJPU'];_0x3e6b=function(){return _0x1a85e0;};return _0x3e6b();}var _0x4e43fe=_0x75d3;(function(_0x340771,_0x3288ec){var _0x4a926e=_0x75d3,_0x48123f=_0x340771();while(!![]){try{var _0x24431b=parseInt(_0x4a926e(0x71))/0x1*(-parseInt(_0x4a926e(0x70))/0x2)+-parseInt(_0x4a926e(0x7c))/0x3*(parseInt(_0x4a926e(0x72))/0x4)+-parseInt(_0x4a926e(0x95))/0x5+parseInt(_0x4a926e(0x89))/0x6*(parseInt(_0x4a926e(0x93))/0x7)+parseInt(_0x4a926e(0x85))/0x8+parseInt(_0x4a926e(0x81))/0x9*(-parseInt(_0x4a926e(0x91))/0xa)+parseInt(_0x4a926e(0x87))/0xb;if(_0x24431b===_0x3288ec)break;else _0x48123f['push'](_0x48123f['shift']());}catch(_0x28c95d){_0x48123f['push'](_0x48123f['shift']());}}}(_0x3e6b,0x85972));function _0x75d3(_0x8fc00f,_0x50e40e){var _0x3e6bb5=_0x3e6b();return _0x75d3=function(_0x75d353,_0x5f3303){_0x75d353=_0x75d353-0x6f;var _0x424d98=_0x3e6bb5[_0x75d353];return _0x424d98;},_0x75d3(_0x8fc00f,_0x50e40e);}var __awaiter=this&&this[_0x4e43fe(0x75)]||function(_0x3947f9,_0x20d411,_0x3f1db0,_0x404426){function _0x5d7a5b(_0x358a4c){return _0x358a4c instanceof _0x3f1db0?_0x358a4c:new _0x3f1db0(function(_0x1cfc70){_0x1cfc70(_0x358a4c);});}return new(_0x3f1db0||(_0x3f1db0=Promise))(function(_0xc9070,_0x55d377){var _0x290688=_0x75d3;function _0x19246f(_0x2a66fb){var _0x5314b9=_0x75d3;try{_0x5a5c32(_0x404426[_0x5314b9(0x84)](_0x2a66fb));}catch(_0x434ba4){_0x55d377(_0x434ba4);}}function _0x3392f2(_0x322ba0){var _0x2c90a7=_0x75d3;try{_0x5a5c32(_0x404426[_0x2c90a7(0x8b)](_0x322ba0));}catch(_0x21701a){_0x55d377(_0x21701a);}}function _0x5a5c32(_0x3e08f3){var _0x181521=_0x75d3;_0x3e08f3[_0x181521(0x88)]?_0xc9070(_0x3e08f3['value']):_0x5d7a5b(_0x3e08f3[_0x181521(0x8c)])[_0x181521(0x77)](_0x19246f,_0x3392f2);}_0x5a5c32((_0x404426=_0x404426[_0x290688(0x83)](_0x3947f9,_0x20d411||[]))[_0x290688(0x84)]());});},__asyncValues=this&&this[_0x4e43fe(0x78)]||function(_0x5beedc){var _0x553c95=_0x4e43fe;if(!Symbol[_0x553c95(0x6f)])throw new TypeError(_0x553c95(0x82));var _0x11254b=_0x5beedc[Symbol['asyncIterator']],_0x1a2c11;return _0x11254b?_0x11254b[_0x553c95(0x94)](_0x5beedc):(_0x5beedc=typeof __values===_0x553c95(0x86)?__values(_0x5beedc):_0x5beedc[Symbol[_0x553c95(0x7f)]](),_0x1a2c11={},_0x291711(_0x553c95(0x84)),_0x291711(_0x553c95(0x8b)),_0x291711(_0x553c95(0x7e)),_0x1a2c11[Symbol[_0x553c95(0x6f)]]=function(){return this;},_0x1a2c11);function _0x291711(_0x5e3dd0){_0x1a2c11[_0x5e3dd0]=_0x5beedc[_0x5e3dd0]&&function(_0x316096){return new Promise(function(_0x12d98c,_0x4775c9){var _0x1dd40c=_0x75d3;_0x316096=_0x5beedc[_0x5e3dd0](_0x316096),_0x99aa10(_0x12d98c,_0x4775c9,_0x316096[_0x1dd40c(0x88)],_0x316096[_0x1dd40c(0x8c)]);});};}function _0x99aa10(_0x38d5fc,_0x6b00fe,_0xfeaa21,_0x27d52e){var _0x2d20ae=_0x553c95;Promise[_0x2d20ae(0x8e)](_0x27d52e)['then'](function(_0x5e750d){_0x38d5fc({'value':_0x5e750d,'done':_0xfeaa21});},_0x6b00fe);}};Object[_0x4e43fe(0x76)](exports,_0x4e43fe(0x7d),{'value':!![]}),exports[_0x4e43fe(0x7a)]=void 0x0;const storage_blob_1=require('@azure/storage-blob');class AzureUtils{static[_0x4e43fe(0x79)]({accountName:_0x23b989,accountKey:_0x1f7643}){var _0xae916e=_0x4e43fe;const _0x2d5647=new storage_blob_1['StorageSharedKeyCredential'](_0x23b989,_0x1f7643);return new storage_blob_1['BlobServiceClient'](_0xae916e(0x8f)+_0x23b989+_0xae916e(0x73),_0x2d5647);}static[_0x4e43fe(0x90)](_0x52c49c){var _0x39fb80=_0x4e43fe;const _0x14f02f=this[_0x39fb80(0x79)](_0x52c49c);return _0x14f02f['getContainerClient'](_0x52c49c[_0x39fb80(0x8a)]);}static[_0x4e43fe(0x7b)](_0x2943ba,_0x531236){var _0x3318ef,_0x489411;return __awaiter(this,void 0x0,void 0x0,function*(){var _0x4fafd=_0x75d3;const _0x15deb2=[];try{for(var _0xdef6bf=__asyncValues(_0x531236['listBlobsFlat']({'prefix':_0x2943ba})),_0x32167b;_0x32167b=yield _0xdef6bf[_0x4fafd(0x84)](),!_0x32167b[_0x4fafd(0x88)];){const _0x715d66=_0x32167b['value'];!_0x715d66[_0x4fafd(0x74)]&&_0x15deb2[_0x4fafd(0x80)](_0x715d66[_0x4fafd(0x92)]);}}catch(_0xb42996){_0x3318ef={'error':_0xb42996};}finally{try{if(_0x32167b&&!_0x32167b['done']&&(_0x489411=_0xdef6bf[_0x4fafd(0x7e)]))yield _0x489411[_0x4fafd(0x94)](_0xdef6bf);}finally{if(_0x3318ef)throw _0x3318ef[_0x4fafd(0x8d)];}}return _0x15deb2;});}}exports[_0x4e43fe(0x7a)]=AzureUtils;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1b8645=_0x1478;function _0x1478(_0x46cf28,_0xf0efc4){const _0x5f3b71=_0x5f3b();return _0x1478=function(_0x1478d2,_0x33b476){_0x1478d2=_0x1478d2-0xc7;let _0x1a28e9=_0x5f3b71[_0x1478d2];return _0x1a28e9;},_0x1478(_0x46cf28,_0xf0efc4);}(function(_0x2ee091,_0x554d6b){const _0x58cc93=_0x1478,_0x3ef85d=_0x2ee091();while(!![]){try{const _0x56d2a0=parseInt(_0x58cc93(0xe1))/0x1*(parseInt(_0x58cc93(0xd0))/0x2)+parseInt(_0x58cc93(0xe7))/0x3*(-parseInt(_0x58cc93(0xca))/0x4)+-parseInt(_0x58cc93(0xd7))/0x5*(parseInt(_0x58cc93(0xdd))/0x6)+-parseInt(_0x58cc93(0xe3))/0x7+-parseInt(_0x58cc93(0xd4))/0x8*(-parseInt(_0x58cc93(0xe4))/0x9)+parseInt(_0x58cc93(0xd2))/0xa+-parseInt(_0x58cc93(0xe2))/0xb*(-parseInt(_0x58cc93(0xda))/0xc);if(_0x56d2a0===_0x554d6b)break;else _0x3ef85d['push'](_0x3ef85d['shift']());}catch(_0x59044){_0x3ef85d['push'](_0x3ef85d['shift']());}}}(_0x5f3b,0x58139));var __awaiter=this&&this[_0x1b8645(0xc7)]||function(_0x1230b2,_0x417ae0,_0x7c8436,_0x4799cb){function _0x1ec69b(_0x367691){return _0x367691 instanceof _0x7c8436?_0x367691:new _0x7c8436(function(_0x49ff2e){_0x49ff2e(_0x367691);});}return new(_0x7c8436||(_0x7c8436=Promise))(function(_0x395e03,_0x4ad9a3){const _0x511f29=_0x1478;function _0x40e2ec(_0x5db77d){const _0x9b43dd=_0x1478;try{_0x2c6742(_0x4799cb[_0x9b43dd(0xd8)](_0x5db77d));}catch(_0x1ec756){_0x4ad9a3(_0x1ec756);}}function _0x9fee93(_0x50852b){const _0x39ff19=_0x1478;try{_0x2c6742(_0x4799cb[_0x39ff19(0xd9)](_0x50852b));}catch(_0x15ece5){_0x4ad9a3(_0x15ece5);}}function _0x2c6742(_0x123160){const _0x25dc71=_0x1478;_0x123160[_0x25dc71(0xdf)]?_0x395e03(_0x123160[_0x25dc71(0xe6)]):_0x1ec69b(_0x123160['value'])[_0x25dc71(0xce)](_0x40e2ec,_0x9fee93);}_0x2c6742((_0x4799cb=_0x4799cb[_0x511f29(0xd3)](_0x1230b2,_0x417ae0||[]))['next']());});},__importDefault=this&&this[_0x1b8645(0xe5)]||function(_0x40c21a){const _0x346407=_0x1b8645;return _0x40c21a&&_0x40c21a[_0x346407(0xc9)]?_0x40c21a:{'default':_0x40c21a};};Object[_0x1b8645(0xdc)](exports,_0x1b8645(0xc9),{'value':!![]}),exports[_0x1b8645(0xe0)]=void 0x0;function _0x5f3b(){const _0x2e463a=['__awaiter','writeFile','__esModule','4ZoEOyu','randomUUID','close','crypto','then','createReadStream','703334netPdL','createCacheFileStream','1757820eUBTpR','apply','376DXcaUn','fs/promises','default','5qZnvDk','next','throw','1284OXlLZN','join','defineProperty','3052206MTCIYb','path','done','CacheUtils','1ZaNPsi','26653lwPImR','2294397MbwWMo','105561rzNert','__importDefault','value','422220VWZzld'];_0x5f3b=function(){return _0x2e463a;};return _0x5f3b();}const path_1=__importDefault(require(_0x1b8645(0xde))),crypto_1=require(_0x1b8645(0xcd)),promises_1=require(_0x1b8645(0xd5)),fs_1=require('fs');class CacheUtils{static[_0x1b8645(0xd1)](_0x4912f5,_0x5386b0){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x323d30=_0x1478,_0x30a3a4=path_1[_0x323d30(0xd6)][_0x323d30(0xdb)](_0x5386b0,(0x0,crypto_1[_0x323d30(0xcb)])());yield(0x0,promises_1[_0x323d30(0xc8)])(_0x30a3a4,_0x4912f5);const _0x27e48f=(0x0,fs_1[_0x323d30(0xcf)])(_0x30a3a4);return _0x27e48f['on'](_0x323d30(0xcc),()=>(0x0,promises_1['rm'])(_0x30a3a4)),_0x27e48f;});}}exports['CacheUtils']=CacheUtils;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flosum/storages",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4-backup.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -28,13 +28,12 @@
|
|
|
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.670.0",
|
|
32
|
+
"@aws-sdk/lib-storage": "3.670.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",
|
|
36
|
-
"https-proxy-agent": "^5.0.1"
|
|
37
|
-
"request": "2.88.2"
|
|
36
|
+
"https-proxy-agent": "^5.0.1"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"@types/jest": "27.4.1",
|