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

@yarnpkg/shell

Package Overview
Dependencies
Maintainers
6
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/shell - npm Package Compare versions

Comparing version 4.0.0-rc.48 to 4.0.0-rc.49

13

lib/index.js

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

const stream_1 = require("stream");
const util_1 = require("util");
const promises_1 = require("timers/promises");
const entry_1 = tslib_1.__importDefault(require("./commands/entry"));

@@ -20,3 +20,2 @@ exports.EntryCommand = entry_1.default;

const pipe_2 = require("./pipe");
const setTimeoutPromise = (0, util_1.promisify)(setTimeout);
var StreamType;

@@ -96,3 +95,3 @@ (function (StreamType) {

[`exit`, async ([code, ...rest], opts, state) => {
return state.exitCode = parseInt(code !== null && code !== void 0 ? code : state.variables[`?`], 10);
return state.exitCode = parseInt(code ?? state.variables[`?`], 10);
}],

@@ -110,3 +109,3 @@ [`echo`, async (args, opts, state) => {

throw new errors_1.ShellError(`sleep: invalid time interval '${time}'`);
return await setTimeoutPromise(1000 * seconds, 0);
return await (0, promises_1.setTimeout)(1000 * seconds, 0);
}],

@@ -371,6 +370,6 @@ [`__ysh_run_procedure`, async (args, opts, state) => {

else {
if (Object.prototype.hasOwnProperty.call(state.variables, segment.name)) {
if (Object.hasOwn(state.variables, segment.name)) {
raw = state.variables[segment.name];
}
else if (Object.prototype.hasOwnProperty.call(state.environment, segment.name)) {
else if (Object.hasOwn(state.environment, segment.name)) {
raw = state.environment[segment.name];

@@ -605,3 +604,3 @@ }

key = String(Math.random());
} while (Object.prototype.hasOwnProperty.call(activeState.procedures, key));
} while (Object.hasOwn(activeState.procedures, key));
activeState.procedures = { ...activeState.procedures };

@@ -608,0 +607,0 @@ activeState.procedures[key] = procedure;

{
"name": "@yarnpkg/shell",
"version": "4.0.0-rc.48",
"version": "4.0.0-rc.49",
"stableVersion": "3.2.5",

@@ -14,6 +14,6 @@ "license": "BSD-2-Clause",

"dependencies": {
"@yarnpkg/fslib": "^3.0.0-rc.48",
"@yarnpkg/parsers": "^3.0.0-rc.48",
"@yarnpkg/fslib": "^3.0.0-rc.49",
"@yarnpkg/parsers": "^3.0.0-rc.49",
"chalk": "^3.0.0",
"clipanion": "^3.2.1",
"clipanion": "^4.0.0-rc.2",
"cross-spawn": "7.0.3",

@@ -20,0 +20,0 @@ "fast-glob": "^3.2.2",

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