@folklore/tracking
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -22,5 +22,22 @@ 'use strict'; | ||
disabled: false, | ||
variables: null, | ||
...opts | ||
}; | ||
this.variables = null; | ||
const { | ||
variables = null | ||
} = this.options; | ||
if (variables !== null) { | ||
this.setVariables(variables); | ||
} | ||
} | ||
setVariables(variables) { | ||
this.variables = variables; | ||
if (variables !== null) { | ||
this.push(variables); | ||
} | ||
} | ||
getVariables() { | ||
return this.variables; | ||
} | ||
push() { | ||
@@ -27,0 +44,0 @@ const { |
@@ -13,5 +13,22 @@ import React, { useContext, useMemo } from 'react'; | ||
disabled: false, | ||
variables: null, | ||
...opts | ||
}; | ||
this.variables = null; | ||
const { | ||
variables = null | ||
} = this.options; | ||
if (variables !== null) { | ||
this.setVariables(variables); | ||
} | ||
} | ||
setVariables(variables) { | ||
this.variables = variables; | ||
if (variables !== null) { | ||
this.push(variables); | ||
} | ||
} | ||
getVariables() { | ||
return this.variables; | ||
} | ||
push() { | ||
@@ -18,0 +35,0 @@ const { |
{ | ||
"name": "@folklore/tracking", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Tracking utilities", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ba58c356106d32f5b53190caad3fb0a6b0341524" | ||
"gitHead": "8ca870e7a04ded6520bb09927ba6c60b0cd80883" | ||
} |
8676
228