Template Upload

This commit is contained in:
SOUTHERNCO\x2mjbyrn
2017-05-17 13:45:25 -04:00
parent 415b9c25f3
commit 7efe7605b8
11476 changed files with 2170865 additions and 34 deletions

15
node_modules/has-binary/.npmignore generated vendored Normal file
View File

@ -0,0 +1,15 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
pids
logs
results
npm-debug.log
node_modules

19
node_modules/has-binary/History.md generated vendored Normal file
View File

@ -0,0 +1,19 @@
0.1.7 / 2015-11-18
==================
* fix toJSON [@jderuere]
* fix `global.isBuffer` usage [@tonetheman]
* fix tests on modern versions of node
* bump mocha
0.1.6 / 2015-01-24
==================
* fix "undefined function" bug when iterating
an object created with Object.create(null) [gunta]
0.1.5 / 2014-09-04
==================
* prevent browserify from bundling `Buffer`

20
node_modules/has-binary/LICENSE generated vendored Normal file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2014 Kevin Roark
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.

3
node_modules/has-binary/Makefile generated vendored Normal file
View File

@ -0,0 +1,3 @@
test:
@./node_modules/.bin/mocha test.js

4
node_modules/has-binary/README.md generated vendored Normal file
View File

@ -0,0 +1,4 @@
has-binarydata.js
=================
Simple module to test if an object contains binary data

59
node_modules/has-binary/index.js generated vendored Normal file
View File

@ -0,0 +1,59 @@
/*
* Module requirements.
*/
var isArray = require('isarray');
/**
* Module exports.
*/
module.exports = hasBinary;
/**
* Checks for binary data.
*
* Right now only Buffer and ArrayBuffer are supported..
*
* @param {Object} anything
* @api public
*/
function hasBinary(data) {
function _hasBinary(obj) {
if (!obj) return false;
if ( (global.Buffer && global.Buffer.isBuffer && global.Buffer.isBuffer(obj)) ||
(global.ArrayBuffer && obj instanceof ArrayBuffer) ||
(global.Blob && obj instanceof Blob) ||
(global.File && obj instanceof File)
) {
return true;
}
if (isArray(obj)) {
for (var i = 0; i < obj.length; i++) {
if (_hasBinary(obj[i])) {
return true;
}
}
} else if (obj && 'object' == typeof obj) {
// see: https://github.com/Automattic/has-binary/pull/4
if (obj.toJSON && 'function' == typeof obj.toJSON) {
obj = obj.toJSON();
}
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key) && _hasBinary(obj[key])) {
return true;
}
}
}
return false;
}
return _hasBinary(data);
}

54
node_modules/has-binary/node_modules/isarray/README.md generated vendored Normal file
View File

