@geckos.io/common
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -14,4 +14,9 @@ "use strict"; | ||
try { | ||
// check if it is a string | ||
if (typeof data !== 'string') | ||
return false; | ||
// check if it is a number as a string | ||
if (!isNaN(parseInt(data))) | ||
return false; | ||
// check if it is a JSON object | ||
JSON.parse(data); | ||
@@ -18,0 +23,0 @@ return true; |
{ | ||
"name": "@geckos.io/common", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "The common module for @geckos.io/server and @geckos.io/client.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
15396
223