gameanalytics-node-sdk
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/goldfire/gameanalytics-node-sdk", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "GameAnalytics", |
@@ -221,3 +221,3 @@ /** | ||
if (params[key].required && !data[key]) { | ||
console.error(new Error(`Missing required property "${key}"`)); | ||
console.error(new Error(`Missing required property "${key}". ${JSON.stringify(data)}`)); | ||
valid = false; | ||
@@ -231,3 +231,3 @@ return; | ||
if (params[key].enum && !params[key].enum.includes(data[key])) { | ||
console.error(new Error(`Invalid value "${data[key]}" for property "${key}"`)); | ||
console.error(new Error(`Invalid value "${data[key]}" for property "${key}".`)); | ||
valid = false; | ||
@@ -239,3 +239,3 @@ return; | ||
if (typeof data[key] !== params[key].type) { | ||
console.error(new Error(`Property "${key}" must be of type "${params[key].type}"`)); | ||
console.error(new Error(`Property "${key}" must be of type "${params[key].type}".`)); | ||
valid = false; | ||
@@ -247,3 +247,3 @@ return; | ||
if (params[key].pattern && !params[key].pattern.test(`${data[key]}`)) { | ||
console.error(new Error(`Invalid value "${data[key]}" supplied for property "${key}"`)); | ||
console.error(new Error(`Invalid value "${data[key]}" supplied for property "${key}".`)); | ||
valid = false; | ||
@@ -250,0 +250,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22415