@cyberskill/shared 1.20.0 → 1.22.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 (71) hide show
  1. package/dist/commands.cjs +1 -1
  2. package/dist/commands.js +1 -1
  3. package/dist/configs/index.cjs +1 -1
  4. package/dist/configs/index.js +1 -1
  5. package/dist/controllers/index.cjs +1 -1
  6. package/dist/controllers/index.d.cts +1 -1
  7. package/dist/controllers/index.d.ts +1 -1
  8. package/dist/controllers/index.js +1 -1
  9. package/dist/controllers/mongo-migration.cjs +1 -0
  10. package/dist/controllers/mongo-migration.js +1 -0
  11. package/dist/controllers/mongoose.cjs +1 -1
  12. package/dist/controllers/mongoose.js +1 -1
  13. package/dist/hooks/react/index.cjs +1 -1
  14. package/dist/hooks/react/index.js +1 -1
  15. package/dist/hooks/react/use-storage.cjs +1 -1
  16. package/dist/hooks/react/use-storage.js +1 -1
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.d.cts +8 -8
  19. package/dist/index.d.ts +8 -8
  20. package/dist/index.js +1 -1
  21. package/dist/typescript/command.cjs +1 -1
  22. package/dist/typescript/command.d.cts +8 -12
  23. package/dist/typescript/command.d.ts +8 -12
  24. package/dist/typescript/command.js +1 -1
  25. package/dist/typescript/index.cjs +1 -1
  26. package/dist/typescript/index.d.cts +1 -1
  27. package/dist/typescript/index.d.ts +1 -1
  28. package/dist/typescript/index.js +1 -1
  29. package/dist/typescript/mongoose.cjs +1 -1
  30. package/dist/typescript/mongoose.js +1 -1
  31. package/dist/utils/command.cjs +1 -1
  32. package/dist/utils/command.d.cts +14 -1
  33. package/dist/utils/command.d.ts +14 -1
  34. package/dist/utils/command.js +1 -1
  35. package/dist/utils/config.cjs +1 -0
  36. package/dist/utils/config.d.cts +5 -0
  37. package/dist/utils/config.d.ts +5 -0
  38. package/dist/utils/config.js +1 -0
  39. package/dist/utils/datetime.cjs +1 -0
  40. package/dist/utils/datetime.d.cts +3 -0
  41. package/dist/utils/datetime.d.ts +3 -0
  42. package/dist/utils/datetime.js +1 -0
  43. package/dist/utils/fs.cjs +1 -0
  44. package/dist/utils/fs.d.cts +3 -0
  45. package/dist/utils/fs.d.ts +3 -0
  46. package/dist/utils/fs.js +1 -0
  47. package/dist/utils/index.cjs +1 -1
  48. package/dist/utils/index.d.cts +7 -8
  49. package/dist/utils/index.d.ts +7 -8
  50. package/dist/utils/index.js +1 -1
  51. package/dist/utils/log.cjs +1 -1
  52. package/dist/utils/log.js +1 -1
  53. package/dist/utils/mongoose.cjs +1 -1
  54. package/dist/utils/mongoose.d.cts +7 -1
  55. package/dist/utils/mongoose.d.ts +7 -1
  56. package/dist/utils/mongoose.js +1 -1
  57. package/dist/utils/npm-package.cjs +1 -1
  58. package/dist/utils/npm-package.js +1 -1
  59. package/package.json +4 -3
  60. package/dist/controllers/migration.cjs +0 -1
  61. package/dist/controllers/migration.js +0 -1
  62. package/dist/utils/command-error.cjs +0 -1
  63. package/dist/utils/command-error.d.cts +0 -18
  64. package/dist/utils/command-error.d.ts +0 -18
  65. package/dist/utils/command-error.js +0 -1
  66. package/dist/utils/command-log.cjs +0 -1
  67. package/dist/utils/command-log.d.cts +0 -17
  68. package/dist/utils/command-log.d.ts +0 -17
  69. package/dist/utils/command-log.js +0 -1
  70. /package/dist/controllers/{migration.d.cts → mongo-migration.d.cts} +0 -0
  71. /package/dist/controllers/{migration.d.ts → mongo-migration.d.ts} +0 -0
