Firebase Update
This commit is contained in:
		
							
								
								
									
										62
									
								
								express-server/node_modules/array-uniq/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										62
									
								
								express-server/node_modules/array-uniq/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,62 @@
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
// there's 3 implementations written in increasing order of efficiency
 | 
			
		||||
 | 
			
		||||
// 1 - no Set type is defined
 | 
			
		||||
function uniqNoSet(arr) {
 | 
			
		||||
	var ret = [];
 | 
			
		||||
 | 
			
		||||
	for (var i = 0; i < arr.length; i++) {
 | 
			
		||||
		if (ret.indexOf(arr[i]) === -1) {
 | 
			
		||||
			ret.push(arr[i]);
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 2 - a simple Set type is defined
 | 
			
		||||
function uniqSet(arr) {
 | 
			
		||||
	var seen = new Set();
 | 
			
		||||
	return arr.filter(function (el) {
 | 
			
		||||
		if (!seen.has(el)) {
 | 
			
		||||
			seen.add(el);
 | 
			
		||||
			return true;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		return false;
 | 
			
		||||
	});
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 3 - a standard Set type is defined and it has a forEach method
 | 
			
		||||
function uniqSetWithForEach(arr) {
 | 
			
		||||
	var ret = [];
 | 
			
		||||
 | 
			
		||||
	(new Set(arr)).forEach(function (el) {
 | 
			
		||||
		ret.push(el);
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// V8 currently has a broken implementation
 | 
			
		||||
// https://github.com/joyent/node/issues/8449
 | 
			
		||||
function doesForEachActuallyWork() {
 | 
			
		||||
	var ret = false;
 | 
			
		||||
 | 
			
		||||
	(new Set([true])).forEach(function (el) {
 | 
			
		||||
		ret = el;
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	return ret === true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if ('Set' in global) {
 | 
			
		||||
	if (typeof Set.prototype.forEach === 'function' && doesForEachActuallyWork()) {
 | 
			
		||||
		module.exports = uniqSetWithForEach;
 | 
			
		||||
	} else {
 | 
			
		||||
		module.exports = uniqSet;
 | 
			
		||||
	}
 | 
			
		||||
} else {
 | 
			
		||||
	module.exports = uniqNoSet;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										21
									
								
								express-server/node_modules/array-uniq/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								express-server/node_modules/array-uniq/license
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
The MIT License (MIT)
 | 
			
		||||
 | 
			
		||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
 | 
			
		||||
 | 
			
		||||
Permission is hereby granted, free of charge, to any person obtaining a copy
 | 
			
		||||
of this software and associated documentation files (the "Software"), to deal
 | 
			
		||||
in the Software without restriction, including without limitation the rights
 | 
			
		||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 | 
			
		||||
copies of the Software, and to permit persons to whom the Software is
 | 
			
		||||
furnished to do so, subject to the following conditions:
 | 
			
		||||
 | 
			
		||||
The above copyright notice and this permission notice shall be included in
 | 
			
		||||
all copies or substantial portions of the Software.
 | 
			
		||||
 | 
			
		||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 | 
			
		||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 | 
			
		||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 | 
			
		||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 | 
			
		||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 | 
			
		||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 | 
			
		||||
THE SOFTWARE.
 | 
			
		||||
							
								
								
									
										69
									
								
								express-server/node_modules/array-uniq/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								express-server/node_modules/array-uniq/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,69 @@
 | 
			
		||||
{
 | 
			
		||||
  "_from": "array-uniq@^1.0.3",
 | 
			
		||||
  "_id": "array-uniq@1.0.3",
 | 
			
		||||
  "_inBundle": false,
 | 
			
		||||
  "_integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=",
 | 
			
		||||
  "_location": "/array-uniq",
 | 
			
		||||
  "_phantomChildren": {},
 | 
			
		||||
  "_requested": {
 | 
			
		||||
    "type": "range",
 | 
			
		||||
    "registry": true,
 | 
			
		||||
    "raw": "array-uniq@^1.0.3",
 | 
			
		||||
    "name": "array-uniq",
 | 
			
		||||
    "escapedName": "array-uniq",
 | 
			
		||||
    "rawSpec": "^1.0.3",
 | 
			
		||||
    "saveSpec": null,
 | 
			
		||||
    "fetchSpec": "^1.0.3"
 | 
			
		||||
  },
 | 
			
		||||
  "_requiredBy": [
 | 
			
		||||
    "/@google-cloud/common"
 | 
			
		||||
  ],
 | 
			
		||||
  "_resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz",
 | 
			
		||||
  "_shasum": "af6ac877a25cc7f74e058894753858dfdb24fdb6",
 | 
			
		||||
  "_spec": "array-uniq@^1.0.3",
 | 
			
		||||
  "_where": "D:\\Desktop\\Git\\Firebase\\SmartShopperFirebase\\node_modules\\@google-cloud\\common",
 | 
			
		||||
  "author": {
 | 
			
		||||
    "name": "Sindre Sorhus",
 | 
			
		||||
    "email": "sindresorhus@gmail.com",
 | 
			
		||||
    "url": "sindresorhus.com"
 | 
			
		||||
  },
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/sindresorhus/array-uniq/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "bundleDependencies": false,
 | 
			
		||||
  "deprecated": false,
 | 
			
		||||
  "description": "Create an array without duplicates",
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "ava": "*",
 | 
			
		||||
    "es6-set": "^0.1.0",
 | 
			
		||||
    "require-uncached": "^1.0.2",
 | 
			
		||||
    "xo": "*"
 | 
			
		||||
  },
 | 
			
		||||
  "engines": {
 | 
			
		||||
    "node": ">=0.10.0"
 | 
			
		||||
  },
 | 
			
		||||
  "files": [
 | 
			
		||||
    "index.js"
 | 
			
		||||
  ],
 | 
			
		||||
  "homepage": "https://github.com/sindresorhus/array-uniq#readme",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "array",
 | 
			
		||||
    "arr",
 | 
			
		||||
    "set",
 | 
			
		||||
    "uniq",
 | 
			
		||||
    "unique",
 | 
			
		||||
    "es6",
 | 
			
		||||
    "duplicate",
 | 
			
		||||
    "remove"
 | 
			
		||||
  ],
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "name": "array-uniq",
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "git+https://github.com/sindresorhus/array-uniq.git"
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "xo && ava"
 | 
			
		||||
  },
 | 
			
		||||
  "version": "1.0.3"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										30
									
								
								express-server/node_modules/array-uniq/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								express-server/node_modules/array-uniq/readme.md
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
# array-uniq [](https://travis-ci.org/sindresorhus/array-uniq)
 | 
			
		||||
 | 
			
		||||
> Create an array without duplicates
 | 
			
		||||
 | 
			
		||||
It's already pretty fast, but will be much faster when [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) becomes available in V8 (especially with large arrays).
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Install
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ npm install --save array-uniq
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
const arrayUniq = require('array-uniq');
 | 
			
		||||
 | 
			
		||||
arrayUniq([1, 1, 2, 3, 3]);
 | 
			
		||||
//=> [1, 2, 3]
 | 
			
		||||
 | 
			
		||||
arrayUniq(['foo', 'foo', 'bar', 'foo']);
 | 
			
		||||
//=> ['foo', 'bar']
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## License
 | 
			
		||||
 | 
			
		||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
 | 
			
		||||
		Reference in New Issue
	
	Block a user