Comparing version 1.1.0 to 1.1.1
@@ -7,4 +7,3 @@ function getName (value) { | ||
// why not constructor.name: https://kangax.github.io/compat-table/es6/#function_name_property | ||
var match = value.constructor.toString().match(/function (.*?)\(/) | ||
return match ? match[1] : null | ||
return value.constructor.toString().match(/function (.*?)\s*\(/)[1] | ||
} | ||
@@ -11,0 +10,0 @@ |
{ | ||
"name": "typeforce", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Another biased type checking solution for Javascript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
16863
610