@pnpm/normalize-registries
Advanced tools
Comparing version 1.0.6 to 2.0.0
# @pnpm/normalize-registries | ||
## 2.0.0 | ||
### Major Changes | ||
- 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work. | ||
### Patch Changes | ||
- Updated dependencies [97b986fbc] | ||
- @pnpm/types@7.0.0 | ||
## 1.0.6 | ||
@@ -4,0 +15,0 @@ |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DEFAULT_REGISTRIES = void 0; | ||
const normalizeRegistryUrl = require("normalize-registry-url"); | ||
const normalize_registry_url_1 = __importDefault(require("normalize-registry-url")); | ||
exports.DEFAULT_REGISTRIES = { | ||
@@ -9,7 +12,7 @@ default: 'https://registry.npmjs.org/', | ||
function normalizeRegistries(registries) { | ||
if (!registries) | ||
if (registries == null) | ||
return exports.DEFAULT_REGISTRIES; | ||
const normalizeRegistries = {}; | ||
for (const scope of Object.keys(registries)) { | ||
normalizeRegistries[scope] = normalizeRegistryUrl(registries[scope]); | ||
normalizeRegistries[scope] = (0, normalize_registry_url_1.default)(registries[scope]); | ||
} | ||
@@ -16,0 +19,0 @@ return { |
{ | ||
"name": "@pnpm/normalize-registries", | ||
"description": "Accepts a mapping of registry URLs and returns a mapping with the same URLs but normalized", | ||
"version": "1.0.6", | ||
"author": "Zoltan Kochan <z@kochan.io> (https://www.kochan.io/)", | ||
"version": "2.0.0", | ||
"bugs": { | ||
@@ -18,3 +17,3 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"engines": { | ||
"node": ">=10.16" | ||
"node": ">=12.17" | ||
}, | ||
@@ -26,6 +25,6 @@ "repository": "https://github.com/pnpm/pnpm/blob/master/packages/normalize-registries", | ||
"prepublishOnly": "pnpm run compile", | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build" | ||
"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix" | ||
}, | ||
"dependencies": { | ||
"@pnpm/types": "6.4.0", | ||
"@pnpm/types": "7.0.0", | ||
"normalize-registry-url": "1.0.0" | ||
@@ -32,0 +31,0 @@ }, |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
4541
30
1
+ Added@pnpm/types@7.0.0(transitive)
- Removed@pnpm/types@6.4.0(transitive)
Updated@pnpm/types@7.0.0