aboutsummaryrefslogtreecommitdiff
path: root/node_modules/array-differ
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-10 03:43:44 +0200
commitabd94a7f5a50f43c797a11b53549ae48fff667c3 (patch)
treeab8ed457f65cdd72e13e0571d2975729428f1551 /node_modules/array-differ
parenta0247c6a3fd6a09a41a7e35a3441324c4dcb58be (diff)
downloadwallet-core-abd94a7f5a50f43c797a11b53549ae48fff667c3.tar.xz
add node_modules to address #4364
Diffstat (limited to 'node_modules/array-differ')
-rw-r--r--node_modules/array-differ/index.js7
-rw-r--r--node_modules/array-differ/package.json95
-rw-r--r--node_modules/array-differ/readme.md41
3 files changed, 143 insertions, 0 deletions
diff --git a/node_modules/array-differ/index.js b/node_modules/array-differ/index.js
new file mode 100644
index 000000000..fbe2ed2c8
--- /dev/null
+++ b/node_modules/array-differ/index.js
@@ -0,0 +1,7 @@
+'use strict';
+module.exports = function (arr) {
+ var rest = [].concat.apply([], [].slice.call(arguments, 1));
+ return arr.filter(function (el) {
+ return rest.indexOf(el) === -1;
+ });
+};
diff --git a/node_modules/array-differ/package.json b/node_modules/array-differ/package.json
new file mode 100644
index 000000000..1f0e074a5
--- /dev/null
+++ b/node_modules/array-differ/package.json
@@ -0,0 +1,95 @@
+{
+ "_args": [
+ [
+ {
+ "raw": "array-differ@^1.0.0",
+ "scope": null,
+ "escapedName": "array-differ",
+ "name": "array-differ",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "/home/dold/repos/taler/wallet-webex/node_modules/gulp-util"
+ ]
+ ],
+ "_from": "array-differ@>=1.0.0 <2.0.0",
+ "_id": "array-differ@1.0.0",
+ "_inCache": true,
+ "_location": "/array-differ",
+ "_npmUser": {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ },
+ "_npmVersion": "1.4.14",
+ "_phantomChildren": {},
+ "_requested": {
+ "raw": "array-differ@^1.0.0",
+ "scope": null,
+ "escapedName": "array-differ",
+ "name": "array-differ",
+ "rawSpec": "^1.0.0",
+ "spec": ">=1.0.0 <2.0.0",
+ "type": "range"
+ },
+ "_requiredBy": [
+ "/gulp-util"
+ ],
+ "_resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz",
+ "_shasum": "eff52e3758249d33be402b8bb8e564bb2b5d4031",
+ "_shrinkwrap": null,
+ "_spec": "array-differ@^1.0.0",
+ "_where": "/home/dold/repos/taler/wallet-webex/node_modules/gulp-util",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "http://sindresorhus.com"
+ },
+ "bugs": {
+ "url": "https://github.com/sindresorhus/array-differ/issues"
+ },
+ "dependencies": {},
+ "description": "Create an array with values that are present in the first input array but not additional ones",
+ "devDependencies": {
+ "mocha": "*"
+ },
+ "directories": {},
+ "dist": {
+ "shasum": "eff52e3758249d33be402b8bb8e564bb2b5d4031",
+ "tarball": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "gitHead": "e91802976c4710eef8dea2090d48e48525cf41b1",
+ "homepage": "https://github.com/sindresorhus/array-differ",
+ "keywords": [
+ "array",
+ "difference",
+ "diff",
+ "differ",
+ "filter",
+ "exclude"
+ ],
+ "license": "MIT",
+ "maintainers": [
+ {
+ "name": "sindresorhus",
+ "email": "sindresorhus@gmail.com"
+ }
+ ],
+ "name": "array-differ",
+ "optionalDependencies": {},
+ "readme": "ERROR: No README data found!",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/sindresorhus/array-differ.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "version": "1.0.0"
+}
diff --git a/node_modules/array-differ/readme.md b/node_modules/array-differ/readme.md
new file mode 100644
index 000000000..68f5d3607
--- /dev/null
+++ b/node_modules/array-differ/readme.md
@@ -0,0 +1,41 @@
+# array-differ [![Build Status](https://travis-ci.org/sindresorhus/array-differ.svg?branch=master)](https://travis-ci.org/sindresorhus/array-differ)
+
+> Create an array with values that are present in the first input array but not additional ones
+
+
+## Install
+
+```sh
+$ npm install --save array-differ
+```
+
+
+## Usage
+
+```js
+var arrayDiffer = require('array-differ');
+
+arrayDiffer([2, 3, 4], [3, 50]);
+//=> [2, 4]
+```
+
+## API
+
+### arrayDiffer(input, values, [values, ...])
+
+Returns the new array.
+
+#### input
+
+Type: `array`
+
+#### values
+
+Type: `array`
+
+Arrays of values to exclude.
+
+
+## License
+
+MIT © [Sindre Sorhus](http://sindresorhus.com)