Comparing version 1.7.7 to 1.7.8
"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; |
/** | ||
* 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"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
303448
88
7480