react-streaming
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85082
1755