@fanoutio/grip
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -33,3 +33,9 @@ import { Buffer } from 'buffer'; | ||
if (key != null && isString(key) && key.startsWith('base64:')) { | ||
key = Buffer.from(key.substring(7), 'base64'); | ||
key = key.substring(7); | ||
// When the key contains a '+' character, if the URL is built carelessly | ||
// and this segment of the URL contained '+' directly instead of properly | ||
// being URL-encoded as %2B, then they would have turned into spaces at | ||
// this point. Turn them back into pluses before decoding the key from base64. | ||
key = key.replace(' ', '+'); | ||
key = Buffer.from(key, 'base64'); | ||
} | ||
@@ -36,0 +42,0 @@ var qs = querystring.stringify(params); |
@@ -59,3 +59,9 @@ "use strict"; | ||
if (key != null && string_1.isString(key) && key.startsWith('base64:')) { | ||
key = buffer_1.Buffer.from(key.substring(7), 'base64'); | ||
key = key.substring(7); | ||
// When the key contains a '+' character, if the URL is built carelessly | ||
// and this segment of the URL contained '+' directly instead of properly | ||
// being URL-encoded as %2B, then they would have turned into spaces at | ||
// this point. Turn them back into pluses before decoding the key from base64. | ||
key = key.replace(' ', '+'); | ||
key = buffer_1.Buffer.from(key, 'base64'); | ||
} | ||
@@ -62,0 +68,0 @@ var qs = querystring.stringify(params); |
@@ -8,3 +8,3 @@ # js-grip Changelog | ||
## [Planned for 3.0.0] | ||
## [3.0.0] - 2020-08-24 | ||
- Major update with great improvements in usability, with support for modern | ||
@@ -16,2 +16,5 @@ language features such as `class` and `async`/`await`. | ||
IDE completion. | ||
- CommonJS and ESM builds are standard TypeScript builds, so that they can be imported in | ||
Node and in modern bundlers that offer features such as tree shaking. | ||
- Source code formatted with Prettier. | ||
@@ -22,2 +25,4 @@ ### Added | ||
### Changed | ||
- Using `jsonwebtoken` library instead of `jwt-simple`. This is a more modern implementation that | ||
does not depend on the `crypto` library from Node. | ||
- `buildWebSocketControlMessage()` renamed to `createWebSocketControlMessage()`. | ||
@@ -24,0 +29,0 @@ |
{ | ||
"name": "@fanoutio/grip", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"author": "Fanout, Inc. <info@fanout.io>", | ||
@@ -5,0 +5,0 @@ "description": "GRIP Interface Library", |
@@ -1,4 +0,4 @@ | ||
# GRIP Interface Library for JavaScript | ||
# js-grip | ||
A GRIP interface library for NodeJS. For use with HTTP reverse proxy servers | ||
A GRIP interface library for JavaScript. For use with HTTP reverse proxy servers | ||
that support the GRIP interface, such as Pushpin. | ||
@@ -5,0 +5,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5557207
36183