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 3.5.1 to 3.5.2

8

lib/Configuration.js

@@ -76,3 +76,3 @@ "use strict";

SettingsType["MAP"] = "MAP";
})(SettingsType = exports.SettingsType || (exports.SettingsType = {}));
})(SettingsType || (exports.SettingsType = SettingsType = {}));
exports.FormatType = formatUtils.Type;

@@ -521,3 +521,3 @@ // General rules:

if (typeof value !== `string`)
throw new Error(`Expected value (${value}) to be a string`);
throw new Error(`Expected configuration setting "${path}" to be a string, got ${typeof value}`);
const valueWithReplacedVariables = miscUtils.replaceEnvVariables(value, {

@@ -682,3 +682,3 @@ env: process.env,

ProjectLookup[ProjectLookup["NONE"] = 2] = "NONE";
})(ProjectLookup = exports.ProjectLookup || (exports.ProjectLookup = {}));
})(ProjectLookup || (exports.ProjectLookup = ProjectLookup = {}));
class Configuration {

@@ -1327,3 +1327,3 @@ static create(startingCwd, projectCwdOrPlugins, maybePlugins) {

}
exports.Configuration = Configuration;
Configuration.telemetry = null;
exports.Configuration = Configuration;

@@ -16,3 +16,3 @@ "use strict";

EndStrategy[EndStrategy["Always"] = 2] = "Always";
})(EndStrategy = exports.EndStrategy || (exports.EndStrategy = {}));
})(EndStrategy || (exports.EndStrategy = EndStrategy = {}));
class PipeError extends Report_1.ReportError {

@@ -19,0 +19,0 @@ constructor({ fileName, code, signal }) {

@@ -48,3 +48,3 @@ "use strict";

Style[Style["BOLD"] = 2] = "BOLD";
})(Style = exports.Style || (exports.Style = {}));
})(Style || (exports.Style = Style = {}));
const chalkOptions = ci_info_1.default.GITHUB_ACTIONS

@@ -323,3 +323,3 @@ ? { level: 2 }

