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

pkgs-graph

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkgs-graph - npm Package Compare versions

Comparing version 6.1.1 to 6.1.2

6

CHANGELOG.md
# pkgs-graph
## 6.1.2
### Patch Changes
- a1a03d145: Import only the required functions from ramda.
## 6.1.1

@@ -4,0 +10,0 @@

24

lib/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -28,3 +9,2 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const npm_package_arg_1 = __importDefault(require("@zkochan/npm-package-arg"));
const R = __importStar(require("ramda"));
function default_1(pkgs, opts) {

@@ -67,3 +47,3 @@ const pkgMap = createPkgMap(pkgs);

if (spec.type === 'directory') {
const matchedPkg = R.values(pkgMap).find(pkg => path_1.default.relative(pkg.dir, spec.fetchSpec) === '');
const matchedPkg = Object.values(pkgMap).find(pkg => path_1.default.relative(pkg.dir, spec.fetchSpec) === '');
if (matchedPkg == null) {

@@ -76,3 +56,3 @@ return '';

return '';
const pkgs = R.values(pkgMap).filter(pkg => pkg.manifest.name === depName);
const pkgs = Object.values(pkgMap).filter(pkg => pkg.manifest.name === depName);
if (pkgs.length === 0)

@@ -79,0 +59,0 @@ return '';

{
"name": "pkgs-graph",
"version": "6.1.1",
"version": "6.1.2",
"description": "Create a graph from an array of packages",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

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