netlify-cli 17.31.0 → 17.32.0
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.
- package/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/base-command.js +9 -2
- package/dist/commands/dev/dev.d.ts.map +1 -1
- package/dist/commands/dev/dev.js +2 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/proxy.js +2 -2
- package/npm-shrinkwrap.json +2 -19
- package/package.json +1 -2
package/dist/utils/proxy.js
CHANGED
|
@@ -4,6 +4,7 @@ import { readFile } from 'fs/promises';
|
|
|
4
4
|
import http from 'http';
|
|
5
5
|
import https from 'https';
|
|
6
6
|
import { isIPv6 } from 'net';
|
|
7
|
+
import { Readable } from 'node:stream';
|
|
7
8
|
import path from 'path';
|
|
8
9
|
import process from 'process';
|
|
9
10
|
import util from 'util';
|
|
@@ -21,7 +22,6 @@ import { createProxyMiddleware } from 'http-proxy-middleware';
|
|
|
21
22
|
import { jwtDecode } from 'jwt-decode';
|
|
22
23
|
import { locatePath } from 'locate-path';
|
|
23
24
|
import pFilter from 'p-filter';
|
|
24
|
-
import toReadableStream from 'to-readable-stream';
|
|
25
25
|
import throttle from 'lodash/throttle.js';
|
|
26
26
|
import { handleProxyRequest, initializeProxy as initializeEdgeFunctionsProxy, isEdgeFunctionsRequest, } from '../lib/edge-functions/proxy.js';
|
|
27
27
|
import { fileExistsAsync, isFileAsync } from '../lib/fs.js';
|
|
@@ -129,7 +129,7 @@ const proxyToExternalUrl = function ({ dest, destURL, req, res, }) {
|
|
|
129
129
|
pathRewrite: () => destURL,
|
|
130
130
|
// hide logging
|
|
131
131
|
logLevel: 'warn',
|
|
132
|
-
...(Buffer.isBuffer(req.originalBody) && { buffer:
|
|
132
|
+
...(Buffer.isBuffer(req.originalBody) && { buffer: Readable.from(req.originalBody) }),
|
|
133
133
|
});
|
|
134
134
|
// @ts-expect-error TS(2345) FIXME: Argument of type 'Request' is not assignable to parameter of type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
|
|
135
135
|
return handler(req, res, () => { });
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.32.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "17.
|
|
9
|
+
"version": "17.32.0",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
@@ -113,7 +113,6 @@
|
|
|
113
113
|
"terminal-link": "3.0.0",
|
|
114
114
|
"through2-filter": "4.0.0",
|
|
115
115
|
"through2-map": "4.0.0",
|
|
116
|
-
"to-readable-stream": "3.0.0",
|
|
117
116
|
"toml": "3.0.0",
|
|
118
117
|
"tomlify-j0.4": "3.0.0",
|
|
119
118
|
"ulid": "2.3.0",
|
|
@@ -13443,17 +13442,6 @@
|
|
|
13443
13442
|
"node": ">=4"
|
|
13444
13443
|
}
|
|
13445
13444
|
},
|
|
13446
|
-
"node_modules/to-readable-stream": {
|
|
13447
|
-
"version": "3.0.0",
|
|
13448
|
-
"resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-3.0.0.tgz",
|
|
13449
|
-
"integrity": "sha512-vD2LytT6DxPynBa1xbMtswY9gGqj27wNbh2uvI5OhBe+mrGLurRWRQZyQn3812sqlQRtUJwaKVshG+PoGwbPDQ==",
|
|
13450
|
-
"engines": {
|
|
13451
|
-
"node": ">=12"
|
|
13452
|
-
},
|
|
13453
|
-
"funding": {
|
|
13454
|
-
"url": "https://github.com/sponsors/sindresorhus"
|
|
13455
|
-
}
|
|
13456
|
-
},
|
|
13457
13445
|
"node_modules/to-regex-range": {
|
|
13458
13446
|
"version": "5.0.1",
|
|
13459
13447
|
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
|
@@ -23563,11 +23551,6 @@
|
|
|
23563
23551
|
"resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
|
|
23564
23552
|
"integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4="
|
|
23565
23553
|
},
|
|
23566
|
-
"to-readable-stream": {
|
|
23567
|
-
"version": "3.0.0",
|
|
23568
|
-
"resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-3.0.0.tgz",
|
|
23569
|
-
"integrity": "sha512-vD2LytT6DxPynBa1xbMtswY9gGqj27wNbh2uvI5OhBe+mrGLurRWRQZyQn3812sqlQRtUJwaKVshG+PoGwbPDQ=="
|
|
23570
|
-
},
|
|
23571
23554
|
"to-regex-range": {
|
|
23572
23555
|
"version": "5.0.1",
|
|
23573
23556
|
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
3
|
"description": "Netlify command line tool",
|
|
4
|
-
"version": "17.
|
|
4
|
+
"version": "17.32.0",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -138,7 +138,6 @@
|
|
|
138
138
|
"terminal-link": "3.0.0",
|
|
139
139
|
"through2-filter": "4.0.0",
|
|
140
140
|
"through2-map": "4.0.0",
|
|
141
|
-
"to-readable-stream": "3.0.0",
|
|
142
141
|
"toml": "3.0.0",
|
|
143
142
|
"tomlify-j0.4": "3.0.0",
|
|
144
143
|
"ulid": "2.3.0",
|