@powerlines/core 0.1.9 → 0.1.10

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.
@@ -18,58 +18,70 @@ let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-str
18
18
  function createUnpluginModuleResolutionFunctions(context, options = {}) {
19
19
  const ctx = context;
20
20
  let prefix = "";
21
- if (options.prefix !== false) prefix = options.prefix ?? "\0";
22
- async function resolveId(id, importer, opts = { isEntry: false }) {
23
- let result = await ctx.$$internal.callHook("resolveId", {
24
- sequential: true,
25
- result: "first",
26
- order: "pre"
27
- }, id, importer, opts);
28
- if (result) return result;
29
- result = await ctx.$$internal.callHook("resolveId", {
30
- sequential: true,
31
- result: "first",
32
- order: "normal"
33
- }, id, importer, opts);
34
- if (result) return result;
35
- result = await ctx.resolve(id, importer, opts);
36
- if (result) return result;
37
- result = await ctx.$$internal.callHook("resolveId", {
38
- sequential: true,
39
- result: "first",
40
- order: "post"
41
- }, id, importer, opts);
42
- if ((0, __stryke_type_checks_is_set_string.isSetString)(result)) return `${prefix}${result}`;
43
- else if ((0, __stryke_type_checks_is_set_object.isSetObject)(result)) return {
44
- ...result,
45
- id: `${prefix}${result.id}`
46
- };
47
- return null;
48
- }
49
- async function load(id) {
50
- let result = await ctx.$$internal.callHook("load", {
51
- sequential: true,
52
- result: "first",
53
- order: "pre"
54
- }, id);
55
- if (result) return result;
56
- result = await ctx.$$internal.callHook("load", {
57
- sequential: true,
58
- result: "first",
59
- order: "normal"
60
- }, id);
61
- if (result) return result;
62
- result = await ctx.load(id);
63
- if (result) return result;
64
- return ctx.$$internal.callHook("load", {
65
- sequential: true,
66
- result: "first",
67
- order: "post"
68
- }, id);
69
- }
21
+ if (options.prefix === true) prefix = "\0";
22
+ else if ((0, __stryke_type_checks_is_set_string.isSetString)(options.prefix)) prefix = options.prefix;
70
23
  return {
71
- resolveId,
72
- load
24
+ async resolveId(id, importer, opts = { isEntry: false }) {
25
+ let result = await ctx.$$internal.callHook("resolveId", {
26
+ sequential: true,
27
+ result: "first",
28
+ order: "pre"
29
+ }, id, importer, opts);
30
+ if ((0, __stryke_type_checks_is_set_string.isSetString)(result)) return `${prefix}${result}`;
31
+ else if ((0, __stryke_type_checks_is_set_object.isSetObject)(result)) return {
32
+ ...result,
33
+ id: `${prefix}${result.id}`
34
+ };
35
+ result = await ctx.$$internal.callHook("resolveId", {
36
+ sequential: true,
37
+ result: "first",
38
+ order: "normal"
39
+ }, id, importer, opts);
40
+ if ((0, __stryke_type_checks_is_set_string.isSetString)(result)) return `${prefix}${result}`;
41
+ else if ((0, __stryke_type_checks_is_set_object.isSetObject)(result)) return {
42
+ ...result,
43
+ id: `${prefix}${result.id}`
44
+ };
45
+ result = await ctx.resolve(id, importer, opts);
46
+ if ((0, __stryke_type_checks_is_set_string.isSetString)(result)) return `${prefix}${result}`;
47
+ else if ((0, __stryke_type_checks_is_set_object.isSetObject)(result)) return {
48
+ ...result,
49
+ id: `${prefix}${result.id}`
50
+ };
51
+ result = await ctx.$$internal.callHook("resolveId", {
52
+ sequential: true,
53
+ result: "first",
54
+ order: "post"
55
+ }, id, importer, opts);
56
+ if ((0, __stryke_type_checks_is_set_string.isSetString)(result)) return `${prefix}${result}`;
57
+ else if ((0, __stryke_type_checks_is_set_object.isSetObject)(result)) return {
58
+ ...result,
59
+ id: `${prefix}${result.id}`
60
+ };
61
+ return null;
62
+ },
63
+ async load(id) {
64
+ const moduleId = prefix ? id.replace(new RegExp(`^${prefix}*`, "g"), "") : id;
65
+ let result = await ctx.$$internal.callHook("load", {
66
+ sequential: true,
67
+ result: "first",
68
+ order: "pre"
69
+ }, moduleId);
70
+ if (result) return result;
71
+ result = await ctx.$$internal.callHook("load", {
72
+ sequential: true,
73
+ result: "first",
74
+ order: "normal"
75
+ }, moduleId);
76
+ if (result) return result;
77
+ result = await ctx.load(moduleId);
78
+ if (result) return result;
79
+ return ctx.$$internal.callHook("load", {
80
+ sequential: true,
81
+ result: "first",
82
+ order: "post"
83
+ }, moduleId);
84
+ }
73
85
  };
74
86
  }
