Socket
Socket
Sign inDemoInstall

@shopify/react-effect

Package Overview
Dependencies
Maintainers
19
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 4.0.0 to 4.0.1-address-mocks-minified-beta.0

1

build/cjs/server.js

@@ -25,2 +25,3 @@ 'use strict';

} = {}) {
// eslint-disable-next-line react/jsx-no-constructed-context-values
const manager$1 = new manager.EffectManager({

@@ -27,0 +28,0 @@ include

6

build/ts/manager.js

@@ -27,3 +27,3 @@ export class EffectManager {

async betweenEachPass(pass) {
await Promise.all([...this.kinds].map(kind => typeof kind.betweenEachPass === 'function'
await Promise.all([...this.kinds].map((kind) => typeof kind.betweenEachPass === 'function'
? kind.betweenEachPass(pass)

@@ -33,6 +33,6 @@ : Promise.resolve()));

async afterEachPass(pass) {
const results = await Promise.all([...this.kinds].map(kind => typeof kind.afterEachPass === 'function'
const results = await Promise.all([...this.kinds].map((kind) => typeof kind.afterEachPass === 'function'
? kind.afterEachPass(pass)
: Promise.resolve()));
return results.every(result => result !== false);
return results.every((result) => result !== false);
}

@@ -39,0 +39,0 @@ shouldPerform(kind) {

@@ -8,2 +8,3 @@ import React from 'react';

export function extract(app, { include, maxPasses = DEFAULT_MAX_PASSES, decorate = identity, renderFunction = renderToStaticMarkup, betweenEachPass, afterEachPass, } = {}) {
// eslint-disable-next-line react/jsx-no-constructed-context-values
const manager = new EffectManager({ include });

@@ -10,0 +11,0 @@ const element = (React.createElement(EffectContext.Provider, { value: manager }, decorate(app)));

{
"name": "@shopify/react-effect",
"version": "4.0.0",
"version": "4.0.1-address-mocks-minified-beta.0",
"license": "MIT",

@@ -60,3 +60,3 @@ "description": "A component and set of utilities for performing effects within a universal React app",

},
"gitHead": "40de4af181104f298cbab42d2d3d68e228a9a31a"
"gitHead": "1a19759d10db9ca65d346141b10e7b0654e023e6"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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