@npmcli/arborist 7.0.0-pre.0 → 7.1.0

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.
@@ -628,7 +628,7 @@ module.exports = cls => class Reifier extends cls {
628
628
  process.emit('time', timer)
629
629
  this.addTracker('reify', node.name, node.location)
630
630
 
631
- const { npmVersion, nodeVersion } = this.options
631
+ const { npmVersion, nodeVersion, cpu, os } = this.options
632
632
  const p = Promise.resolve().then(async () => {
633
633
  // when we reify an optional node, check the engine and platform
634
634
  // first. be sure to ignore the --force and --engine-strict flags,
@@ -638,7 +638,7 @@ module.exports = cls => class Reifier extends cls {
638
638
  // eslint-disable-next-line promise/always-return
639
639
  if (node.optional) {
640
640
  checkEngine(node.package, npmVersion, nodeVersion, false)
641
- checkPlatform(node.package, false)
641
+ checkPlatform(node.package, false, { cpu, os })
642
642
  }
643
643
  await this[_checkBins](node)
644
644
  await this[_extractOrLink](node)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npmcli/arborist",
3
- "version": "7.0.0-pre.0",
3
+ "version": "7.1.0",
4
4
  "description": "Manage node_modules trees",
5
5
  "dependencies": {
6
6
  "@isaacs/string-locale-compare": "^1.1.0",