@bemedev/dev-utils 1.4.0 → 1.5.1

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 (198) hide show
  1. package/README.md +89 -20
  2. package/lib/_virtual/_rolldown/runtime.cjs +1 -2
  3. package/lib/build-tests/addTarball.cjs +8 -3
  4. package/lib/build-tests/addTarball.cjs.map +1 -1
  5. package/lib/build-tests/addTarball.d.ts +7 -1
  6. package/lib/build-tests/addTarball.js +8 -3
  7. package/lib/build-tests/addTarball.js.map +1 -1
  8. package/lib/build-tests/buildPackageJson.cjs +9 -4
  9. package/lib/build-tests/buildPackageJson.cjs.map +1 -1
  10. package/lib/build-tests/buildPackageJson.d.ts +14 -2
  11. package/lib/build-tests/buildPackageJson.js +9 -4
  12. package/lib/build-tests/buildPackageJson.js.map +1 -1
  13. package/lib/build-tests/cleanup.cjs +5 -3
  14. package/lib/build-tests/cleanup.cjs.map +1 -1
  15. package/lib/build-tests/cleanup.d.ts +4 -1
  16. package/lib/build-tests/cleanup.js +5 -3
  17. package/lib/build-tests/cleanup.js.map +1 -1
  18. package/lib/build-tests/cli/cli.cjs +6 -4
  19. package/lib/build-tests/cli/cli.cjs.map +1 -1
  20. package/lib/build-tests/cli/cli.d.ts +3 -0
  21. package/lib/build-tests/cli/cli.js +6 -4
  22. package/lib/build-tests/cli/cli.js.map +1 -1
  23. package/lib/build-tests/cli/index.cjs +1 -2
  24. package/lib/build-tests/cli/index.cjs.map +1 -1
  25. package/lib/build-tests/cli/index.js +1 -2
  26. package/lib/build-tests/cli/post.cjs +5 -3
  27. package/lib/build-tests/cli/post.cjs.map +1 -1
  28. package/lib/build-tests/cli/post.d.ts +4 -1
  29. package/lib/build-tests/cli/post.js +5 -3
  30. package/lib/build-tests/cli/post.js.map +1 -1
  31. package/lib/build-tests/cli/pre.cjs +5 -3
  32. package/lib/build-tests/cli/pre.cjs.map +1 -1
  33. package/lib/build-tests/cli/pre.d.ts +4 -1
  34. package/lib/build-tests/cli/pre.js +5 -3
  35. package/lib/build-tests/cli/pre.js.map +1 -1
  36. package/lib/build-tests/cli/test.cjs +4 -2
  37. package/lib/build-tests/cli/test.cjs.map +1 -1
  38. package/lib/build-tests/cli/test.d.ts +3 -0
  39. package/lib/build-tests/cli/test.js +4 -2
  40. package/lib/build-tests/cli/test.js.map +1 -1
  41. package/lib/build-tests/constants.cjs +1 -2
  42. package/lib/build-tests/constants.js +1 -2
  43. package/lib/build-tests/getRelativePath.cjs +1 -2
  44. package/lib/build-tests/getRelativePath.d.ts +1 -1
  45. package/lib/build-tests/getRelativePath.js +1 -2
  46. package/lib/build-tests/getTypescriptOutdir.cjs +1 -2
  47. package/lib/build-tests/getTypescriptOutdir.d.ts +1 -1
  48. package/lib/build-tests/getTypescriptOutdir.js +1 -2
  49. package/lib/build-tests/import.cjs +1 -2
  50. package/lib/build-tests/import.js +1 -2
  51. package/lib/build-tests/imports/create.cjs +1 -2
  52. package/lib/build-tests/imports/create.js +1 -2
  53. package/lib/build-tests/imports/helper.cjs +1 -2
  54. package/lib/build-tests/imports/helper.js +1 -2
  55. package/lib/build-tests/imports/index.js +1 -2
  56. package/lib/build-tests/index.cjs +1 -1
  57. package/lib/build-tests/index.js +1 -1
  58. package/lib/build-tests/pack.cjs +2 -3
  59. package/lib/build-tests/pack.d.ts +1 -1
  60. package/lib/build-tests/pack.js +2 -3
  61. package/lib/pack/config.cjs +103 -0
  62. package/lib/pack/config.cjs.map +1 -0
  63. package/lib/pack/config.d.ts +21 -0
  64. package/lib/pack/config.js +102 -0
  65. package/lib/pack/config.js.map +1 -0
  66. package/lib/pack/constants.cjs +45 -0
  67. package/lib/pack/constants.cjs.map +1 -0
  68. package/lib/pack/constants.d.ts +23 -0
  69. package/lib/pack/constants.js +40 -0
  70. package/lib/pack/constants.js.map +1 -0
  71. package/lib/pack/index.cjs +17 -0
  72. package/lib/pack/index.d.ts +6 -0
  73. package/lib/pack/index.js +6 -0
  74. package/lib/pack/input.cjs +19 -0
  75. package/lib/pack/input.cjs.map +1 -0
  76. package/lib/pack/input.d.ts +10 -0
  77. package/lib/pack/input.js +18 -0
  78. package/lib/pack/input.js.map +1 -0
  79. package/lib/pack/output.cjs +26 -0
  80. package/lib/pack/output.cjs.map +1 -0
  81. package/lib/pack/output.d.ts +13 -0
  82. package/lib/pack/output.js +25 -0
  83. package/lib/pack/output.js.map +1 -0
  84. package/lib/pack/plugins/circulars.cjs +39 -0
  85. package/lib/pack/plugins/circulars.cjs.map +1 -0
  86. package/lib/pack/plugins/circulars.d.ts +18 -0
  87. package/lib/pack/plugins/circulars.js +38 -0
  88. package/lib/pack/plugins/circulars.js.map +1 -0
  89. package/lib/pack/plugins/index.cjs +22 -0
  90. package/lib/pack/plugins/index.cjs.map +1 -0
  91. package/lib/pack/plugins/index.d.ts +25 -0
  92. package/lib/pack/plugins/index.js +21 -0
  93. package/lib/pack/plugins/index.js.map +1 -0
  94. package/lib/pack/project.cjs +32 -0
  95. package/lib/pack/project.cjs.map +1 -0
  96. package/lib/pack/project.d.ts +9 -0
  97. package/lib/pack/project.js +31 -0
  98. package/lib/pack/project.js.map +1 -0
  99. package/lib/pack/types.d.ts +46 -0
  100. package/lib/plugins/hmr.cjs +19 -5
  101. package/lib/plugins/hmr.cjs.map +1 -1
  102. package/lib/plugins/hmr.d.ts +14 -1
  103. package/lib/plugins/hmr.js +18 -4
  104. package/lib/plugins/hmr.js.map +1 -1
  105. package/lib/plugins/suppressWarnings.cjs +1 -2
  106. package/lib/plugins/suppressWarnings.js +1 -2
  107. package/lib/rolldown-config/config.cjs +3 -4
  108. package/lib/rolldown-config/config.cjs.map +1 -1
  109. package/lib/rolldown-config/config.js +3 -4
  110. package/lib/rolldown-config/config.js.map +1 -1
  111. package/lib/rolldown-config/constants.cjs +1 -2
  112. package/lib/rolldown-config/constants.js +1 -2
  113. package/lib/rolldown-config/helpers.cjs +1 -2
  114. package/lib/rolldown-config/helpers.js +1 -2
  115. package/lib/rolldown-config/index.cjs +1 -1
  116. package/lib/rolldown-config/index.js +1 -1
  117. package/lib/rolldown-config/input.cjs +1 -2
  118. package/lib/rolldown-config/input.js +1 -2
  119. package/lib/rolldown-config/output.cjs +1 -2
  120. package/lib/rolldown-config/output.js +1 -2
  121. package/lib/rolldown-config/plugins/circulars.cjs +1 -2
  122. package/lib/rolldown-config/plugins/circulars.js +1 -2
  123. package/lib/rolldown-config/plugins/clean.cjs +2 -3
  124. package/lib/rolldown-config/plugins/clean.js +2 -3
  125. package/lib/rolldown-config/plugins/externals.cjs +1 -2
  126. package/lib/rolldown-config/plugins/externals.js +1 -2
  127. package/lib/rolldown-config/plugins/index.cjs +1 -2
  128. package/lib/rolldown-config/plugins/index.js +1 -2
  129. package/lib/rolldown-config/plugins/typescript.cjs +1 -2
  130. package/lib/rolldown-config/plugins/typescript.config.cjs +1 -2
  131. package/lib/rolldown-config/plugins/typescript.config.js +1 -2
  132. package/lib/rolldown-config/plugins/typescript.fast.cjs +1 -2
  133. package/lib/rolldown-config/plugins/typescript.fast.js +1 -2
  134. package/lib/rolldown-config/plugins/typescript.js +1 -2
  135. package/lib/utils/array.cjs +1 -2
  136. package/lib/utils/array.js +1 -2
  137. package/lib/utils/bemedev/globals/types.d.ts +1 -0
  138. package/lib/utils/bemedev/globals/utils/_unknown.cjs +1 -2
  139. package/lib/utils/bemedev/globals/utils/_unknown.js +1 -2
  140. package/lib/utils/bemedev/globals/utils/expandFn.cjs +1 -2
  141. package/lib/utils/bemedev/globals/utils/expandFn.js +1 -2
  142. package/lib/utils/clamp.cjs +1 -2
  143. package/lib/utils/clamp.js +1 -2
  144. package/lib/utils/identity.cjs +1 -2
  145. package/lib/utils/identity.js +1 -2
  146. package/lib/utils/index.cjs +1 -1
  147. package/lib/utils/index.d.ts +1 -1
  148. package/lib/utils/index.js +1 -1
  149. package/lib/utils/sleep.cjs +1 -2
  150. package/lib/utils/sleep.js +1 -2
  151. package/lib/utils/types.d.ts +1 -1
  152. package/lib/vitest-exclude/constants.cjs +1 -2
  153. package/lib/vitest-exclude/constants.js +1 -2
  154. package/lib/vitest-exclude/index.js +1 -2
  155. package/lib/vitest-exclude/vitest.cjs +2 -3
  156. package/lib/vitest-exclude/vitest.js +2 -3
  157. package/lib/vitest-exclude/vitest.utils.cjs +1 -2
  158. package/lib/vitest-exclude/vitest.utils.js +1 -2
  159. package/lib/vitest-extended/acceptation.cjs +1 -2
  160. package/lib/vitest-extended/acceptation.js +1 -2
  161. package/lib/vitest-extended/createTests.cjs +2 -3
  162. package/lib/vitest-extended/createTests.js +2 -3
  163. package/lib/vitest-extended/done.cjs +1 -2
  164. package/lib/vitest-extended/done.js +1 -2
  165. package/lib/vitest-extended/each/error.cjs +2 -3
  166. package/lib/vitest-extended/each/error.js +2 -3
  167. package/lib/vitest-extended/each/pass.cjs +2 -3
  168. package/lib/vitest-extended/each/pass.js +2 -3
  169. package/lib/vitest-extended/fakeWaiter.cjs +1 -2
  170. package/lib/vitest-extended/fakeWaiter.js +1 -2
  171. package/lib/vitest-extended/fixtures/coverage.cjs +1 -2
  172. package/lib/vitest-extended/fixtures/coverage.js +1 -2
  173. package/lib/vitest-extended/fixtures/partialCall.cjs +1 -2
  174. package/lib/vitest-extended/fixtures/partialCall.js +1 -2
  175. package/lib/vitest-extended/fixtures/toUpper.cjs +1 -2
  176. package/lib/vitest-extended/fixtures/toUpper.js +1 -2
  177. package/lib/vitest-extended/fixtures/vitest.cjs +1 -2
  178. package/lib/vitest-extended/fixtures/vitest.js +1 -2
  179. package/lib/vitest-extended/fixtures/zod.cjs +1 -2
  180. package/lib/vitest-extended/fixtures/zod.js +1 -2
  181. package/lib/vitest-extended/identity.cjs +1 -2
  182. package/lib/vitest-extended/identity.js +1 -2
  183. package/lib/vitest-extended/index.cjs +2 -2
  184. package/lib/vitest-extended/index.js +2 -2
  185. package/lib/vitest-extended/isDefined.cjs +1 -2
  186. package/lib/vitest-extended/isDefined.js +1 -2
  187. package/lib/vitest-extended/isFunction.cjs +1 -2
  188. package/lib/vitest-extended/isFunction.js +1 -2
  189. package/lib/vitest-extended/project.cjs +9 -7
  190. package/lib/vitest-extended/project.cjs.map +1 -1
  191. package/lib/vitest-extended/project.d.ts +2 -2
  192. package/lib/vitest-extended/project.js +10 -8
  193. package/lib/vitest-extended/project.js.map +1 -1
  194. package/lib/vitest-extended/toArray.cjs +1 -2
  195. package/lib/vitest-extended/toArray.js +1 -2
  196. package/lib/vitest-extended/toStringFlat.cjs +1 -2
  197. package/lib/vitest-extended/toStringFlat.js +1 -2
  198. package/package.json +68 -59
