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

@pnpm/normalize-registries

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/normalize-registries - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

4

lib/index.d.ts

@@ -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

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