LogLevel["Discard"] = "discard";
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
})(LogLevel || (exports.LogLevel = LogLevel = {}));
/**

@@ -326,0 +326,0 @@ * Add support support for the `logFilters` setting to the specified Report

@@ -136,3 +136,3 @@ "use strict";

Method["DELETE"] = "DELETE";
})(Method = exports.Method || (exports.Method = {}));
})(Method || (exports.Method = Method = {}));
async function request(target, body, { configuration, headers, jsonRequest, jsonResponse, method = Method.GET }) {

@@ -139,0 +139,0 @@ const realRequest = async () => await requestImpl(target, body, { configuration, headers, jsonRequest, jsonResponse, method });

@@ -8,2 +8,2 @@ "use strict";

BuildType[BuildType["SHELLCODE"] = 1] = "SHELLCODE";
})(BuildType = exports.BuildType || (exports.BuildType = {}));
})(BuildType || (exports.BuildType = BuildType = {}));

@@ -832,6 +832,6 @@ "use strict";

}
exports.Manifest = Manifest;
Manifest.fileName = `package.json`;
Manifest.allDependencies = [`dependencies`, `devDependencies`, `peerDependencies`];
Manifest.hardDependencies = [`dependencies`, `devDependencies`];
exports.Manifest = Manifest;
function getIndent(content) {

@@ -838,0 +838,0 @@ const indentMatch = content.match(/^[ \t]+/m);

@@ -88,3 +88,3 @@ "use strict";

MessageName[MessageName["PROLOG_LIMIT_EXCEEDED"] = 79] = "PROLOG_LIMIT_EXCEEDED";
})(MessageName = exports.MessageName || (exports.MessageName = {}));
})(MessageName || (exports.MessageName = MessageName = {}));
function stringifyMessageName(name) {

@@ -91,0 +91,0 @@ return `YN${name.toString(10).padStart(4, `0`)}`;

@@ -306,3 +306,3 @@ "use strict";

CachingStrategy[CachingStrategy["Node"] = 2] = "Node";
})(CachingStrategy = exports.CachingStrategy || (exports.CachingStrategy = {}));
})(CachingStrategy || (exports.CachingStrategy = CachingStrategy = {}));
function dynamicRequire(path, { cachingStrategy = CachingStrategy.Node } = {}) {

@@ -309,0 +309,0 @@ switch (cachingStrategy) {

@@ -31,3 +31,3 @@ "use strict";

PackageManager["Pnpm"] = "pnpm";
})(PackageManager = exports.PackageManager || (exports.PackageManager = {}));
})(PackageManager || (exports.PackageManager = PackageManager = {}));
async function makePathWrapper(location, name, argv0, args = []) {

@@ -34,0 +34,0 @@ if (process.platform === `win32`) {

@@ -41,3 +41,3 @@ /// <reference types="node" />

private warningCount;
private errorCount;
private errors;
private startTime;

@@ -71,2 +71,3 @@ private indent;

reportError(name: MessageName, text: string): void;
reportErrorImpl(name: MessageName, text: string): void;
reportProgress(progressIt: ProgressIterable): {

@@ -73,0 +74,0 @@ stop: () => void;

@@ -119,3 +119,3 @@ "use strict";

this.warningCount = 0;
this.errorCount = 0;
this.errors = [];
this.startTime = Date.now();

@@ -152,3 +152,3 @@ this.indent = 0;

hasErrors() {
return this.errorCount > 0;
return this.errors.length > 0;
}

@@ -236,4 +236,8 @@ exitCode() {

this.indent -= 1;
if (GROUP !== null && !this.json && this.includeInfos)
if (GROUP !== null && !this.json && this.includeInfos) {
this.stdout.write(GROUP.end(what));
for (const [name, text] of this.errors) {
this.reportErrorImpl(name, text);
}
}
if (this.configuration.get(`enableTimers`) && elapsedTime > 200) {

@@ -324,3 +328,6 @@ this.reportInfo(null, `└ Completed in ${formatUtils.pretty(this.configuration, elapsedTime, formatUtils.Type.DURATION)}`);

reportError(name, text) {
this.errorCount += 1;
this.errors.push([name, text]);
this.reportErrorImpl(name, text);
}
reportErrorImpl(name, text) {
this.commit();

@@ -382,3 +389,3 @@ const formattedName = this.formatNameWithHyperlink(name);

let installStatus = ``;
if (this.errorCount > 0)
if (this.errors.length > 0)
installStatus = `Failed with errors`;

@@ -393,3 +400,3 @@ else if (this.warningCount > 0)

: installStatus;
if (this.errorCount > 0) {
if (this.errors.length > 0) {
this.reportError(MessageName_1.MessageName.UNNAMED, message);

@@ -396,0 +403,0 @@ }

@@ -19,3 +19,3 @@ "use strict";

MetricName["EXTENSION"] = "packageExtension";
})(MetricName = exports.MetricName || (exports.MetricName = {}));
})(MetricName || (exports.MetricName = MetricName = {}));
class TelemetryManager {

@@ -22,0 +22,0 @@ constructor(configuration, accountId) {

@@ -21,3 +21,3 @@ "use strict";

LinkType["SOFT"] = "SOFT";
})(LinkType = exports.LinkType || (exports.LinkType = {}));
})(LinkType || (exports.LinkType = LinkType = {}));
var PackageExtensionType;

@@ -28,3 +28,3 @@ (function (PackageExtensionType) {

PackageExtensionType["PeerDependencyMeta"] = "PeerDependencyMeta";
})(PackageExtensionType = exports.PackageExtensionType || (exports.PackageExtensionType = {}));
})(PackageExtensionType || (exports.PackageExtensionType = PackageExtensionType = {}));
var PackageExtensionStatus;

@@ -35,2 +35,2 @@ (function (PackageExtensionStatus) {

PackageExtensionStatus["Active"] = "active";
})(PackageExtensionStatus = exports.PackageExtensionStatus || (exports.PackageExtensionStatus = {}));
})(PackageExtensionStatus || (exports.PackageExtensionStatus = PackageExtensionStatus = {}));

@@ -55,3 +55,3 @@ "use strict";

}
exports.VirtualResolver = VirtualResolver;
VirtualResolver.protocol = `virtual:`;
exports.VirtualResolver = VirtualResolver;

@@ -51,3 +51,3 @@ "use strict";

}
exports.WorkspaceResolver = WorkspaceResolver;
WorkspaceResolver.protocol = `workspace:`;
exports.WorkspaceResolver = WorkspaceResolver;
{
"name": "@yarnpkg/core",
"version": "3.5.1",
"version": "3.5.2",
"license": "BSD-2-Clause",

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

"@yarnpkg/parsers": "^2.5.1",
"@yarnpkg/pnp": "^3.3.2",
"@yarnpkg/pnp": "^3.3.3",
"@yarnpkg/shell": "^3.2.5",

@@ -53,6 +53,6 @@ "camelcase": "^5.3.1",

"@types/tunnel": "^0.0.0",
"@yarnpkg/cli": "^3.5.1",
"@yarnpkg/cli": "^3.6.0",
"@yarnpkg/plugin-link": "^2.2.1",
"@yarnpkg/plugin-npm": "^2.7.3",
"@yarnpkg/plugin-pnp": "^3.2.9",
"@yarnpkg/plugin-npm": "^2.7.4",
"@yarnpkg/plugin-pnp": "^3.2.10",
"esbuild": "npm:esbuild-wasm@^0.15.15",

@@ -59,0 +59,0 @@ "rollup": "^2.59.0",

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