Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.2.5 to 0.2.6

18

dist/cjs/utils.js

@@ -43,4 +43,18 @@ "use strict";

function createDebugger(namespace, options = {}) {
const DEBUG = process.env.DEBUG;
const DEBUG_FILTER = process.env.REACT_STREAMING_DEBUG_FILTER || process.env.DEBUG_FILTER;
let DEBUG;
let DEBUG_FILTER;
// - `process` can be undefined in edge workers
// - We want bundlers to be able to statically replace `process.env.*`
try {
DEBUG = process.env.DEBUG;
}
catch (_a) { }
try {
DEBUG_FILTER = process.env.DEBUG_FILTER_REACT_STREAMING;
}
catch (_b) { }
try {
DEBUG_FILTER || (DEBUG_FILTER = process.env.DEBUG_FILTER);
}
catch (_c) { }
const log = (0, debug_1.default)(namespace);

@@ -47,0 +61,0 @@ const { onlyWhenFocused } = options;

@@ -32,4 +32,18 @@ export function isServerSide() {

export function createDebugger(namespace, options = {}) {
const DEBUG = process.env.DEBUG;
const DEBUG_FILTER = process.env.REACT_STREAMING_DEBUG_FILTER || process.env.DEBUG_FILTER;
let DEBUG;
let DEBUG_FILTER;
// - `process` can be undefined in edge workers
// - We want bundlers to be able to statically replace `process.env.*`
try {
DEBUG = process.env.DEBUG;
}
catch { }
try {
DEBUG_FILTER = process.env.DEBUG_FILTER_REACT_STREAMING;
}
catch { }
try {
DEBUG_FILTER || (DEBUG_FILTER = process.env.DEBUG_FILTER);
}
catch { }
const log = debug(namespace);

@@ -36,0 +50,0 @@ const { onlyWhenFocused } = options;

2

package.json
{
"name": "react-streaming",
"description": "React 18 Streaming. Full-fledged & Easy.",
"version": "0.2.5",
"version": "0.2.6",
"main": "./dist/cjs/index.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