@@ -1,12 +1,12 @@
1
1
  import { toArray } from "../../utils/array.js";
2
2
  import { WARNING_CODES } from "../constants.js";
3
- import { readTsConfig } from "./typescript.config.js";
4
3
  import { cleanupJS, withoutExtension } from "../helpers.js";
4
+ import { readTsConfig } from "./typescript.config.js";
5
5
  import { existsSync } from "fs";
6
6
  import { relative } from "path";
7
7
  import { globSync } from "glob";
8
8
  import { findConfigFile } from "@typescript/typescript6";
9
- //#region src/rolldown-config/plugins/clean.ts
9
+ // src/rolldown-config/plugins/clean.ts
10
10
  /**
11
11
  * Plugin to clean up intermediate JavaScript and sourcemap files for type-only entries.
12
12
  *
@@ -50,7 +50,6 @@ const clean = (options) => {
50
50
  }
51
51
  };
52
52
  };
53
- //#endregion
54
53
  export { clean };
55
54
 
56
55
  //# sourceMappingURL=clean.js.map
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let rollup_plugin_node_externals = require("rollup-plugin-node-externals");
3
- //#region src/rolldown-config/plugins/externals.ts
3
+ // src/rolldown-config/plugins/externals.ts
4
4
  /**
5
5
  * Creates a configured node externals plugin instance for Rolldown.
6
6
  *
@@ -11,7 +11,6 @@ let rollup_plugin_node_externals = require("rollup-plugin-node-externals");
11
11
  function externals(options = {}) {
12
12
  return (0, rollup_plugin_node_externals.nodeExternals)(options);
13
13
  }
14
- //#endregion
15
14
  exports.externals = externals;
16
15
 
17
16
  //# sourceMappingURL=externals.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { nodeExternals } from "rollup-plugin-node-externals";
2
- //#region src/rolldown-config/plugins/externals.ts
2
+ // src/rolldown-config/plugins/externals.ts
3
3
  /**
4
4
  * Creates a configured node externals plugin instance for Rolldown.
5
5
  *
@@ -10,7 +10,6 @@ import { nodeExternals } from "rollup-plugin-node-externals";
10
10
  function externals(options = {}) {
11
11
  return nodeExternals(options);
12
12
  }
13
- //#endregion
14
13
  export { externals };
15
14
 
16
15
  //# sourceMappingURL=externals.js.map
@@ -5,7 +5,7 @@ const require_rolldown_config_plugins_externals = require("./externals.cjs");
5
5
  const require_rolldown_config_plugins_typescript = require("./typescript.cjs");
6
6
  const require_rolldown_config_plugins_typescript_fast = require("./typescript.fast.cjs");
7
7
  let rolldown_plugins = require("rolldown/plugins");
8
- //#region src/rolldown-config/plugins/index.ts
8
+ // src/rolldown-config/plugins/index.ts
9
9
  /**
10
10
  * Registry mapping plugin keys to their factory functions.
11
11
  */
@@ -21,7 +21,6 @@ const PLUGIN_BUILDERS = {
21
21
  * Default ordering sequence for Rolldown build plugins.
22
22
  */
23
23
  const DEFAULT_PLUGINS_ORDER = Object.keys(PLUGIN_BUILDERS);
24
- //#endregion
25
24
  exports.DEFAULT_PLUGINS_ORDER = DEFAULT_PLUGINS_ORDER;
26
25
  exports.PLUGIN_BUILDERS = PLUGIN_BUILDERS;
27
26
 
@@ -4,7 +4,7 @@ import { externals } from "./externals.js";
4
4
  import { typescript } from "./typescript.js";
5
5
  import { typescriptFast } from "./typescript.fast.js";
6
6
  import { esmExternalRequirePlugin } from "rolldown/plugins";
7
- //#region src/rolldown-config/plugins/index.ts
7
+ // src/rolldown-config/plugins/index.ts
8
8
  /**
9
9
  * Registry mapping plugin keys to their factory functions.
10
10
  */
@@ -20,7 +20,6 @@ const PLUGIN_BUILDERS = {
20
20
  * Default ordering sequence for Rolldown build plugins.
21
21
  */
22
22
  const DEFAULT_PLUGINS_ORDER = Object.keys(PLUGIN_BUILDERS);
23
- //#endregion
24
23
  export { DEFAULT_PLUGINS_ORDER, PLUGIN_BUILDERS };
25
24
 
26
25
  //# sourceMappingURL=index.js.map
@@ -7,7 +7,7 @@ let fs = require("fs");
7
7
  let _typescript_typescript6 = require("@typescript/typescript6");
8
8
  _typescript_typescript6 = require_runtime.__toESM(_typescript_typescript6, 1);
9
9
  let tsc_alias = require("tsc-alias");
10
- //#region src/rolldown-config/plugins/typescript.ts
10
+ // src/rolldown-config/plugins/typescript.ts
11
11
  /**
12
12
  * Rolldown plugin using `@typescript/typescript6` for generating TypeScript declaration files (`.d.ts`).
13
13
  *
@@ -66,7 +66,6 @@ const typescript = ({ exclude, include, declarationMap, dir } = {}) => {
66
66
  }
67
67
  };
68
68
  };
69
- //#endregion
70
69
  exports.typescript = typescript;
71
70
 
72
71
  //# sourceMappingURL=typescript.cjs.map
@@ -4,7 +4,7 @@ let fs = require("fs");
4
4
  let path = require("path");
5
5
  let _typescript_typescript6 = require("@typescript/typescript6");
6
6
  _typescript_typescript6 = require_runtime.__toESM(_typescript_typescript6, 1);
7
- //#region src/rolldown-config/plugins/typescript.config.ts
7
+ // src/rolldown-config/plugins/typescript.config.ts
8
8
  const _readFile = (filePath) => {
9
9
  try {
10
10
  return (0, fs.readFileSync)(filePath, "utf-8");
@@ -71,7 +71,6 @@ const readTsConfig = (path$1) => {
71
71
  }));
72
72
  return _typescript_typescript6.default.parseJsonConfigFileContent(configFile.config, _host, (0, path.dirname)(path$1));
73
73
  };
74
- //#endregion
75
74
  exports.getConfig = getConfig;
76
75
  exports.readTsConfig = readTsConfig;
77
76
 
@@ -1,7 +1,7 @@
1
1
  import { existsSync, readFileSync, readdirSync, statSync } from "fs";
2
2
  import { dirname, join } from "path";
3
3
  import ts from "@typescript/typescript6";
4
- //#region src/rolldown-config/plugins/typescript.config.ts
4
+ // src/rolldown-config/plugins/typescript.config.ts
5
5
  const _readFile = (filePath) => {
6
6
  try {
7
7
  return readFileSync(filePath, "utf-8");
@@ -68,7 +68,6 @@ const readTsConfig = (path) => {
68
68
  }));
69
69
  return ts.parseJsonConfigFileContent(configFile.config, _host, dirname(path));
70
70
  };
71
- //#endregion
72
71
  export { getConfig, readTsConfig };
73
72
 
74
73
  //# sourceMappingURL=typescript.config.js.map
@@ -10,7 +10,7 @@ let _typescript_typescript6 = require("@typescript/typescript6");
10
10
  _typescript_typescript6 = require_runtime.__toESM(_typescript_typescript6, 1);
11
11
  let tsc_alias = require("tsc-alias");
12
12
  let oxc_transform = require("oxc-transform");
13
- //#region src/rolldown-config/plugins/typescript.fast.ts
13
+ // src/rolldown-config/plugins/typescript.fast.ts
14
14
  /**
15
15
  * Fast Rolldown plugin using `oxc-transform` for generating TypeScript declaration files (`.d.ts`).
16
16
  *
@@ -82,7 +82,6 @@ const typescriptFast = ({ exclude, include, declarationMap, dir } = {}) => {
82
82
  }
83
83
  };
84
84
  };
85
- //#endregion
86
85
  exports.typescriptFast = typescriptFast;
87
86
 
88
87
  //# sourceMappingURL=typescript.fast.cjs.map
@@ -7,7 +7,7 @@ import { globSync } from "glob";
7
7
  import ts from "@typescript/typescript6";
8
8
  import { replaceTscAliasPaths } from "tsc-alias";
9
9
  import { transformSync } from "oxc-transform";
10
- //#region src/rolldown-config/plugins/typescript.fast.ts
10
+ // src/rolldown-config/plugins/typescript.fast.ts
11
11
  /**
12
12
  * Fast Rolldown plugin using `oxc-transform` for generating TypeScript declaration files (`.d.ts`).
13
13
  *
@@ -79,7 +79,6 @@ const typescriptFast = ({ exclude, include, declarationMap, dir } = {}) => {
79
79
  }
80
80
  };
81
81
  };
82
- //#endregion
83
82
  export { typescriptFast };
84
83
 
85
84
  //# sourceMappingURL=typescript.fast.js.map
@@ -4,7 +4,7 @@ import { readTsConfig } from "./typescript.config.js";
4
4
  import { existsSync } from "fs";
5
5
  import ts from "@typescript/typescript6";
6
6
  import { replaceTscAliasPaths } from "tsc-alias";
7
- //#region src/rolldown-config/plugins/typescript.ts
7
+ // src/rolldown-config/plugins/typescript.ts
8
8
  /**
9
9
  * Rolldown plugin using `@typescript/typescript6` for generating TypeScript declaration files (`.d.ts`).
10
10
  *
@@ -63,7 +63,6 @@ const typescript = ({ exclude, include, declarationMap, dir } = {}) => {
63
63
  }
64
64
  };
65
65
  };
66
- //#endregion
67
66
  export { typescript };
68
67
 
69
68
  //# sourceMappingURL=typescript.js.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/utils/array.ts
2
+ // src/utils/array.ts
3
3
  /**
4
4
  * Normalizes a single value, array, null, or undefined into an array.
5
5
  *
@@ -12,7 +12,6 @@ const toArray = (value) => {
12
12
  if (Array.isArray(value)) return value;
13
13
  return [value];
14
14
  };
15
- //#endregion
16
15
  exports.toArray = toArray;
17
16
 
18
17
  //# sourceMappingURL=array.cjs.map
@@ -1,4 +1,4 @@
1
- //#region src/utils/array.ts
1
+ // src/utils/array.ts
2
2
  /**
3
3
  * Normalizes a single value, array, null, or undefined into an array.
4
4
  *
@@ -11,7 +11,6 @@ const toArray = (value) => {
11
11
  if (Array.isArray(value)) return value;
12
12
  return [value];
13
13
  };
14
- //#endregion
15
14
  export { toArray };
16
15
 
17
16
  //# sourceMappingURL=array.js.map
@@ -22,3 +22,4 @@ export type RuA = readonly unknown[];
22
22
  * @template `T` - Inner type.
23
23
  */
24
24
  export type Undefiny<T> = T | undefined | null;
25
+ export type NOmit<T, K extends keyof T> = Omit<T, K>;
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/utils/bemedev/globals/utils/_unknown.ts
2
+ // src/utils/bemedev/globals/utils/_unknown.ts
3
3
  /**
4
4
  * _unknown variable - Auto-generated expression
5
5
  *
@@ -12,7 +12,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
12
12
  * @readonly
13
13
  */
14
14
  const _unknown = (value) => value;
15
- //#endregion
16
15
  exports._unknown = _unknown;
17
16
 
18
17
  //# sourceMappingURL=_unknown.cjs.map
@@ -1,4 +1,4 @@
1
- //#region src/utils/bemedev/globals/utils/_unknown.ts
1
+ // src/utils/bemedev/globals/utils/_unknown.ts
2
2
  /**
3
3
  * _unknown variable - Auto-generated expression
4
4
  *
@@ -11,7 +11,6 @@
11
11
  * @readonly
12
12
  */
13
13
  const _unknown = (value) => value;
14
- //#endregion
15
14
  export { _unknown };
16
15
 
17
16
  //# sourceMappingURL=_unknown.js.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/utils/bemedev/globals/utils/expandFn.ts
2
+ // src/utils/bemedev/globals/utils/expandFn.ts
3
3
  /**
4
4
  * Augments a function with additional object properties.
5
5
  *
@@ -16,7 +16,6 @@ const expandFn = (main, extensions) => {
16
16
  if (extensions) Object.assign(out, extensions);
17
17
  return out;
18
18
  };
19
- //#endregion
20
19
  exports.expandFn = expandFn;
21
20
 
22
21
  //# sourceMappingURL=expandFn.cjs.map
@@ -1,4 +1,4 @@
1
- //#region src/utils/bemedev/globals/utils/expandFn.ts
1
+ // src/utils/bemedev/globals/utils/expandFn.ts
2
2
  /**
3
3
  * Augments a function with additional object properties.
4
4
  *
@@ -15,7 +15,6 @@ const expandFn = (main, extensions) => {
15
15
  if (extensions) Object.assign(out, extensions);
16
16
  return out;
17
17
  };
18
- //#endregion
19
18
  export { expandFn };
20
19
 
21
20
  //# sourceMappingURL=expandFn.js.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/utils/clamp.ts
2
+ // src/utils/clamp.ts
3
3
  /**
4
4
  * Restricts a number between a minimum and maximum boundary.
5
5
  *
@@ -12,7 +12,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
12
12
  const clamp = (value, min, max) => {
13
13
  return Math.min(Math.max(value, min), max);
14
14
  };
15
- //#endregion
16
15
  exports.clamp = clamp;
17
16
 
18
17
  //# sourceMappingURL=clamp.cjs.map
@@ -1,4 +1,4 @@
1
- //#region src/utils/clamp.ts
1
+ // src/utils/clamp.ts
2
2
  /**
3
3
  * Restricts a number between a minimum and maximum boundary.
4
4
  *
@@ -11,7 +11,6 @@
11
11
  const clamp = (value, min, max) => {
12
12
  return Math.min(Math.max(value, min), max);
13
13
  };
14
- //#endregion
15
14
  export { clamp };
16
15
 
17
16
  //# sourceMappingURL=clamp.js.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/utils/identity.ts
2
+ // src/utils/identity.ts
3
3
  /**
4
4
  * Identity function returning the input value unchanged.
5
5
  *
@@ -10,7 +10,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
10
10
  * @returns The input value `x`.
11
11
  */
12
12
  const identity = (x) => x;
13
- //#endregion
14
13
  exports.identity = identity;
15
14
 
16
15
  //# sourceMappingURL=identity.cjs.map
@@ -1,4 +1,4 @@
1
- //#region src/utils/identity.ts
1
+ // src/utils/identity.ts
2
2
  /**
3
3
  * Identity function returning the input value unchanged.
4
4
  *
@@ -9,7 +9,6 @@
9
9
  * @returns The input value `x`.
10
10
  */
11
11
  const identity = (x) => x;
12
- //#endregion
13
12
  export { identity };
14
13
 
15
14
  //# sourceMappingURL=identity.js.map
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_utils_sleep = require("./sleep.cjs");
3
2
  const require_utils_identity = require("./identity.cjs");
3
+ const require_utils_sleep = require("./sleep.cjs");
4
4
  const require_utils_clamp = require("./clamp.cjs");
5
5
  const require_utils_array = require("./array.cjs");
6
6
  const require_utils_bemedev_globals_utils__unknown = require("./bemedev/globals/utils/_unknown.cjs");
@@ -3,4 +3,4 @@ export * from './sleep';
3
3
  export * from './types';
4
4
  export * from './clamp';
5
5
  export * from './array';
6
- export * from './bemedev/globals/utils/_unknown';
6
+ export * from './bemedev/globals/utils/_unknown.js';
@@ -1,5 +1,5 @@
1
- import { sleep } from "./sleep.js";
2
1
  import { identity } from "./identity.js";
2
+ import { sleep } from "./sleep.js";
3
3
  import { clamp } from "./clamp.js";
4
4
  import { toArray } from "./array.js";
5
5
  import { _unknown } from "./bemedev/globals/utils/_unknown.js";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/utils/sleep.ts
2
+ // src/utils/sleep.ts
3
3
  /**
4
4
  * Asynchronously pauses execution for a given number of milliseconds.
5
5
  *
@@ -10,7 +10,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
10
10
  const sleep = (ms) => {
11
11
  return new Promise((resolve) => setTimeout(resolve, ms));
12
12
  };
13
- //#endregion
14
13
  exports.sleep = sleep;
15
14
 
16
15
  //# sourceMappingURL=sleep.cjs.map
@@ -1,4 +1,4 @@
1
- //#region src/utils/sleep.ts
1
+ // src/utils/sleep.ts
2
2
  /**
3
3
  * Asynchronously pauses execution for a given number of milliseconds.
4
4
  *
@@ -9,7 +9,6 @@
9
9
  const sleep = (ms) => {
10
10
  return new Promise((resolve) => setTimeout(resolve, ms));
11
11
  };
12
- //#endregion
13
12
  export { sleep };
14
13
 
15
14
  //# sourceMappingURL=sleep.js.map
@@ -1,4 +1,4 @@
1
- export * from './bemedev/globals/types';
1
+ export * from './bemedev/globals/types.js';
2
2
  /**
3
3
  * Normalizes a single value, array, null, or undefined into an array.
4
4
  *
@@ -1,10 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region src/vitest-exclude/constants.ts
2
+ // src/vitest-exclude/constants.ts
3
3
  /**
4
4
  * Package name identifier for the exclude-coverage plugin.
5
5
  */
6
6
  const name = "@bemedev/exclude-coverage";
7
- //#endregion
8
7
  exports.name = name;
9
8
 
10
9
  //# sourceMappingURL=constants.cjs.map
@@ -1,9 +1,8 @@
1
- //#region src/vitest-exclude/constants.ts
1
+ // src/vitest-exclude/constants.ts
2
2
  /**
3
3
  * Package name identifier for the exclude-coverage plugin.
4
4
  */
5
5
  const name = "@bemedev/exclude-coverage";
6
- //#endregion
7
6
  export { name };
8
7
 
9
8
  //# sourceMappingURL=constants.js.map
@@ -1,2 +1 @@
1
- import { create, exclude } from "./vitest.js";
2
- export { create, exclude };
1
+ export { create, exclude } from "./vitest.js";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_vitest_exclude_vitest_utils = require("./vitest.utils.cjs");
3
2
  const require_vitest_exclude_constants = require("./constants.cjs");
4
- //#region src/vitest-exclude/vitest.ts
3
+ const require_vitest_exclude_vitest_utils = require("./vitest.utils.cjs");
4
+ // src/vitest-exclude/vitest.ts
5
5
  /**
6
6
  * Creates include arrays for test and coverage files from glob patterns.
7
7
  *
@@ -108,7 +108,6 @@ exclude.withPattern = (({ patternTest, patternCov }, { ignoreCoverageFiles, igno
108
108
  }
109
109
  };
110
110
  });
111
- //#endregion
112
111
  exports.create = create;
113
112
  exports.exclude = exclude;
114
113
 
@@ -1,6 +1,6 @@
1
- import { buildInclude, defaultCovPattern, testPattern } from "./vitest.utils.js";
2
1
  import { name } from "./constants.js";
3
- //#region src/vitest-exclude/vitest.ts
2
+ import { buildInclude, defaultCovPattern, testPattern } from "./vitest.utils.js";
3
+ // src/vitest-exclude/vitest.ts
4
4
  /**
5
5
  * Creates include arrays for test and coverage files from glob patterns.
6
6
  *
@@ -107,7 +107,6 @@ exclude.withPattern = (({ patternTest, patternCov }, { ignoreCoverageFiles, igno
107
107
  }
108
108
  };
109
109
  });
110
- //#endregion
111
110
  export { create, exclude };
112
111
 
113
112
  //# sourceMappingURL=vitest.js.map
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let fs = require("fs");
3
3
  let path = require("path");
4
4
  let glob = require("glob");
5
- //#region src/vitest-exclude/vitest.utils.ts
5
+ // src/vitest-exclude/vitest.utils.ts
6
6
  /**
7
7
  * Checks if a `src` directory exists at the specified project root.
8
8
  *
@@ -51,7 +51,6 @@ const testPattern = (root) => {
51
51
  /* v8 ignore next */
52
52
  return `${hasSrc(root) ? "src/" : ""}**/*.{test,spec}.{ts,js,tsx,jsx}`;
53
53
  };
54
- //#endregion
55
54
  exports.buildInclude = buildInclude;
56
55
  exports.defaultCovPattern = defaultCovPattern;
57
56
  exports.hasSrc = hasSrc;
@@ -1,7 +1,7 @@
1
1
  import { existsSync } from "fs";
2
2
  import { join } from "path";
3
3
  import { glob } from "glob";
4
- //#region src/vitest-exclude/vitest.utils.ts
4
+ // src/vitest-exclude/vitest.utils.ts
5
5
  /**
6
6
  * Checks if a `src` directory exists at the specified project root.
7
7
  *
@@ -50,7 +50,6 @@ const testPattern = (root) => {
50
50
  /* v8 ignore next */
51
51
  return `${hasSrc(root) ? "src/" : ""}**/*.{test,spec}.{ts,js,tsx,jsx}`;
52
52
  };
