Comparing version 1.0.8 to 2.0.0
@@ -1,2 +0,2 @@ | ||
const is = require('../index'); | ||
import is from '../index.js'; | ||
@@ -3,0 +3,0 @@ describe('Is native tests', () => { |
@@ -1,2 +0,2 @@ | ||
const is = require('../index'); | ||
import is from '../index.js'; | ||
@@ -3,0 +3,0 @@ //A non-inherited class, with an overwritten toString |
@@ -39,4 +39,4 @@ //Table taken from: http://www.ecma-international.org/ecma-262/6.0/ section 18.3 | ||
module.exports = function is(_val,_objType){ | ||
var $return,toString; | ||
export default (_val,_objType) => { | ||
let $return,toString; | ||
@@ -72,2 +72,2 @@ if(_val === undefined){ return (_objType ? 'Undefined' : 'undefined'); } | ||
return (!_objType ? toString[1].toLowerCase() : toString[1]); | ||
}; | ||
} |
{ | ||
"name": "arc-is", | ||
"version": "1.0.8", | ||
"version": "2.0.0", | ||
"description": "Simple is() function for typechecking", | ||
"main": "index.js", | ||
"type": "module", | ||
"scripts": { | ||
"test": "jest --coverage", | ||
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage", | ||
"test:watch": "jest --watchAll" | ||
@@ -24,5 +25,5 @@ }, | ||
"devDependencies": { | ||
"jest": "^27.5.1" | ||
"jest": "^29.2.2" | ||
}, | ||
"dependencies": {} | ||
} |
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
14383
Yes