Socket
Socket
Sign inDemoInstall

@shopify/react-effect

Package Overview
Dependencies
Maintainers
13
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-effect - npm Package Compare versions

Comparing version 3.2.11 to 3.2.12-sknext-beta.9

build/cjs/context.js

4

CHANGELOG.md

@@ -8,4 +8,6 @@ # Changelog

## [Unreleased]
<!-- ## Unreleased -->
## [3.2.1] - 2019-01-27
- Specify package has no `sideEffects` ([#1233](https://github.com/Shopify/quilt/pull/1233))

@@ -12,0 +14,0 @@

{
"name": "@shopify/react-effect",
"version": "3.2.11",
"version": "3.2.12-sknext-beta.9",
"license": "MIT",
"description": "A component and set of utilities for performing effects within a universal React app",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"main": "index.js",
"types": "index.d.ts",
"scripts": {

@@ -27,3 +27,2 @@ "build": "tsc --p tsconfig.json"

"dependencies": {
"@shopify/useful-types": "^2.1.4",
"tslib": "^1.9.3"

@@ -35,5 +34,11 @@ },

"files": [
"dist/*",
"build/*",
"!tsconfig.tsbuildinfo",
"index.js",
"index.mjs",
"index.esnext",
"index.d.ts",
"server.js",
"server.mjs",
"server.esnext",
"server.d.ts"

@@ -44,3 +49,18 @@ ],

"react-dom": ">=16.8.0 <17.0.0"
},
"module": "index.mjs",
"esnext": "index.esnext",
"exports": {
"./": "./",
"./index": {
"import": "./index.mjs",
"require": "./index.js",
"esnext": "./index.esnext"
},
"./server": {
"import": "./server.mjs",
"require": "./server.js",
"esnext": "./server.esnext"
}
}
}

@@ -6,3 +6,3 @@ # `@shopify/react-effect`

This package contains a component and set of utilities for performing multiple effects during one single pass of server rendering in a universal React application.
This package contains a component and set of utilities for performing multiple effects during a single pass of server-side rendering in a universal React application.

@@ -88,6 +88,6 @@ ## Installation

import {extract} from '@shopify/react-effect/server';
import {createApolloBridge} from '@shopify/react-effect-apollo';
import {HtmlContext, HtmlManager} from '@shopify/react-html/server';
async function app(ctx) {
const ApolloBridge = createApolloBridge();
const htmlManager = new HtmlManager();
const app = <App />;

@@ -97,3 +97,7 @@

decorate(element) {
return <ApolloBridge>{element}</ApolloBridge>;
return (
<HtmlContext.Provider value={htmlManager}>
{element}
</HtmlContext.Provider>
);
},

@@ -100,0 +104,0 @@ });

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

export * from './dist/src/server';
export * from "./build/ts/server";

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

module.exports = require('./dist/src/server');
module.exports = require("./build/node/server");
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