@shopify/react-effect
Advanced tools
Comparing version 4.0.0 to 4.0.1-address-mocks-minified-beta.0
@@ -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 |
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
43465
695
0
1