@vercel/go 2.4.1 → 2.4.2

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
@@ -894,7 +894,7 @@ function checkEncoding(name) {
894
894
 
895
895
  /***/ }),
896
896
 
897
- /***/ 8912:
897
+ /***/ 1235:
898
898
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
899
899
 
900
900
  var once = __webpack_require__(1924);
@@ -919,7 +919,6 @@ var eos = function(stream, opts, callback) {
919
919
  var rs = stream._readableState;
920
920
  var readable = opts.readable || (opts.readable !== false && stream.readable);
921
921
  var writable = opts.writable || (opts.writable !== false && stream.writable);
922
- var cancelled = false;
923
922
 
924
923
  var onlegacyfinish = function() {
925
924
  if (!stream.writable) onfinish();
@@ -944,13 +943,8 @@ var eos = function(stream, opts, callback) {
944
943
  };
945
944
 
946
945
  var onclose = function() {
947
- process.nextTick(onclosenexttick);
948
- };
949
-
950
- var onclosenexttick = function() {
951
- if (cancelled) return;
952
- if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close'));
953
- if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close'));
946
+ if (readable && !(rs && rs.ended)) return callback.call(stream, new Error('premature close'));
947
+ if (writable && !(ws && ws.ended)) return callback.call(stream, new Error('premature close'));
954
948
  };
955
949
 
956
950
  var onrequest = function() {
@@ -975,7 +969,6 @@ var eos = function(stream, opts, callback) {
975
969
  stream.on('close', onclose);
976
970
 
977
971
  return function() {
978
- cancelled = true;
979
972
  stream.removeListener('complete', onfinish);
980
973
  stream.removeListener('abort', onclose);
981
974
  stream.removeListener('request', onrequest);
@@ -12050,7 +12043,7 @@ function pendGo(self, fn) {
12050
12043
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
12051
12044
 
12052
12045
  var once = __webpack_require__(1924)
12053
- var eos = __webpack_require__(8912)
12046
+ var eos = __webpack_require__(1235)
12054
12047
  var fs = __webpack_require__(5747) // we only need fs to get the ReadStream and WriteStream prototypes
12055
12048
 
12056
12049
  var noop = function () {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/go",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/go",
@@ -37,7 +37,7 @@
37
37
  "@types/node-fetch": "^2.3.0",
38
38
  "@types/tar": "^4.0.0",
39
39
  "@types/yauzl-promise": "2.1.0",
40
- "@vercel/build-utils": "6.5.0",
40
+ "@vercel/build-utils": "6.6.0",
41
41
  "@vercel/ncc": "0.24.0",
42
42
  "async-retry": "1.3.1",
43
43
  "execa": "^1.0.0",
@@ -49,5 +49,5 @@
49
49
  "xdg-app-paths": "5.1.0",
50
50
  "yauzl-promise": "2.1.3"
51
51
  },
52
- "gitHead": "ab9915af32e54338845f6ff32340dd0189474c55"
52
+ "gitHead": "54514a44afef48726220bc8be8d20f4fda8e8b4f"
53
53
  }