Socket
Socket
Sign inDemoInstall

@lavamoat/aa

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lavamoat/aa - npm Package Compare versions

Comparing version 3.1.0 to 3.1.2

.eslintignore

16

package.json
{
"name": "@lavamoat/aa",
"version": "3.1.0",
"version": "3.1.2",
"main": "src/index.js",

@@ -16,8 +16,11 @@ "bin": {

"lint": "yarn lint:eslint && yarn lint:deps",
"lint:eslint": "eslint \"src/**/*.js\"",
"lint:fix": "eslint src/**/*.js --fix",
"lint:eslint": "eslint .",
"lint:fix": "eslint . --fix",
"lint:deps": "depcheck"
},
"devDependencies": {
"ava": "^3.15.0"
"@metamask/eslint-config-nodejs": "^10.0.0",
"ava": "^3.15.0",
"eslint-plugin-ava": "^11.0.0",
"eslint-plugin-node": "^11.1.0"
},

@@ -32,3 +35,6 @@ "dependencies": {

"author": "kumavis",
"gitHead": "0298f5be9358742b74ef26a8f85e07e3c2172323"
"engines": {
"node": ">=14.0.0"
},
"gitHead": "178db076d9a8dbd1c6b5c9eb6d3b3d7ebd06214b"
}

@@ -1,2 +0,2 @@

const { readFileSync, statSync } = require('fs');
const { readFileSync, statSync } = require('fs')
const path = require('path')

@@ -17,11 +17,11 @@ const nodeResolve = require('resolve')

if (pkgfile.endsWith(self)) {
return {};
return {}
}
// original readPackageSync implementation from resolve internals:
var body = readFileSync(pkgfile);
var body = readFileSync(pkgfile)
try {
var pkg = JSON.parse(body);
return pkg;
var pkg = JSON.parse(body)
return pkg
} catch (jsonErr) { }
};
}

@@ -34,3 +34,3 @@ return {

}),
};
}
};

@@ -46,3 +46,3 @@

// offering 2x performance improvement compared to using original resolve
resolve = resolve || createPerformantResolve();
resolve = resolve || createPerformantResolve()
// resolve = resolve || nodeResolve

@@ -87,4 +87,4 @@ // walk tree

let currentLevelTodos;
let nextLevelTodos;
let currentLevelTodos
let nextLevelTodos
/**

@@ -97,3 +97,3 @@ * @param {object} options

// add the entry package as the first work unit
currentLevelTodos = [{ packageDir, logicalPath, includeDevDeps, visited, resolve }];
currentLevelTodos = [{ packageDir, logicalPath, includeDevDeps, visited, resolve }]
nextLevelTodos = []

@@ -104,4 +104,4 @@ // drain work queue until empty, avoid going depth-first by prioritizing the current depth level

if (currentLevelTodos.length === 0) {
currentLevelTodos = nextLevelTodos;
nextLevelTodos = [];
currentLevelTodos = nextLevelTodos
nextLevelTodos = []
}

@@ -114,5 +114,5 @@ } while (currentLevelTodos.length > 0)

function processOnePackageInLogicalTree(preferredPackageLogicalPathMap, resolve) {
const { packageDir, logicalPath = [], includeDevDeps = false, visited = new Set() } = currentLevelTodos.pop();
const { packageDir, logicalPath = [], includeDevDeps = false, visited = new Set() } = currentLevelTodos.pop()
const depsToWalk = getDependencies(packageDir, includeDevDeps)
const results = [];
const results = []

@@ -153,3 +153,3 @@ // deps are already sorted by preference for paths

}
return results;
return results
}

@@ -198,3 +198,3 @@

// as a tie breaker, prefer alphabetical order
if (a > b) {
if (a < b) {
return -1

@@ -201,0 +201,0 @@ } else if (a > b) {

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