53
- //#endregion
54
53
  export { buildInclude, defaultCovPattern, hasSrc, testPattern };
55
54
 
56
55
  //# sourceMappingURL=vitest.utils.js.map
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_vitest_extended_isFunction = require("./isFunction.cjs");
3
3
  let vitest = require("vitest");
4
- //#region src/vitest-extended/acceptation.ts
4
+ // src/vitest-extended/acceptation.ts
5
5
  /**
6
6
  * Creates baseline definition and function type tests for a given function.
7
7
  *
@@ -22,7 +22,6 @@ const useTestFunctionAcceptation = (f, _name) => {
22
22
  * Alias for {@linkcode useTestFunctionAcceptation}.
23
23
  */
24
24
  const useTFA = useTestFunctionAcceptation;
25
- //#endregion
26
25
  exports.useTFA = useTFA;
27
26
  exports.useTestFunctionAcceptation = useTestFunctionAcceptation;
28
27
 
@@ -1,6 +1,6 @@
1
1
  import { isFunction } from "./isFunction.js";
2
2
  import { expect, test } from "vitest";
3
- //#region src/vitest-extended/acceptation.ts
3
+ // src/vitest-extended/acceptation.ts
4
4
  /**
5
5
  * Creates baseline definition and function type tests for a given function.
6
6
  *
@@ -21,7 +21,6 @@ const useTestFunctionAcceptation = (f, _name) => {
21
21
  * Alias for {@linkcode useTestFunctionAcceptation}.
22
22
  */
