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

@guardian/ab-react

Package Overview
Dependencies
Maintainers
33
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/ab-react - npm Package Compare versions

Comparing version 0.2.1-alpha.17 to 0.2.1-alpha.18

2

dist/index.modern.js

@@ -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

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