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

react-use-action-cable-ts

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use-action-cable-ts - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

6

dist/index.js

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

verbose && console.info(`useChannel: Connecting to ${data.channel}`);
const channel = actionCable.subscriptions.create((sendSnakeCase && (0, snakecase_keys_1.default)(data)) || data, {
const channel = actionCable.subscriptions.create((sendSnakeCase && (0, snakecase_keys_1.default)(data, { deep: true })) || data, {
received: (x) => {
verbose && console.info(`useChannel: Received ${JSON.stringify(x)}`);
if (receiveCamelCase && x) {
x = (0, camelcase_keys_1.default)(x);
x = (0, camelcase_keys_1.default)(x, { deep: true });
}

@@ -129,3 +129,3 @@ callbacks.received?.(x);

const formattedPayload = sendSnakeCase && payload
? (0, snakecase_keys_1.default)(payload)
? (0, snakecase_keys_1.default)(payload, { deep: true })
: payload;

@@ -132,0 +132,0 @@ if (useQueue) {

{
"name": "react-use-action-cable-ts",
"version": "2.0.2",
"version": "2.0.3",
"description": "Hooks to easily use Rails Action Cable in your React application",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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