@ -0,0 +1,54 @@
# isarray
`Array#isArray` for older browsers.
## Usage
```js
var isArray = require('isarray');
console.log(isArray([])); // => true
console.log(isArray({})); // => false
```
## Installation
With [npm](http://npmjs.org) do
```bash
$ npm install isarray
```
Then bundle for the browser with
[browserify](https://github.com/substack/browserify).
With [component](http://component.io) do
```bash
$ component install juliangruber/isarray
```
## License
(MIT)
Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
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.

View File

@ -0,0 +1,209 @@
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new Error('Failed to require "' + orig + '" from "' + parent + '"');
err.path = orig;
err.parent = parent;
err.require = true;
throw err;
}
var module = require.modules[resolved];
// perform real require()
// by invoking the module's
// registered function
if (!module.exports) {
module.exports = {};
module.client = module.component = true;
module.call(this, module.exports, require.relative(resolved), module);
}
return module.exports;
}
/**
* Registered modules.
*/
require.modules = {};
/**
* Registered aliases.
*/
require.aliases = {};
/**
* Resolve `path`.
*
* Lookup:
*
* - PATH/index.js
* - PATH.js
* - PATH
*
* @param {String} path
* @return {String} path or null
* @api private
*/
require.resolve = function(path) {
if (path.charAt(0) === '/') path = path.slice(1);
var index = path + '/index.js';
var paths = [
path,
path + '.js',
path + '.json',
path + '/index.js',
path + '/index.json'
];
for (var i = 0; i < paths.length; i++) {
var path = paths[i];
if (require.modules.hasOwnProperty(path)) return path;
}
if (require.aliases.hasOwnProperty(index)) {
return require.aliases[index];
}
};
/**
* Normalize `path` relative to the current path.
*
* @param {String} curr
* @param {String} path
* @return {String}
* @api private
*/
require.normalize = function(curr, path) {
var segs = [];
if ('.' != path.charAt(0)) return path;
curr = curr.split('/');
path = path.split('/');
for (var i = 0; i < path.length; ++i) {
if ('..' == path[i]) {
curr.pop();
} else if ('.' != path[i] && '' != path[i]) {
segs.push(path[i]);
}
}
return curr.concat(segs).join('/');
};
/**
* Register module at `path` with callback `definition`.
*
* @param {String} path
* @param {Function} definition
* @api private
*/
require.register = function(path, definition) {
require.modules[path] = definition;
};
/**
* Alias a module definition.
*
* @param {String} from
* @param {String} to
* @api private
*/
require.alias = function(from, to) {
if (!require.modules.hasOwnProperty(from)) {
throw new Error('Failed to alias "' + from + '", it does not exist');
}
require.aliases[to] = from;
};
/**
* Return a require function relative to the `parent` path.
*
* @param {String} parent
* @return {Function}
* @api private
*/
require.relative = function(parent) {
var p = require.normalize(parent, '..');
/**
* lastIndexOf helper.
*/
function lastIndexOf(arr, obj) {
var i = arr.length;
while (i--) {
if (arr[i] === obj) return i;
}
return -1;
}
/**
* The relative require() itself.
*/
function localRequire(path) {
var resolved = localRequire.resolve(path);
return require(resolved, parent, path);
}
/**
* Resolve relative to the parent.
*/
localRequire.resolve = function(path) {
var c = path.charAt(0);
if ('/' == c) return path.slice(1);
if ('.' == c) return require.normalize(p, path);
// resolve deps by returning
// the dep in the nearest "deps"
// directory
var segs = parent.split('/');
var i = lastIndexOf(segs, 'deps') + 1;
if (!i) i = 0;
path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
return path;
};
/**
* Check if module is defined at `path`.
*/
localRequire.exists = function(path) {
return require.modules.hasOwnProperty(localRequire.resolve(path));
};
return localRequire;
};
require.register("isarray/index.js", function(exports, require, module){
module.exports = Array.isArray || function (arr) {
return Object.prototype.toString.call(arr) == '[object Array]';
};
});
require.alias("isarray/index.js", "isarray/index.js");

View File

@ -0,0 +1,19 @@
{
"name" : "isarray",
"description" : "Array#isArray for older browsers",
"version" : "0.0.1",
"repository" : "juliangruber/isarray",
"homepage": "https://github.com/juliangruber/isarray",
"main" : "index.js",
"scripts" : [
"index.js"
],
"dependencies" : {},
"keywords": ["browser","isarray","array"],
"author": {
"name": "Julian Gruber",
"email": "mail@juliangruber.com",
"url": "http://juliangruber.com"
},
"license": "MIT"
}

View File

@ -0,0 +1,3 @@
module.exports = Array.isArray || function (arr) {
return Object.prototype.toString.call(arr) == '[object Array]';
};

View File

@ -0,0 +1,74 @@
{
"_args": [
[
"isarray@0.0.1",
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\has-binary"
]
],
"_from": "isarray@0.0.1",
"_id": "isarray@0.0.1",
"_inCache": true,
"_location": "/has-binary/isarray",
"_npmUser": {
"email": "julian@juliangruber.com",
"name": "juliangruber"
},
"_npmVersion": "1.2.18",
"_phantomChildren": {},
"_requested": {
"name": "isarray",
"raw": "isarray@0.0.1",
"rawSpec": "0.0.1",
"scope": null,
"spec": "0.0.1",
"type": "version"
},
"_requiredBy": [
"/has-binary"
],
"_resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"_shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf",
"_shrinkwrap": null,
"_spec": "isarray@0.0.1",
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\has-binary",
"author": {
"email": "mail@juliangruber.com",
"name": "Julian Gruber",
"url": "http://juliangruber.com"
},
"dependencies": {},
"description": "Array#isArray for older browsers",
"devDependencies": {
"tap": "*"
},
"directories": {},
"dist": {
"shasum": "8a18acfca9a8f4177e09abfc6038939b05d1eedf",
"tarball": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz"
},
"homepage": "https://github.com/juliangruber/isarray",
"installable": true,
"keywords": [
"array",
"browser",
"isarray"
],
"license": "MIT",
"main": "index.js",
"maintainers": [
{
"name": "juliangruber",
"email": "julian@juliangruber.com"
}
],
"name": "isarray",
"optionalDependencies": {},
"repository": {
"type": "git",
"url": "git://github.com/juliangruber/isarray.git"
},
"scripts": {
"test": "tap test/*.js"
},
"version": "0.0.1"
}

65
node_modules/has-binary/package.json generated vendored Normal file
View File

@ -0,0 +1,65 @@
{
"_args": [
[
"has-binary@0.1.7",
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\socket.io"
]
],
"_from": "has-binary@0.1.7",
"_id": "has-binary@0.1.7",
"_inCache": true,
"_location": "/has-binary",
"_nodeVersion": "4.2.2",
"_npmUser": {
"email": "rauchg@gmail.com",
"name": "rauchg"
},
"_npmVersion": "2.14.7",
"_phantomChildren": {},
"_requested": {
"name": "has-binary",
"raw": "has-binary@0.1.7",
"rawSpec": "0.1.7",
"scope": null,
"spec": "0.1.7",
"type": "version"
},
"_requiredBy": [
"/socket.io",
"/socket.io-client"
],
"_resolved": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.7.tgz",
"_shasum": "68e61eb16210c9545a0a5cce06a873912fe1e68c",
"_shrinkwrap": null,
"_spec": "has-binary@0.1.7",
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\socket.io",
"author": {
"name": "Kevin Roark"
},
"dependencies": {
"isarray": "0.0.1"
},
"description": "A function that takes anything in javascript and returns true if its argument contains binary data.",
"devDependencies": {
"better-assert": "1.0.0",
"mocha": "2.3.4"
},
"directories": {},
"dist": {
"shasum": "68e61eb16210c9545a0a5cce06a873912fe1e68c",
"tarball": "https://registry.npmjs.org/has-binary/-/has-binary-0.1.7.tgz"
},
"gitHead": "73875a20978a219f726f7d313ccd1de19335f5a1",
"installable": true,
"license": "MIT",
"maintainers": [
{
"name": "rauchg",
"email": "rauchg@gmail.com"
}
],
"name": "has-binary",
"optionalDependencies": {},
"scripts": {},
"version": "0.1.7"
}

73
node_modules/has-binary/test.js generated vendored Normal file
View File

@ -0,0 +1,73 @@
var hasBinary = require('./');
var assert = require('better-assert');
var fs = require('fs');
describe('has-binarydata', function(){
it('should work with buffer', function(){
assert(hasBinary(fs.readFileSync('./test.js')));
});
it('should work with an array that does not contain binary', function() {
var arr = [1, 'cool', 2];
assert(!hasBinary(arr));
});
it('should work with an array that contains a buffer', function() {
var arr = [1, new Buffer('asdfasdf', 'utf8'), 2];
assert(hasBinary(arr));
});
it('should work with an object that does not contain binary', function() {
var ob = {a: 'a', b: [], c: 1234, toJSON: '{\"a\": \"a\"}'};
assert(!hasBinary(ob));
});
it('should work with an object that contains a buffer', function() {
var ob = {a: 'a', b: new Buffer('abc'), c: 1234, toJSON: '{\"a\": \"a\"}'};
assert(hasBinary(ob));
});
it('should work with null', function() {
assert(!hasBinary(null));
});
it('should work with undefined', function() {
assert(!hasBinary(undefined));
});
it('should work with a complex object that contains undefined and no binary', function() {
var ob = {
x: ['a', 'b', 123],
y: undefined,
z: {a: 'x', b: 'y', c: 3, d: null},
w: []
};
assert(!hasBinary(ob));
});
it('should work with a complex object that contains undefined and binary', function() {
var ob = {
x: ['a', 'b', 123],
y: undefined,
z: {a: 'x', b: 'y', c: 3, d: null},
w: [],
bin: new Buffer('xxx')
};
assert(hasBinary(ob));
});
if (global.ArrayBuffer) {
it('should work with an ArrayBuffer', function() {
assert(hasBinary(new ArrayBuffer()));
});
}
if (global.Blob) {
it('should work with a Blob', function() {
assert(hasBinary(new Blob()));
});
}
});