Skip to content

Commit

Permalink
chore: update zx to v7.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jul 3, 2022
1 parent 58c671d commit 37ec02e
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 814 deletions.
124 changes: 67 additions & 57 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"is-reachable": "^5.2.1",
"npm-run-path": "^5.1.0",
"tempy": "^3.0.0",
"zx": "^7.0.6"
"zx": "^7.0.7"
}
}
4 changes: 2 additions & 2 deletions src/main/js/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ $.o = $.opt =
ctx(($) => {
Object.assign(_$, opts)
const p = $(...args)
if (p._snapshot) p._nothrow = true
if (p._snapshot.nothrow) p._nothrow = true
return p
})

export const createHook = (opts, name = randomId(), cb = (v) => v, configurable) => {
ProcessPromise.prototype[name] = function (...args) {
Object.assign(this._snapshot, opts)
if (this._snapshot) this._nothrow = true
if (this._snapshot.nothrow) this._nothrow = true

return cb(this, ...args)
}
Expand Down
Loading

0 comments on commit 37ec02e

Please sign in to comment.