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.14 to 0.0.15

29

index.js

@@ -37,3 +37,3 @@ ;(() => {

module.exports = {
aim: (n, a = 0, cb, vrs) => {
aim: (n, a = 0, cb, vrs, t) => {
if (!n) return np

@@ -45,3 +45,11 @@ if (!S.e(pr + n)) {

cb &&
cb({ experiment: n, allocation: a, variant: v, variants: vs, anonymousId: S.g(anon)[0] })
cb({
type: 'aim',
experiment: n,
allocation: a,
variant: v,
variants: vs,
anonymousId: S.g(anon)[0],
traits: t
})
S.s(pr + n, s + ',' + v)

@@ -52,9 +60,20 @@ }

},
launch: (n, cb) => {
launch: (n, cb, t) => {
if (!S.e(pr + n)) return
let [s, v] = S.g(pr + n)
return s > 0 && cb && cb({ experiment: n, variant: v, anonymousId: S.g(anon)[0] })
return (
s > 0 &&
cb &&
cb({ type: 'launch', experiment: n, variant: v, anonymousId: S.g(anon)[0], traits: t }))
},
hit: (n, cb) => cb && cb({ experiment: n, variant: S.g(pr + n)[1], anonymousId: S.g(anon)[0] })
hit: (n, cb, t) =>
cb &&
cb({
type: 'hit',
experiment: n,
variant: S.g(pr + n)[1],
anonymousId: S.g(anon)[0],
traits: t
})
}
})()

2

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

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

@@ -22,3 +22,3 @@ ![](https://badgen.net/bundlephobia/minzip/couillard)

```javascript
// Your metrics store, can be Segment, Amplitude, SQL, mongo, or what ever you like.
// Your metrics store, can be Segment, Amplitude, SQL, mongo, or whatever you like.
const saveMetrics = metrics =>

@@ -25,0 +25,0 @@ fetch('...', {

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