@flosum/storages 1.3.2 → 1.3.3-beta.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.
Files changed (49) hide show
  1. package/dist/credentials/aws-s3-credentials.js +1 -1
  2. package/dist/credentials/azure-credentials.js +1 -1
  3. package/dist/credentials/base-credentials.js +1 -1
  4. package/dist/credentials/index.js +1 -1
  5. package/dist/credentials/local-credentials.js +1 -1
  6. package/dist/delete/aws-s3-delete.js +1 -1
  7. package/dist/delete/azure-delete.js +1 -1
  8. package/dist/delete/base-delete.js +1 -1
  9. package/dist/delete/index.js +1 -1
  10. package/dist/delete/local-delete.js +1 -1
  11. package/dist/deploy/aws-s3-deploy.js +1 -1
  12. package/dist/deploy/azure-deploy.js +1 -1
  13. package/dist/deploy/base-deploy.js +1 -1
  14. package/dist/deploy/index.js +1 -1
  15. package/dist/deploy/local-deploy.js +1 -1
  16. package/dist/factory.d.ts +2 -1
  17. package/dist/factory.js +1 -1
  18. package/dist/file-size-retriever/aws-s3-file-size-retriever.js +1 -1
  19. package/dist/file-size-retriever/azure-file-size-retriever.js +1 -1
  20. package/dist/file-size-retriever/base-file-size-retriever.js +1 -1
  21. package/dist/file-size-retriever/index.js +1 -1
  22. package/dist/file-size-retriever/local-size-retriever.js +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/init.js +1 -1
  25. package/dist/retrieve/aws-s3-import-helper.js +1 -1
  26. package/dist/retrieve/aws-s3-retrieve.js +1 -1
  27. package/dist/retrieve/azure-retrieve.js +1 -1
  28. package/dist/retrieve/base-retrieve.js +1 -1
  29. package/dist/retrieve/helpers/aws-s3-helper.d.ts +20 -0
  30. package/dist/retrieve/helpers/aws-s3-helper.js +1 -0
  31. package/dist/retrieve/helpers/azure-helper.d.ts +10 -0
  32. package/dist/retrieve/helpers/azure-helper.js +1 -0
  33. package/dist/retrieve/helpers/base-helper.d.ts +7 -0
  34. package/dist/retrieve/helpers/base-helper.js +1 -0
  35. package/dist/retrieve/helpers/local-helper.d.ts +6 -0
  36. package/dist/retrieve/helpers/local-helper.js +1 -0
  37. package/dist/retrieve/index.d.ts +4 -0
  38. package/dist/retrieve/index.js +1 -1
  39. package/dist/retrieve/local-retrieve.js +1 -1
  40. package/dist/types/aws.types.js +1 -1
  41. package/dist/types/azure.types.js +1 -1
  42. package/dist/types/index.js +1 -1
  43. package/dist/types/internal.types.js +1 -1
  44. package/dist/types/retrieve-status.enum.js +1 -1
  45. package/dist/types/storage-type.enum.js +1 -1
  46. package/dist/utils/aws-s3.utils.js +1 -1
  47. package/dist/utils/azure.utils.js +1 -1
  48. package/dist/utils/cache.utils.js +1 -1
  49. package/package.json +3 -1
@@ -1 +1 @@
1
- 'use strict';function _0x5c30(_0x502c39,_0x225251){const _0x33844e=_0x3384();return _0x5c30=function(_0x5c30e7,_0x329048){_0x5c30e7=_0x5c30e7-0x81;let _0x5ced66=_0x33844e[_0x5c30e7];return _0x5ced66;},_0x5c30(_0x502c39,_0x225251);}const _0x334cc8=_0x5c30;(function(_0x22043b,_0x1e6476){const _0x26993c=_0x5c30,_0x4af4b5=_0x22043b();while(!![]){try{const _0x48e5a3=parseInt(_0x26993c(0x81))/0x1+-parseInt(_0x26993c(0x8d))/0x2*(parseInt(_0x26993c(0x94))/0x3)+parseInt(_0x26993c(0x9a))/0x4*(parseInt(_0x26993c(0x87))/0x5)+-parseInt(_0x26993c(0x98))/0x6*(-parseInt(_0x26993c(0x89))/0x7)+-parseInt(_0x26993c(0x82))/0x8*(parseInt(_0x26993c(0x85))/0x9)+-parseInt(_0x26993c(0x91))/0xa*(-parseInt(_0x26993c(0x90))/0xb)+parseInt(_0x26993c(0x8b))/0xc*(parseInt(_0x26993c(0x96))/0xd);if(_0x48e5a3===_0x1e6476)break;else _0x4af4b5['push'](_0x4af4b5['shift']());}catch(_0x1c5e4d){_0x4af4b5['push'](_0x4af4b5['shift']());}}}(_0x3384,0x827c6));var __awaiter=this&&this[_0x334cc8(0x83)]||function(_0x24cadb,_0x1dfa56,_0x2b4e24,_0x215c8c){function _0x1398ca(_0x42c79d){return _0x42c79d instanceof _0x2b4e24?_0x42c79d:new _0x2b4e24(function(_0x531f2b){_0x531f2b(_0x42c79d);});}return new(_0x2b4e24||(_0x2b4e24=Promise))(function(_0x45c27b,_0x4ccdb1){const _0x59f0c5=_0x5c30;function _0x2f38ca(_0x819599){const _0x4784f3=_0x5c30;try{_0x437fdc(_0x215c8c[_0x4784f3(0x95)](_0x819599));}catch(_0x4e7a04){_0x4ccdb1(_0x4e7a04);}}function _0x55962b(_0x1170a2){const _0x4c46cf=_0x5c30;try{_0x437fdc(_0x215c8c[_0x4c46cf(0x8e)](_0x1170a2));}catch(_0x3f59ae){_0x4ccdb1(_0x3f59ae);}}function _0x437fdc(_0x191b5c){const _0x5ce9d9=_0x5c30;_0x191b5c[_0x5ce9d9(0x8a)]?_0x45c27b(_0x191b5c[_0x5ce9d9(0x9b)]):_0x1398ca(_0x191b5c[_0x5ce9d9(0x9b)])['then'](_0x2f38ca,_0x55962b);}_0x437fdc((_0x215c8c=_0x215c8c[_0x59f0c5(0x92)](_0x24cadb,_0x1dfa56||[]))['next']());});},__importDefault=this&&this[_0x334cc8(0x9d)]||function(_0x19b364){const _0x17b1cf=_0x334cc8;return _0x19b364&&_0x19b364[_0x17b1cf(0x88)]?_0x19b364:{'default':_0x19b364};};Object[_0x334cc8(0x97)](exports,_0x334cc8(0x88),{'value':!![]}),exports[_0x334cc8(0x9c)]=void 0x0;function _0x3384(){const _0x35d762=['next','78GJoyhg','defineProperty','24FwfEnf','createReadStream','251164XjuGtY','value','CacheUtils','__importDefault','fs/promises','299934WTCLoa','8dZuzqA','__awaiter','randomUUID','8030691AWCtJw','path','15pnhcPo','__esModule','1118537MWNUrs','done','341736KuuaXv','close','687490kjNqag','throw','crypto','6160htVkUK','14570qLUfnU','apply','default','6vSiapd'];_0x3384=function(){return _0x35d762;};return _0x3384();}const path_1=__importDefault(require(_0x334cc8(0x86))),crypto_1=require(_0x334cc8(0x8f)),promises_1=require(_0x334cc8(0x9e)),fs_1=require('fs');class CacheUtils{static['createCacheFileStream'](_0x13ecb7,_0x47d45e){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3a0ad2=_0x5c30,_0x13cb99=path_1[_0x3a0ad2(0x93)]['join'](_0x47d45e,(0x0,crypto_1[_0x3a0ad2(0x84)])());yield(0x0,promises_1['writeFile'])(_0x13cb99,_0x13ecb7);const _0x398686=(0x0,fs_1[_0x3a0ad2(0x99)])(_0x13cb99);return _0x398686['on'](_0x3a0ad2(0x8c),()=>(0x0,promises_1['rm'])(_0x13cb99)),_0x398686;});}}exports['CacheUtils']=CacheUtils;
1
+ 'use strict';const _0xd83693=_0x35c1;(function(_0x17055f,_0x140fea){const _0x5ec8ee=_0x35c1,_0x1586d4=_0x17055f();while(!![]){try{const _0x2cff11=-parseInt(_0x5ec8ee(0x85))/0x1*(parseInt(_0x5ec8ee(0x90))/0x2)+-parseInt(_0x5ec8ee(0x7f))/0x3*(-parseInt(_0x5ec8ee(0x79))/0x4)+parseInt(_0x5ec8ee(0x7e))/0x5*(parseInt(_0x5ec8ee(0x89))/0x6)+-parseInt(_0x5ec8ee(0x7d))/0x7*(parseInt(_0x5ec8ee(0x81))/0x8)+parseInt(_0x5ec8ee(0x88))/0x9+parseInt(_0x5ec8ee(0x8f))/0xa+parseInt(_0x5ec8ee(0x8b))/0xb;if(_0x2cff11===_0x140fea)break;else _0x1586d4['push'](_0x1586d4['shift']());}catch(_0x77e302){_0x1586d4['push'](_0x1586d4['shift']());}}}(_0x1f40,0xa3af1));function _0x1f40(){const _0x2d9c9d=['9179786BflvKM','value','done','writeFile','2992990XTxZKv','74934reKxYE','104WLUCpG','createCacheFileStream','fs/promises','__awaiter','7OZcJuQ','3518705cZivYP','30081xEfwkF','throw','7948712vetebJ','next','createReadStream','randomUUID','21XoXbSG','path','close','3173193lzWqWj','6GkTWGd','default'];_0x1f40=function(){return _0x2d9c9d;};return _0x1f40();}var __awaiter=this&&this[_0xd83693(0x7c)]||function(_0x1629f8,_0x1829a0,_0x398b3e,_0xfdac01){function _0x5a94a1(_0x2ffb0a){return _0x2ffb0a instanceof _0x398b3e?_0x2ffb0a:new _0x398b3e(function(_0x4a1a6d){_0x4a1a6d(_0x2ffb0a);});}return new(_0x398b3e||(_0x398b3e=Promise))(function(_0x248ca8,_0x4216e8){const _0x4febda=_0x35c1;function _0x2832b5(_0x2fd7d4){const _0x52526a=_0x35c1;try{_0x5cd48b(_0xfdac01[_0x52526a(0x82)](_0x2fd7d4));}catch(_0x190f04){_0x4216e8(_0x190f04);}}function _0x28a1ea(_0x67444){const _0x5c0edc=_0x35c1;try{_0x5cd48b(_0xfdac01[_0x5c0edc(0x80)](_0x67444));}catch(_0x53c3bc){_0x4216e8(_0x53c3bc);}}function _0x5cd48b(_0xfb2b1c){const _0x4e29d4=_0x35c1;_0xfb2b1c[_0x4e29d4(0x8d)]?_0x248ca8(_0xfb2b1c[_0x4e29d4(0x8c)]):_0x5a94a1(_0xfb2b1c[_0x4e29d4(0x8c)])['then'](_0x2832b5,_0x28a1ea);}_0x5cd48b((_0xfdac01=_0xfdac01['apply'](_0x1629f8,_0x1829a0||[]))[_0x4febda(0x82)]());});},__importDefault=this&&this['__importDefault']||function(_0x1a57fc){return _0x1a57fc&&_0x1a57fc['__esModule']?_0x1a57fc:{'default':_0x1a57fc};};function _0x35c1(_0x538fec,_0x594a7d){const _0x1f40c8=_0x1f40();return _0x35c1=function(_0x35c1c4,_0x12bd92){_0x35c1c4=_0x35c1c4-0x79;let _0x37c5fa=_0x1f40c8[_0x35c1c4];return _0x37c5fa;},_0x35c1(_0x538fec,_0x594a7d);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['CacheUtils']=void 0x0;const path_1=__importDefault(require(_0xd83693(0x86))),crypto_1=require('crypto'),promises_1=require(_0xd83693(0x7b)),fs_1=require('fs');class CacheUtils{static[_0xd83693(0x7a)](_0x4b4a99,_0x38a101){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x495267=_0x35c1,_0x8cc977=path_1[_0x495267(0x8a)]['join'](_0x38a101,(0x0,crypto_1[_0x495267(0x84)])());yield(0x0,promises_1[_0x495267(0x8e)])(_0x8cc977,_0x4b4a99);const _0x41c6e3=(0x0,fs_1[_0x495267(0x83)])(_0x8cc977);return _0x41c6e3['on'](_0x495267(0x87),()=>(0x0,promises_1['rm'])(_0x8cc977)),_0x41c6e3;});}}exports['CacheUtils']=CacheUtils;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flosum/storages",
3
- "version": "1.3.2",
3
+ "version": "1.3.3-beta.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -38,6 +38,7 @@
38
38
  "devDependencies": {
39
39
  "@types/jest": "27.4.1",
40
40
  "@types/node": "18.14.6",
41
+ "@types/request": "2.48.12",
41
42
  "@types/unzipper": "^0.10.10",
42
43
  "@typescript-eslint/eslint-plugin": "5.30.5",
43
44
  "@typescript-eslint/parser": "5.30.5",
@@ -55,6 +56,7 @@
55
56
  "lint-staged": "11.1.2",
56
57
  "merge2": "1.4.1",
57
58
  "prettier": "2.2.1",
59
+ "request": "2.88.0",
58
60
  "ts-jest": "29.1.1",
59
61
  "ts-node": "10.8.2",
60
62
  "typescript": "4.7.4",