@fanoutio/grip
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -17,6 +17,9 @@ // Flatten and export | ||
export { default as WebSocketMessageFormat } from './data/websocket/WebSocketMessageFormat'; | ||
export { default as WebSocketDecodeEventException } from './data/websocket/WebSocketDecodeEventException'; | ||
export { default as ConnectionIdMissingException } from './data/websocket/ConnectionIdMissingException'; | ||
// Utility Functions | ||
export { createGripChannelHeader, parseGripUri } from './utilities/grip'; | ||
export { encodeWebSocketEvents, decodeWebSocketEvents, createWebSocketControlMessage, } from './utilities/webSocketEvents'; | ||
export { isWsOverHttp, getWebSocketContextFromReq, } from './utilities/ws-over-http'; | ||
export { validateSig } from './utilities/jwt'; | ||
//# sourceMappingURL=main.js.map |
@@ -54,2 +54,8 @@ import * as querystring from 'querystring'; | ||
} | ||
export function flattenHeader(value) { | ||
if (Array.isArray(value)) { | ||
return value[0]; | ||
} | ||
return value; | ||
} | ||
//# sourceMappingURL=http.js.map |
@@ -14,2 +14,4 @@ export { default as Publisher } from './engine/Publisher'; | ||
export { default as WebSocketMessageFormat } from './data/websocket/WebSocketMessageFormat'; | ||
export { default as WebSocketDecodeEventException } from './data/websocket/WebSocketDecodeEventException'; | ||
export { default as ConnectionIdMissingException } from './data/websocket/ConnectionIdMissingException'; | ||
export type { default as IGripConfig } from './engine/IGripConfig'; | ||
@@ -25,2 +27,3 @@ export type { default as IExportedChannel } from './data/IExportedChannel'; | ||
export { encodeWebSocketEvents, decodeWebSocketEvents, createWebSocketControlMessage, } from './utilities/webSocketEvents'; | ||
export { isWsOverHttp, getWebSocketContextFromReq, } from './utilities/ws-over-http'; | ||
export { validateSig } from './utilities/jwt'; |
@@ -49,2 +49,6 @@ "use strict"; | ||
Object.defineProperty(exports, "WebSocketMessageFormat", { enumerable: true, get: function () { return WebSocketMessageFormat_1.default; } }); | ||
var WebSocketDecodeEventException_1 = require("./data/websocket/WebSocketDecodeEventException"); | ||
Object.defineProperty(exports, "WebSocketDecodeEventException", { enumerable: true, get: function () { return WebSocketDecodeEventException_1.default; } }); | ||
var ConnectionIdMissingException_1 = require("./data/websocket/ConnectionIdMissingException"); | ||
Object.defineProperty(exports, "ConnectionIdMissingException", { enumerable: true, get: function () { return ConnectionIdMissingException_1.default; } }); | ||
// Utility Functions | ||
@@ -58,4 +62,7 @@ var grip_1 = require("./utilities/grip"); | ||
Object.defineProperty(exports, "createWebSocketControlMessage", { enumerable: true, get: function () { return webSocketEvents_1.createWebSocketControlMessage; } }); | ||
var ws_over_http_1 = require("./utilities/ws-over-http"); | ||
Object.defineProperty(exports, "isWsOverHttp", { enumerable: true, get: function () { return ws_over_http_1.isWsOverHttp; } }); | ||
Object.defineProperty(exports, "getWebSocketContextFromReq", { enumerable: true, get: function () { return ws_over_http_1.getWebSocketContextFromReq; } }); | ||
var jwt_1 = require("./utilities/jwt"); | ||
Object.defineProperty(exports, "validateSig", { enumerable: true, get: function () { return jwt_1.validateSig; } }); | ||
//# sourceMappingURL=main.js.map |
@@ -8,1 +8,2 @@ /// <reference types="node" /> | ||
}; | ||
export declare function flattenHeader(value: undefined | string | string[]): string | undefined; |
@@ -22,3 +22,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseQueryString = exports.createNextLinkHeader = exports.createMetaHeader = exports.createKeepAliveHeader = void 0; | ||
exports.flattenHeader = exports.parseQueryString = exports.createNextLinkHeader = exports.createMetaHeader = exports.createKeepAliveHeader = void 0; | ||
var querystring = __importStar(require("querystring")); | ||
@@ -81,2 +81,9 @@ var string_1 = require("./string"); | ||
exports.parseQueryString = parseQueryString; | ||
function flattenHeader(value) { | ||
if (Array.isArray(value)) { | ||
return value[0]; | ||
} | ||
return value; | ||
} | ||
exports.flattenHeader = flattenHeader; | ||
//# sourceMappingURL=http.js.map |
{ | ||
"name": "@fanoutio/grip", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"author": "Fanout, Inc. <info@fanout.io>", | ||
@@ -59,2 +59,3 @@ "description": "GRIP Interface Library", | ||
"devDependencies": { | ||
"@types/debug": "^4.1.5", | ||
"@types/jest": "^26.0.10", | ||
@@ -77,2 +78,3 @@ "@types/jsonwebtoken": "^8.5.0", | ||
"agentkeepalive": "^4.1.3", | ||
"debug": "^4.2.0", | ||
"isomorphic-fetch": "^2.2.1", | ||
@@ -79,0 +81,0 @@ "jsonwebtoken": "^8.5.1", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5689243
201
37457
5
15
+ Addeddebug@^4.2.0
+ Addeddebug@4.4.0(transitive)