@cyberskill/shared 1.47.0 → 1.49.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 (133) hide show
  1. package/dist/_tsup-dts-rollup.d.cts +415 -30
  2. package/dist/_tsup-dts-rollup.d.ts +415 -30
  3. package/dist/cli.cjs +2144 -1
  4. package/dist/cli.d.cts +2 -1
  5. package/dist/cli.d.ts +2 -1
  6. package/dist/cli.js +2064 -1
  7. package/dist/configs/commitlint/base.cjs +64 -1
  8. package/dist/configs/commitlint/base.js +7 -1
  9. package/dist/configs/eslint/base.cjs +121 -1
  10. package/dist/configs/eslint/base.js +52 -1
  11. package/dist/configs/eslint/nestjs.cjs +155 -1
  12. package/dist/configs/eslint/nestjs.js +85 -1
  13. package/dist/configs/eslint/nextjs.cjs +155 -1
  14. package/dist/configs/eslint/nextjs.js +85 -1
  15. package/dist/configs/eslint/nodejs.cjs +156 -1
  16. package/dist/configs/eslint/nodejs.js +86 -1
  17. package/dist/configs/eslint/vite-react.cjs +159 -1
  18. package/dist/configs/eslint/vite-react.js +89 -1
  19. package/dist/configs/graphql/graphql-codegen.cjs +125 -1
  20. package/dist/configs/graphql/graphql-codegen.js +64 -1
  21. package/dist/configs/graphql/index.cjs +126 -1
  22. package/dist/configs/graphql/index.js +64 -1
  23. package/dist/configs/i18n/react/i18next.cjs +80 -1
  24. package/dist/configs/i18n/react/i18next.js +7 -1
  25. package/dist/configs/i18n/react/index.cjs +81 -1
  26. package/dist/configs/i18n/react/index.js +7 -1
  27. package/dist/configs/index.cjs +232 -1
  28. package/dist/configs/index.js +166 -1
  29. package/dist/configs/lint-staged/base.cjs +64 -1
  30. package/dist/configs/lint-staged/base.js +7 -1
  31. package/dist/configs/vitest/react/e2e.cjs +128 -1
  32. package/dist/configs/vitest/react/e2e.js +59 -1
  33. package/dist/configs/vitest/react/unit.cjs +305 -1
  34. package/dist/configs/vitest/react/unit.js +228 -1
  35. package/dist/configs/vitest/react/unit.setup.cjs +60 -1
  36. package/dist/configs/vitest/react/unit.setup.js +8 -1
  37. package/dist/constants/index.cjs +678 -1
  38. package/dist/constants/index.d.cts +31 -1
  39. package/dist/constants/index.d.ts +31 -1
  40. package/dist/constants/index.js +469 -1
  41. package/dist/constants/path.cjs +423 -1
  42. package/dist/constants/path.d.cts +31 -1
  43. package/dist/constants/path.d.ts +31 -1
  44. package/dist/constants/path.js +218 -1
  45. package/dist/constants/response-status.cjs +313 -1
  46. package/dist/constants/response-status.js +252 -1
  47. package/dist/index.cjs +4560 -1
  48. package/dist/index.d.cts +52 -7
  49. package/dist/index.d.ts +52 -7
  50. package/dist/index.js +4143 -1
  51. package/dist/nodejs/index.cjs +2138 -1
  52. package/dist/nodejs/index.js +2054 -1
  53. package/dist/nodejs/mongo.cjs +2137 -1
  54. package/dist/nodejs/mongo.js +2054 -1
  55. package/dist/react/apollo-client.cjs +177 -1
  56. package/dist/react/apollo-client.js +116 -1
  57. package/dist/react/index.cjs +990 -1
  58. package/dist/react/index.js +876 -1
  59. package/dist/react/loading.cjs +301 -1
  60. package/dist/react/loading.js +216 -1
  61. package/dist/react/next-intl.cjs +744 -1
  62. package/dist/react/next-intl.js +655 -1
  63. package/dist/react/storage.cjs +631 -1
  64. package/dist/react/storage.js +558 -1
  65. package/dist/typescript/api-response.cjs +48 -1
  66. package/dist/typescript/apollo.cjs +48 -1
  67. package/dist/typescript/command.cjs +68 -1
  68. package/dist/typescript/command.d.cts +4 -0
  69. package/dist/typescript/command.d.ts +4 -0
  70. package/dist/typescript/command.js +7 -1
  71. package/dist/typescript/config.cjs +48 -1
  72. package/dist/typescript/fs.cjs +48 -0
  73. package/dist/typescript/fs.d.cts +1 -0
  74. package/dist/typescript/fs.d.ts +1 -0
  75. package/dist/typescript/fs.js +0 -0
  76. package/dist/typescript/graphql-codegen.cjs +48 -1
  77. package/dist/typescript/index.cjs +175 -1
  78. package/dist/typescript/index.d.cts +5 -0
  79. package/dist/typescript/index.d.ts +5 -0
  80. package/dist/typescript/index.js +151 -1
  81. package/dist/typescript/loading.cjs +48 -1
  82. package/dist/typescript/log.cjs +48 -1
  83. package/dist/typescript/mongo.cjs +164 -1
  84. package/dist/typescript/mongo.js +145 -1
  85. package/dist/typescript/next-intl.cjs +48 -1
  86. package/dist/typescript/react.cjs +48 -1
  87. package/dist/typescript/serializer.cjs +48 -1
  88. package/dist/typescript/string.cjs +48 -1
  89. package/dist/utils/command.cjs +1387 -1
  90. package/dist/utils/command.d.cts +2 -0
  91. package/dist/utils/command.d.ts +2 -0
  92. package/dist/utils/command.js +1287 -1
  93. package/dist/utils/common.cjs +300 -1
  94. package/dist/utils/common.js +219 -1
  95. package/dist/utils/config.cjs +146 -1
  96. package/dist/utils/config.js +89 -1
  97. package/dist/utils/fs.cjs +132 -1
  98. package/dist/utils/fs.d.cts +5 -1
  99. package/dist/utils/fs.d.ts +5 -1
  100. package/dist/utils/fs.js +47 -1
  101. package/dist/utils/index-nodejs.cjs +1752 -1
  102. package/dist/utils/index-nodejs.d.cts +16 -6
  103. package/dist/utils/index-nodejs.d.ts +16 -6
  104. package/dist/utils/index-nodejs.js +1581 -1
  105. package/dist/utils/index.cjs +727 -1
  106. package/dist/utils/index.js +625 -1
  107. package/dist/utils/log.cjs +330 -1
  108. package/dist/utils/log.js +269 -1
  109. package/dist/utils/package.cjs +941 -0
  110. package/dist/utils/package.d.cts +3 -0
  111. package/dist/utils/package.d.ts +3 -0
  112. package/dist/utils/package.js +857 -0
  113. package/dist/utils/path.cjs +291 -0
  114. package/dist/utils/path.d.cts +6 -0
  115. package/dist/utils/path.d.ts +6 -0
  116. package/dist/utils/path.js +191 -0
  117. package/dist/utils/serializer.cjs +91 -1
  118. package/dist/utils/serializer.js +30 -1
  119. package/dist/utils/storage-client.cjs +349 -1
  120. package/dist/utils/storage-client.js +276 -1
  121. package/dist/utils/storage-server.cjs +636 -1
  122. package/dist/utils/storage-server.d.cts +1 -1
  123. package/dist/utils/storage-server.d.ts +1 -1
  124. package/dist/utils/storage-server.js +550 -1
  125. package/dist/utils/string.cjs +152 -1
  126. package/dist/utils/string.js +75 -1
  127. package/dist/utils/validate.cjs +90 -1
  128. package/dist/utils/validate.js +33 -1
  129. package/package.json +11 -12
  130. package/dist/utils/npm-package.cjs +0 -1
  131. package/dist/utils/npm-package.d.cts +0 -5
  132. package/dist/utils/npm-package.d.ts +0 -5
  133. package/dist/utils/npm-package.js +0 -1
