powerlines 0.41.15 → 0.41.17

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.
@@ -76,7 +76,7 @@ let unplugin = require("unplugin");
76
76
 
77
77
  //#region package.json
78
78
  var name = "powerlines";
79
- var version = "0.41.15";
79
+ var version = "0.41.17";
80
80
 
81
81
  //#endregion
82
82
  //#region src/_internal/helpers/generate-types.ts
@@ -1126,7 +1126,7 @@ var VirtualFileSystem = class VirtualFileSystem {
1126
1126
  if (!this.#resolverCache) this.#resolverCache = (0, flat_cache.create)({
1127
1127
  cacheId: "module-resolution",
1128
1128
  cacheDir: this.#context.cachePath,
1129
- ttl: 3600 * 1e3,
1129
+ ttl: 120 * 1e3,
1130
1130
  lruSize: 5e3,
1131
1131
  persistInterval: 100
1132
1132
  });
@@ -2166,16 +2166,14 @@ var PowerlinesContext = class PowerlinesContext {
2166
2166
  }
2167
2167
  if (this.fs.isVirtual(moduleId) || importer && this.fs.isVirtual(importer)) {
2168
2168
  let resolvedImporter = importer;
2169
- if (importer && this.fs.isVirtual(importer)) resolvedImporter = await this.fs.resolve(importer, void 0, {
2169
+ if (importer && this.fs.isVirtual(importer)) resolvedImporter = await this.fs.resolve(importer, void 0, (0, defu.default)({
2170
2170
  conditions: this.config.resolve.conditions,
2171
- extensions: this.config.resolve.extensions,
2172
- ...options
2173
- });
2174
- const result = await this.fs.resolve(moduleId, resolvedImporter, {
2171
+ extensions: this.config.resolve.extensions
2172
+ }, options));
2173
+ const result = await this.fs.resolve(moduleId, resolvedImporter, (0, defu.default)({
2175
2174
  conditions: this.config.resolve.conditions,
2176
- extensions: this.config.resolve.extensions,
2177
- ...options
2178
- });
2175
+ extensions: this.config.resolve.extensions
2176
+ }, options));
2179
2177
  if (!result) return;
2180
2178
  const external = !(0, bundle_require.match)(moduleId, this.config.resolve.noExternal) && ((0, bundle_require.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));
2181
2179
  return {
@@ -72,7 +72,7 @@ import { setParseImpl } from "unplugin";
72
72
 
73
73
  //#region package.json
74
74
  var name = "powerlines";
75
- var version = "0.41.15";
75
+ var version = "0.41.17";
76
76
 
77
77
  //#endregion
78
78
  //#region src/_internal/helpers/generate-types.ts
@@ -1122,7 +1122,7 @@ var VirtualFileSystem = class VirtualFileSystem {
1122
1122
  if (!this.#resolverCache) this.#resolverCache = create({
1123
1123
  cacheId: "module-resolution",
1124
1124
  cacheDir: this.#context.cachePath,
1125
- ttl: 3600 * 1e3,
1125
+ ttl: 120 * 1e3,
1126
1126
  lruSize: 5e3,
1127
1127
  persistInterval: 100
1128
1128
  });
@@ -2162,16 +2162,14 @@ var PowerlinesContext = class PowerlinesContext {
2162
2162
  }
2163
2163
  if (this.fs.isVirtual(moduleId) || importer && this.fs.isVirtual(importer)) {
2164
2164
  let resolvedImporter = importer;
2165
- if (importer && this.fs.isVirtual(importer)) resolvedImporter = await this.fs.resolve(importer, void 0, {
2165
+ if (importer && this.fs.isVirtual(importer)) resolvedImporter = await this.fs.resolve(importer, void 0, defu$1({
2166
2166
  conditions: this.config.resolve.conditions,
2167
- extensions: this.config.resolve.extensions,
2168
- ...options
2169
- });
2170
- const result = await this.fs.resolve(moduleId, resolvedImporter, {
2167
+ extensions: this.config.resolve.extensions
2168
+ }, options));
2169
+ const result = await this.fs.resolve(moduleId, resolvedImporter, defu$1({
2171
2170
  conditions: this.config.resolve.conditions,
2172
- extensions: this.config.resolve.extensions,
2173
- ...options
2174
- });
2171
+ extensions: this.config.resolve.extensions
2172
+ }, options));
2175
2173
  if (!result) return;
2176
2174
  const 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));
2177
2175
  return {
@@ -3711,4 +3709,4 @@ Note: Please ensure the plugin package's default export is a class that extends
3711
3709
 
3712
3710
  //#endregion
3713
3711
  export { createUnpluginFactory as a, FileMetadata as c, FileSystem as d, _capnpFileId as f, createPluginContext as i, FileMetadata_KeyValuePair as l, version as m, PowerlinesAPIContext as n, PowerlinesContext as o, name as p, PowerlinesEnvironmentContext as r, FileId as s, PowerlinesAPI as t, FileStorage as u };
3714
- //# sourceMappingURL=api-B5vgsOxc.mjs.map
3712
+ //# sourceMappingURL=api-XU29DzLJ.mjs.map