New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cent.js

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cent.js - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

10

dist/cent.client.js

@@ -31,6 +31,7 @@ "use strict";

}
}).then(res => res.json());
});
}
methodFactory(method) {
return (params) => this.post(this.centOptions.url, JSON.stringify({ method, params }))
.then(res => res.json())
.then(res => res === null || res === void 0 ? void 0 : res.result)

@@ -42,6 +43,7 @@ .catch(err => {

pipeline(commands) {
return this.post('', commands.map(({ method, params }) => JSON.stringify({ method, params })).join('\n'))
.then(res => res.data
return this.post(this.centOptions.url, commands.map(({ method, params }) => JSON.stringify({ method, params })).join('\n'))
.then(res => res.text())
.then(res => res
.split('\n')
.map(JSON.parse)
.map(str => JSON.parse(str))
.map(({ result }) => result))

@@ -48,0 +50,0 @@ .catch(err => {

2

package.json
{
"name": "cent.js",
"description": "Javascript library to communicate with Centrifugo HTTP API",
"version": "3.0.0",
"version": "3.0.1",
"scripts": {

@@ -6,0 +6,0 @@ "build": "rimraf -rf dist && tsc -p tsconfig.json",

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