75
87
 
@@ -11,7 +11,7 @@ interface CreateUnpluginModuleResolutionFunctionsOptions {
11
11
  *
12
12
  * @defaultValue "\\0"
13
13
  */
14
- prefix?: string | false;
14
+ prefix?: string | boolean;
15
15
  }
16
16
  /**
17
17
  * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.
@@ -1 +1 @@
1
- {"version":3,"file":"module-resolution.d.cts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"sourcesContent":[],"mappings":";;;;UA8BiB,8CAAA;;AAAjB;AAwBA;;;;;;EAKG,MAAA,CAAA,EAAA,MAAA,GAAA,KAAA;;;;;;;;;;;;;;iBALa,yDACG,gBAAgB,wBAExB,oBACA,iDACR,KAAK"}
1
+ {"version":3,"file":"module-resolution.d.cts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"sourcesContent":[],"mappings":";;;;UA8BiB,8CAAA;;AAAjB;AAwBA;;;;;;EAKG,MAAA,CAAA,EAAA,MAAA,GAAA,OAAA;;;;;;;;;;;;;;iBALa,yDACG,gBAAgB,wBAExB,oBACA,iDACR,KAAK"}
@@ -11,7 +11,7 @@ interface CreateUnpluginModuleResolutionFunctionsOptions {
11
11
  *
12
12
  * @defaultValue "\\0"
13
13
  */
14
- prefix?: string | false;
14
+ prefix?: string | boolean;
15
15
  }
