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

@yarnpkg/core

Package Overview
Dependencies
Maintainers
6
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/core - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

2

lib/httpUtils.d.ts
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node/http" />

@@ -9,3 +8,2 @@ /// <reference types="got/dist/source/core/utils/timed-out" />

import { IncomingHttpHeaders } from 'http';
import { URL } from 'url';
import { Configuration } from './Configuration';

@@ -12,0 +10,0 @@ import { WrapNetworkRequestInfo } from './Plugin';

7

lib/httpUtils.js

@@ -10,3 +10,2 @@ "use strict";

const tunnel_1 = tslib_1.__importDefault(require("tunnel"));
const url_1 = require("url");
const MessageName_1 = require("./MessageName");

@@ -21,3 +20,3 @@ const Report_1 = require("./Report");

function parseProxy(specifier) {
const url = new url_1.URL(specifier);
const url = new URL(specifier);
const proxy = { host: url.hostname, headers: {} };

@@ -112,3 +111,3 @@ if (url.port)

const mergableKeys = Object.keys(mergedNetworkSettings);
const url = typeof target === `string` ? new url_1.URL(target) : target;
const url = typeof target === `string` ? new URL(target) : target;
for (const [glob, config] of networkSettings) {

@@ -186,3 +185,3 @@ if (micromatch_1.default.isMatch(url.hostname, glob)) {

async function requestImpl(target, body, { configuration, headers, jsonRequest, jsonResponse, method = Method.GET }) {
const url = typeof target === `string` ? new url_1.URL(target) : target;
const url = typeof target === `string` ? new URL(target) : target;
const networkConfig = getNetworkSettings(url, { configuration });

@@ -189,0 +188,0 @@ if (networkConfig.enableNetwork === false)

/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import { PortablePath } from '@yarnpkg/fslib';
import { CommandClass } from 'clipanion';
import { Writable, Readable } from 'stream';
import { URL } from 'url';
import { PluginConfiguration, Configuration, ConfigurationDefinitionMap, PackageExtensionData } from './Configuration';

@@ -9,0 +7,0 @@ import { Fetcher } from './Fetcher';

{
"name": "@yarnpkg/core",
"version": "4.0.2",
"version": "4.0.3",
"license": "BSD-2-Clause",

@@ -15,4 +15,4 @@ "main": "./lib/index.js",

"@types/treeify": "^1.0.0",
"@yarnpkg/fslib": "^3.0.1",
"@yarnpkg/libzip": "^3.0.0",
"@yarnpkg/fslib": "^3.0.2",
"@yarnpkg/libzip": "^3.0.1",
"@yarnpkg/parsers": "^3.0.0",

@@ -53,5 +53,5 @@ "@yarnpkg/shell": "^4.0.0",

"@types/tunnel": "^0.0.0",
"@yarnpkg/cli": "^4.0.2",
"@yarnpkg/cli": "^4.1.0",
"@yarnpkg/plugin-link": "^3.0.0",
"@yarnpkg/plugin-npm": "^3.0.0",
"@yarnpkg/plugin-npm": "^3.0.1",
"@yarnpkg/plugin-pnp": "^4.0.2",

@@ -58,0 +58,0 @@ "comment-json": "^2.2.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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