Skip to content

Commit 286c257

Browse files
author
ionut.stan
committed
Including license in full in the built library.
1 parent f7ade07 commit 286c257

File tree

6 files changed

+37
-15
lines changed

6 files changed

+37
-15
lines changed

builds/browser/es5/jsonrpc.min.js

Lines changed: 28 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builds/browser/es5/jsonrpc.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

builds/browser/es7/jsonrpc.min.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10290,7 +10290,7 @@ module.exports = class IncomingRequest {
1029010290
}
1029110291

1029210292
set bidirectionalWebsocketRouter(bidirectionalWebsocketRouter) {
10293-
assert(bidirectionalWebsocketRouter.constructor.name === "BidirectionalWebsocketRouter");
10293+
assert(bidirectionalWebsocketRouter.constructor.name === "BidirectionalWebsocketRouter", "bidirectionalWebsocketRouter must be an instance of BidirectionalWebsocketRouter.");
1029410294

1029510295
this._bidirectionalWebsocketRouter = bidirectionalWebsocketRouter;
1029610296
}
@@ -12864,7 +12864,7 @@ module.exports = class BidirectionalWebsocketRouter extends EventEmitter {
1286412864
}
1286512865

1286612866
connectionIDToSingletonClient(nConnectionID, ClientClass) {
12867-
assert(typeof nConnectionID === "number");
12867+
assert(typeof nConnectionID === "number", "nConnectionID must be a number. Received this: " + JSON.stringify(nConnectionID));
1286812868
assert(typeof ClientClass === "function", "Invalid ClientClass value: " + typeof ClientClass);
1286912869

1287012870
if (!this._objSessions.hasOwnProperty(nConnectionID)) {
@@ -13496,9 +13496,9 @@ JSONRPC.ServerPluginBase = __webpack_require__(15);
1349613496
module.exports = class DebugLogger extends JSONRPC.ServerPluginBase {
1349713497
async beforeJSONDecode(incomingRequest) {
1349813498
if (incomingRequest.requestBody.length > 1024 * 1024) {
13499-
console.log("[" + process.pid + "] [" + new Date().toISOString() + "] Received JSONRPC request at endpoint path" + incomingRequest.endpoint.path + ", " + incomingRequest.requestObject.method + "(). Larger than 1 MB, not logging. \n");
13499+
console.log("[" + process.pid + "] [" + new Date().toISOString() + "] Received JSONRPC request at endpoint path " + incomingRequest.endpoint.path + ", " + incomingRequest.requestObject.method + "(). Larger than 1 MB, not logging. \n");
1350013500
} else {
13501-
console.log("[" + process.pid + "] [" + new Date().toISOString() + "] Received JSONRPC request at endpoint path" + incomingRequest.endpoint.path + ": " + incomingRequest.requestBody + "\n");
13501+
console.log("[" + process.pid + "] [" + new Date().toISOString() + "] Received JSONRPC request at endpoint path " + incomingRequest.endpoint.path + ": " + incomingRequest.requestBody + "\n");
1350213502
}
1350313503
}
1350413504

builds/browser/es7/jsonrpc.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jsonrpc-bidirectional",
33
"description": "Bidirectional JSONRPC over web sockets or HTTP with extensive plugin support.",
4-
"version": "2.4.5",
4+
"version": "2.4.12",
55
"scripts": {
66
"build": "node build.js",
77
"test": "node tests/main.js",

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ module.exports = [
7171
${objPackageJSON.name} v${objPackageJSON.version}
7272
${objPackageJSON.description}
7373
${objPackageJSON.homepage}
74-
${objPackageJSON.homepage}/blob/master/LICENSE
75-
*/`.replace(/\t+/g, "\t")
74+
\n\n${fs.readFileSync("./LICENSE")}
75+
*/`.replace(/\t+/g, "")
7676
}
7777
})
7878
]

0 commit comments

Comments
 (0)