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

@pnpm/normalize-registries

Package Overview
Dependencies
Maintainers
3
Versions
51
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 1.0.6 to 2.0.0

11

CHANGELOG.md
# @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 @@

9

lib/index.js
"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

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