@yarnpkg/shell
Advanced tools
Comparing version 4.0.0-rc.48 to 4.0.0-rc.49
@@ -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", |
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
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
58834
1489
+ Addedclipanion@4.0.0-rc.4(transitive)
- Removedclipanion@3.2.1(transitive)
Updated@yarnpkg/fslib@^3.0.0-rc.49
Updatedclipanion@^4.0.0-rc.2