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

@socket.io/postgres-adapter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socket.io/postgres-adapter - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

dist/index.js

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

const msgpack_1 = require("@msgpack/msgpack");
const randomId = () => crypto_1.randomBytes(8).toString("hex");
const randomId = () => (0, crypto_1.randomBytes)(8).toString("hex");
const debug = require("debug")("socket.io-postgres-adapter");

@@ -197,3 +197,3 @@ /**

const result = await this.pool.query(`SELECT payload FROM ${this.tableName} WHERE id = $1`, [document.attachmentId]);
document = msgpack_1.decode(result.rows[0].payload);
document = (0, msgpack_1.decode)(result.rows[0].payload);
}

@@ -377,3 +377,3 @@ debug("new event of type %d from %s", document.type, document.uid);

async publishWithAttachment(document) {
const payload = msgpack_1.encode(document);
const payload = (0, msgpack_1.encode)(document);
debug("sending event of type %s with attachment to channel %s", document.type, this.channel);

@@ -380,0 +380,0 @@ const result = await this.pool.query(`INSERT INTO ${this.tableName} (payload) VALUES ($1) RETURNING id;`, [payload]);

{
"name": "@socket.io/postgres-adapter",
"version": "0.3.0",
"version": "0.3.1",
"description": "The Socket.IO Postgres adapter, allowing to broadcast events between several Socket.IO servers",

@@ -17,28 +17,30 @@ "license": "MIT",

"test": "npm run format:check && tsc && nyc mocha --require ts-node/register test/index.ts",
"format:check": "prettier --parser typescript --check 'lib/**/*.ts' 'test/**/*.ts'",
"format:fix": "prettier --parser typescript --write 'lib/**/*.ts' 'test/**/*.ts'",
"format:check": "prettier --parser typescript --check lib/**/*.ts test/**/*.ts",
"format:fix": "prettier --parser typescript --write lib/**/*.ts test/**/*.ts",
"prepack": "tsc"
},
"dependencies": {
"@msgpack/msgpack": "~2.7.0",
"@types/pg": "^8.6.1",
"debug": "~4.3.1",
"pg": "^8.0.0",
"socket.io-adapter": "~2.4.0"
"@msgpack/msgpack": "~2.8.0",
"@types/pg": "^8.6.6",
"debug": "~4.3.4",
"pg": "^8.9.0"
},
"peerDependencies": {
"socket.io-adapter": "^2.4.0"
},
"devDependencies": {
"@types/expect.js": "^0.3.29",
"@types/mocha": "^8.2.1",
"@types/mocha": "^10.0.1",
"@types/node": "^14.14.7",
"expect.js": "0.3.1",
"mocha": "^8.4.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"prettier": "^2.1.2",
"socket.io": "^4.5.0",
"socket.io-client": "^4.1.1",
"ts-node": "^9.1.1",
"typescript": "^4.0.5"
"prettier": "^2.8.3",
"socket.io": "^4.6.0",
"socket.io-client": "^4.6.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
},
"engines": {
"node": ">=10.0.0"
"node": ">=12.0.0"
},

@@ -45,0 +47,0 @@ "keywords": [

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