@@ -1 +1,85 @@
1
- function r(r,t){if(t==null||t>r.length)t=r.length;for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function t(t){if(Array.isArray(t))return r(t)}function e(r,t,e){if(t in r){Object.defineProperty(r,t,{value:e,enumerable:true,configurable:true,writable:true})}else{r[t]=e}return r}function n(r){if(typeof Symbol!=="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var o=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))}o.forEach(function(t){e(r,t,n[t])})}return r}function i(r){return t(r)||n(r)||u(r)||o()}function u(t,e){if(!t)return;if(typeof t==="string")return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}import*as l from"globals";var f=[{languageOptions:{globals:a({},l.node,l.browser)},rules:{"no-console":"warn","no-debugger":"warn","no-alert":"warn","perfectionist/sort-imports":["error",{internalPattern:["^#.*","^@/.*"]}]}}];var c=i(f).concat([{ignores:[".next"]}]);export{c as default};
1
+ // src/configs/eslint/base.ts
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_without_holes(arr) {
8
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
9
+ }
10
+ function _define_property(obj, key, value) {
11
+ if (key in obj) {
12
+ Object.defineProperty(obj, key, {
13
+ value: value,
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true
17
+ });
18
+ } else {
19
+ obj[key] = value;
20
+ }
21
+ return obj;
22
+ }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
26
+ function _non_iterable_spread() {
27
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
28
+ }
29
+ function _object_spread(target) {
30
+ for(var i = 1; i < arguments.length; i++){
31
+ var source = arguments[i] != null ? arguments[i] : {};
32
+ var ownKeys = Object.keys(source);
33
+ if (typeof Object.getOwnPropertySymbols === "function") {
34
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
36
+ }));
37
+ }
38
+ ownKeys.forEach(function(key) {
39
+ _define_property(target, key, source[key]);
40
+ });
41
+ }
42
+ return target;
43
+ }
44
+ function _to_consumable_array(arr) {
45
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
46
+ }
47
+ function _unsupported_iterable_to_array(o, minLen) {
48
+ if (!o) return;
49
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
50
+ var n = Object.prototype.toString.call(o).slice(8, -1);
51
+ if (n === "Object" && o.constructor) n = o.constructor.name;
52
+ if (n === "Map" || n === "Set") return Array.from(n);
53
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
54
+ }
55
+ import * as globals from "globals";
56
+ var base_default = [
57
+ {
58
+ languageOptions: {
59
+ globals: _object_spread({}, globals.node, globals.browser)
60
+ },
61
+ rules: {
62
+ "no-console": "warn",
63
+ "no-debugger": "warn",
64
+ "no-alert": "warn",
65
+ "perfectionist/sort-imports": [
66
+ "error",
67
+ {
68
+ internalPattern: [
69
+ "^#.*",
70
+ "^@/.*"
71
+ ]
72
+ }
73
+ ]
74
+ }
75
+ }
76
+ ];
77
+ // src/configs/eslint/nextjs.ts
78
+ var nextjs_default = _to_consumable_array(base_default).concat([
79
+ {
80
+ ignores: [
81
+ ".next"
82
+ ]
83
+ }
84
+ ]);
85
+ export { nextjs_default as default };
@@ -1 +1,156 @@
1
- "use strict";function e(e,r){if(r==null||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function r(r){if(Array.isArray(r))return e(r)}function t(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function n(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};var o=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}o.forEach(function(r){t(e,r,n[r])})}return e}function a(e){return r(e)||n(e)||l(e)||o()}function i(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function l(r,t){if(!r)return;if(typeof r==="string")return e(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(r,t)}var f=Object.create;var c=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var d=function(e,r){for(var t in r)c(e,t,{get:r[t],enumerable:!0})},m=function(e,r,t,n){var o=true,u=false,a=undefined;if(r&&(typeof r==="undefined"?"undefined":i(r))=="object"||typeof r=="function")try{var l=function(){var o=s.value;!p.call(e,o)&&o!==t&&c(e,o,{get:function(){return r[o]},enumerable:!(n=y(r,o))||n.enumerable})};for(var f=b(r)[Symbol.iterator](),s;!(o=(s=f.next()).done);o=true)l()}catch(e){u=true;a=e}finally{try{if(!o&&f.return!=null){f.return()}}finally{if(u){throw a}}}return e};var v=function(e,r,t){return t=e!=null?f(s(e)):{},m(r||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e)},g=function(e){return m(c({},"__esModule",{value:!0}),e)};var O={};d(O,{default:function(){return h}});module.exports=g(O);var w=v(require("globals"),1),j=[{languageOptions:{globals:u({},w.node,w.browser)},rules:{"no-console":"warn","no-debugger":"warn","no-alert":"warn","perfectionist/sort-imports":["error",{internalPattern:["^#.*","^@/.*"]}]}}];var h=a(j).concat([{ignores:["build","dist"]}]);
1
+ "use strict";
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_without_holes(arr) {
8
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
9
+ }
10
+ function _define_property(obj, key, value) {
11
+ if (key in obj) {
12
+ Object.defineProperty(obj, key, {
13
+ value: value,
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true
17
+ });
18
+ } else {
19
+ obj[key] = value;
20
+ }
21
+ return obj;
22
+ }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
26
+ function _non_iterable_spread() {
27
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
28
+ }
29
+ function _object_spread(target) {
30
+ for(var i = 1; i < arguments.length; i++){
31
+ var source = arguments[i] != null ? arguments[i] : {};
32
+ var ownKeys = Object.keys(source);
33
+ if (typeof Object.getOwnPropertySymbols === "function") {
34
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
36
+ }));
37
+ }
38
+ ownKeys.forEach(function(key) {
39
+ _define_property(target, key, source[key]);
40
+ });
41
+ }
42
+ return target;
43
+ }
44
+ function _to_consumable_array(arr) {
45
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
46
+ }
47
+ function _type_of(obj) {
48
+ "@swc/helpers - typeof";
49
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
50
+ }
51
+ function _unsupported_iterable_to_array(o, minLen) {
52
+ if (!o) return;
53
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
54
+ var n = Object.prototype.toString.call(o).slice(8, -1);
55
+ if (n === "Object" && o.constructor) n = o.constructor.name;
56
+ if (n === "Map" || n === "Set") return Array.from(n);
57
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
58
+ }
59
+ var __create = Object.create;
60
+ var __defProp = Object.defineProperty;
61
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
62
+ var __getOwnPropNames = Object.getOwnPropertyNames;
63
+ var __getProtoOf = Object.getPrototypeOf;
64
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
65
+ var __export = function(target, all) {
66
+ for(var name in all)__defProp(target, name, {
67
+ get: all[name],
68
+ enumerable: true
69
+ });
70
+ };
71
+ var __copyProps = function(to, from, except, desc) {
72
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
73
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
74
+ try {
75
+ var _loop = function() {
76
+ var key = _step.value;
77
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
78
+ get: function() {
79
+ return from[key];
80
+ },
81
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
82
+ });
83
+ };
84
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
85
+ } catch (err) {
86
+ _didIteratorError = true;
87
+ _iteratorError = err;
88
+ } finally{
89
+ try {
90
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
91
+ _iterator.return();
92
+ }
93
+ } finally{
94
+ if (_didIteratorError) {
95
+ throw _iteratorError;
96
+ }
97
+ }
98
+ }
99
+ }
100
+ return to;
101
+ };
102
+ var __toESM = function(mod, isNodeMode, target) {
103
+ return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
104
+ // file that has been converted to a CommonJS file using a Babel-
105
+ // compatible transform (i.e. "__esModule" has not been set), then set
106
+ // "default" to the CommonJS "module.exports" for node compatibility.
107
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
108
+ value: mod,
109
+ enumerable: true
110
+ }) : target, mod);
111
+ };
112
+ var __toCommonJS = function(mod) {
113
+ return __copyProps(__defProp({}, "__esModule", {
114
+ value: true
115
+ }), mod);
116
+ };
117
+ // src/configs/eslint/nodejs.ts
118
+ var nodejs_exports = {};
119
+ __export(nodejs_exports, {
120
+ default: function() {
121
+ return nodejs_default;
122
+ }
123
+ });
124
+ module.exports = __toCommonJS(nodejs_exports);
125
+ // src/configs/eslint/base.ts
126
+ var globals = __toESM(require("globals"), 1);
127
+ var base_default = [
128
+ {
129
+ languageOptions: {
130
+ globals: _object_spread({}, globals.node, globals.browser)
131
+ },
132
+ rules: {
133
+ "no-console": "warn",
134
+ "no-debugger": "warn",
135
+ "no-alert": "warn",
136
+ "perfectionist/sort-imports": [
137
+ "error",
138
+ {
139
+ internalPattern: [
140
+ "^#.*",
141
+ "^@/.*"
142
+ ]
143
+ }
144
+ ]
145
+ }
146
+ }
147
+ ];
148
+ // src/configs/eslint/nodejs.ts
149
+ var nodejs_default = _to_consumable_array(base_default).concat([
150
+ {
151
+ ignores: [
152
+ "build",
153
+ "dist"
154
+ ]
155
+ }
156
+ ]);
@@ -1 +1,86 @@
1
- function r(r,t){if(t==null||t>r.length)t=r.length;for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function t(t){if(Array.isArray(t))return r(t)}function e(r,t,e){if(t in r){Object.defineProperty(r,t,{value:e,enumerable:true,configurable:true,writable:true})}else{r[t]=e}return r}function n(r){if(typeof Symbol!=="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var o=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))}o.forEach(function(t){e(r,t,n[t])})}return r}function i(r){return t(r)||n(r)||u(r)||o()}function u(t,e){if(!t)return;if(typeof t==="string")return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}import*as l from"globals";var f=[{languageOptions:{globals:a({},l.node,l.browser)},rules:{"no-console":"warn","no-debugger":"warn","no-alert":"warn","perfectionist/sort-imports":["error",{internalPattern:["^#.*","^@/.*"]}]}}];var c=i(f).concat([{ignores:["build","dist"]}]);export{c as default};
1
+ // src/configs/eslint/base.ts
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_without_holes(arr) {
8
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
9
+ }
10
+ function _define_property(obj, key, value) {
11
+ if (key in obj) {
12
+ Object.defineProperty(obj, key, {
13
+ value: value,
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true
17
+ });
18
+ } else {
19
+ obj[key] = value;
20
+ }
21
+ return obj;
22
+ }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
26
+ function _non_iterable_spread() {
27
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
28
+ }
29
+ function _object_spread(target) {
30
+ for(var i = 1; i < arguments.length; i++){
31
+ var source = arguments[i] != null ? arguments[i] : {};
32
+ var ownKeys = Object.keys(source);
33
+ if (typeof Object.getOwnPropertySymbols === "function") {
34
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
36
+ }));
37
+ }
38
+ ownKeys.forEach(function(key) {
39
+ _define_property(target, key, source[key]);
40
+ });
41
+ }
42
+ return target;
43
+ }
44
+ function _to_consumable_array(arr) {
45
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
46
+ }
47
+ function _unsupported_iterable_to_array(o, minLen) {
48
+ if (!o) return;
49
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
50
+ var n = Object.prototype.toString.call(o).slice(8, -1);
51
+ if (n === "Object" && o.constructor) n = o.constructor.name;
52
+ if (n === "Map" || n === "Set") return Array.from(n);
53
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
54
+ }
55
+ import * as globals from "globals";
56
+ var base_default = [
57
+ {
58
+ languageOptions: {
59
+ globals: _object_spread({}, globals.node, globals.browser)
60
+ },
61
+ rules: {
62
+ "no-console": "warn",
63
+ "no-debugger": "warn",
64
+ "no-alert": "warn",
65
+ "perfectionist/sort-imports": [
66
+ "error",
67
+ {
68
+ internalPattern: [
69
+ "^#.*",
70
+ "^@/.*"
71
+ ]
72
+ }
73
+ ]
74
+ }
75
+ }
76
+ ];
77
+ // src/configs/eslint/nodejs.ts
78
+ var nodejs_default = _to_consumable_array(base_default).concat([
79
+ {
80
+ ignores: [
81
+ "build",
82
+ "dist"
83
+ ]
84
+ }
85
+ ]);
86
+ export { nodejs_default as default };
@@ -1 +1,159 @@
1
- "use strict";function e(e,r){if(r==null||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function r(r){if(Array.isArray(r))return e(r)}function t(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function n(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};var o=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}o.forEach(function(r){t(e,r,n[r])})}return e}function a(e){return r(e)||n(e)||l(e)||o()}function i(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function l(r,t){if(!r)return;if(typeof r==="string")return e(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(r,t)}var f=Object.create;var c=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty;var d=function(e,r){for(var t in r)c(e,t,{get:r[t],enumerable:!0})},m=function(e,r,t,n){var o=true,u=false,a=undefined;if(r&&(typeof r==="undefined"?"undefined":i(r))=="object"||typeof r=="function")try{var l=function(){var o=b.value;!p.call(e,o)&&o!==t&&c(e,o,{get:function(){return r[o]},enumerable:!(n=s(r,o))||n.enumerable})};for(var f=y(r)[Symbol.iterator](),b;!(o=(b=f.next()).done);o=true)l()}catch(e){u=true;a=e}finally{try{if(!o&&f.return!=null){f.return()}}finally{if(u){throw a}}}return e};var v=function(e,r,t){return t=e!=null?f(b(e)):{},m(r||!e||!e.__esModule?c(t,"default",{value:e,enumerable:!0}):t,e)},g=function(e){return m(c({},"__esModule",{value:!0}),e)};var O={};d(O,{default:function(){return h}});module.exports=g(O);var j=v(require("globals"),1),w=[{languageOptions:{globals:u({},j.node,j.browser)},rules:{"no-console":"warn","no-debugger":"warn","no-alert":"warn","perfectionist/sort-imports":["error",{internalPattern:["^#.*","^@/.*"]}]}}];var h=a(w).concat([{ignores:["dist",".ncurc.cjs"],files:["**/*.{ts,tsx}"]}]);
1
+ "use strict";
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_without_holes(arr) {
8
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
9
+ }
10
+ function _define_property(obj, key, value) {
11
+ if (key in obj) {
12
+ Object.defineProperty(obj, key, {
13
+ value: value,
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true
17
+ });
18
+ } else {
19
+ obj[key] = value;
20
+ }
21
+ return obj;
22
+ }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
26
+ function _non_iterable_spread() {
27
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
28
+ }
29
+ function _object_spread(target) {
30
+ for(var i = 1; i < arguments.length; i++){
31
+ var source = arguments[i] != null ? arguments[i] : {};
32
+ var ownKeys = Object.keys(source);
33
+ if (typeof Object.getOwnPropertySymbols === "function") {
34
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
36
+ }));
37
+ }
38
+ ownKeys.forEach(function(key) {
39
+ _define_property(target, key, source[key]);
40
+ });
41
+ }
42
+ return target;
43
+ }
44
+ function _to_consumable_array(arr) {
45
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
46
+ }
47
+ function _type_of(obj) {
48
+ "@swc/helpers - typeof";
49
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
50
+ }
51
+ function _unsupported_iterable_to_array(o, minLen) {
52
+ if (!o) return;
53
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
54
+ var n = Object.prototype.toString.call(o).slice(8, -1);
55
+ if (n === "Object" && o.constructor) n = o.constructor.name;
56
+ if (n === "Map" || n === "Set") return Array.from(n);
57
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
58
+ }
59
+ var __create = Object.create;
60
+ var __defProp = Object.defineProperty;
61
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
62
+ var __getOwnPropNames = Object.getOwnPropertyNames;
63
+ var __getProtoOf = Object.getPrototypeOf;
64
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
65
+ var __export = function(target, all) {
66
+ for(var name in all)__defProp(target, name, {
67
+ get: all[name],
68
+ enumerable: true
69
+ });
70
+ };
71
+ var __copyProps = function(to, from, except, desc) {
72
+ if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
73
+ var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
74
+ try {
75
+ var _loop = function() {
76
+ var key = _step.value;
77
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
78
+ get: function() {
79
+ return from[key];
80
+ },
81
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
82
+ });
83
+ };
84
+ for(var _iterator = __getOwnPropNames(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();
85
+ } catch (err) {
86
+ _didIteratorError = true;
87
+ _iteratorError = err;
88
+ } finally{
89
+ try {
90
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
91
+ _iterator.return();
92
+ }
93
+ } finally{
94
+ if (_didIteratorError) {
95
+ throw _iteratorError;
96
+ }
97
+ }
98
+ }
99
+ }
100
+ return to;
101
+ };
102
+ var __toESM = function(mod, isNodeMode, target) {
103
+ return target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(// If the importer is in node compatibility mode or this is not an ESM
104
+ // file that has been converted to a CommonJS file using a Babel-
105
+ // compatible transform (i.e. "__esModule" has not been set), then set
106
+ // "default" to the CommonJS "module.exports" for node compatibility.
107
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
108
+ value: mod,
109
+ enumerable: true
110
+ }) : target, mod);
111
+ };
112
+ var __toCommonJS = function(mod) {
113
+ return __copyProps(__defProp({}, "__esModule", {
114
+ value: true
115
+ }), mod);
116
+ };
117
+ // src/configs/eslint/vite-react.ts
118
+ var vite_react_exports = {};
119
+ __export(vite_react_exports, {
120
+ default: function() {
121
+ return vite_react_default;
122
+ }
123
+ });
124
+ module.exports = __toCommonJS(vite_react_exports);
125
+ // src/configs/eslint/base.ts
126
+ var globals = __toESM(require("globals"), 1);
127
+ var base_default = [
128
+ {
129
+ languageOptions: {
130
+ globals: _object_spread({}, globals.node, globals.browser)
131
+ },
132
+ rules: {
133
+ "no-console": "warn",
134
+ "no-debugger": "warn",
135
+ "no-alert": "warn",
136
+ "perfectionist/sort-imports": [
137
+ "error",
138
+ {
139
+ internalPattern: [
140
+ "^#.*",
141
+ "^@/.*"
142
+ ]
143
+ }
144
+ ]
145
+ }
146
+ }
147
+ ];
148
+ // src/configs/eslint/vite-react.ts
149
+ var vite_react_default = _to_consumable_array(base_default).concat([
150
+ {
151
+ ignores: [
152
+ "dist",
153
+ ".ncurc.cjs"
154
+ ],
155
+ files: [
156
+ "**/*.{ts,tsx}"
157
+ ]
158
+ }
159
+ ]);
@@ -1 +1,89 @@
1
- function r(r,t){if(t==null||t>r.length)t=r.length;for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function t(t){if(Array.isArray(t))return r(t)}function e(r,t,e){if(t in r){Object.defineProperty(r,t,{value:e,enumerable:true,configurable:true,writable:true})}else{r[t]=e}return r}function n(r){if(typeof Symbol!=="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var o=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){o=o.concat(Object.getOwnPropertySymbols(n).filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))}o.forEach(function(t){e(r,t,n[t])})}return r}function i(r){return t(r)||n(r)||u(r)||o()}function u(t,e){if(!t)return;if(typeof t==="string")return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}import*as l from"globals";var c=[{languageOptions:{globals:a({},l.node,l.browser)},rules:{"no-console":"warn","no-debugger":"warn","no-alert":"warn","perfectionist/sort-imports":["error",{internalPattern:["^#.*","^@/.*"]}]}}];var f=i(c).concat([{ignores:["dist",".ncurc.cjs"],files:["**/*.{ts,tsx}"]}]);export{f as default};
1
+ // src/configs/eslint/base.ts
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_without_holes(arr) {
8
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
9
+ }
10
+ function _define_property(obj, key, value) {
11
+ if (key in obj) {
12
+ Object.defineProperty(obj, key, {
13
+ value: value,
14
+ enumerable: true,
15
+ configurable: true,
16
+ writable: true
17
+ });
18
+ } else {
19
+ obj[key] = value;
20
+ }
21
+ return obj;
22
+ }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
26
+ function _non_iterable_spread() {
27
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
28
+ }
29
+ function _object_spread(target) {
30
+ for(var i = 1; i < arguments.length; i++){
31
+ var source = arguments[i] != null ? arguments[i] : {};
32
+ var ownKeys = Object.keys(source);
33
+ if (typeof Object.getOwnPropertySymbols === "function") {
34
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
36
+ }));
37
+ }
38
+ ownKeys.forEach(function(key) {
39
+ _define_property(target, key, source[key]);
40
+ });
41
+ }
42
+ return target;
43
+ }
44
+ function _to_consumable_array(arr) {
45
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
46
+ }
47
+ function _unsupported_iterable_to_array(o, minLen) {
48
+ if (!o) return;
49
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
50
+ var n = Object.prototype.toString.call(o).slice(8, -1);
51
+ if (n === "Object" && o.constructor) n = o.constructor.name;
52
+ if (n === "Map" || n === "Set") return Array.from(n);
53
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
54
+ }
55
+ import * as globals from "globals";
56
+ var base_default = [
57
+ {
58
+ languageOptions: {
59
+ globals: _object_spread({}, globals.node, globals.browser)
60
+ },
61
+ rules: {
62
+ "no-console": "warn",
63
+ "no-debugger": "warn",
64
+ "no-alert": "warn",
65
+ "perfectionist/sort-imports": [
66
+ "error",
67
+ {
68
+ internalPattern: [
69
+ "^#.*",
70
+ "^@/.*"
71
+ ]
72
+ }
73
+ ]
74
+ }
75
+ }
76
+ ];
77
+ // src/configs/eslint/vite-react.ts
78
+ var vite_react_default = _to_consumable_array(base_default).concat([
79
+ {
80
+ ignores: [
81
+ "dist",
82
+ ".ncurc.cjs"
83
+ ],
84
+ files: [
85
+ "**/*.{ts,tsx}"
86
+ ]
87
+ }
88
+ ]);
89
+ export { vite_react_default as default };