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

@cloudgaming/rpc

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudgaming/rpc - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

17

dist/Client.js

@@ -22,3 +22,3 @@ "use strict";

}
const data = wrap_1.parseData(new Uint8Array(await msg.data.arrayBuffer()));
const data = wrap_1.parseData(new Uint8Array(await readBlobAsArrayBuffer(msg.data)));
const { request, response } = data;

@@ -235,2 +235,17 @@ if (request) {

exports.Client = Client;
async function readBlobAsArrayBuffer(blob) {
if (blob.arrayBuffer) {
return blob.arrayBuffer();
}
const reader = new FileReader();
return new Promise((resolve, reject) => {
reader.addEventListener('error', e => {
reject(e);
});
reader.addEventListener('loadend', () => {
resolve(reader.result);
});
reader.readAsArrayBuffer(blob);
});
}
//# sourceMappingURL=Client.js.map

5

package.json
{
"name": "@cloudgaming/rpc",
"version": "1.2.1",
"version": "1.2.2",
"main": "dist/index.js",

@@ -18,3 +18,4 @@ "type": "commonjs",

"clean": "rimraf dist",
"publicpublish": "yarn publish --registry=https://registry.npmjs.org --access=public"
"publicpublish": "yarn publish --registry=https://registry.npmjs.org --access=public",
"prepublish": "yarn build"
},

@@ -21,0 +22,0 @@ "dependencies": {

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