powerlines 0.41.1 → 0.41.2

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 (52) hide show
  1. package/dist/{api-D21cVOiK.mjs → api-D5vRsf8r.mjs} +13 -11
  2. package/dist/{api-D21cVOiK.mjs.map → api-D5vRsf8r.mjs.map} +1 -1
  3. package/dist/{api-BW8H3yUM.cjs → api-uQhWlth_.cjs} +12 -10
  4. package/dist/astro.cjs +2 -2
  5. package/dist/astro.mjs +2 -2
  6. package/dist/context/index.cjs +1 -1
  7. package/dist/context/index.mjs +1 -1
  8. package/dist/{esbuild-CJ9K3dGj.mjs → esbuild-BfCpnSO-.mjs} +2 -2
  9. package/dist/{esbuild-CJ9K3dGj.mjs.map → esbuild-BfCpnSO-.mjs.map} +1 -1
  10. package/dist/{esbuild-b0xlEllw.cjs → esbuild-DvRmtvnR.cjs} +1 -1
  11. package/dist/esbuild.cjs +2 -2
  12. package/dist/esbuild.mjs +2 -2
  13. package/dist/farm.cjs +1 -1
  14. package/dist/farm.mjs +1 -1
  15. package/dist/index.cjs +1 -1
  16. package/dist/index.mjs +1 -1
  17. package/dist/next.cjs +2 -2
  18. package/dist/next.mjs +2 -2
  19. package/dist/nuxt.cjs +3 -3
  20. package/dist/nuxt.mjs +3 -3
  21. package/dist/plugin-utils.d.cts +2 -2
  22. package/dist/plugin-utils.d.cts.map +1 -1
  23. package/dist/plugin-utils.d.mts +2 -2
  24. package/dist/plugin-utils.d.mts.map +1 -1
  25. package/dist/{rolldown-Q3Wb2_3B.mjs → rolldown-B3cFjwXl.mjs} +2 -2
  26. package/dist/{rolldown-Q3Wb2_3B.mjs.map → rolldown-B3cFjwXl.mjs.map} +1 -1
  27. package/dist/{rolldown-BCkDg8D_.cjs → rolldown-CFar-4ye.cjs} +1 -1
  28. package/dist/rolldown.cjs +2 -2
  29. package/dist/rolldown.mjs +2 -2
  30. package/dist/rollup.cjs +1 -1
  31. package/dist/rollup.mjs +1 -1
  32. package/dist/rspack.cjs +1 -1
  33. package/dist/rspack.mjs +1 -1
  34. package/dist/tsdown.cjs +2 -2
  35. package/dist/tsdown.mjs +2 -2
  36. package/dist/tsup.cjs +2 -2
  37. package/dist/tsup.mjs +2 -2
  38. package/dist/unloader.cjs +1 -1
  39. package/dist/unloader.mjs +1 -1
  40. package/dist/unplugin.cjs +1 -1
  41. package/dist/unplugin.mjs +1 -1
  42. package/dist/{vite-CHNHlbcn.mjs → vite-DQZ929w1.mjs} +2 -2
  43. package/dist/{vite-CHNHlbcn.mjs.map → vite-DQZ929w1.mjs.map} +1 -1
  44. package/dist/{vite-CI8GXLJT.cjs → vite-PiiCpqZ4.cjs} +1 -1
  45. package/dist/vite.cjs +2 -2
  46. package/dist/vite.mjs +2 -2
  47. package/dist/{webpack-DS6vD_y6.mjs → webpack-Dpnlx4Z6.mjs} +2 -2
  48. package/dist/{webpack-DS6vD_y6.mjs.map → webpack-Dpnlx4Z6.mjs.map} +1 -1
  49. package/dist/{webpack-DCCHEoZ_.cjs → webpack-UEi2fVN4.cjs} +1 -1
  50. package/dist/webpack.cjs +2 -2
  51. package/dist/webpack.mjs +2 -2
  52. package/package.json +12 -12
@@ -71,7 +71,7 @@ import { setParseImpl } from "unplugin";
71
71
 
72
72
  //#region package.json
73
73
  var name = "powerlines";
74
- var version = "0.41.1";
74
+ var version = "0.41.2";
75
75
 
