Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@npmcli/arborist

Package Overview
Dependencies
Maintainers
4
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/arborist - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

4

lib/arborist/load-actual.js
// mix-in implementing the loadActual method
const {relative, dirname, resolve, join} = require('path')
const {relative, dirname, resolve, join, normalize} = require('path')

@@ -212,3 +212,3 @@ const rpj = require('read-package-json-fast')

.then(([pkg, error]) => {
return this[path === real ? _newNode : _newLink]({
return this[normalize(path) === real ? _newNode : _newLink]({
legacyPeerDeps: this.legacyPeerDeps,

@@ -215,0 +215,0 @@ path,

@@ -115,3 +115,3 @@ // Do not rely on package._fields, so that we don't throw

if (child.resolved)
return child.resolved === `file:${requested.fetchSpec}`
return child.resolved.replace(/\\/g, '/') === `file:${requested.fetchSpec.replace(/\\/g, '/')}`

@@ -118,0 +118,0 @@ // if we have a legacy mutated package.json file. we can't be 100%

@@ -116,4 +116,4 @@ // inventory, path, realpath, root, and parent

// should be equal if not a link
this.path = path
this.realpath = !this.isLink ? this.path : realpath
this.path = path && resolve(path)
this.realpath = !this.isLink ? this.path : resolve(realpath)

@@ -120,0 +120,0 @@ this.resolved = resolved || null

@@ -82,3 +82,3 @@ // parse a yarn lock file

this.current = null
const linere = /([^\n]*)\n/gm
const linere = /([^\r\n]*)\r?\n/gm
let match

@@ -85,0 +85,0 @@ let lineNum = 0

{
"name": "@npmcli/arborist",
"version": "1.0.11",
"version": "1.0.12",
"description": "Manage node_modules trees",

@@ -12,3 +12,3 @@ "dependencies": {

"@npmcli/node-gyp": "^1.0.0",
"@npmcli/run-script": "^1.7.2",
"@npmcli/run-script": "^1.8.0",
"bin-links": "^2.2.1",

@@ -42,3 +42,3 @@ "cacache": "^15.0.3",

"require-inject": "^1.4.4",
"tap": "^14.10.7",
"tap": "^14.11.0",
"tcompare": "^3.0.4"

@@ -45,0 +45,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc