@pnpm/lockfile-utils
Advanced tools
Comparing version 1.0.10 to 2.0.0
@@ -6,5 +6,5 @@ export * from '@pnpm/lockfile-types'; | ||
import pkgSnapshotToResolution from './pkgSnapshotToResolution'; | ||
import satisfiesPackageJson from './satisfiesPackageJson'; | ||
export { nameVerFromPkgSnapshot, packageIdFromSnapshot, packageIsIndependent, pkgSnapshotToResolution, satisfiesPackageJson, }; | ||
import satisfiesPackageManifest from './satisfiesPackageManifest'; | ||
export { nameVerFromPkgSnapshot, packageIdFromSnapshot, packageIsIndependent, pkgSnapshotToResolution, satisfiesPackageManifest, }; | ||
import { refToRelative } from 'dependency-path'; | ||
export declare const getPkgShortId: typeof refToRelative; |
@@ -11,6 +11,6 @@ "use strict"; | ||
exports.pkgSnapshotToResolution = pkgSnapshotToResolution_1.default; | ||
const satisfiesPackageJson_1 = require("./satisfiesPackageJson"); | ||
exports.satisfiesPackageJson = satisfiesPackageJson_1.default; | ||
const satisfiesPackageManifest_1 = require("./satisfiesPackageManifest"); | ||
exports.satisfiesPackageManifest = satisfiesPackageManifest_1.default; | ||
// for backward compatibility | ||
const dependency_path_1 = require("dependency-path"); | ||
exports.getPkgShortId = dependency_path_1.refToRelative; |
import { PackageSnapshot } from '@pnpm/lockfile-types'; | ||
declare const _default: (relDepPath: string, pkgSnapshot: PackageSnapshot) => { | ||
name: string; | ||
peersSuffix: string | undefined; | ||
version: string; | ||
}; | ||
export default _default; |
@@ -9,2 +9,3 @@ "use strict"; | ||
name: pkgInfo.name, | ||
peersSuffix: pkgInfo.peersSuffix, | ||
version: pkgInfo.version, | ||
@@ -15,4 +16,5 @@ }; | ||
name: pkgSnapshot.name, | ||
peersSuffix: undefined, | ||
version: pkgSnapshot.version, | ||
}; | ||
}; |
@@ -15,3 +15,7 @@ "use strict"; | ||
const registry = name[0] === '@' && registries[name.split('/')[0]] || registries.default; | ||
return Object.assign({}, pkgSnapshot.resolution, { registry, tarball: getTarball(registry) }); | ||
return { | ||
...pkgSnapshot.resolution, | ||
registry, | ||
tarball: getTarball(registry), | ||
}; | ||
} | ||
@@ -23,3 +27,7 @@ if (pkgSnapshot.resolution['tarball'].startsWith('file:')) { | ||
const registry = name[0] === '@' && registries[name.split('/')[0]] || registries.default; | ||
return Object.assign({}, pkgSnapshot.resolution, { registry, tarball: url.resolve(registry, pkgSnapshot.resolution['tarball']) }); | ||
return { | ||
...pkgSnapshot.resolution, | ||
registry, | ||
tarball: url.resolve(registry, pkgSnapshot.resolution['tarball']), | ||
}; | ||
function getTarball(registry) { | ||
@@ -26,0 +34,0 @@ const { name, version } = dp.parse(relDepPath); |
102
package.json
{ | ||
"name": "@pnpm/lockfile-utils", | ||
"version": "1.0.10", | ||
"description": "Utils for dealing with pnpm-lock.yaml", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"engines": { | ||
"node": ">=8.15" | ||
}, | ||
"files": [ | ||
"lib/" | ||
], | ||
"scripts": { | ||
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts", | ||
"test": "pnpm run tsc && pnpm run lint && ts-node test --type-check", | ||
"tsc": "rimraf lib && tsc", | ||
"prepublishOnly": "pnpm run tsc" | ||
}, | ||
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-utils", | ||
"keywords": [ | ||
"pnpm", | ||
"shrinkwrap", | ||
"lockfile" | ||
], | ||
"author": { | ||
"name": "Zoltan Kochan", | ||
"email": "z@kochan.io", | ||
"url": "https://www.kochan.io" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pnpm/pnpm/issues" | ||
}, | ||
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-utils#readme", | ||
"devDependencies": { | ||
"@pnpm/lockfile-utils": "link:", | ||
"@types/js-yaml": "3", | ||
"@types/ramda": "0.25.39", | ||
"rimraf": "2.6.3", | ||
"tape": "4.11.0", | ||
"tempy": "0.3.0", | ||
"write-yaml-file": "3.0.1", | ||
"yaml-tag": "1.1.0" | ||
}, | ||
"dependencies": { | ||
"@pnpm/lockfile-types": "1.1.0", | ||
"@pnpm/resolver-base": "3.1.2", | ||
"@pnpm/types": "3.2.0", | ||
"dependency-path": "3.0.8", | ||
"get-npm-tarball-url": "2.0.1", | ||
"ramda": "0.26.1" | ||
} | ||
"name": "@pnpm/lockfile-utils", | ||
"version": "2.0.0", | ||
"description": "Utils for dealing with pnpm-lock.yaml", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"files": [ | ||
"lib/" | ||
], | ||
"scripts": { | ||
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts", | ||
"test": "pnpm run tsc && pnpm run lint && ts-node test --type-check", | ||
"tsc": "rimraf lib && tsc", | ||
"prepublishOnly": "pnpm run tsc" | ||
}, | ||
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-utils", | ||
"keywords": [ | ||
"pnpm", | ||
"shrinkwrap", | ||
"lockfile" | ||
], | ||
"author": { | ||
"name": "Zoltan Kochan", | ||
"email": "z@kochan.io", | ||
"url": "https://www.kochan.io" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pnpm/pnpm/issues" | ||
}, | ||
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/lockfile-utils#readme", | ||
"devDependencies": { | ||
"@pnpm/lockfile-utils": "link:", | ||
"@types/js-yaml": "3", | ||
"@types/ramda": "0.26.21", | ||
"rimraf": "3.0.0", | ||
"tape": "4.11.0", | ||
"tempy": "0.3.0", | ||
"write-yaml-file": "3.0.1", | ||
"yaml-tag": "1.1.0" | ||
}, | ||
"dependencies": { | ||
"@pnpm/lockfile-types": "1.1.0", | ||
"@pnpm/resolver-base": "4.0.0", | ||
"@pnpm/types": "4.0.0", | ||
"dependency-path": "4.0.0", | ||
"get-npm-tarball-url": "2.0.1", | ||
"ramda": "0.26.1" | ||
} | ||
} |
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
9822
162
+ Added@pnpm/resolver-base@4.0.0(transitive)
+ Added@pnpm/types@4.0.0(transitive)
+ Addeddependency-path@4.0.0(transitive)
+ Addedsemver@6.3.0(transitive)
- Removed@pnpm/resolver-base@3.1.2(transitive)
- Removed@pnpm/types@3.2.0(transitive)
- Removeddependency-path@3.0.8(transitive)
- Removedsemver@6.2.0(transitive)
Updated@pnpm/resolver-base@4.0.0
Updated@pnpm/types@4.0.0
Updateddependency-path@4.0.0