mam 1.11.792 → 1.11.793

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/node.js CHANGED
@@ -5293,6 +5293,8 @@ var $;
5293
5293
  ensure(path) {
5294
5294
  const mod = $mol_file.absolute(path);
5295
5295
  const parent = mod.parent();
5296
+ if (mod.name().startsWith('node:'))
5297
+ return true;
5296
5298
  if (mod !== this.root())
5297
5299
  this.ensure(parent.path());
5298
5300
  if (mod.exists() && mod.type() !== 'dir')
@@ -5955,8 +5957,6 @@ var $;
5955
5957
  const parent = mod.parent();
5956
5958
  const node = this.root().resolve('node');
5957
5959
  const node_modules = this.root().resolve('node_modules');
5958
- if (mod.name().startsWith('node:'))
5959
- return true;
5960
5960
  if ([node, node_modules].includes(parent)
5961
5961
  && mod.name() !== 'node'
5962
5962
  && !mod.name().startsWith('@')) {