Socket
Socket
Sign inDemoInstall

react-streaming

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-streaming - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

2

dist/cjs/server/renderToStream.d.ts

@@ -25,5 +25,5 @@ export { renderToStream };

disabled: boolean;
injectToStream: (chunk: string) => void;
injectToStream: (chunk: unknown) => void;
};
declare function disable(): void;
declare function renderToStream(element: React.ReactNode, options?: Options): Promise<Result>;

@@ -5,2 +5,3 @@ "use strict";

const stringify_1 = require("@brillout/json-serializer/stringify");
const isCallable_1 = require("../utils/isCallable");
const utils_1 = require("./utils");

@@ -13,4 +14,5 @@ function stringifyKey(key) {

function assertKey(keyValue) {
(0, utils_1.assertUsage)(keyValue, `[useAsync(key, asyncFc)] You provided a \`key\` with the value \`${keyValue}\` which is forbidden.`);
(0, utils_1.assertUsage)(keyValue, `[useAsync(key, asyncFn)] You provided a \`key\` with the value \`${keyValue}\` which is forbidden.`);
(0, utils_1.assertUsage)(!(0, isCallable_1.isCallable)(keyValue), `[useAsync(key, asyncFn)] You provided a \`key\` that is a function which is forbidden.`);
}
exports.assertKey = assertKey;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.projectInfo = void 0;
const PROJECT_VERSION = '0.3.4';
const PROJECT_VERSION = '0.3.5';
exports.projectInfo = {

@@ -6,0 +6,0 @@ projectName: 'react-streaming',

export { stringifyKey };
export { assertKey };
import { stringify } from '@brillout/json-serializer/stringify';
import { isCallable } from '../utils/isCallable';
import { assertUsage } from './utils';

@@ -10,3 +11,4 @@ function stringifyKey(key) {

function assertKey(keyValue) {
assertUsage(keyValue, `[useAsync(key, asyncFc)] You provided a \`key\` with the value \`${keyValue}\` which is forbidden.`);
assertUsage(keyValue, `[useAsync(key, asyncFn)] You provided a \`key\` with the value \`${keyValue}\` which is forbidden.`);
assertUsage(!isCallable(keyValue), `[useAsync(key, asyncFn)] You provided a \`key\` that is a function which is forbidden.`);
}

@@ -1,2 +0,2 @@

const PROJECT_VERSION = '0.3.4';
const PROJECT_VERSION = '0.3.5';
export const projectInfo = {

@@ -3,0 +3,0 @@ projectName: 'react-streaming',

{
"name": "react-streaming",
"description": "React 18 Streaming. Full-fledged & Easy.",
"version": "0.3.4",
"version": "0.3.5",
"main": "./dist/cjs/server/hooks.js",

@@ -6,0 +6,0 @@ "peerDependencies": {

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