@vercel/ruby 1.3.72 → 1.3.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -11
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -397,7 +397,7 @@ module.exports = resolveCommand;
397
397
 
398
398
  /***/ }),
399
399
 
400
- /***/ 8912:
400
+ /***/ 1235:
401
401
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
402
402
 
403
403
  var once = __webpack_require__(1924);
@@ -422,7 +422,6 @@ var eos = function(stream, opts, callback) {
422
422
  var rs = stream._readableState;
423
423
  var readable = opts.readable || (opts.readable !== false && stream.readable);
424
424
  var writable = opts.writable || (opts.writable !== false && stream.writable);
425
- var cancelled = false;
426
425
 
427
426
  var onlegacyfinish = function() {
428
427
  if (!stream.writable) onfinish();
@@ -447,13 +446,8 @@ var eos = function(stream, opts, callback) {
447
446
  };
448
447
 
449
448
  var onclose = function() {
450
- process.nextTick(onclosenexttick);
451
- };
452
-
453
- var onclosenexttick = function() {
454
- if (cancelled) return;
455
- if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close'));
456
- if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close'));
449
+ if (readable && !(rs && rs.ended)) return callback.call(stream, new Error('premature close'));
450
+ if (writable && !(ws && ws.ended)) return callback.call(stream, new Error('premature close'));
457
451
  };
458
452
 
459
453
  var onrequest = function() {
@@ -478,7 +472,6 @@ var eos = function(stream, opts, callback) {
478
472
  stream.on('close', onclose);
479
473
 
480
474
  return function() {
481
- cancelled = true;
482
475
  stream.removeListener('complete', onfinish);
483
476
  stream.removeListener('abort', onclose);
484
477
  stream.removeListener('request', onrequest);
@@ -5084,7 +5077,7 @@ module.exports.default = pathKey;
5084
5077
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5085
5078
 
5086
5079
  var once = __webpack_require__(1924)
5087
- var eos = __webpack_require__(8912)
5080
+ var eos = __webpack_require__(1235)
5088
5081
  var fs = __webpack_require__(5747) // we only need fs to get the ReadStream and WriteStream prototypes
5089
5082
 
5090
5083
  var noop = function () {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vercel/ruby",
3
3
  "author": "Nathan Cahill <nathan@nathancahill.com>",
4
- "version": "1.3.72",
4
+ "version": "1.3.74",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index",
7
7
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/ruby",
@@ -22,12 +22,12 @@
22
22
  "devDependencies": {
23
23
  "@types/fs-extra": "8.0.0",
24
24
  "@types/semver": "6.0.0",
25
- "@vercel/build-utils": "6.5.0",
25
+ "@vercel/build-utils": "6.7.0",
26
26
  "@vercel/ncc": "0.24.0",
27
27
  "execa": "2.0.4",
28
28
  "fs-extra": "^7.0.1",
29
29
  "semver": "6.1.1",
30
30
  "typescript": "4.3.4"
31
31
  },
32
- "gitHead": "ab9915af32e54338845f6ff32340dd0189474c55"
32
+ "gitHead": "46348201b4eadb03b403f99dc5574c31d2b3926e"
33
33
  }