react-streaming
Advanced tools
Comparing version 0.3.10 to 0.3.11
@@ -27,3 +27,9 @@ "use strict"; | ||
onBeforeWrite(chunk); | ||
writableFromUser.write(chunk, encoding, callback); | ||
if (!writableFromUser.destroyed) { | ||
writableFromUser.write(chunk, encoding, callback); | ||
} | ||
else { | ||
// Destroying twice is fine: https://github.com/brillout/react-streaming/pull/21#issuecomment-1554517163 | ||
writableForReact.destroy(); | ||
} | ||
}, | ||
@@ -30,0 +36,0 @@ final(callback) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.projectInfo = void 0; | ||
const PROJECT_VERSION = '0.3.10'; | ||
const PROJECT_VERSION = '0.3.11'; | ||
exports.projectInfo = { | ||
@@ -6,0 +6,0 @@ projectName: 'react-streaming', |
@@ -25,3 +25,9 @@ export { createPipeWrapper }; | ||
onBeforeWrite(chunk); | ||
writableFromUser.write(chunk, encoding, callback); | ||
if (!writableFromUser.destroyed) { | ||
writableFromUser.write(chunk, encoding, callback); | ||
} | ||
else { | ||
// Destroying twice is fine: https://github.com/brillout/react-streaming/pull/21#issuecomment-1554517163 | ||
writableForReact.destroy(); | ||
} | ||
}, | ||
@@ -28,0 +34,0 @@ final(callback) { |
@@ -1,2 +0,2 @@ | ||
const PROJECT_VERSION = '0.3.10'; | ||
const PROJECT_VERSION = '0.3.11'; | ||
export const projectInfo = { | ||
@@ -3,0 +3,0 @@ projectName: 'react-streaming', |
{ | ||
"name": "react-streaming", | ||
"description": "React 18 Streaming. Full-fledged & Easy.", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"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
117893
2620