@@ -1 +1 @@
1
- "use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var n=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var o=function(e,t){for(var r in t)n(e,r,{get:t[r],enumerable:!0})},u=function(o,u,a,s){var f=true,c=false,l=undefined;if(u&&(typeof u==="undefined"?"undefined":e(u))=="object"||typeof u=="function")try{var p=function(){var e=y.value;!i.call(o,e)&&e!==a&&n(o,e,{get:function(){return u[e]},enumerable:!(s=t(u,e))||s.enumerable})};for(var g=r(u)[Symbol.iterator](),y;!(f=(y=g.next()).done);f=true)p()}catch(e){c=true;l=e}finally{try{if(!f&&g.return!=null){g.return()}}finally{if(c){throw l}}}return o};var a=function(e){return u(n({},"__esModule",{value:!0}),e)};var s={};o(s,{E_ErrorType:function(){return c},E_SpinnerMessage:function(){return f}});module.exports=a(s);var f=function(e){return e.LintCheck="Running lint checks...",e.LintFix="Fixing issues...",e.LintStaged="Running lint-staged...",e.CommitLint="Running commitlint...",e.GitHook="Setting up git hook...",e.Setup="Setting up...",e.Reset="Resetting...",e.UnitTest="Running unit tests...",e.E2ETest="Running end-to-end tests...",e}(f||{}),c=function(e){return e.Error="error",e.Warning="warning",e}(c||{});0&&(module.exports={E_ErrorType:E_ErrorType,E_SpinnerMessage:E_SpinnerMessage});
1
+ "use strict";function r(r){"@swc/helpers - typeof";return r&&typeof Symbol!=="undefined"&&r.constructor===Symbol?"symbol":typeof r}var e=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var u=function(r,t){for(var n in t)e(r,n,{get:t[n],enumerable:!0})},a=function(u,a,f,i){var c=true,l=false,y=undefined;if(a&&(typeof a==="undefined"?"undefined":r(a))=="object"||typeof a=="function")try{var p=function(){var r=d.value;!o.call(u,r)&&r!==f&&e(u,r,{get:function(){return a[r]},enumerable:!(i=t(a,r))||i.enumerable})};for(var v=n(a)[Symbol.iterator](),d;!(c=(d=v.next()).done);c=true)p()}catch(r){l=true;y=r}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(l){throw y}}}return u};var f=function(r){return a(e({},"__esModule",{value:!0}),r)};var i={};u(i,{E_ErrorType:function(){return c}});module.exports=f(i);var c=function(r){return r.Error="error",r.Warning="warning",r}(c||{});0&&(module.exports={E_ErrorType:E_ErrorType});
@@ -1,14 +1,3 @@
1
- declare enum E_SpinnerMessage {
2
- LintCheck = "Running lint checks...",
3
- LintFix = "Fixing issues...",
4
- LintStaged = "Running lint-staged...",
5
- CommitLint = "Running commitlint...",
6
- GitHook = "Setting up git hook...",
7
- Setup = "Setting up...",
8
- Reset = "Resetting...",
9
- UnitTest = "Running unit tests...",
10
- E2ETest = "Running end-to-end tests..."
11
- }
12
1
  declare enum E_ErrorType {
13
2
  Error = "error",
14
3
  Warning = "warning"
@@ -30,5 +19,12 @@ interface I_EslintError {
30
19
  ruleId: string;
31
20
  }>;
32
21
  }
22
+ interface I_BoxedLogOptions {
23
+ color?: string;
24
+ padding?: number;
25
+ margin?: number;
26
+ borderStyle?: 'round' | 'single' | 'double' | 'bold';
27
+ titleColor?: string;
28
+ }
33
29
 
34
- export { E_ErrorType, E_SpinnerMessage, type I_ErrorEntry, type I_EslintError };
30
+ export { E_ErrorType, type I_BoxedLogOptions, type I_ErrorEntry, type I_EslintError };
@@ -1,14 +1,3 @@
1
- declare enum E_SpinnerMessage {
2
- LintCheck = "Running lint checks...",
3
- LintFix = "Fixing issues...",
4
- LintStaged = "Running lint-staged...",
5
- CommitLint = "Running commitlint...",
6
- GitHook = "Setting up git hook...",
7
- Setup = "Setting up...",
8
- Reset = "Resetting...",
9
- UnitTest = "Running unit tests...",
10
- E2ETest = "Running end-to-end tests..."
11
- }
12
1
  declare enum E_ErrorType {
13
2
  Error = "error",
14
3
  Warning = "warning"
@@ -30,5 +19,12 @@ interface I_EslintError {
30
19
  ruleId: string;
31
20
  }>;
32
21
  }
22
+ interface I_BoxedLogOptions {
23
+ color?: string;
24
+ padding?: number;
25
+ margin?: number;
26
+ borderStyle?: 'round' | 'single' | 'double' | 'bold';
27
+ titleColor?: string;
28
+ }
33
29
 
34
- export { E_ErrorType, E_SpinnerMessage, type I_ErrorEntry, type I_EslintError };
30
+ export { E_ErrorType, type I_BoxedLogOptions, type I_ErrorEntry, type I_EslintError };
@@ -1 +1 @@
1
- var n=function(n){return n.LintCheck="Running lint checks...",n.LintFix="Fixing issues...",n.LintStaged="Running lint-staged...",n.CommitLint="Running commitlint...",n.GitHook="Setting up git hook...",n.Setup="Setting up...",n.Reset="Resetting...",n.UnitTest="Running unit tests...",n.E2ETest="Running end-to-end tests...",n}(n||{}),t=function(n){return n.Error="error",n.Warning="warning",n}(t||{});export{t as E_ErrorType,n as E_SpinnerMessage};
1
+ var r=function(r){return r.Error="error",r.Warning="warning",r}(r||{});export{r as E_ErrorType};