@letterstory/cli 0.121.3 → 0.121.4
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/bin/letterstory.mjs +0 -0
- package/bin/phantom.mjs +0 -0
- package/lib/cli.mjs +1 -1
- package/lib/oauth.mjs +7 -1
- package/package.json +1 -1
package/bin/letterstory.mjs
CHANGED
|
File without changes
|
package/bin/phantom.mjs
CHANGED
|
File without changes
|
package/lib/cli.mjs
CHANGED
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
} from "./commands.mjs";
|
|
61
61
|
|
|
62
62
|
// Keep in sync with cli/package.json.
|
|
63
|
-
export const VERSION = "0.121.
|
|
63
|
+
export const VERSION = "0.121.4";
|
|
64
64
|
|
|
65
65
|
// Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
|
|
66
66
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
package/lib/oauth.mjs
CHANGED
|
@@ -53,7 +53,13 @@ const CALLBACK_HTML_ERROR = `<!doctype html><html><head><title>Letterstory CLI</
|
|
|
53
53
|
// redirect_uri sent to /authorize.
|
|
54
54
|
function startLoopbackServer() {
|
|
55
55
|
return new Promise((resolve, reject) => {
|
|
56
|
-
|
|
56
|
+
// A browser sends its whole Cookie jar for "localhost" (cookies aren't
|
|
57
|
+
// port-scoped) to this loopback callback -- years of accumulated dev-server
|
|
58
|
+
// cookies routinely blow past Node's 16KB default `maxHeaderSize`, which
|
|
59
|
+
// Node itself rejects with a 431 before this server's own request handler
|
|
60
|
+
// ever runs. This server only ever reads a handful of short query params,
|
|
61
|
+
// so there's no reason to enforce that default here.
|
|
62
|
+
const server = createServer({ maxHeaderSize: 65536 });
|
|
57
63
|
let settled = false;
|
|
58
64
|
|
|
59
65
|
const resultPromise = new Promise((resolveResult) => {
|