Socket
Socket
Sign inDemoInstall

is-any-array

Package Overview
Dependencies
5
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.1.0

lib/index.js

4

History.md

@@ -0,1 +1,5 @@

# [0.1.0](https://github.com/cheminfo-js/is-any-array/compare/v0.0.3...v0.1.0) (2020-02-25)
<a name="0.0.3"></a>

@@ -2,0 +6,0 @@ ## [0.0.3](https://github.com/cheminfo-js/is-any-array/compare/v0.0.2...v0.0.3) (2018-10-26)

32

package.json
{
"name": "is-any-array",
"version": "0.0.3",
"version": "0.1.0",
"description": "Check if toString.call ends with Array",
"main": "./src/index.js",
"main": "lib/index.js",
"module": "src/index.js",
"files": [
"lib",
"src"

@@ -12,6 +14,7 @@ ],

"eslint-fix": "npm run eslint -- --fix",
"prepublishOnly": "rollup -c",
"test": "run-s testonly eslint",
"test-travis": "eslint src && jest --coverage && codecov",
"testonly": "jest",
"build": "cheminfo build"
"build": "cheminfo-build --entry src/index.js"
},

@@ -33,11 +36,18 @@ "repository": {

"devDependencies": {
"cheminfo-tools": "^1.21.1",
"codecov": "^3.1.0",
"eslint": "^5.7.0",
"eslint-config-cheminfo": "^1.18.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^21.26.1",
"jest": "^23.6.0",
"npm-run-all": "^4.1.3"
"@babel/plugin-transform-modules-commonjs": "^7.8.3",
"cheminfo-build": "^1.0.7",
"cheminfo-tools": "^1.23.3",
"codecov": "^3.6.5",
"eslint": "^6.8.0",
"eslint-config-cheminfo": "^2.0.4",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^23.8.0",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^25.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1"
},
"dependencies": {
"rollup": "^1.31.1"
}
}

@@ -1,5 +0,3 @@

'use strict';
import isAnyArray from '..';
const isAnyArray = require('..');
test('isArray', () => {

@@ -6,0 +4,0 @@ expect(isAnyArray(1)).toBe(false);

@@ -1,9 +0,5 @@

'use strict';
const toString = Object.prototype.toString;
function isAnyArray(object) {
export default function isAnyArray(object) {
return toString.call(object).endsWith('Array]');
}
module.exports = isAnyArray;
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc