is-callable
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -153,4 +153,12 @@ { | ||
"requireEarlyReturn": false | ||
"requireEarlyReturn": false, | ||
"requireCapitalizedConstructorsNew": { | ||
"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"] | ||
}, | ||
"requireImportAlphabetized": false, | ||
"disallowSpacesInsideTemplateStringPlaceholders": true | ||
} | ||
@@ -0,1 +1,7 @@ | ||
1.1.3 / 2016-02-27 | ||
================= | ||
* [Fix] ensure “class “ doesn’t screw up “class” detection | ||
* [Tests] up to `node` `v5.7`, `v4.3` | ||
* [Dev Deps] update to `eslint` v2, `@ljharb/eslint-config`, `jscs` | ||
1.1.2 / 2016-01-15 | ||
@@ -2,0 +8,0 @@ ================= |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var constructorRegex = /\s*class /; | ||
var constructorRegex = /^\s*class /; | ||
var isES6ClassFn = function isES6ClassFn(value) { | ||
@@ -8,0 +8,0 @@ try { |
{ | ||
"name": "is-callable", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"author": { | ||
@@ -52,7 +52,7 @@ "name": "Jordan Harband", | ||
"covert": "^1.1.0", | ||
"jscs": "^2.8.0", | ||
"jscs": "^2.10.1", | ||
"editorconfig-tools": "^0.1.1", | ||
"nsp": "^2.2.0", | ||
"eslint": "^1.10.3", | ||
"@ljharb/eslint-config": "^1.6.1", | ||
"eslint": "^2.2.0", | ||
"@ljharb/eslint-config": "^2.1.1", | ||
"make-arrow-function": "^1.1.0", | ||
@@ -59,0 +59,0 @@ "make-generator-function": "^1.1.0", |
@@ -92,2 +92,4 @@ 'use strict'; | ||
t.ok(isCallable(function () {}), 'function is callable'); | ||
t.ok(isCallable(function classFake() { }), 'function with name containing "class" is callable'); | ||
t.ok(isCallable(function () { return ' class '; }), 'function with string " class " is callable'); | ||
t.ok(isCallable(isCallable), 'isCallable is callable'); | ||
@@ -94,0 +96,0 @@ t.end(); |
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
21969
245