@guardian/ab-react
Advanced tools
Comparing version 0.2.1-alpha.17 to 0.2.1-alpha.18
@@ -1,2 +0,2 @@ | ||
import e from"react";import{AB as r}from"@guardian/ab-core";const t=e.createContext(void 0),o=({arrayOfTestObjects:o,abTestSwitches:s,pageIsSensitive:a,mvtMaxValue:i,mvtId:c,forcedTestVariant:n,forcedTestException:d,errorReporter:v,ophanRecord:p,serverSideTests:m,children:T})=>e.createElement(t.Provider,{value:new r({mvtId:c,mvtMaxValue:i,pageIsSensitive:a,abTestSwitches:s,arrayOfTestObjects:o,forcedTestVariant:n,forcedTestException:d,errorReporter:v,ophanRecord:p,serverSideTests:m})},T),s=()=>{const r=e.useContext(t);if(void 0===r)throw new Error("useAB must be used within the ABProvider");return r};export{o as ABProvider,s as useAB}; | ||
import e from"react";import{AB as r}from"@guardian/ab-core";var t=e.createContext(void 0),o=function(o){var a=o.children;return e.createElement(t.Provider,{value:new r({mvtId:o.mvtId,mvtMaxValue:o.mvtMaxValue,pageIsSensitive:o.pageIsSensitive,abTestSwitches:o.abTestSwitches,arrayOfTestObjects:o.arrayOfTestObjects,forcedTestVariant:o.forcedTestVariant,forcedTestException:o.forcedTestException,errorReporter:o.errorReporter,ophanRecord:o.ophanRecord,serverSideTests:o.serverSideTests})},a)},a=function(){var r=e.useContext(t);if(void 0===r)throw new Error("useAB must be used within the ABProvider");return r};export{o as ABProvider,a as useAB}; | ||
//# sourceMappingURL=index.modern.js.map |
{ | ||
"version": "0.2.1-alpha.17+10a885b", | ||
"version": "0.2.1-alpha.18+fa886b4", | ||
"name": "@guardian/ab-react", | ||
@@ -94,3 +94,3 @@ "author": "The Guardian", | ||
}, | ||
"gitHead": "10a885bb06e66fd4a3bc0365e6585ced792117d7" | ||
"gitHead": "fa886b48d017ea36c24204bb2398fa4fb1ceb9de" | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
31720