23
23
  const useTFA = useTestFunctionAcceptation;
24
- //#endregion
25
24
  export { useTFA, useTestFunctionAcceptation };
26
25
 
27
26
  //# sourceMappingURL=acceptation.js.map
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_vitest_extended_toStringFlat = require("./toStringFlat.cjs");
3
2
  const require_vitest_extended_acceptation = require("./acceptation.cjs");
4
3
  const require_vitest_extended_each_error = require("./each/error.cjs");
5
4
  const require_vitest_extended_each_pass = require("./each/pass.cjs");
5
+ const require_vitest_extended_toStringFlat = require("./toStringFlat.cjs");
6
6
  let vitest = require("vitest");
7
- //#region src/vitest-extended/createTests.ts
7
+ // src/vitest-extended/createTests.ts
8
8
  const _create = (func, transform, toError, name) => {
9
9
  return {
10
10
  acceptation: () => require_vitest_extended_acceptation.useTFA(func, name),
@@ -88,7 +88,6 @@ createTests.withImplementation = (f, { instanciation, name, transform, toError }
88
88
  return _create(func, transform, toError, name);
89
89
  };
90
90
  createTests.withoutImplementation = createTests;
91
- //#endregion
92
91
  exports.createTests = createTests;
93
92
 
94
93
  //# sourceMappingURL=createTests.cjs.map
@@ -1,9 +1,9 @@
1
- import { toStringFlat } from "./toStringFlat.js";
2
1
  import { useTFA } from "./acceptation.js";
3
2
  import { useErrorAsyncEach } from "./each/error.js";
4
3
  import { useEachAsync } from "./each/pass.js";
4
+ import { toStringFlat } from "./toStringFlat.js";
5
5
  import { beforeAll, vi } from "vitest";
6
- //#region src/vitest-extended/createTests.ts
6
+ // src/vitest-extended/createTests.ts
7
7
  const _create = (func, transform, toError, name) => {
8
8
  return {
9
9
  acceptation: () => useTFA(func, name),
@@ -87,7 +87,6 @@ createTests.withImplementation = (f, { instanciation, name, transform, toError }
87
87
  return _create(func, transform, toError, name);
88
88
  };
89
89
  createTests.withoutImplementation = createTests;
90
- //#endregion
91
90
  export { createTests };
92
91
 
93
92
  //# sourceMappingURL=createTests.js.map
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_utils_sleep = require("../utils/sleep.cjs");
3
3
  let vitest = require("vitest");
4
- //#region src/vitest-extended/done.ts
4
+ // src/vitest-extended/done.ts
5
5
  const useDone = (ms = 0) => {
6
6
  let executed = false;
7
7
  const done = () => executed = true;
@@ -80,7 +80,6 @@ doneTest.concurrent = (invite, fn, options = 100) => {
80
80
  return testDone();
81
81
  });
82
82
  };
83
- //#endregion
84
83
  exports.doneTest = doneTest;
85
84
 
86
85
  //# sourceMappingURL=done.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { sleep } from "../utils/sleep.js";
2
2
  import { expect, test } from "vitest";
3
- //#region src/vitest-extended/done.ts
3
+ // src/vitest-extended/done.ts
4
4
  const useDone = (ms = 0) => {
5
5
  let executed = false;
6
6
  const done = () => executed = true;
@@ -79,7 +79,6 @@ doneTest.concurrent = (invite, fn, options = 100) => {
79
79
  return testDone();
80
80
  });
81
81
  };
82
- //#endregion
83
82
  export { doneTest };
84
83
 
85
84
  //# sourceMappingURL=done.js.map
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_vitest_extended_toArray = require("../toArray.cjs");
3
2
  const require_vitest_extended_identity = require("../identity.cjs");
3
+ const require_vitest_extended_toArray = require("../toArray.cjs");
4
4
  let vitest = require("vitest");
5
- //#region src/vitest-extended/each/error.ts
5
+ // src/vitest-extended/each/error.ts
6
6
  /**
7
7
  * Runs error assertions for asynchronous test cases concurrently.
8
8
  */
@@ -27,7 +27,6 @@ const useErrorAsyncEachCases = (f, transform = require_vitest_extended_identity.
27
27
  const useErrorAsyncEach = (f, transform, toError) => {
28
28
  return (...cases) => useErrorAsyncEachCases(f, transform, toError, ...cases);
29
29
  };
30
- //#endregion
31
30
  exports.useErrorAsyncEach = useErrorAsyncEach;
32
31
  exports.useErrorAsyncEachCases = useErrorAsyncEachCases;
33
32