Socket
Socket
Sign inDemoInstall

is-callable

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-callable - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

10

.jscs.json

@@ -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 @@ =================

2

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc