Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wsgrpc

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wsgrpc - npm Package Compare versions

Comparing version 1.7.7 to 1.7.8

index.d.ts

15

lib/node.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// @ts-ignore
global.WebSocket = require("ws");
// @ts-ignore
global.fetch = require("node-fetch");
// @ts-ignore
global.protobuf = require("protobufjs/minimal");
//@ts-ignore
if (typeof global != "undefined") {
// @ts-ignore
global.WebSocket = require("ws");
// @ts-ignore
global.fetch = require("node-fetch");
// @ts-ignore
global.protobuf = require("protobufjs/minimal");
}
var ChannelNode_1 = require("./ChannelNode");

@@ -10,0 +13,0 @@ exports.Channel = ChannelNode_1.Channel;

2

lib/webpack.d.ts
/**
* index file for webpacke to generate bundle for web
* index file for webpacke to generate bundle for cocos, need polyfil
*/

@@ -4,0 +4,0 @@ export { IChannel } from "./interfaces";

{
"name": "wsgrpc",
"version": "1.7.7",
"version": "1.7.8",
"description": "Using WebSocket as gRPC transport",
"author": "tsangpo",
"main": "node.js",
"types": "node.d.ts",
"main": "index.js",
"types": "index.d.ts",
"bin": {

@@ -9,0 +9,0 @@ "wsgrpc-js": "bin/wsgrpc-js",

@@ -1,1 +0,1 @@

export * from "./lib/webpack";
export * from "./lib/web";
"use strict";
module.exports = require("./lib/webpack");
module.exports = require("./lib/web");
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