@akiroz/pubsub-rpc
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -84,3 +84,3 @@ "use strict"; | ||
throw Error("Missing id in RPC call"); | ||
strId = util_1.encodeBase64URL(id); | ||
strId = (0, util_1.encodeBase64URL)(id); | ||
if (idDedup.has(strId)) | ||
@@ -122,4 +122,4 @@ throw Error("Duplicate call request"); | ||
opt = Object.assign({}, exports.defaultCallOptions, opt); | ||
id = util_1.generateCallId(opt.idSize); | ||
strId = util_1.encodeBase64URL(id); | ||
id = (0, util_1.generateCallId)(opt.idSize); | ||
strId = (0, util_1.encodeBase64URL)(id); | ||
responseTopic = topic + "/" + strId; | ||
@@ -126,0 +126,0 @@ return [4 /*yield*/, new Promise(function (rsov, rjct) { |
@@ -18,5 +18,10 @@ "use strict"; | ||
}; | ||
var __spread = (this && this.__spread) || function () { | ||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); | ||
return ar; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -28,3 +33,3 @@ exports.__esModule = true; | ||
? Buffer.from(data).toString("base64") | ||
: btoa(String.fromCharCode.apply(String, __spread(data))); | ||
: btoa(String.fromCharCode.apply(String, __spreadArray([], __read(data), false))); | ||
return base64 | ||
@@ -31,0 +36,0 @@ .replace(/=/g, "") |
{ | ||
"name": "@akiroz/pubsub-rpc", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "dist/main.js", | ||
@@ -12,15 +12,15 @@ "types": "dist/main.d.ts", | ||
"dependencies": { | ||
"@msgpack/msgpack": "^2.3.0" | ||
"@msgpack/msgpack": "^2.7.1" | ||
}, | ||
"devDependencies": { | ||
"@types/mocha": "^8.2.0", | ||
"@types/node": "^14.14.14", | ||
"eventemitter2": "^6.4.3", | ||
"husky": "^4.3.6", | ||
"mocha": "^8.2.1", | ||
"parcel-bundler": "^1.12.4", | ||
"prettier": "^2.2.1", | ||
"pretty-quick": "^3.1.0", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.9.6", | ||
"eventemitter2": "^6.4.4", | ||
"husky": "^7.0.2", | ||
"mocha": "^9.1.1", | ||
"parcel-bundler": "^1.12.5", | ||
"prettier": "^2.4.1", | ||
"pretty-quick": "^3.1.1", | ||
"ts-mocha": "^8.0.0", | ||
"typescript": "^4.1.3" | ||
"typescript": "^4.4.3" | ||
}, | ||
@@ -27,0 +27,0 @@ "prettier": { |
# PubSub RPC | ||
[![](https://img.shields.io/npm/v/@akiroz/pubsub-rpc)](https://www.npmjs.com/package/@akiroz/pubsub-rpc) | ||
![test](https://github.com/akiroz/pubsub-rpc/workflows/test/badge.svg) | ||
@@ -4,0 +5,0 @@ |
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
22694
380
32
Updated@msgpack/msgpack@^2.7.1