diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/array-slice | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) | |
download | wallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz |
update packages
Diffstat (limited to 'node_modules/array-slice')
-rwxr-xr-x | node_modules/array-slice/LICENSE | 2 | ||||
-rwxr-xr-x | node_modules/array-slice/README.md | 65 | ||||
-rwxr-xr-x | node_modules/array-slice/index.js | 11 | ||||
-rw-r--r-- | node_modules/array-slice/package.json | 43 |
4 files changed, 48 insertions, 73 deletions
diff --git a/node_modules/array-slice/LICENSE b/node_modules/array-slice/LICENSE index d290fe00b..c2d4bd0eb 100755 --- a/node_modules/array-slice/LICENSE +++ b/node_modules/array-slice/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2015, 2017, Jon Schlinkert +Copyright (c) 2014-2015, Jon Schlinkert.Copyright (c) 2012-2015, The Dojo Foundation.copyright (c) 2009-2015, Jeremy Ashkenas. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/node_modules/array-slice/README.md b/node_modules/array-slice/README.md index b65f79b87..a26c98e8a 100755 --- a/node_modules/array-slice/README.md +++ b/node_modules/array-slice/README.md @@ -1,17 +1,15 @@ -# array-slice [![NPM version](https://img.shields.io/npm/v/array-slice.svg?style=flat)](https://www.npmjs.com/package/array-slice) [![NPM monthly downloads](https://img.shields.io/npm/dm/array-slice.svg?style=flat)](https://npmjs.org/package/array-slice) [![NPM total downloads](https://img.shields.io/npm/dt/array-slice.svg?style=flat)](https://npmjs.org/package/array-slice) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/array-slice.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/array-slice) +# array-slice [![NPM version](https://badge.fury.io/js/array-slice.svg)](http://badge.fury.io/js/array-slice) [![Build Status](https://travis-ci.org/jonschlinkert/array-slice.svg)](https://travis-ci.org/jonschlinkert/array-slice) > Array-slice method. Slices `array` from the `start` index up to, but not including, the `end` index. -## Install +This function is used instead of `Array#slice` to support node lists in IE < 9 and to ensure dense arrays are returned. -Install with [npm](https://www.npmjs.com/): +## Install with [npm](npmjs.org) -```sh -$ npm install --save array-slice +```bash +npm i array-slice --save ``` -This function is used instead of `Array#slice` to support node lists in IE < 9 and to ensure dense arrays are returned. This is also faster than native slice in some cases. - ## Usage ```js @@ -22,48 +20,35 @@ slice(arr, 3, 6); //=> ['e', 'f', 'g'] ``` -## About - -### Related projects - -* [arr-flatten](https://www.npmjs.com/package/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | [homepage](https://github.com/jonschlinkert/arr-flatten "Recursively flatten an array or arrays. This is the fastest implementation of array flatten.") -* [array-unique](https://www.npmjs.com/package/array-unique): Remove duplicate values from an array. Fastest ES5 implementation. | [homepage](https://github.com/jonschlinkert/array-unique "Remove duplicate values from an array. Fastest ES5 implementation.") -* [array-xor](https://www.npmjs.com/package/array-xor): Returns the symmetric difference (exclusive-or) of an array of elements (elements that are present in… [more](https://github.com/jonschlinkert/array-xor) | [homepage](https://github.com/jonschlinkert/array-xor "Returns the symmetric difference (exclusive-or) of an array of elements (elements that are present in all given arrays and not in their intersections).") - -### Contributing - -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). - -### Building docs +## Useful array utils + * [arr-diff](https://github.com/jonschlinkert/arr-diff): Returns an array with only the unique values from the first array, by excluding all values from additional arrays using strict equality for comparisons. + * [arr-filter](https://github.com/jonschlinkert/arr-filter): Faster alternative to javascript's native filter method. + * [arr-flatten](https://github.com/jonschlinkert/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten. + * [arr-union](https://github.com/jonschlinkert/arr-union): Combines a list of arrays, returning a single array with unique values, using strict equality for comparisons. + * [array-unique](https://github.com/jonschlinkert/array-unique): Return an array free of duplicate values. Fastest ES5 implementation. + * [array-intersection](https://github.com/jonschlinkert/array-intersection): Return an array with the unique values present in _all_ given arrays using strict equality for comparisons. -_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ +## Running tests +Install dev dependencies: -To generate the readme, run the following command: - -```sh -$ npm install -g verbose/verb#dev verb-generate-readme && verb +```bash +npm i -d && npm test ``` -### Running tests - -Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: +## Contributing +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/array-slice/issues) -```sh -$ npm install && npm test -``` - -### Author +## Author **Jon Schlinkert** -* [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) - -### License ++ [github/jonschlinkert](https://github.com/jonschlinkert) ++ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) -Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT License](LICENSE). +## License +Copyright (c) 2015 Jon Schlinkert +Released under the MIT license *** -_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on March 02, 2017._
\ No newline at end of file +_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on April 07, 2015._ diff --git a/node_modules/array-slice/index.js b/node_modules/array-slice/index.js index 6adb0b063..785fd0285 100755 --- a/node_modules/array-slice/index.js +++ b/node_modules/array-slice/index.js @@ -1,14 +1,14 @@ /*! * array-slice <https://github.com/jonschlinkert/array-slice> * - * Copyright (c) 2014-2015, 2017, Jon Schlinkert. - * Released under the MIT License. + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. */ 'use strict'; module.exports = function slice(arr, start, end) { - var len = arr.length; + var len = arr.length >>> 0; var range = []; start = idx(arr, start); @@ -20,8 +20,9 @@ module.exports = function slice(arr, start, end) { return range; }; + function idx(arr, pos, end) { - var len = arr.length; + var len = arr.length >>> 0; if (pos == null) { pos = end || 0; @@ -32,4 +33,4 @@ function idx(arr, pos, end) { } return pos; -} +}
\ No newline at end of file diff --git a/node_modules/array-slice/package.json b/node_modules/array-slice/package.json index 612f601fb..cc5fc02a9 100644 --- a/node_modules/array-slice/package.json +++ b/node_modules/array-slice/package.json @@ -1,14 +1,23 @@ { "name": "array-slice", "description": "Array-slice method. Slices `array` from the `start` index up to, but not including, the `end` index.", - "version": "1.0.0", + "version": "0.2.3", "homepage": "https://github.com/jonschlinkert/array-slice", - "author": "Jon Schlinkert (https://github.com/jonschlinkert)", - "repository": "jonschlinkert/array-slice", + "author": { + "name": "Jon Schlinkert", + "url": "https://github.com/jonschlinkert" + }, + "repository": { + "type": "git", + "url": "git://github.com/jonschlinkert/array-slice.git" + }, "bugs": { "url": "https://github.com/jonschlinkert/array-slice/issues" }, - "license": "MIT", + "license": { + "type": "MIT", + "url": "https://github.com/jonschlinkert/array-slice/blob/master/LICENSE" + }, "files": [ "index.js" ], @@ -20,8 +29,8 @@ "test": "mocha" }, "devDependencies": { - "gulp-format-md": "^0.1.11", - "mocha": "^3.2.0" + "mocha": "*", + "should": "^5.2.0" }, "keywords": [ "array", @@ -30,25 +39,5 @@ "slice", "util", "utils" - ], - "verb": { - "toc": false, - "layout": "default", - "tasks": [ - "readme" - ], - "plugins": [ - "gulp-format-md" - ], - "related": { - "list": [ - "arr-flatten", - "array-unique", - "array-xor" - ] - }, - "lint": { - "reflinks": true - } - } + ] } |