New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ml-array-sequential-fill

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-array-sequential-fill - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

6

lib-es6/index.js

@@ -1,2 +0,2 @@

import isArray from 'is-any-array';
import { isAnyArray } from 'is-any-array';

@@ -34,3 +34,3 @@ function _typeof(obj) {

if (_typeof(input) === 'object' && !isArray(input)) {
if (_typeof(input) === 'object' && !isAnyArray(input)) {
options = input;

@@ -40,3 +40,3 @@ input = [];

if (!isArray(input)) {
if (!isAnyArray(input)) {
throw new TypeError('input must be an array');

@@ -43,0 +43,0 @@ }

'use strict';
var isArray = require('is-any-array');
var isAnyArray = require('is-any-array');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var isArray__default = /*#__PURE__*/_interopDefaultLegacy(isArray);
/**

@@ -20,3 +16,3 @@ * Fill an array with sequential numbers

function sequentialFill(input = [], options = {}) {
if (typeof input === 'object' && !isArray__default['default'](input)) {
if (typeof input === 'object' && !isAnyArray.isAnyArray(input)) {
options = input;

@@ -26,3 +22,3 @@ input = [];

if (!isArray__default['default'](input)) {
if (!isAnyArray.isAnyArray(input)) {
throw new TypeError('input must be an array');

@@ -29,0 +25,0 @@ }

{
"name": "ml-array-sequential-fill",
"version": "1.1.7",
"version": "1.1.8",
"description": "Create an array with sequential numbers",

@@ -26,5 +26,5 @@ "main": "lib/index.js",

"dependencies": {
"is-any-array": "^1.0.0"
"is-any-array": "^2.0.0"
},
"gitHead": "207c5e6e1486b2d22fdfec7b7a3b6867fe50a69e"
"gitHead": "787f12ca8c7c39063a349e2da17152742bea67b1"
}

@@ -1,2 +0,2 @@

import isArray from 'is-any-array';
import { isAnyArray } from 'is-any-array';

@@ -14,3 +14,3 @@ /**

export default function sequentialFill(input = [], options = {}) {
if (typeof input === 'object' && !isArray(input)) {
if (typeof input === 'object' && !isAnyArray(input)) {
options = input;

@@ -20,3 +20,3 @@ input = [];

if (!isArray(input)) {
if (!isAnyArray(input)) {
throw new TypeError('input must be an array');

@@ -23,0 +23,0 @@ }

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