@amplitude/utils
Advanced tools
Comparing version 1.8.4 to 1.9.0
@@ -37,3 +37,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
else if (!(typeof valueElement === 'number' || typeof valueElement === 'string')) { | ||
else if (!(typeof valueElement === 'number' || typeof valueElement === 'string' || typeof valueElement === 'boolean')) { | ||
logger_1.logger.warn('invalid array element type ', typeof valueElement); | ||
@@ -55,3 +55,3 @@ return false; | ||
} | ||
else if (!(typeof value === 'number' || typeof value === 'string')) { | ||
else if (!(typeof value === 'number' || typeof value === 'string' || typeof value === 'boolean')) { | ||
logger_1.logger.warn('invalid value type ', typeof value); | ||
@@ -58,0 +58,0 @@ return false; |
@@ -35,3 +35,3 @@ import { __values } from "tslib"; | ||
} | ||
else if (!(typeof valueElement === 'number' || typeof valueElement === 'string')) { | ||
else if (!(typeof valueElement === 'number' || typeof valueElement === 'string' || typeof valueElement === 'boolean')) { | ||
logger.warn('invalid array element type ', typeof valueElement); | ||
@@ -53,3 +53,3 @@ return false; | ||
} | ||
else if (!(typeof value === 'number' || typeof value === 'string')) { | ||
else if (!(typeof value === 'number' || typeof value === 'string' || typeof value === 'boolean')) { | ||
logger.warn('invalid value type ', typeof value); | ||
@@ -56,0 +56,0 @@ return false; |
{ | ||
"name": "@amplitude/utils", | ||
"version": "1.8.4", | ||
"version": "1.9.0", | ||
"description": "Utility functions for the Amplitude JavaScript SDK", | ||
@@ -19,3 +19,3 @@ "repository": "git://github.com/amplitude/Amplitude-Node.git", | ||
"dependencies": { | ||
"@amplitude/types": "^1.8.4", | ||
"@amplitude/types": "^1.9.0", | ||
"tslib": "^1.9.3" | ||
@@ -52,3 +52,3 @@ }, | ||
"sideEffects": false, | ||
"gitHead": "e0d89f4f5d603b2c559b06dc60e5e9e432c04e6e" | ||
"gitHead": "e8f0bdac033d9ecca47092c123c0596ca516a915" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
108268
0
Updated@amplitude/types@^1.9.0