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

@nuskin/events

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuskin/events - npm Package Compare versions

Comparing version 1.0.0-cx16-8326.3 to 1.0.0-cx16-8326.4

2

package.json
{
"name": "@nuskin/events",
"version": "1.0.0-cx16-8326.3",
"version": "1.0.0-cx16-8326.4",
"description": "The description that will amaze and astound your audience when they read it",

@@ -5,0 +5,0 @@ "main": "src/event.js",

@@ -20,7 +20,14 @@ 'use strict'

fn.psToken = psToken;
return psToken;
};
const parseValue = (value) => {
return Array.isArray(value) && value.length > 0
? value[0]
: value
? value
: true
}
const publish = (eventId, value, gtmConfig) => {
ps.publish(eventId, value);
ps.publish(eventId, parseValue(value));

@@ -87,4 +94,3 @@ // Push the event out to GTM if the dataLayer is defined

if (typeof eventId === 'string' && eventId.length > 0) {
value = value || true;
value = parseValue(value);
state[eventId] = value;

@@ -91,0 +97,0 @@ publish(eventId, value);

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