@pnpm/normalize-registries
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -5,4 +5,2 @@ import { Registries } from '@pnpm/types'; | ||
}; | ||
export declare function normalizeRegistries(registries?: { | ||
[scope: string]: string; | ||
}): Registries; | ||
export declare function normalizeRegistries(registries?: Record<string, string>): Registries; |
@@ -8,2 +8,3 @@ "use strict"; | ||
const normalize_registry_url_1 = __importDefault(require("normalize-registry-url")); | ||
const map_1 = __importDefault(require("ramda/src/map")); | ||
exports.DEFAULT_REGISTRIES = { | ||
@@ -15,6 +16,3 @@ default: 'https://registry.npmjs.org/', | ||
return exports.DEFAULT_REGISTRIES; | ||
const normalizeRegistries = {}; | ||
for (const scope of Object.keys(registries)) { | ||
normalizeRegistries[scope] = (0, normalize_registry_url_1.default)(registries[scope]); | ||
} | ||
const normalizeRegistries = (0, map_1.default)(normalize_registry_url_1.default, registries); | ||
return { | ||
@@ -21,0 +19,0 @@ ...exports.DEFAULT_REGISTRIES, |
{ | ||
"name": "@pnpm/normalize-registries", | ||
"description": "Accepts a mapping of registry URLs and returns a mapping with the same URLs but normalized", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"bugs": { | ||
@@ -21,11 +21,13 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
}, | ||
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/normalize-registries", | ||
"repository": "https://github.com/pnpm/pnpm/blob/main/config/normalize-registries", | ||
"dependencies": { | ||
"@pnpm/types": "8.9.0", | ||
"normalize-registry-url": "2.0.0" | ||
"normalize-registry-url": "2.0.0", | ||
"ramda": "npm:@pnpm/ramda@0.28.1", | ||
"@pnpm/types": "8.10.0" | ||
}, | ||
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/normalize-registries#readme", | ||
"homepage": "https://github.com/pnpm/pnpm/blob/main/config/normalize-registries#readme", | ||
"funding": "https://opencollective.com/pnpm", | ||
"devDependencies": { | ||
"@pnpm/normalize-registries": "4.0.2" | ||
"@types/ramda": "0.28.20", | ||
"@pnpm/normalize-registries": "4.0.3" | ||
}, | ||
@@ -32,0 +34,0 @@ "exports": { |
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 repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
0
4214
3
2
26
+ Addedramda@npm:@pnpm/ramda@0.28.1
+ Added@pnpm/ramda@0.28.1(transitive)
+ Added@pnpm/types@8.10.0(transitive)
- Removed@pnpm/types@8.9.0(transitive)
Updated@pnpm/types@8.10.0