@powerlines/plugin-rspack 0.5.231 → 0.5.233

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 (67) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +0 -2
  2. package/dist/helpers/unplugin.cjs +2 -2
  3. package/dist/helpers/unplugin.mjs +1 -1
  4. package/dist/index.d.cts +3 -2
  5. package/dist/index.d.mts +1 -1
  6. package/dist/types/plugin.d.cts +3 -3
  7. package/dist/types/plugin.d.mts +3 -3
  8. package/package.json +3 -3
  9. package/dist/_virtual/rolldown_runtime.mjs +0 -32
  10. package/dist/node_modules/.pnpm/@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.cjs +0 -2
  11. package/dist/node_modules/.pnpm/@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +0 -4
  12. package/dist/node_modules/.pnpm/@jridgewell_remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.cjs +0 -2
  13. package/dist/node_modules/.pnpm/@jridgewell_remapping@2.3.5/node_modules/@jridgewell/remapping/dist/remapping.mjs +0 -4
  14. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +0 -15
  15. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +0 -15
  16. package/dist/node_modules/.pnpm/@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.cjs +0 -1
  17. package/dist/node_modules/.pnpm/@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +0 -3
  18. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.cjs +0 -28
  19. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.mjs +0 -23
  20. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.cjs +0 -175
  21. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.mjs +0 -170
  22. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.cjs +0 -871
  23. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.mjs +0 -866
  24. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.cjs +0 -307
  25. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.mjs +0 -302
  26. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.cjs +0 -300
  27. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.mjs +0 -295
  28. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.cjs +0 -60
  29. package/dist/node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.mjs +0 -55
  30. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/context-CehLHpzV.cjs +0 -46
  31. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/context-CehLHpzV.mjs +0 -44
  32. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.cjs +0 -142
  33. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.mjs +0 -140
  34. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/parse-CRORloGP.cjs +0 -114
  35. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/parse-CRORloGP.mjs +0 -112
  36. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/utils-CuyC8gTr.cjs +0 -59
  37. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/utils-CuyC8gTr.mjs +0 -54
  38. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/webpack-like-BU9ULG6P.cjs +0 -35
  39. package/dist/node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/webpack-like-BU9ULG6P.mjs +0 -33
  40. package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.cjs +0 -236
  41. package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/index.mjs +0 -231
  42. package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.cjs +0 -54
  43. package/dist/node_modules/.pnpm/webpack-virtual-modules@0.6.2/node_modules/webpack-virtual-modules/lib/virtual-stats.mjs +0 -49
  44. package/dist/packages/powerlines/src/internal/helpers/hooks.d.mts +0 -49
  45. package/dist/packages/powerlines/src/types/api.d.mts +0 -104
  46. package/dist/packages/powerlines/src/types/build.d.mts +0 -185
  47. package/dist/packages/powerlines/src/types/commands.d.mts +0 -9
  48. package/dist/packages/powerlines/src/types/config.d.mts +0 -424
  49. package/dist/packages/powerlines/src/types/context.d.mts +0 -514
  50. package/dist/packages/powerlines/src/types/fs.d.mts +0 -486
  51. package/dist/packages/powerlines/src/types/hooks.d.mts +0 -32
  52. package/dist/packages/powerlines/src/types/plugin.d.mts +0 -205
  53. package/dist/packages/powerlines/src/types/resolved.d.mts +0 -93
  54. package/dist/packages/powerlines/src/types/tsconfig.d.mts +0 -69
  55. package/dist/packages/powerlines/src/types/unplugin.d.mts +0 -23
  56. package/dist/powerlines/src/internal/helpers/hooks.d.cts +0 -47
  57. package/dist/powerlines/src/types/api.d.cts +0 -104
  58. package/dist/powerlines/src/types/build.d.cts +0 -185
  59. package/dist/powerlines/src/types/commands.d.cts +0 -8
  60. package/dist/powerlines/src/types/config.d.cts +0 -424
  61. package/dist/powerlines/src/types/context.d.cts +0 -514
  62. package/dist/powerlines/src/types/fs.d.cts +0 -486
  63. package/dist/powerlines/src/types/hooks.d.cts +0 -32
  64. package/dist/powerlines/src/types/plugin.d.cts +0 -205
  65. package/dist/powerlines/src/types/resolved.d.cts +0 -93
  66. package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
  67. package/dist/powerlines/src/types/unplugin.d.cts +0 -22
