Firebase Update
This commit is contained in:
		
							
								
								
									
										4
									
								
								express-server/node_modules/concat-map/.travis.yml
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								express-server/node_modules/concat-map/.travis.yml
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
language: node_js
 | 
			
		||||
node_js:
 | 
			
		||||
  - 0.4
 | 
			
		||||
  - 0.6
 | 
			
		||||
							
								
								
									
										18
									
								
								express-server/node_modules/concat-map/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								express-server/node_modules/concat-map/LICENSE
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
This software is released under the MIT license:
 | 
			
		||||
 | 
			
		||||
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.
 | 
			
		||||
							
								
								
									
										62
									
								
								express-server/node_modules/concat-map/README.markdown
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										62
									
								
								express-server/node_modules/concat-map/README.markdown
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,62 @@
 | 
			
		||||
concat-map
 | 
			
		||||
==========
 | 
			
		||||
 | 
			
		||||
Concatenative mapdashery.
 | 
			
		||||
 | 
			
		||||
[](http://ci.testling.com/substack/node-concat-map)
 | 
			
		||||
 | 
			
		||||
[](http://travis-ci.org/substack/node-concat-map)
 | 
			
		||||
 | 
			
		||||
example
 | 
			
		||||
=======
 | 
			
		||||
 | 
			
		||||
``` js
 | 
			
		||||
var concatMap = require('concat-map');
 | 
			
		||||
var xs = [ 1, 2, 3, 4, 5, 6 ];
 | 
			
		||||
var ys = concatMap(xs, function (x) {
 | 
			
		||||
    return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
 | 
			
		||||
});
 | 
			
		||||
console.dir(ys);
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
***
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
[ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
methods
 | 
			
		||||
=======
 | 
			
		||||
 | 
			
		||||
``` js
 | 
			
		||||
var concatMap = require('concat-map')
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
concatMap(xs, fn)
 | 
			
		||||
-----------------
 | 
			
		||||
 | 
			
		||||
Return an array of concatenated elements by calling `fn(x, i)` for each element
 | 
			
		||||
`x` and each index `i` in the array `xs`.
 | 
			
		||||
 | 
			
		||||
When `fn(x, i)` returns an array, its result will be concatenated with the
 | 
			
		||||
result array. If `fn(x, i)` returns anything else, that value will be pushed
 | 
			
		||||
onto the end of the result array.
 | 
			
		||||
 | 
			
		||||
install
 | 
			
		||||
=======
 | 
			
		||||
 | 
			
		||||
With [npm](http://npmjs.org) do:
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
npm install concat-map
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
license
 | 
			
		||||
=======
 | 
			
		||||
 | 
			
		||||
MIT
 | 
			
		||||
 | 
			
		||||
notes
 | 
			
		||||
=====
 | 
			
		||||
 | 
			
		||||
This module was written while sitting high above the ground in a tree.
 | 
			
		||||
							
								
								
									
										6
									
								
								express-server/node_modules/concat-map/example/map.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								express-server/node_modules/concat-map/example/map.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
var concatMap = require('../');
 | 
			
		||||
var xs = [ 1, 2, 3, 4, 5, 6 ];
 | 
			
		||||
var ys = concatMap(xs, function (x) {
 | 
			
		||||
    return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
 | 
			
		||||
});
 | 
			
		||||
console.dir(ys);
 | 
			
		||||
							
								
								
									
										13
									
								
								express-server/node_modules/concat-map/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								express-server/node_modules/concat-map/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
module.exports = function (xs, fn) {
 | 
			
		||||
    var res = [];
 | 
			
		||||
    for (var i = 0; i < xs.length; i++) {
 | 
			
		||||
        var x = fn(xs[i], i);
 | 
			
		||||
        if (isArray(x)) res.push.apply(res, x);
 | 
			
		||||
        else res.push(x);
 | 
			
		||||
    }
 | 
			
		||||
    return res;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
var isArray = Array.isArray || function (xs) {
 | 
			
		||||
    return Object.prototype.toString.call(xs) === '[object Array]';
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										88
									
								
								express-server/node_modules/concat-map/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										88
									
								
								express-server/node_modules/concat-map/package.json
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,88 @@
 | 
			
		||||
{
 | 
			
		||||
  "_from": "concat-map@0.0.1",
 | 
			
		||||
  "_id": "concat-map@0.0.1",
 | 
			
		||||
  "_inBundle": false,
 | 
			
		||||
  "_integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
 | 
			
		||||
  "_location": "/concat-map",
 | 
			
		||||
  "_phantomChildren": {},
 | 
			
		||||
  "_requested": {
 | 
			
		||||
    "type": "version",
 | 
			
		||||
    "registry": true,
 | 
			
		||||
    "raw": "concat-map@0.0.1",
 | 
			
		||||
    "name": "concat-map",
 | 
			
		||||
    "escapedName": "concat-map",
 | 
			
		||||
    "rawSpec": "0.0.1",
 | 
			
		||||
    "saveSpec": null,
 | 
			
		||||
    "fetchSpec": "0.0.1"
 | 
			
		||||
  },
 | 
			
		||||
  "_requiredBy": [
 | 
			
		||||
    "/brace-expansion"
 | 
			
		||||
  ],
 | 
			
		||||
  "_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
 | 
			
		||||
  "_shasum": "d8a96bd77fd68df7793a73036a3ba0d5405d477b",
 | 
			
		||||
  "_spec": "concat-map@0.0.1",
 | 
			
		||||
  "_where": "D:\\Desktop\\smartshopperNodeReworkFirebase\\node_modules\\brace-expansion",
 | 
			
		||||
  "author": {
 | 
			
		||||
    "name": "James Halliday",
 | 
			
		||||
    "email": "mail@substack.net",
 | 
			
		||||
    "url": "http://substack.net"
 | 
			
		||||
  },
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/substack/node-concat-map/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "bundleDependencies": false,
 | 
			
		||||
  "deprecated": false,
 | 
			
		||||
  "description": "concatenative mapdashery",
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "tape": "~2.4.0"
 | 
			
		||||
  },
 | 
			
		||||
  "directories": {
 | 
			
		||||
    "example": "example",
 | 
			
		||||
    "test": "test"
 | 
			
		||||
  },
 | 
			
		||||
  "homepage": "https://github.com/substack/node-concat-map#readme",
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "concat",
 | 
			
		||||
    "concatMap",
 | 
			
		||||
    "map",
 | 
			
		||||
    "functional",
 | 
			
		||||
    "higher-order"
 | 
			
		||||
  ],
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "main": "index.js",
 | 
			
		||||
  "name": "concat-map",
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "git://github.com/substack/node-concat-map.git"
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "tape test/*.js"
 | 
			
		||||
  },
 | 
			
		||||
  "testling": {
 | 
			
		||||
    "files": "test/*.js",
 | 
			
		||||
    "browsers": {
 | 
			
		||||
      "ie": [
 | 
			
		||||
        6,
 | 
			
		||||
        7,
 | 
			
		||||
        8,
 | 
			
		||||
        9
 | 
			
		||||
      ],
 | 
			
		||||
      "ff": [
 | 
			
		||||
        3.5,
 | 
			
		||||
        10,
 | 
			
		||||
        15
 | 
			
		||||
      ],
 | 
			
		||||
      "chrome": [
 | 
			
		||||
        10,
 | 
			
		||||
        22
 | 
			
		||||
      ],
 | 
			
		||||
      "safari": [
 | 
			
		||||
        5.1
 | 
			
		||||
      ],
 | 
			
		||||
      "opera": [
 | 
			
		||||
        12
 | 
			
		||||
      ]
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "version": "0.0.1"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										39
									
								
								express-server/node_modules/concat-map/test/map.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								express-server/node_modules/concat-map/test/map.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
			
		||||
var concatMap = require('../');
 | 
			
		||||
var test = require('tape');
 | 
			
		||||
 | 
			
		||||
test('empty or not', function (t) {
 | 
			
		||||
    var xs = [ 1, 2, 3, 4, 5, 6 ];
 | 
			
		||||
    var ixes = [];
 | 
			
		||||
    var ys = concatMap(xs, function (x, ix) {
 | 
			
		||||
        ixes.push(ix);
 | 
			
		||||
        return x % 2 ? [ x - 0.1, x, x + 0.1 ] : [];
 | 
			
		||||
    });
 | 
			
		||||
    t.same(ys, [ 0.9, 1, 1.1, 2.9, 3, 3.1, 4.9, 5, 5.1 ]);
 | 
			
		||||
    t.same(ixes, [ 0, 1, 2, 3, 4, 5 ]);
 | 
			
		||||
    t.end();
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('always something', function (t) {
 | 
			
		||||
    var xs = [ 'a', 'b', 'c', 'd' ];
 | 
			
		||||
    var ys = concatMap(xs, function (x) {
 | 
			
		||||
        return x === 'b' ? [ 'B', 'B', 'B' ] : [ x ];
 | 
			
		||||
    });
 | 
			
		||||
    t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]);
 | 
			
		||||
    t.end();
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('scalars', function (t) {
 | 
			
		||||
    var xs = [ 'a', 'b', 'c', 'd' ];
 | 
			
		||||
    var ys = concatMap(xs, function (x) {
 | 
			
		||||
        return x === 'b' ? [ 'B', 'B', 'B' ] : x;
 | 
			
		||||
    });
 | 
			
		||||
    t.same(ys, [ 'a', 'B', 'B', 'B', 'c', 'd' ]);
 | 
			
		||||
    t.end();
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
test('undefs', function (t) {
 | 
			
		||||
    var xs = [ 'a', 'b', 'c', 'd' ];
 | 
			
		||||
    var ys = concatMap(xs, function () {});
 | 
			
		||||
    t.same(ys, [ undefined, undefined, undefined, undefined ]);
 | 
			
		||||
    t.end();
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user