Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
var arrify = require('arrify'); | ||
var numSort = require('num-sort'); | ||
@@ -8,5 +9,3 @@ module.exports = function (str, i) { | ||
arrify(i).sort(function (a, b) { | ||
return a - b; | ||
}).forEach(function (el, i) { | ||
arrify(i).sort(numSort.asc).forEach(function (el, i) { | ||
el++; | ||
@@ -13,0 +12,0 @@ ret.push(str.slice(lastIndex, el)); |
{ | ||
"name": "split-at", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Split a string at one or more indices", | ||
@@ -33,3 +33,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"arrify": "^1.0.0" | ||
"arrify": "^1.0.0", | ||
"num-sort": "^1.0.0" | ||
}, | ||
@@ -36,0 +37,0 @@ "devDependencies": { |
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
2766
2
16
+ Addednum-sort@^1.0.0
+ Addednum-sort@1.0.0(transitive)
+ Addednumber-is-nan@1.0.1(transitive)