16
16
  /**
17
17
  * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.
@@ -1 +1 @@
1
- {"version":3,"file":"module-resolution.d.mts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"sourcesContent":[],"mappings":";;;;UA8BiB,8CAAA;;AAAjB;AAwBA;;;;;;EAKG,MAAA,CAAA,EAAA,MAAA,GAAA,KAAA;;;;;;;;;;;;;;iBALa,yDACG,gBAAgB,wBAExB,oBACA,iDACR,KAAK"}
1
+ {"version":3,"file":"module-resolution.d.mts","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"sourcesContent":[],"mappings":";;;;UA8BiB,8CAAA;;AAAjB;AAwBA;;;;;;EAKG,MAAA,CAAA,EAAA,MAAA,GAAA,OAAA;;;;;;;;;;;;;;iBALa,yDACG,gBAAgB,wBAExB,oBACA,iDACR,KAAK"}
@@ -17,58 +17,70 @@ import { isSetString } from "@stryke/type-checks/is-set-string";
17
17
  function createUnpluginModuleResolutionFunctions(context, options = {}) {
18
18
  const ctx = context;
19
19
  let prefix = "";
20
- if (options.prefix !== false) prefix = options.prefix ?? "\0";
21
- async function resolveId(id, importer, opts = { isEntry: false }) {
22
- let result = await ctx.$$internal.callHook("resolveId", {
23
- sequential: true,
24
- result: "first",
25
- order: "pre"
26
- }, id, importer, opts);
27
- if (result) return result;
28
- result = await ctx.$$internal.callHook("resolveId", {
29
- sequential: true,
30
- result: "first",
31
- order: "normal"
32
- }, id, importer, opts);
33
- if (result) return result;
34
- result = await ctx.resolve(id, importer, opts);
35
- if (result) return result;
36
- result = await ctx.$$internal.callHook("resolveId", {
37
- sequential: true,
38
- result: "first",
39
- order: "post"
40
- }, id, importer, opts);
41
- if (isSetString(result)) return `${prefix}${result}`;
42
- else if (isSetObject(result)) return {
43
- ...result,
44
- id: `${prefix}${result.id}`
45
- };
46
- return null;
47
- }
48
- async function load(id) {
49
- let result = await ctx.$$internal.callHook("load", {
50
- sequential: true,
51
- result: "first",
52
- order: "pre"
53
- }, id);
54
- if (result) return result;
55
- result = await ctx.$$internal.callHook("load", {
56
- sequential: true,
57
- result: "first",
58
- order: "normal"
59
- }, id);
60
- if (result) return result;
61
- result = await ctx.load(id);
62
- if (result) return result;
63
- return ctx.$$internal.callHook("load", {
64
- sequential: true,
65
- result: "first",
66
- order: "post"
67
- }, id);
68
- }
20
+ if (options.prefix === true) prefix = "\0";
21
+ else if (isSetString(options.prefix)) prefix = options.prefix;
69
22
  return {
70
- resolveId,
71
- load
23
+ async resolveId(id, importer, opts = { isEntry: false }) {
24
+ let result = await ctx.$$internal.callHook("resolveId", {
25
+ sequential: true,
26
+ result: "first",
27
+ order: "pre"
28
+ }, id, importer, opts);
29
+ if (isSetString(result)) return `${prefix}${result}`;
30
+ else if (isSetObject(result)) return {
31
+ ...result,
32
+ id: `${prefix}${result.id}`
33
+ };
34
+ result = await ctx.$$internal.callHook("resolveId", {
35
+ sequential: true,
36
+ result: "first",
37
+ order: "normal"
38
+ }, id, importer, opts);
39
+ if (isSetString(result)) return `${prefix}${result}`;
40
+ else if (isSetObject(result)) return {
41
+ ...result,
42
+ id: `${prefix}${result.id}`
43
+ };
44
+ result = await ctx.resolve(id, importer, opts);
45
+ if (isSetString(result)) return `${prefix}${result}`;
46
+ else if (isSetObject(result)) return {
47
+ ...result,
48
+ id: `${prefix}${result.id}`
49
+ };
50
+ result = await ctx.$$internal.callHook("resolveId", {
51
+ sequential: true,
52
+ result: "first",
53
+ order: "post"
54
+ }, id, importer, opts);
55
+ if (isSetString(result)) return `${prefix}${result}`;
56
+ else if (isSetObject(result)) return {
57
+ ...result,
58
+ id: `${prefix}${result.id}`
59
+ };
60
+ return null;
61
+ },
62
+ async load(id) {
63
+ const moduleId = prefix ? id.replace(new RegExp(`^${prefix}*`, "g"), "") : id;
64
+ let result = await ctx.$$internal.callHook("load", {
65
+ sequential: true,
66
+ result: "first",
67
+ order: "pre"
68
+ }, moduleId);
69
+ if (result) return result;
70
+ result = await ctx.$$internal.callHook("load", {
71
+ sequential: true,
72
+ result: "first",
73
+ order: "normal"
74
+ }, moduleId);
75
+ if (result) return result;
76
+ result = await ctx.load(moduleId);
77
+ if (result) return result;
78
+ return ctx.$$internal.callHook("load", {
79
+ sequential: true,
80
+ result: "first",
81
+ order: "post"
82
+ }, moduleId);
83
+ }
72
84
  };
73
85
  }
74
86
 
@@ -1 +1 @@
1
- {"version":3,"file":"module-resolution.mjs","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { LoadResult } from \"rollup\";\nimport type {\n ExternalIdResult,\n HookFnMap,\n UnpluginBuildContext,\n UnpluginContext\n} from \"unplugin\";\nimport { UNSAFE_PluginContext } from \"../../types/_internal\";\nimport { PluginContext } from \"../../types/context\";\n\nexport interface CreateUnpluginModuleResolutionFunctionsOptions {\n /**\n * A prefix to apply to all resolved module IDs. This can be used to create virtual modules by prefixing them with a specific string (e.g., `\\0`).\n *\n * @remarks\n * If set to `false`, no prefix will be applied, and resolved module IDs will be returned as-is. By default, this is set to `\\0`, which is a common convention for virtual modules in Rollup and Vite plugins.\n *\n * @defaultValue \"\\\\0\"\n */\n prefix?: string | false;\n}\n\n/**\n * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.\n *\n * @remarks\n * This includes the `resolveId` and `load` hooks.\n *\n * @see https://rollupjs.org/plugin-development/#resolveid\n * @see https://rollupjs.org/plugin-development/#load\n *\n * @param context - The plugin context.\n * @returns The module resolution hooks (`resolveId` and `load`).\n */\nexport function createUnpluginModuleResolutionFunctions<\n TContext extends PluginContext = PluginContext\n>(\n context: TContext,\n options: CreateUnpluginModuleResolutionFunctionsOptions = {}\n): Pick<HookFnMap, \"resolveId\" | \"load\"> {\n const ctx = context as unknown as UNSAFE_PluginContext;\n\n let prefix = \"\";\n if (options.prefix !== false) {\n prefix = options.prefix ?? \"\\0\";\n }\n\n async function resolveId(\n this: UnpluginBuildContext & UnpluginContext,\n id: string,\n importer?: string,\n opts: {\n isEntry: boolean;\n } = { isEntry: false }\n ): Promise<string | ExternalIdResult | null | undefined> {\n let result = await ctx.$$internal.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"pre\"\n },\n id,\n importer,\n opts\n );\n if (result) {\n return result;\n }\n\n result = await ctx.$$internal.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"normal\"\n },\n id,\n importer,\n opts\n );\n if (result) {\n return result;\n }\n\n result = await ctx.resolve(id, importer, opts);\n if (result) {\n return result;\n }\n\n result = await ctx.$$internal.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"post\"\n },\n id,\n importer,\n opts\n );\n if (isSetString(result)) {\n return `${prefix}${result}`;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id: `${prefix}${result.id}`\n };\n }\n\n return null;\n }\n\n async function load(\n this: UnpluginBuildContext & UnpluginContext,\n id: string\n ): Promise<LoadResult | null | undefined> {\n let result = await ctx.$$internal.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"pre\"\n },\n id\n );\n if (result) {\n return result;\n }\n\n result = await ctx.$$internal.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"normal\"\n },\n id\n );\n if (result) {\n return result;\n }\n\n result = await ctx.load(id);\n if (result) {\n return result;\n }\n\n return ctx.$$internal.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"post\"\n },\n id\n );\n }\n\n return {\n resolveId,\n load\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAsDA,SAAgB,wCAGd,SACA,UAA0D,EAAE,EACrB;CACvC,MAAM,MAAM;CAEZ,IAAI,SAAS;AACb,KAAI,QAAQ,WAAW,MACrB,UAAS,QAAQ,UAAU;CAG7B,eAAe,UAEb,IACA,UACA,OAEI,EAAE,SAAS,OAAO,EACiC;EACvD,IAAI,SAAS,MAAM,IAAI,WAAW,SAChC,aACA;GACE,YAAY;GACZ,QAAQ;GACR,OAAO;GACR,EACD,IACA,UACA,KACD;AACD,MAAI,OACF,QAAO;AAGT,WAAS,MAAM,IAAI,WAAW,SAC5B,aACA;GACE,YAAY;GACZ,QAAQ;GACR,OAAO;GACR,EACD,IACA,UACA,KACD;AACD,MAAI,OACF,QAAO;AAGT,WAAS,MAAM,IAAI,QAAQ,IAAI,UAAU,KAAK;AAC9C,MAAI,OACF,QAAO;AAGT,WAAS,MAAM,IAAI,WAAW,SAC5B,aACA;GACE,YAAY;GACZ,QAAQ;GACR,OAAO;GACR,EACD,IACA,UACA,KACD;AACD,MAAI,YAAY,OAAO,CACrB,QAAO,GAAG,SAAS;WACV,YAAY,OAAO,CAC5B,QAAO;GACL,GAAG;GACH,IAAI,GAAG,SAAS,OAAO;GACxB;AAGH,SAAO;;CAGT,eAAe,KAEb,IACwC;EACxC,IAAI,SAAS,MAAM,IAAI,WAAW,SAChC,QACA;GACE,YAAY;GACZ,QAAQ;GACR,OAAO;GACR,EACD,GACD;AACD,MAAI,OACF,QAAO;AAGT,WAAS,MAAM,IAAI,WAAW,SAC5B,QACA;GACE,YAAY;GACZ,QAAQ;GACR,OAAO;GACR,EACD,GACD;AACD,MAAI,OACF,QAAO;AAGT,WAAS,MAAM,IAAI,KAAK,GAAG;AAC3B,MAAI,OACF,QAAO;AAGT,SAAO,IAAI,WAAW,SACpB,QACA;GACE,YAAY;GACZ,QAAQ;GACR,OAAO;GACR,EACD,GACD;;AAGH,QAAO;EACL;EACA;EACD"}
1
+ {"version":3,"file":"module-resolution.mjs","names":[],"sources":["../../../src/lib/unplugin/module-resolution.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { LoadResult } from \"rollup\";\nimport type {\n ExternalIdResult,\n HookFnMap,\n UnpluginBuildContext,\n UnpluginContext\n} from \"unplugin\";\nimport { UNSAFE_PluginContext } from \"../../types/_internal\";\nimport { PluginContext } from \"../../types/context\";\n\nexport interface CreateUnpluginModuleResolutionFunctionsOptions {\n /**\n * A prefix to apply to all resolved module IDs. This can be used to create virtual modules by prefixing them with a specific string (e.g., `\\0`).\n *\n * @remarks\n * If set to `false`, no prefix will be applied, and resolved module IDs will be returned as-is. By default, this is set to `\\0`, which is a common convention for virtual modules in Rollup and Vite plugins.\n *\n * @defaultValue \"\\\\0\"\n */\n prefix?: string | boolean;\n}\n\n/**\n * Creates the module resolution hook functions for a Powerlines unplugin plugin instance.\n *\n * @remarks\n * This includes the `resolveId` and `load` hooks.\n *\n * @see https://rollupjs.org/plugin-development/#resolveid\n * @see https://rollupjs.org/plugin-development/#load\n *\n * @param context - The plugin context.\n * @returns The module resolution hooks (`resolveId` and `load`).\n */\nexport function createUnpluginModuleResolutionFunctions<\n TContext extends PluginContext = PluginContext\n>(\n context: TContext,\n options: CreateUnpluginModuleResolutionFunctionsOptions = {}\n): Pick<HookFnMap, \"resolveId\" | \"load\"> {\n const ctx = context as unknown as UNSAFE_PluginContext;\n\n let prefix = \"\";\n if (options.prefix === true) {\n prefix = \"\\0\";\n } else if (isSetString(options.prefix)) {\n prefix = options.prefix;\n }\n\n return {\n async resolveId(\n this: UnpluginBuildContext & UnpluginContext,\n id: string,\n importer?: string,\n opts: {\n isEntry: boolean;\n } = { isEntry: false }\n ): Promise<string | ExternalIdResult | null | undefined> {\n let result = await ctx.$$internal.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"pre\"\n },\n id,\n importer,\n opts\n );\n if (isSetString(result)) {\n return `${prefix}${result}`;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id: `${prefix}${result.id}`\n };\n }\n\n result = await ctx.$$internal.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"normal\"\n },\n id,\n importer,\n opts\n );\n if (isSetString(result)) {\n return `${prefix}${result}`;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id: `${prefix}${result.id}`\n };\n }\n\n result = await ctx.resolve(id, importer, opts);\n if (isSetString(result)) {\n return `${prefix}${result}`;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id: `${prefix}${result.id}`\n };\n }\n\n result = await ctx.$$internal.callHook(\n \"resolveId\",\n {\n sequential: true,\n result: \"first\",\n order: \"post\"\n },\n id,\n importer,\n opts\n );\n if (isSetString(result)) {\n return `${prefix}${result}`;\n } else if (isSetObject(result)) {\n return {\n ...result,\n id: `${prefix}${result.id}`\n };\n }\n\n return null;\n },\n async load(\n this: UnpluginBuildContext & UnpluginContext,\n id: string\n ): Promise<LoadResult | null | undefined> {\n const moduleId = prefix\n ? id.replace(new RegExp(`^${prefix}*`, \"g\"), \"\")\n : id;\n\n let result = await ctx.$$internal.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"pre\"\n },\n moduleId\n );\n if (result) {\n return result;\n }\n\n result = await ctx.$$internal.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"normal\"\n },\n moduleId\n );\n if (result) {\n return result;\n }\n\n result = await ctx.load(moduleId);\n if (result) {\n return result;\n }\n\n return ctx.$$internal.callHook(\n \"load\",\n {\n sequential: true,\n result: \"first\",\n order: \"post\"\n },\n moduleId\n );\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAsDA,SAAgB,wCAGd,SACA,UAA0D,EAAE,EACrB;CACvC,MAAM,MAAM;CAEZ,IAAI,SAAS;AACb,KAAI,QAAQ,WAAW,KACrB,UAAS;UACA,YAAY,QAAQ,OAAO,CACpC,UAAS,QAAQ;AAG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IACR,OAAO;IACR,EACD,SACD;AACD,OAAI,OACF,QAAO;AAGT,YAAS,MAAM,IAAI,KAAK,SAAS;AACjC,OAAI,OACF,QAAO;AAGT,UAAO,IAAI,WAAW,SACpB,QACA;IACE,YAAY;IACZ,QAAQ;IACR,OAAO;IACR,EACD,SACD;;EAEJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-helpers.d.mts","names":[],"sources":["../../src/plugin-utils/build-helpers.ts"],"sourcesContent":[],"mappings":";;;;UAyBiB,yBAAA;YACL;EADK,UAAA,EAEH,aAFG,CAAA,YAAyB,CAAA;AAW1C;;;;;;;iBAAgB,mBAAA,UACL,UACR"}
1
+ {"version":3,"file":"build-helpers.d.mts","names":[],"sources":["../../src/plugin-utils/build-helpers.ts"],"sourcesContent":[],"mappings":";;;;UAyBiB,yBAAA;YACL;EADK,UAAA,EAEH,aAFG,CAAA,YAAyB,CAC9B;AAUZ;;;;;;;iBAAgB,mBAAA,UACL,UACR"}
@@ -1 +1 @@
1
- {"version":3,"file":"unplugin.d.cts","names":[],"sources":["../../src/types/unplugin.ts"],"sourcesContent":[],"mappings":";;;;;;;;KA6BY,sBAAA;KAWA,cAAA,GACR;AAZQ,KAiBA,oBAjBsB,CAAA,sBAiBqB,cAjBrB,CAAA,GAkBhC,aAlBgC,SAAA,MAAA,GAAA,SAAA,GAoB5B,aApB4B,SAAA,QAAA,GAAA,UAAA,GAsB1B,aAtB0B,SAAA,SAAA,GAAA,QAAA,GAwBxB,aAxBwB;AAWtB,UAeK,iBAfS,CACtB,iBAee,OAfO,GAeG,OAfH,CAAA,SAgBhB,eAhBgB,CAAA;EAKd;;;;;EAOF,GAAA,EAUH,GAVG,CAUC,QAVD,CAAA,QAAA,CAAA,CAAA;;AAEO,KAWL,oBAXoB,CAAA,iBAYb,OAZa,GAYH,OAZG,EAAA,wBAaN,cAbM,GAaW,cAbX,EAAA,yBAcL,oBAdK,CAcgB,eAdhB,CAAA,GAe5B,oBAf4B,CAeP,eAfO,CAA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tB,CAAA,CAAA,CA6BiC,gBA7BjC,CAAA,CA6BmD,IA7BnD,CAAA,GA8BL,QA9BK,CA8BI,iBA9BJ,CA8BoB,QA9BpB,CAAA,CAAA,CA8B+B,gBA9B/B,CAAA,CA8BiD,IA9BjD,CAAA,EAAJ;AANG,KAuCE,kBAAA,GAAqB,UAvCvB,GAAA;EAAmB;AAS7B;;EAC6B,QAAA,EAiCjB,mBAjCiB;CACH;AAAiB,KAmC/B,eAnC+B,CAAA,iBAmCE,OAnCF,GAmCY,OAnCZ,CAAA,GAAA,CAAA,OAAA,EAoChC,OApCgC,CAoCxB,QApCwB,CAAA,QAAA,CAAA,CAAA,YAAA,CAAA,CAAA,EAAA,IAAA,EAqCnC,mBArCmC,EAAA,GAsCtC,iBAtCsC,CAsCtB,QAtCsB,CAAA;AACK,yCAAA,GAAA,EAAA;AAArB,iCAAA,GAAA,EAAA;AACF,uCAAA,GAAA,EAAA;AAArB,kCAAA,GAAA,EAAA;AAGgB,uCAAA,GAAA,EAAA;AAAhB,qCAAA,GAAA,EAAA;AADa,kCAAA,GAAA,EAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/core",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "description": "An internal core package for Powerlines - please use the `powerlines` package for public usage.",
6
6
  "homepage": "https://stormsoftware.com",
@@ -493,17 +493,17 @@
493
493
  "types": "./dist/index.d.cts",
494
494
  "files": ["dist/**/*", "files/**/*", "schemas/**/*"],
495
495
  "dependencies": {
496
- "@storm-software/config": "^1.135.14",
497
- "@storm-software/config-tools": "^1.189.13",
498
- "@stryke/convert": "^0.6.46",
499
- "@stryke/fs": "^0.33.50",
500
- "@stryke/hash": "^0.13.3",
501
- "@stryke/helpers": "^0.9.48",
502
- "@stryke/json": "^0.14.0",
503
- "@stryke/path": "^0.26.12",
496
+ "@storm-software/config": "^1.135.18",
497
+ "@storm-software/config-tools": "^1.189.17",
498
+ "@stryke/convert": "^0.6.49",
499
+ "@stryke/fs": "^0.33.53",
500
+ "@stryke/hash": "^0.13.6",
501
+ "@stryke/helpers": "^0.9.51",
502
+ "@stryke/json": "^0.14.3",
503
+ "@stryke/path": "^0.26.15",
504
504
  "@stryke/string-format": "^0.14.8",
505
- "@stryke/type-checks": "^0.5.31",
506
- "@stryke/unique-id": "^0.3.61",
505
+ "@stryke/type-checks": "^0.5.34",
506
+ "@stryke/unique-id": "^0.3.64",
507
507
  "c12": "^3.3.3",
508
508
  "chalk": "5.6.2",
509
509
  "compatx": "^0.2.0",
@@ -515,14 +515,14 @@
515
515
  "unplugin": "^3.0.0"
516
516
  },
517
517
  "devDependencies": {
518
- "@storm-software/testing-tools": "^1.119.88",
519
- "@stryke/types": "^0.10.45",
518
+ "@storm-software/testing-tools": "^1.119.92",
519
+ "@stryke/types": "^0.10.48",
520
520
  "@types/diff-match-patch": "^1.0.36",
521
- "@types/node": "^25.3.3",
521
+ "@types/node": "^25.3.5",
522
522
  "@types/semver": "^7.7.1",
523
523
  "tsdown": "^0.17.2",
524
524
  "typescript": "^5.9.3"
525
525
  },
526
526
  "publishConfig": { "access": "public" },
527
- "gitHead": "56410862ad299064942d87d6a36cc62acfb0b544"
527
+ "gitHead": "9d8c7149d35ca03f3ce533b404084b720eecf1a4"
528
528
  }