@yarnpkg/core
Advanced tools
Comparing version 3.2.2 to 3.2.3
@@ -79,5 +79,6 @@ export declare enum MessageName { | ||
INCOMPATIBLE_ARCHITECTURE = 76, | ||
GHOST_ARCHITECTURE = 77 | ||
GHOST_ARCHITECTURE = 77, | ||
PROLOG_LIMIT_EXCEEDED = 79 | ||
} | ||
export declare function stringifyMessageName(name: MessageName | number): string; | ||
export declare function parseMessageName(messageName: string): MessageName; |
@@ -87,2 +87,3 @@ "use strict"; | ||
MessageName[MessageName["GHOST_ARCHITECTURE"] = 77] = "GHOST_ARCHITECTURE"; | ||
MessageName[MessageName["PROLOG_LIMIT_EXCEEDED"] = 79] = "PROLOG_LIMIT_EXCEEDED"; | ||
})(MessageName = exports.MessageName || (exports.MessageName = {})); | ||
@@ -89,0 +90,0 @@ function stringifyMessageName(name) { |
@@ -141,2 +141,18 @@ "use strict"; | ||
scriptEnv.npm_package_version = version; | ||
let packageLocation; | ||
if (workspace) { | ||
packageLocation = workspace.cwd; | ||
} | ||
else { | ||
const pkg = project.storedPackages.get(locator.locatorHash); | ||
if (!pkg) | ||
throw new Error(`Package for ${structUtils.prettyLocator(project.configuration, locator)} not found in the project`); | ||
const linkers = project.configuration.getLinkers(); | ||
const linkerOptions = { project, report: new StreamReport_1.StreamReport({ stdout: new stream_1.PassThrough(), configuration: project.configuration }) }; | ||
const linker = linkers.find(linker => linker.supportsPackage(pkg, linkerOptions)); | ||
if (!linker) | ||
throw new Error(`The package ${structUtils.prettyLocator(project.configuration, pkg)} isn't supported by any of the available linkers`); | ||
packageLocation = await linker.findPackageLocation(pkg, linkerOptions); | ||
} | ||
scriptEnv.npm_package_json = fslib_2.npath.fromPortablePath(fslib_2.ppath.join(packageLocation, fslib_1.Filename.manifest)); | ||
} | ||
@@ -143,0 +159,0 @@ const version = YarnVersion_1.YarnVersion !== null |
{ | ||
"name": "@yarnpkg/core", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"license": "BSD-2-Clause", | ||
@@ -11,8 +11,8 @@ "main": "./lib/index.js", | ||
"@types/treeify": "^1.0.0", | ||
"@yarnpkg/fslib": "^2.6.2", | ||
"@yarnpkg/fslib": "^2.7.0", | ||
"@yarnpkg/json-proxy": "^2.1.1", | ||
"@yarnpkg/libzip": "^2.2.4", | ||
"@yarnpkg/parsers": "^2.5.1", | ||
"@yarnpkg/pnp": "^3.2.1", | ||
"@yarnpkg/shell": "^3.2.2", | ||
"@yarnpkg/pnp": "^3.2.2", | ||
"@yarnpkg/shell": "^3.2.3", | ||
"camelcase": "^5.3.1", | ||
@@ -23,3 +23,3 @@ "chalk": "^3.0.0", | ||
"cross-spawn": "7.0.3", | ||
"diff": "^4.0.1", | ||
"diff": "^5.1.0", | ||
"globby": "^11.0.1", | ||
@@ -47,3 +47,3 @@ "got": "^11.7.0", | ||
"@types/cross-spawn": "6.0.0", | ||
"@types/diff": "^4.0.2", | ||
"@types/diff": "^5.0.0", | ||
"@types/lodash": "^4.14.136", | ||
@@ -54,6 +54,6 @@ "@types/micromatch": "^4.0.1", | ||
"@types/tunnel": "^0.0.0", | ||
"@yarnpkg/cli": "^3.2.1", | ||
"@yarnpkg/cli": "^3.2.2", | ||
"@yarnpkg/plugin-link": "^2.2.1", | ||
"@yarnpkg/plugin-npm": "^2.7.1", | ||
"@yarnpkg/plugin-pnp": "^3.2.1", | ||
"@yarnpkg/plugin-pnp": "^3.2.2", | ||
"esbuild": "npm:esbuild-wasm@^0.11.20", | ||
@@ -60,0 +60,0 @@ "rollup": "^2.59.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
750495
13273
4
+ Addeddiff@5.2.0(transitive)
- Removeddiff@4.0.2(transitive)
Updated@yarnpkg/fslib@^2.7.0
Updated@yarnpkg/pnp@^3.2.2
Updated@yarnpkg/shell@^3.2.3
Updateddiff@^5.1.0