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

couillard

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couillard - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

2

package.json
{
"name": "couillard",
"version": "0.0.13",
"version": "0.0.14",
"description": "Couillard is a small trebuchet, you aim, and launch at your users.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,11 +26,7 @@ ![](https://badgen.net/bundlephobia/minzip/couillard)

method: 'POST',
...,
body: metrics
body: JSON.stringify(metrics)
})
// Aim your experiment at your users.
aim('welcome', 50, ['A', 'B'], saveMetrics)
// Create variation A component.
const WelcomeA = launch('welcome', 'A', saveMetrics, props => (
const WelcomeA = props => (
<p>

@@ -40,6 +36,6 @@ Welcome I'm experiment A, {props.name},

</p>
))
)
// Create variation B component.
const WelcomeB = launch('welcome', 'B', saveMetrics, props => (
const WelcomeB = props => (
<p>

@@ -49,13 +45,22 @@ Welcome I'm experiment B, {props.name},

</p>
))
)
// Aim your experiment at your users.
const Welcome = aim('welcome', 50, saveMetrics, {
A: WelcomeA,
B: WelcomeB
})
// Only WelcomeA or WelcomeB will render.
const Home = () => (
<div class={style.home}>
<h1>Home</h1>
<WelcomeA name="Jannette" />
<WelcomeB name="John" />
</div>
)
const Home = () => {
launch('welcome', saveMetrics)
return (
<div class={style.home}>
<h1>Home</h1>
<Welcome name="Jannette" />
</div>
)
}
export Home

@@ -62,0 +67,0 @@ ```

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