@@ -5,7 +5,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
8
  var __copyProps = (to, from, except, desc) => {
10
9
  if (from && typeof from === "object" || typeof from === "function") {
11
10
  for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
@@ -27,5 +26,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
26
 
28
27
  //#endregion
29
28
 
30
- exports.__commonJSMin = __commonJSMin;
31
29
  exports.__toESM = __toESM;
@@ -1,10 +1,10 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_index = require('../node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.cjs');
3
2
  let powerlines_lib_unplugin = require("powerlines/lib/unplugin");
3
+ let unplugin = require("unplugin");
4
4
 
5
5
  //#region src/helpers/unplugin.ts
6
6
  function createRspackPlugin(context) {
7
- return require_index.createRspackPlugin((0, powerlines_lib_unplugin.createUnplugin)(context))({});
7
+ return (0, unplugin.createRspackPlugin)((0, powerlines_lib_unplugin.createUnplugin)(context))({});
8
8
  }
9
9
 
10
10
  //#endregion
@@ -1,5 +1,5 @@
1
- import { createRspackPlugin as createRspackPlugin$1 } from "../node_modules/.pnpm/unplugin@3.0.0-beta.3/node_modules/unplugin/dist/index.mjs";
2
1
  import { createUnplugin } from "powerlines/lib/unplugin";
2
+ import { createRspackPlugin as createRspackPlugin$1 } from "unplugin";
3
3
 
4
4
  //#region src/helpers/unplugin.ts
5
5
  function createRspackPlugin(context) {
package/dist/index.d.cts CHANGED
@@ -1,9 +1,10 @@
1
- import { Plugin } from "./powerlines/src/types/plugin.cjs";
2
1
  import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "./types/plugin.cjs";
3
2
  import { createRspackPlugin } from "./helpers/unplugin.cjs";
3
+ import "./helpers/index.cjs";
4
+ import "./types/index.cjs";
5
+ import { Plugin } from "powerlines/types/plugin";
4
6
 
5
7
  //#region src/index.d.ts
6
-
7
8
  /**
8
9
  * A Powerlines plugin to assist in developing other Powerlines plugins.
9
10
  */
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
2
1
  import { RspackPluginContext, RspackPluginOptions, RspackPluginResolvedConfig, __ΩRspackPluginContext, __ΩRspackPluginOptions, __ΩRspackPluginResolvedConfig } from "./types/plugin.mjs";
3
2
  import { createRspackPlugin } from "./helpers/unplugin.mjs";
4
3
  import "./helpers/index.mjs";
5
4
  import "./types/index.mjs";
5
+ import { Plugin } from "powerlines/types/plugin";
6
6
 
7
7
  //#region src/index.d.ts
8
8
  /**
@@ -1,6 +1,6 @@
1
- import { RspackBuildConfig } from "../powerlines/src/types/build.cjs";
2
- import { RspackResolvedConfig } from "../powerlines/src/types/resolved.cjs";
3
- import { PluginContext } from "../powerlines/src/types/context.cjs";
1
+ import { RspackBuildConfig } from "powerlines/types/build";
2
+ import { PluginContext } from "powerlines/types/context";
3
+ import { RspackResolvedConfig } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/types/plugin.d.ts
6
6
  type RspackPluginOptions = Partial<RspackBuildConfig>;
@@ -1,6 +1,6 @@
1
- import { RspackBuildConfig } from "../packages/powerlines/src/types/build.mjs";
2
- import { RspackResolvedConfig } from "../packages/powerlines/src/types/resolved.mjs";
3
- import { PluginContext } from "../packages/powerlines/src/types/context.mjs";
1
+ import { RspackBuildConfig } from "powerlines/types/build";
2
+ import { PluginContext } from "powerlines/types/context";
3
+ import { RspackResolvedConfig } from "powerlines/types/resolved";
4
4
 
5
5
  //#region src/types/plugin.d.ts
6
6
  type RspackPluginOptions = Partial<RspackBuildConfig>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-rspack",
3
- "version": "0.5.231",
3
+ "version": "0.5.233",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to build projects using Webpack.",
6
6
  "repository": {
@@ -155,9 +155,9 @@
155
155
  "powerlines": "^0.37.95"
156
156
  },
157
157
  "devDependencies": {
158
- "@powerlines/plugin-plugin": "^0.12.173",
158
+ "@powerlines/plugin-plugin": "^0.12.175",
159
159
  "@types/node": "^24.10.9"
160
160
  },
161
161
  "publishConfig": { "access": "public" },
162
- "gitHead": "f7483367fc2dba244e8d11af31db5b1071e0a888"
162
+ "gitHead": "f153baa7a374fe331eeb1b8ea37c30c379c5efce"
163
163
  }
@@ -1,32 +0,0 @@
1
- import { createRequire } from "node:module";
2
-
3
- //#region rolldown:runtime
4
- var __create = Object.create;
5
- var __defProp = Object.defineProperty;
6
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
- var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
14
- key = keys[i];
15
- if (!__hasOwnProp.call(to, key) && key !== except) {
16
- __defProp(to, key, {
17
- get: ((k) => from[k]).bind(null, key),
18
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
- });
20
- }
21
- }
22
- }
23
- return to;
24
- };
25
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: true
28
- }) : target, mod));
29
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
30
-
31
- //#endregion
32
- export { __commonJSMin, __require, __toESM };
@@ -1,2 +0,0 @@
1
- require('../../../../../@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs');
2
- require('../../../../../@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.cjs');
@@ -1,4 +0,0 @@
1
- import "../../../../../@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs";
2
- import "../../../../../@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs";
3
-
4
- export { };
@@ -1,2 +0,0 @@
1
- require('../../../../../@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.cjs');
2
- require('../../../../../@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.cjs');
@@ -1,4 +0,0 @@
1
- import "../../../../../@jridgewell_trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs";
2
- import "../../../../../@jridgewell_gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs";
3
-
4
- export { };
@@ -1,15 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
3
- var comma = ",".charCodeAt(0);
4
- var semicolon = ";".charCodeAt(0);
5
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
6
- var intToChar = new Uint8Array(64);
7
- var charToInt = new Uint8Array(128);
8
- for (let i = 0; i < chars.length; i++) {
9
- const c = chars.charCodeAt(i);
10
- intToChar[i] = c;
11
- charToInt[c] = i;
12
- }
13
- var bufLength = 1024 * 16;
14
-
15
- //#endregion
@@ -1,15 +0,0 @@
1
- //#region ../../node_modules/.pnpm/@jridgewell+sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
2
- var comma = ",".charCodeAt(0);
3
- var semicolon = ";".charCodeAt(0);
4
- var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
5
- var intToChar = new Uint8Array(64);
6
- var charToInt = new Uint8Array(128);
7
- for (let i = 0; i < chars.length; i++) {
8
- const c = chars.charCodeAt(i);
9
- intToChar[i] = c;
10
- charToInt[c] = i;
11
- }
12
- var bufLength = 1024 * 16;
13
-
14
- //#endregion
15
- export { };
@@ -1 +0,0 @@
1
- require('../../../../../@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs');
@@ -1,3 +0,0 @@
1
- import "../../../../../@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs";
2
-
3
- export { };
@@ -1,28 +0,0 @@
1
- 'use strict';
2
-
3
- const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.cjs');
4
- const require_utils$1 = require('./lib/utils.cjs');
5
- const require_picomatch$2 = require('./lib/picomatch.cjs');
6
-
7
- //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js
8
- var require_picomatch = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
9
- const pico = require_picomatch$2.default;
10
- const utils = require_utils$1.default;
11
- function picomatch(glob, options, returnState = false) {
12
- if (options && (options.windows === null || options.windows === void 0)) options = {
13
- ...options,
14
- windows: utils.isWindows()
15
- };
16
- return pico(glob, options, returnState);
17
- }
18
- Object.assign(picomatch, pico);
19
- module.exports = picomatch;
20
- }));
21
-
22
- //#endregion
23
- Object.defineProperty(exports, 'default', {
24
- enumerable: true,
25
- get: function () {
26
- return require_picomatch();
27
- }
28
- });
@@ -1,23 +0,0 @@
1
- import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.mjs";
2
- import { require_utils } from "./lib/utils.mjs";
3
- import { require_picomatch as require_picomatch$1 } from "./lib/picomatch.mjs";
4
-
5
- //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js
6
- var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7
- const pico = require_picomatch$1();
8
- const utils = require_utils();
9
- function picomatch(glob, options, returnState = false) {
10
- if (options && (options.windows === null || options.windows === void 0)) options = {
11
- ...options,
12
- windows: utils.isWindows()
13
- };
14
- return pico(glob, options, returnState);
15
- }
16
- Object.assign(picomatch, pico);
17
- module.exports = picomatch;
18
- }));
19
-
20
- //#endregion
21
- export default require_picomatch();
22
-
23
- export { require_picomatch };
@@ -1,175 +0,0 @@
1
- 'use strict';
2
-
3
- const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
4
-
5
- //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
6
- var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
7
- const WIN_SLASH = "\\\\/";
8
- const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
9
- /**
10
- * Posix glob regex
11
- */
12
- const DOT_LITERAL = "\\.";
13
- const PLUS_LITERAL = "\\+";
14
- const QMARK_LITERAL = "\\?";
15
- const SLASH_LITERAL = "\\/";
16
- const ONE_CHAR = "(?=.)";
17
- const QMARK = "[^/]";
18
- const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
19
- const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
20
- const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
21
- const POSIX_CHARS = {
22
- DOT_LITERAL,
23
- PLUS_LITERAL,
24
- QMARK_LITERAL,
25
- SLASH_LITERAL,
26
- ONE_CHAR,
27
- QMARK,
28
- END_ANCHOR,
29
- DOTS_SLASH,
30
- NO_DOT: `(?!${DOT_LITERAL})`,
31
- NO_DOTS: `(?!${START_ANCHOR}${DOTS_SLASH})`,
32
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,
33
- NO_DOTS_SLASH: `(?!${DOTS_SLASH})`,
34
- QMARK_NO_DOT: `[^.${SLASH_LITERAL}]`,
35
- STAR: `${QMARK}*?`,
36
- START_ANCHOR,
37
- SEP: "/"
38
- };
39
- /**
40
- * Windows glob regex
41
- */
42
- const WINDOWS_CHARS = {
43
- ...POSIX_CHARS,
44
- SLASH_LITERAL: `[${WIN_SLASH}]`,
45
- QMARK: WIN_NO_SLASH,
46
- STAR: `${WIN_NO_SLASH}*?`,
47
- DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
48
- NO_DOT: `(?!${DOT_LITERAL})`,
49
- NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
50
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
51
- NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
52
- QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
53
- START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
54
- END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
55
- SEP: "\\"
56
- };
57
- /**
58
- * POSIX Bracket Regex
59
- */
60
- const POSIX_REGEX_SOURCE = {
61
- alnum: "a-zA-Z0-9",
62
- alpha: "a-zA-Z",
63
- ascii: "\\x00-\\x7F",
64
- blank: " \\t",
65
- cntrl: "\\x00-\\x1F\\x7F",
66
- digit: "0-9",
67
- graph: "\\x21-\\x7E",
68
- lower: "a-z",
69
- print: "\\x20-\\x7E ",
70
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
71
- space: " \\t\\r\\n\\v\\f",
72
- upper: "A-Z",
73
- word: "A-Za-z0-9_",
74
- xdigit: "A-Fa-f0-9"
75
- };
76
- module.exports = {
77
- MAX_LENGTH: 1024 * 64,
78
- POSIX_REGEX_SOURCE,
79
- REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
80
- REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
81
- REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
82
- REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
83
- REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
84
- REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
85
- REPLACEMENTS: {
86
- __proto__: null,
87
- "***": "*",
88
- "**/**": "**",
89
- "**/**/**": "**"
90
- },
91
- CHAR_0: 48,
92
- CHAR_9: 57,
93
- CHAR_UPPERCASE_A: 65,
94
- CHAR_LOWERCASE_A: 97,
95
- CHAR_UPPERCASE_Z: 90,
96
- CHAR_LOWERCASE_Z: 122,
97
- CHAR_LEFT_PARENTHESES: 40,
98
- CHAR_RIGHT_PARENTHESES: 41,
99
- CHAR_ASTERISK: 42,
100
- CHAR_AMPERSAND: 38,
101
- CHAR_AT: 64,
102
- CHAR_BACKWARD_SLASH: 92,
103
- CHAR_CARRIAGE_RETURN: 13,
104
- CHAR_CIRCUMFLEX_ACCENT: 94,
105
- CHAR_COLON: 58,
106
- CHAR_COMMA: 44,
107
- CHAR_DOT: 46,
108
- CHAR_DOUBLE_QUOTE: 34,
109
- CHAR_EQUAL: 61,
110
- CHAR_EXCLAMATION_MARK: 33,
111
- CHAR_FORM_FEED: 12,
112
- CHAR_FORWARD_SLASH: 47,
113
- CHAR_GRAVE_ACCENT: 96,
114
- CHAR_HASH: 35,
115
- CHAR_HYPHEN_MINUS: 45,
116
- CHAR_LEFT_ANGLE_BRACKET: 60,
117
- CHAR_LEFT_CURLY_BRACE: 123,
118
- CHAR_LEFT_SQUARE_BRACKET: 91,
119
- CHAR_LINE_FEED: 10,
120
- CHAR_NO_BREAK_SPACE: 160,
121
- CHAR_PERCENT: 37,
122
- CHAR_PLUS: 43,
123
- CHAR_QUESTION_MARK: 63,
124
- CHAR_RIGHT_ANGLE_BRACKET: 62,
125
- CHAR_RIGHT_CURLY_BRACE: 125,
126
- CHAR_RIGHT_SQUARE_BRACKET: 93,
127
- CHAR_SEMICOLON: 59,
128
- CHAR_SINGLE_QUOTE: 39,
129
- CHAR_SPACE: 32,
130
- CHAR_TAB: 9,
131
- CHAR_UNDERSCORE: 95,
132
- CHAR_VERTICAL_LINE: 124,
133
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
134
- extglobChars(chars) {
135
- return {
136
- "!": {
137
- type: "negate",
138
- open: "(?:(?!(?:",
139
- close: `))${chars.STAR})`
140
- },
141
- "?": {
142
- type: "qmark",
143
- open: "(?:",
144
- close: ")?"
145
- },
146
- "+": {
147
- type: "plus",
148
- open: "(?:",
149
- close: ")+"
150
- },
151
- "*": {
152
- type: "star",
153
- open: "(?:",
154
- close: ")*"
155
- },
156
- "@": {
157
- type: "at",
158
- open: "(?:",
159
- close: ")"
160
- }
161
- };
162
- },
163
- globChars(win32) {
164
- return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
165
- }
166
- };
167
- }));
168
-
169
- //#endregion
170
- Object.defineProperty(exports, 'default', {
171
- enumerable: true,
172
- get: function () {
173
- return require_constants();
174
- }
175
- });
@@ -1,170 +0,0 @@
1
- import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
-
3
- //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
4
- var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
- const WIN_SLASH = "\\\\/";
6
- const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
7
- /**
8
- * Posix glob regex
9
- */
10
- const DOT_LITERAL = "\\.";
11
- const PLUS_LITERAL = "\\+";
12
- const QMARK_LITERAL = "\\?";
13
- const SLASH_LITERAL = "\\/";
14
- const ONE_CHAR = "(?=.)";
15
- const QMARK = "[^/]";
16
- const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
17
- const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
18
- const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
19
- const POSIX_CHARS = {
20
- DOT_LITERAL,
21
- PLUS_LITERAL,
22
- QMARK_LITERAL,
23
- SLASH_LITERAL,
24
- ONE_CHAR,
25
- QMARK,
26
- END_ANCHOR,
27
- DOTS_SLASH,
28
- NO_DOT: `(?!${DOT_LITERAL})`,
29
- NO_DOTS: `(?!${START_ANCHOR}${DOTS_SLASH})`,
30
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,
31
- NO_DOTS_SLASH: `(?!${DOTS_SLASH})`,
32
- QMARK_NO_DOT: `[^.${SLASH_LITERAL}]`,
33
- STAR: `${QMARK}*?`,
34
- START_ANCHOR,
35
- SEP: "/"
36
- };
37
- /**
38
- * Windows glob regex
39
- */
40
- const WINDOWS_CHARS = {
41
- ...POSIX_CHARS,
42
- SLASH_LITERAL: `[${WIN_SLASH}]`,
43
- QMARK: WIN_NO_SLASH,
44
- STAR: `${WIN_NO_SLASH}*?`,
45
- DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
46
- NO_DOT: `(?!${DOT_LITERAL})`,
47
- NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
48
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
49
- NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
50
- QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
51
- START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
52
- END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
53
- SEP: "\\"
54
- };
55
- /**
56
- * POSIX Bracket Regex
57
- */
58
- const POSIX_REGEX_SOURCE = {
59
- alnum: "a-zA-Z0-9",
60
- alpha: "a-zA-Z",
61
- ascii: "\\x00-\\x7F",
62
- blank: " \\t",
63
- cntrl: "\\x00-\\x1F\\x7F",
64
- digit: "0-9",
65
- graph: "\\x21-\\x7E",
66
- lower: "a-z",
67
- print: "\\x20-\\x7E ",
68
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
69
- space: " \\t\\r\\n\\v\\f",
70
- upper: "A-Z",
71
- word: "A-Za-z0-9_",
72
- xdigit: "A-Fa-f0-9"
73
- };
74
- module.exports = {
75
- MAX_LENGTH: 1024 * 64,
76
- POSIX_REGEX_SOURCE,
77
- REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
78
- REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
79
- REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
80
- REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
81
- REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
82
- REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
83
- REPLACEMENTS: {
84
- __proto__: null,
85
- "***": "*",
86
- "**/**": "**",
87
- "**/**/**": "**"
88
- },
89
- CHAR_0: 48,
90
- CHAR_9: 57,
91
- CHAR_UPPERCASE_A: 65,
92
- CHAR_LOWERCASE_A: 97,
93
- CHAR_UPPERCASE_Z: 90,
94
- CHAR_LOWERCASE_Z: 122,
95
- CHAR_LEFT_PARENTHESES: 40,
96
- CHAR_RIGHT_PARENTHESES: 41,
97
- CHAR_ASTERISK: 42,
98
- CHAR_AMPERSAND: 38,
99
- CHAR_AT: 64,
100
- CHAR_BACKWARD_SLASH: 92,
101
- CHAR_CARRIAGE_RETURN: 13,
102
- CHAR_CIRCUMFLEX_ACCENT: 94,
103
- CHAR_COLON: 58,
104
- CHAR_COMMA: 44,
105
- CHAR_DOT: 46,
106
- CHAR_DOUBLE_QUOTE: 34,
107
- CHAR_EQUAL: 61,
108
- CHAR_EXCLAMATION_MARK: 33,
109
- CHAR_FORM_FEED: 12,
110
- CHAR_FORWARD_SLASH: 47,
111
- CHAR_GRAVE_ACCENT: 96,
112
- CHAR_HASH: 35,
113
- CHAR_HYPHEN_MINUS: 45,
114
- CHAR_LEFT_ANGLE_BRACKET: 60,
115
- CHAR_LEFT_CURLY_BRACE: 123,
116
- CHAR_LEFT_SQUARE_BRACKET: 91,
117
- CHAR_LINE_FEED: 10,
118
- CHAR_NO_BREAK_SPACE: 160,
119
- CHAR_PERCENT: 37,
120
- CHAR_PLUS: 43,
121
- CHAR_QUESTION_MARK: 63,
122
- CHAR_RIGHT_ANGLE_BRACKET: 62,
123
- CHAR_RIGHT_CURLY_BRACE: 125,
124
- CHAR_RIGHT_SQUARE_BRACKET: 93,
125
- CHAR_SEMICOLON: 59,
126
- CHAR_SINGLE_QUOTE: 39,
127
- CHAR_SPACE: 32,
128
- CHAR_TAB: 9,
129
- CHAR_UNDERSCORE: 95,
130
- CHAR_VERTICAL_LINE: 124,
131
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
132
- extglobChars(chars) {
133
- return {
134
- "!": {
135
- type: "negate",
136
- open: "(?:(?!(?:",
137
- close: `))${chars.STAR})`
138
- },
139
- "?": {
140
- type: "qmark",
141
- open: "(?:",
142
- close: ")?"
143
- },
144
- "+": {
145
- type: "plus",
146
- open: "(?:",
147
- close: ")+"
148
- },
149
- "*": {
150
- type: "star",
151
- open: "(?:",
152
- close: ")*"
153
- },
154
- "@": {
155
- type: "at",
156
- open: "(?:",
157
- close: ")"
158
- }
159
- };
160
- },
161
- globChars(win32) {
162
- return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
163
- }
164
- };
165
- }));
166
-
167
- //#endregion
168
- export default require_constants();
169
-
170
- export { require_constants };