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.0 to 4.0.1

4

lib/index.d.ts

@@ -30,4 +30,4 @@ import * as execUtils from './execUtils';

export type { CommandContext, Hooks, Plugin, WrapNetworkRequestInfo } from './Plugin';
export type { PeerRequirement } from './Project';
export { LOCKFILE_VERSION, Project, InstallMode } from './Project';
export type { PeerRequirement, PeerWarning } from './Project';
export { LOCKFILE_VERSION, PeerWarningType, Project, InstallMode } from './Project';
export { ReportError, Report } from './Report';

@@ -34,0 +34,0 @@ export type { Resolver, ResolveOptions, MinimalResolveOptions } from './Resolver';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.treeUtils = exports.tgzUtils = exports.structUtils = exports.semverUtils = exports.scriptUtils = exports.nodeUtils = exports.miscUtils = exports.formatUtils = exports.folderUtils = exports.execUtils = exports.httpUtils = exports.hashUtils = exports.PackageExtensionStatus = exports.PackageExtensionType = exports.LinkType = exports.YarnVersion = exports.Workspace = exports.WorkspaceResolver = exports.WorkspaceFetcher = exports.VirtualFetcher = exports.ThrowReport = exports.TelemetryManager = exports.reportOptionDeprecations = exports.StreamReport = exports.Report = exports.ReportError = exports.InstallMode = exports.Project = exports.LOCKFILE_VERSION = exports.MultiFetcher = exports.stringifyMessageName = exports.parseMessageName = exports.MessageName = exports.Manifest = exports.LockfileResolver = exports.LightReport = exports.LegacyMigrationResolver = exports.BuildDirectiveType = exports.WindowsLinkType = exports.SettingsType = exports.FormatType = exports.Configuration = exports.TAG_REGEXP = exports.LEGACY_PLUGINS = exports.DEFAULT_RC_FILENAME = exports.Cache = exports.CACHE_CHECKPOINT = exports.CACHE_VERSION = void 0;
exports.treeUtils = exports.tgzUtils = exports.structUtils = exports.semverUtils = exports.scriptUtils = exports.nodeUtils = exports.miscUtils = exports.formatUtils = exports.folderUtils = exports.execUtils = exports.httpUtils = exports.hashUtils = exports.PackageExtensionStatus = exports.PackageExtensionType = exports.LinkType = exports.YarnVersion = exports.Workspace = exports.WorkspaceResolver = exports.WorkspaceFetcher = exports.VirtualFetcher = exports.ThrowReport = exports.TelemetryManager = exports.reportOptionDeprecations = exports.StreamReport = exports.Report = exports.ReportError = exports.InstallMode = exports.Project = exports.PeerWarningType = exports.LOCKFILE_VERSION = exports.MultiFetcher = exports.stringifyMessageName = exports.parseMessageName = exports.MessageName = exports.Manifest = exports.LockfileResolver = exports.LightReport = exports.LegacyMigrationResolver = exports.BuildDirectiveType = exports.WindowsLinkType = exports.SettingsType = exports.FormatType = exports.Configuration = exports.TAG_REGEXP = exports.LEGACY_PLUGINS = exports.DEFAULT_RC_FILENAME = exports.Cache = exports.CACHE_CHECKPOINT = exports.CACHE_VERSION = void 0;
const tslib_1 = require("tslib");

@@ -60,2 +60,3 @@ const execUtils = tslib_1.__importStar(require("./execUtils"));

Object.defineProperty(exports, "LOCKFILE_VERSION", { enumerable: true, get: function () { return Project_1.LOCKFILE_VERSION; } });
Object.defineProperty(exports, "PeerWarningType", { enumerable: true, get: function () { return Project_1.PeerWarningType; } });
Object.defineProperty(exports, "Project", { enumerable: true, get: function () { return Project_1.Project; } });

@@ -62,0 +63,0 @@ Object.defineProperty(exports, "InstallMode", { enumerable: true, get: function () { return Project_1.InstallMode; } });

@@ -0,1 +1,2 @@

export declare const major: number;
export declare const openUrl: ((url: string) => Promise<boolean>) | undefined;

@@ -2,0 +3,0 @@ export type Architecture = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.availableParallelism = exports.getCaller = exports.getArchitectureSet = exports.getArchitectureName = exports.getArchitecture = exports.openUrl = void 0;
exports.availableParallelism = exports.getCaller = exports.getArchitectureSet = exports.getArchitectureName = exports.getArchitecture = exports.openUrl = exports.major = void 0;
const tslib_1 = require("tslib");

@@ -9,2 +9,3 @@ const fslib_1 = require("@yarnpkg/fslib");

const miscUtils = tslib_1.__importStar(require("./miscUtils"));
exports.major = Number(process.versions.node.split(`.`)[0]);
const openUrlBinary = new Map([

@@ -11,0 +12,0 @@ [`darwin`, `open`],

@@ -192,5 +192,4 @@ "use strict";

getRecommendedLength() {
const PREFIX_SIZE = `➤ YN0000: `.length;
// The -1 is to account for terminals that would wrap after
// the last column rather before the first overwrite
const PREFIX_SIZE = `➤ YN0000: ⠋ `.length;
// The `- 1` is to account for terminals that would wrap after the last column rather before the first overwrite
const recommendedLength = this.progressStyle !== null

@@ -197,0 +196,0 @@ ? this.stdout.columns - 1

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

for (let t = 0; t < 2; ++t)
treeOutput = treeOutput.replace(/^([│ ].{2}[├│ ].{2}[^\n]+\n)(([│ ]).{2}[├└].{2}[^\n]*\n[│ ].{2}[│ ].{2}[├└]─)/gm, `$1$3 │ (\\n)?\n$2`).replace(/^│\n/, ``);
treeOutput = treeOutput.replace(/^([│ ].{2}[├│ ].{2}[^\n]+\n)(([│ ]).{2}[├└].{2}[^\n]*\n[│ ].{2}[│ ].{2}[├└]─)/gm, `$1$3 │ \n$2`).replace(/^│\n/, ``);
if (separators >= 3)

@@ -94,0 +94,0 @@ throw new Error(`Only the first two levels are accepted by treeUtils.emitTree`);

{
"name": "@yarnpkg/core",
"version": "4.0.0",
"version": "4.0.1",
"license": "BSD-2-Clause",

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

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

@@ -52,6 +52,6 @@ "@yarnpkg/parsers": "^3.0.0",

"@types/tunnel": "^0.0.0",
"@yarnpkg/cli": "^4.0.0",
"@yarnpkg/cli": "^4.0.1",
"@yarnpkg/plugin-link": "^3.0.0",
"@yarnpkg/plugin-npm": "^3.0.0",
"@yarnpkg/plugin-pnp": "^4.0.0",
"@yarnpkg/plugin-pnp": "^4.0.1",
"comment-json": "^2.2.0",

@@ -58,0 +58,0 @@ "esbuild": "npm:esbuild-wasm@^0.15.15",

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