powerlines 0.40.13 → 0.40.15
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.
- package/dist/{api-DNliE0lt.mjs → api-85-mgHqx.mjs} +48 -54
- package/dist/api-85-mgHqx.mjs.map +1 -0
- package/dist/{api-mL7vkH98.cjs → api-D180iP_A.cjs} +47 -53
- package/dist/astro.cjs +2 -2
- package/dist/astro.d.cts +1 -1
- package/dist/astro.d.mts +5 -5
- package/dist/astro.mjs +2 -2
- package/dist/{config-zlkThEoC.d.mts → config-CK756s0L.d.mts} +11 -4
- package/dist/config-CK756s0L.d.mts.map +1 -0
- package/dist/{config-BXRlCZ9z.d.cts → config-CiPXgwzt.d.mts} +2 -2
- package/dist/{config-BS54DOEG.d.mts.map → config-CiPXgwzt.d.mts.map} +1 -1
- package/dist/{config-BS54DOEG.d.mts → config-J74ORCFY.d.cts} +2 -2
- package/dist/{config-BXRlCZ9z.d.cts.map → config-J74ORCFY.d.cts.map} +1 -1
- package/dist/{config-CqsFCFR8.d.cts → config-vnrrSxEB.d.cts} +11 -4
- package/dist/config-vnrrSxEB.d.cts.map +1 -0
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +2 -2
- package/dist/context/index.cjs +1 -1
- package/dist/context/index.d.cts +3 -3
- package/dist/context/index.d.cts.map +1 -1
- package/dist/context/index.d.mts +6 -6
- package/dist/context/index.d.mts.map +1 -1
- package/dist/context/index.mjs +1 -1
- package/dist/{esbuild-D9_xvfrO.mjs → esbuild-t4PC4dn-.mjs} +2 -2
- package/dist/{esbuild-D9_xvfrO.mjs.map → esbuild-t4PC4dn-.mjs.map} +1 -1
- package/dist/{esbuild-Cbjh2zI3.cjs → esbuild-ynaP5f1V.cjs} +1 -1
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.mts +4 -4
- package/dist/esbuild.mjs +2 -2
- package/dist/farm.cjs +1 -1
- package/dist/farm.d.cts +1 -1
- package/dist/farm.d.mts +4 -4
- package/dist/farm.mjs +1 -1
- package/dist/{index-BPdDWzbp.d.cts → index-6BLROVtJ.d.mts} +2 -2
- package/dist/{index-BPdDWzbp.d.cts.map → index-6BLROVtJ.d.mts.map} +1 -1
- package/dist/{index-PJqBw8CG.d.mts → index-C7W0kmm7.d.mts} +2 -2
- package/dist/{index-PJqBw8CG.d.mts.map → index-C7W0kmm7.d.mts.map} +1 -1
- package/dist/{index-CRLhknww.d.mts → index-DJ-k0GOX.d.cts} +2 -2
- package/dist/{index-CRLhknww.d.mts.map → index-DJ-k0GOX.d.cts.map} +1 -1
- package/dist/{index-DjfS4slR.d.mts → index-iSZBsyij.d.mts} +6 -6
- package/dist/index-iSZBsyij.d.mts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +1 -1
- package/dist/next.cjs +2 -2
- package/dist/next.mjs +2 -2
- package/dist/nuxt.cjs +3 -3
- package/dist/nuxt.d.cts +1 -1
- package/dist/nuxt.d.mts +4 -4
- package/dist/nuxt.mjs +3 -3
- package/dist/{plugin-CUXcGRD_.d.mts → plugin-BE3wmhoU.d.cts} +2 -2
- package/dist/{plugin-CUXcGRD_.d.mts.map → plugin-BE3wmhoU.d.cts.map} +1 -1
- package/dist/{plugin-jeRiyjfy.d.cts → plugin-C_8RhG5V.d.mts} +2 -2
- package/dist/{plugin-jeRiyjfy.d.cts.map → plugin-C_8RhG5V.d.mts.map} +1 -1
- package/dist/{plugin-yR7bwKa_.d.cts → plugin-ear5Cnss.d.cts} +6 -6
- package/dist/plugin-ear5Cnss.d.cts.map +1 -0
- package/dist/plugin-utils.d.cts +7 -7
- package/dist/plugin-utils.d.cts.map +1 -1
- package/dist/plugin-utils.d.mts +11 -11
- package/dist/plugin-utils.d.mts.map +1 -1
- package/dist/{rolldown-Blrv1BE3.mjs → rolldown-C3tsiPzl.mjs} +2 -2
- package/dist/{rolldown-Blrv1BE3.mjs.map → rolldown-C3tsiPzl.mjs.map} +1 -1
- package/dist/{rolldown-DnjTTTNR.cjs → rolldown-CUDinDSb.cjs} +1 -1
- package/dist/rolldown.cjs +2 -2
- package/dist/rolldown.d.cts +1 -1
- package/dist/rolldown.d.mts +4 -4
- package/dist/rolldown.mjs +2 -2
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.mts +4 -4
- package/dist/rollup.mjs +1 -1
- package/dist/rspack.cjs +1 -1
- package/dist/rspack.d.cts +1 -1
- package/dist/rspack.d.mts +4 -4
- package/dist/rspack.mjs +1 -1
- package/dist/storage/index.d.cts +1 -1
- package/dist/storage/index.d.cts.map +1 -1
- package/dist/storage/index.d.mts +4 -4
- package/dist/tsdown.cjs +2 -2
- package/dist/tsdown.d.cts +1 -1
- package/dist/tsdown.d.mts +4 -4
- package/dist/tsdown.mjs +2 -2
- package/dist/tsup.cjs +2 -2
- package/dist/tsup.d.cts +1 -1
- package/dist/tsup.d.mts +4 -4
- package/dist/tsup.mjs +2 -2
- package/dist/typescript/index.d.cts +1 -1
- package/dist/typescript/index.d.mts +4 -4
- package/dist/unloader.cjs +1 -1
- package/dist/unloader.d.cts +1 -1
- package/dist/unloader.d.mts +4 -4
- package/dist/unloader.mjs +1 -1
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.mts +4 -4
- package/dist/unplugin.mjs +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.mts +2 -2
- package/dist/{vite-ClKDljCv.mjs → vite-CIGLlj_V.mjs} +2 -2
- package/dist/{vite-ClKDljCv.mjs.map → vite-CIGLlj_V.mjs.map} +1 -1
- package/dist/{vite-t0-H93-t.cjs → vite-NCu3ROcK.cjs} +1 -1
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.mts +5 -5
- package/dist/vite.mjs +2 -2
- package/dist/{webpack-Cih_Wt7Z.cjs → webpack-BLb_jBPH.cjs} +1 -1
- package/dist/{webpack-S_HPYcBX.mjs → webpack-DwcEC5ov.mjs} +2 -2
- package/dist/{webpack-S_HPYcBX.mjs.map → webpack-DwcEC5ov.mjs.map} +1 -1
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.mts +4 -4
- package/dist/webpack.mjs +2 -2
- package/dist/{write-file-D9MsaQ36.d.cts → write-file-CpNWY8SV.d.cts} +2 -2
- package/dist/{write-file-D9MsaQ36.d.cts.map → write-file-CpNWY8SV.d.cts.map} +1 -1
- package/package.json +12 -12
- package/dist/api-DNliE0lt.mjs.map +0 -1
- package/dist/config-CqsFCFR8.d.cts.map +0 -1
- package/dist/config-zlkThEoC.d.mts.map +0 -1
- package/dist/index-DjfS4slR.d.mts.map +0 -1
- package/dist/plugin-yR7bwKa_.d.cts.map +0 -1
|
@@ -70,7 +70,7 @@ import { setParseImpl } from "unplugin";
|
|
|
70
70
|
|
|
71
71
|
//#region package.json
|
|
72
72
|
var name = "powerlines";
|
|
73
|
-
var version = "0.40.
|
|
73
|
+
var version = "0.40.15";
|
|
74
74
|
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/_internal/helpers/generate-types.ts
|
|
@@ -2123,24 +2123,28 @@ var PowerlinesContext = class PowerlinesContext {
|
|
|
2123
2123
|
if (!result) return;
|
|
2124
2124
|
return {
|
|
2125
2125
|
id: result,
|
|
2126
|
-
external: !match(moduleId, this.config.resolve.noExternal) && (match(moduleId, this.config.resolve.external) || moduleId.startsWith("node:") || this.fs.isVirtual(moduleId) && this.config.projectType !== "application" || this.config.resolve.skipNodeModulesBundle && !/^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/.test(moduleId))
|
|
2126
|
+
external: !match(moduleId, this.config.resolve.noExternal) && (match(moduleId, this.config.resolve.external) || moduleId.startsWith("node:") || this.fs.isVirtual(moduleId) && this.config.projectType !== "application" || this.config.resolve.skipNodeModulesBundle && !/^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/.test(moduleId)),
|
|
2127
|
+
virtual: this.fs.isVirtual(moduleId)
|
|
2127
2128
|
};
|
|
2128
2129
|
}
|
|
2129
2130
|
if (this.config.resolve.skipNodeModulesBundle) {
|
|
2130
2131
|
if (match(moduleId, this.resolvePatterns) || match(moduleId, this.config.resolve.noExternal)) return;
|
|
2131
2132
|
if (match(moduleId, this.config.resolve.external) || moduleId.startsWith("node:")) return {
|
|
2132
2133
|
id: moduleId,
|
|
2133
|
-
external: true
|
|
2134
|
+
external: true,
|
|
2135
|
+
virtual: false
|
|
2134
2136
|
};
|
|
2135
2137
|
if (!/^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/.test(moduleId)) return {
|
|
2136
2138
|
id: moduleId,
|
|
2137
|
-
external: true
|
|
2139
|
+
external: true,
|
|
2140
|
+
virtual: false
|
|
2138
2141
|
};
|
|
2139
2142
|
} else {
|
|
2140
2143
|
if (match(moduleId, this.config.resolve.noExternal)) return;
|
|
2141
2144
|
if (match(moduleId, this.config.resolve.external) || moduleId.startsWith("node:")) return {
|
|
2142
2145
|
id: moduleId,
|
|
2143
|
-
external: true
|
|
2146
|
+
external: true,
|
|
2147
|
+
virtual: false
|
|
2144
2148
|
};
|
|
2145
2149
|
}
|
|
2146
2150
|
}
|
|
@@ -2635,8 +2639,8 @@ function isUnpluginBuilderVariant(str) {
|
|
|
2635
2639
|
function createUnpluginModuleResolutionFunctions(context, options = {}) {
|
|
2636
2640
|
const ctx = context;
|
|
2637
2641
|
let prefix = "";
|
|
2638
|
-
if (options.prefix
|
|
2639
|
-
else if (
|
|
2642
|
+
if (isSetString(options.prefix)) prefix = options.prefix;
|
|
2643
|
+
else if (options.prefix !== false) prefix = "\0powerlines:";
|
|
2640
2644
|
return {
|
|
2641
2645
|
async resolveId(id, importer, opts = { isEntry: false }) {
|
|
2642
2646
|
let result = await ctx.$$internal.callHook("resolveId", {
|
|
@@ -2644,63 +2648,65 @@ function createUnpluginModuleResolutionFunctions(context, options = {}) {
|
|
|
2644
2648
|
result: "first",
|
|
2645
2649
|
order: "pre"
|
|
2646
2650
|
}, id, importer, opts);
|
|
2647
|
-
if (isSetString(result)) return
|
|
2651
|
+
if (isSetString(result)) return result;
|
|
2648
2652
|
else if (isSetObject(result)) return {
|
|
2649
2653
|
...result,
|
|
2650
|
-
id: `${prefix}${result.id}`
|
|
2654
|
+
id: result.virtual ? `${prefix}${result.id}` : result.id
|
|
2651
2655
|
};
|
|
2652
2656
|
result = await ctx.$$internal.callHook("resolveId", {
|
|
2653
2657
|
sequential: true,
|
|
2654
2658
|
result: "first",
|
|
2655
2659
|
order: "normal"
|
|
2656
2660
|
}, id, importer, opts);
|
|
2657
|
-
if (isSetString(result)) return
|
|
2661
|
+
if (isSetString(result)) return result;
|
|
2658
2662
|
else if (isSetObject(result)) return {
|
|
2659
2663
|
...result,
|
|
2660
|
-
id: `${prefix}${result.id}`
|
|
2664
|
+
id: result.virtual ? `${prefix}${result.id}` : result.id
|
|
2661
2665
|
};
|
|
2662
2666
|
result = await ctx.resolve(id, importer, {
|
|
2663
2667
|
isFile: true,
|
|
2664
2668
|
...opts
|
|
2665
2669
|
});
|
|
2666
|
-
if (
|
|
2667
|
-
else if (isSetObject(result)) return {
|
|
2670
|
+
if (isSetObject(result)) return {
|
|
2668
2671
|
...result,
|
|
2669
|
-
id: `${prefix}${result.id}`
|
|
2672
|
+
id: result.virtual ? `${prefix}${result.id}` : result.id
|
|
2670
2673
|
};
|
|
2671
2674
|
result = await ctx.$$internal.callHook("resolveId", {
|
|
2672
2675
|
sequential: true,
|
|
2673
2676
|
result: "first",
|
|
2674
2677
|
order: "post"
|
|
2675
2678
|
}, id, importer, opts);
|
|
2676
|
-
if (isSetString(result)) return
|
|
2679
|
+
if (isSetString(result)) return result;
|
|
2677
2680
|
else if (isSetObject(result)) return {
|
|
2678
2681
|
...result,
|
|
2679
|
-
id: `${prefix}${result.id}`
|
|
2682
|
+
id: result.virtual ? `${prefix}${result.id}` : result.id
|
|
2680
2683
|
};
|
|
2681
2684
|
return null;
|
|
2682
2685
|
},
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
result
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
result
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2686
|
+
load: {
|
|
2687
|
+
filter: prefix ? { id: { include: [/* @__PURE__ */ new RegExp(`^${prefix.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`)] } } : void 0,
|
|
2688
|
+
async handler(id) {
|
|
2689
|
+
const moduleId = prefix ? id.replace(new RegExp(`^${prefix.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`, "g"), "") : id;
|
|
2690
|
+
let result = await ctx.$$internal.callHook("load", {
|
|
2691
|
+
sequential: true,
|
|
2692
|
+
result: "first",
|
|
2693
|
+
order: "pre"
|
|
2694
|
+
}, moduleId);
|
|
2695
|
+
if (result) return result;
|
|
2696
|
+
result = await ctx.$$internal.callHook("load", {
|
|
2697
|
+
sequential: true,
|
|
2698
|
+
result: "first",
|
|
2699
|
+
order: "normal"
|
|
2700
|
+
}, moduleId);
|
|
2701
|
+
if (result) return result;
|
|
2702
|
+
result = await ctx.load(moduleId);
|
|
2703
|
+
if (result) return result;
|
|
2704
|
+
return ctx.$$internal.callHook("load", {
|
|
2705
|
+
sequential: true,
|
|
2706
|
+
result: "first",
|
|
2707
|
+
order: "post"
|
|
2708
|
+
}, moduleId);
|
|
2709
|
+
}
|
|
2704
2710
|
}
|
|
2705
2711
|
};
|
|
2706
2712
|
}
|
|
@@ -2725,14 +2731,8 @@ function createUnpluginResolver(context, options = {}) {
|
|
|
2725
2731
|
return {
|
|
2726
2732
|
name: name$1.toLowerCase() === "unplugin" ? "powerlines" : `powerlines:${kebabCase(name$1)}`,
|
|
2727
2733
|
api: ctx.$$internal.api,
|
|
2728
|
-
resolveId
|
|
2729
|
-
|
|
2730
|
-
handler: resolveId
|
|
2731
|
-
},
|
|
2732
|
-
load: {
|
|
2733
|
-
filter: { id: { include: [/.*/] } },
|
|
2734
|
-
handler: load
|
|
2735
|
-
}
|
|
2734
|
+
resolveId,
|
|
2735
|
+
load
|
|
2736
2736
|
};
|
|
2737
2737
|
} catch (error) {
|
|
2738
2738
|
log(LogLevelLabel.FATAL, error?.message);
|
|
@@ -2778,14 +2778,8 @@ function createUnplugin(context, options = {}) {
|
|
|
2778
2778
|
return {
|
|
2779
2779
|
name: name$1.toLowerCase() === "unplugin" ? "powerlines" : `powerlines:${kebabCase(name$1)}`,
|
|
2780
2780
|
api: ctx.$$internal.api,
|
|
2781
|
-
resolveId
|
|
2782
|
-
|
|
2783
|
-
handler: resolveId
|
|
2784
|
-
},
|
|
2785
|
-
load: {
|
|
2786
|
-
filter: { id: { include: [/.*/] } },
|
|
2787
|
-
handler: load
|
|
2788
|
-
},
|
|
2781
|
+
resolveId,
|
|
2782
|
+
load,
|
|
2789
2783
|
transform,
|
|
2790
2784
|
buildStart,
|
|
2791
2785
|
buildEnd,
|
|
@@ -3854,4 +3848,4 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
3854
3848
|
|
|
3855
3849
|
//#endregion
|
|
3856
3850
|
export { _capnpFileId as _, createUnpluginFactory as a, createUnpluginModuleResolutionFunctions as c, PowerlinesContext as d, FileId as f, FileSystem as g, FileStorage as h, createPluginContext as i, combineContexts as l, FileMetadata_KeyValuePair as m, PowerlinesAPIContext as n, createUnplugin as o, FileMetadata as p, PowerlinesEnvironmentContext as r, createUnpluginResolver as s, PowerlinesAPI as t, isUnpluginBuilderVariant as u, name as v, version as y };
|
|
3857
|
-
//# sourceMappingURL=api-
|
|
3851
|
+
//# sourceMappingURL=api-85-mgHqx.mjs.map
|