New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fanoutio/grip

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fanoutio/grip - npm Package Compare versions

Comparing version 2.0.0-rc.0 to 2.0.0-rc.1

build/IHoldInstruction.d.ts

4

build/data/websocket/IWebSocketEvent.d.ts
/// <reference types="node" />
export default interface IWebSocketEvent {
type: string;
content: Buffer | string | null;
content: Buffer | Array<number> | string | null;
getType(): string;
getContent(): Buffer | string | null;
getContent(): Buffer | Array<number> | string | null;
}

@@ -21,7 +21,7 @@ /// <reference types="node" />

disconnect(): void;
recvRaw(): string | Buffer | null;
recvRaw(): string | Buffer | number[] | null;
recv(): string | null;
send(message: string): void;
sendBinary(message: string): void;
sendControl(message: string): void;
send(message: string | Buffer): void;
sendBinary(message: string | Buffer): void;
sendControl(message: string | Buffer): void;
subscribe(channel: string): void;

@@ -28,0 +28,0 @@ unsubscribe(channel: string): void;

@@ -5,6 +5,6 @@ /// <reference types="node" />

type: string;
content: Buffer | string | null;
constructor(type: string, content?: Buffer | string | null);
content: Buffer | Array<number> | string | null;
constructor(type: string, content?: Buffer | Array<number> | string | null);
getType(): string;
getContent(): string | Buffer | null;
getContent(): string | Buffer | number[] | null;
}

@@ -17,4 +17,4 @@ /// <reference types="node" />

export declare function parseChannels(channels: Channels): Channel[];
export declare function getHoldChannels(channels: string[] | Channel[]): import("./data/IExportedChannel").default[];
export declare function getHoldChannels(channels: string[] | Channel[]): import("./main").IExportedChannel[];
export declare function buildWebSocketControlMessage(type: string, args?: object | null): string;
export {};

@@ -10,2 +10,8 @@ import Channel from './data/Channel';

export * from './gripUtilities';
import IGripConfig from './engine/IGripConfig';
import IExportedChannel from './data/IExportedChannel';
import IExportedResponse from './data/IExportedResponse';
import IHoldInstruction from './IHoldInstruction';
import IWebSocketEvent from './data/websocket/IWebSocketEvent';
export { Channel, Response, HttpResponseFormat, HttpStreamFormat, WebSocketContext, WebSocketEvent, WebSocketMessageFormat, GripPubControl, };
export type { IGripConfig, IExportedChannel, IExportedResponse, IHoldInstruction, IWebSocketEvent, };
{
"name": "@fanoutio/grip",
"version": "2.0.0-rc.0",
"version": "2.0.0-rc.1",
"author": "Fanout, Inc. <info@fanout.io>",

@@ -18,2 +18,4 @@ "description": "GRIP Interface Library",

"module": "./build/index.es.js",
"jsnext:main": "build/index.es.js",
"types": "build/main.d.ts",
"scripts": {

@@ -20,0 +22,0 @@ "prepublishOnly": "npm run build",

@@ -30,2 +30,8 @@ import commonjs from '@rollup/plugin-commonjs'

clean: true,
tsconfigOverride: {
compilerOptions: {
rootDir: './src',
},
exclude: [ './tests' ],
},
}),

@@ -32,0 +38,0 @@ commonjs({

@@ -10,5 +10,5 @@ import { Buffer } from 'buffer';

import {isString, parseQueryString, toBuffer} from "./utilities";
import IExportedResponse from "./data/IExportedResponse";
import { isString, parseQueryString, toBuffer } from "./utilities";
import IWebSocketEvent from "./data/websocket/IWebSocketEvent";
import IHoldInstruction from "./IHoldInstruction";

@@ -147,7 +147,2 @@ type Channels = string | Channel | Channel[];

interface IHoldInstruction {
hold: object;
response?: IExportedResponse;
}
// Create GRIP hold instructions for the specified mode, channels, response

@@ -154,0 +149,0 @@ // and optional timeout value. The channel parameter can be specified as

@@ -11,2 +11,8 @@ import Channel from './data/Channel';

import IGripConfig from './engine/IGripConfig';
import IExportedChannel from './data/IExportedChannel';
import IExportedResponse from './data/IExportedResponse';
import IHoldInstruction from './IHoldInstruction';
import IWebSocketEvent from './data/websocket/IWebSocketEvent';
export {

@@ -22,1 +28,9 @@ Channel,

};
export type {
IGripConfig,
IExportedChannel,
IExportedResponse,
IHoldInstruction,
IWebSocketEvent,
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc