Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arc-is

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-is - npm Package Compare versions

Comparing version 1.0.8 to 2.0.0

2

__tests__/native.js

@@ -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": {}
}
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