pkgs-graph
Advanced tools
Comparing version 6.1.1 to 6.1.2
# pkgs-graph | ||
## 6.1.2 | ||
### Patch Changes | ||
- a1a03d145: Import only the required functions from ramda. | ||
## 6.1.1 | ||
@@ -4,0 +10,0 @@ |
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11792
120