76
76
  //#endregion
77
77
  //#region src/_internal/helpers/generate-types.ts
@@ -2694,11 +2694,13 @@ function createUnpluginModuleResolutionFunctions(context, options = {}) {
2694
2694
  const ctx = context;
2695
2695
  return {
2696
2696
  async resolveId(id, importer, opts = { isEntry: false }) {
2697
+ const normalizedId = id.replace(VIRTUAL_MODULE_PREFIX_REGEX, "");
2698
+ const normalizedImporter = importer ? importer.replace(VIRTUAL_MODULE_PREFIX_REGEX, "") : void 0;
2697
2699
  let result = await ctx.$$internal.callHook("resolveId", {
2698
2700
  sequential: true,
2699
2701
  result: "first",
2700
2702
  order: "pre"
2701
- }, id, importer, opts);
2703
+ }, normalizedId, normalizedImporter, opts);
2702
2704
  if (isSetString(result)) return result;
2703
2705
  else if (isSetObject(result)) return {
2704
2706
  ...result,
@@ -2708,13 +2710,13 @@ function createUnpluginModuleResolutionFunctions(context, options = {}) {
2708
2710
  sequential: true,
2709
2711
  result: "first",
2710
2712
  order: "normal"
2711
- }, id, importer, opts);
2713
+ }, normalizedId, normalizedImporter, opts);
2712
2714
  if (isSetString(result)) return result;
2713
2715
  else if (isSetObject(result)) return {
2714
2716
  ...result,
2715
2717
  id: result.virtual && options.prefix !== false ? `${VIRTUAL_MODULE_PREFIX}${result.id}` : result.id
2716
2718
  };
2717
- result = await ctx.resolve(id, importer, {
2719
+ result = await ctx.resolve(normalizedId, normalizedImporter, {
2718
2720
  isFile: true,
2719
2721
  ...opts
2720
2722
  });
@@ -2726,7 +2728,7 @@ function createUnpluginModuleResolutionFunctions(context, options = {}) {
2726
2728
  sequential: true,
2727
2729
  result: "first",
2728
2730
  order: "post"
2729
- }, id, importer, opts);
2731
+ }, normalizedId, normalizedImporter, opts);
2730
2732
  if (isSetString(result)) return result;
2731
2733
  else if (isSetObject(result)) return {
2732
2734
  ...result,
@@ -2737,26 +2739,26 @@ function createUnpluginModuleResolutionFunctions(context, options = {}) {
2737
2739
  load: {
2738
2740
  filter: options.prefix !== false ? { id: { include: [VIRTUAL_MODULE_PREFIX_REGEX] } } : void 0,
2739
2741
  async handler(id) {
2740
- const moduleId = id.replace(VIRTUAL_MODULE_PREFIX_REGEX, "");
2742
+ const normalizedId = id.replace(VIRTUAL_MODULE_PREFIX_REGEX, "");
2741
2743
  let result = await ctx.$$internal.callHook("load", {
2742
2744
  sequential: true,
2743
2745
  result: "first",
2744
2746
  order: "pre"
2745
- }, moduleId);
2747
+ }, normalizedId);
2746
2748
  if (result) return result;
2747
2749
  result = await ctx.$$internal.callHook("load", {
2748
2750
  sequential: true,
2749
2751
  result: "first",
2750
2752
  order: "normal"
2751
- }, moduleId);
2753
+ }, normalizedId);
2752
2754
  if (result) return result;
2753
- result = await ctx.load(moduleId);
2755
+ result = await ctx.load(normalizedId);
2754
2756
  if (result) return result;
2755
2757
  return ctx.$$internal.callHook("load", {
2756
2758
  sequential: true,
2757
2759
  result: "first",
2758
2760
  order: "post"
2759
- }, moduleId);
2761
+ }, normalizedId);
2760
2762
  }
2761
2763
  }
2762
2764
  };
@@ -3899,4 +3901,4 @@ Note: Please ensure the plugin package's default export is a class that extends
3899
3901
 
3900
3902
  //#endregion
3901
3903
  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 };
3902
- //# sourceMappingURL=api-D21cVOiK.mjs.map
3904
+ //# sourceMappingURL=api-D5vRsf8r.mjs.map