First release
This commit is contained in:
commit
fa6c85266e
2339 changed files with 761050 additions and 0 deletions
19
node_modules/is-function/LICENSE
generated
vendored
Normal file
19
node_modules/is-function/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
Copyright (c) 2013 Stephen Sugden
|
||||
|
||||
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.
|
23
node_modules/is-function/README.md
generated
vendored
Normal file
23
node_modules/is-function/README.md
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
# is-function
|
||||
|
||||
[](https://ci.testling.com/grncdr/js-is-function)
|
||||
|
||||
Is that thing a function? Use this module to find out.
|
||||
|
||||
## API
|
||||
|
||||
### module.exports = function isFunction(fn) -> Boolean
|
||||
|
||||
Return `true` if `fn` is a function, otherwise `false`.
|
||||
|
||||
## Why not typeof fn === 'function'
|
||||
|
||||
Because certain old browsers misreport the type of `RegExp` objects as functions.
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
I stole this from https://github.com/ljharb/object-keys
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
18
node_modules/is-function/index.js
generated
vendored
Normal file
18
node_modules/is-function/index.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
module.exports = isFunction
|
||||
|
||||
var toString = Object.prototype.toString
|
||||
|
||||
function isFunction (fn) {
|
||||
if (!fn) {
|
||||
return false
|
||||
}
|
||||
var string = toString.call(fn)
|
||||
return string === '[object Function]' ||
|
||||
(typeof fn === 'function' && string !== '[object RegExp]') ||
|
||||
(typeof window !== 'undefined' &&
|
||||
// IE8 and below
|
||||
(fn === window.setTimeout ||
|
||||
fn === window.alert ||
|
||||
fn === window.confirm ||
|
||||
fn === window.prompt))
|
||||
};
|
74
node_modules/is-function/package.json
generated
vendored
Normal file
74
node_modules/is-function/package.json
generated
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
{
|
||||
"_from": "is-function@^1.0.1",
|
||||
"_id": "is-function@1.0.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==",
|
||||
"_location": "/is-function",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-function@^1.0.1",
|
||||
"name": "is-function",
|
||||
"escapedName": "is-function",
|
||||
"rawSpec": "^1.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@videojs/xhr"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz",
|
||||
"_shasum": "4f097f30abf6efadac9833b17ca5dc03f8144e08",
|
||||
"_spec": "is-function@^1.0.1",
|
||||
"_where": "F:\\Documents\\websites\\BMM\\node_modules\\@videojs\\xhr",
|
||||
"author": {
|
||||
"name": "Stephen Sugden",
|
||||
"email": "me@stephensugden.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/grncdr/js-is-function/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "is that thing a function? Use this module to find out",
|
||||
"devDependencies": {
|
||||
"tape": "~2.3.2"
|
||||
},
|
||||
"homepage": "https://github.com/grncdr/js-is-function",
|
||||
"keywords": [
|
||||
"polyfill",
|
||||
"is-function",
|
||||
"ie6"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "is-function",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/grncdr/js-is-function.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "tape test.js"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test.js",
|
||||
"browsers": [
|
||||
"iexplore/6.0..latest",
|
||||
"firefox/3.0..6.0",
|
||||
"firefox/15.0..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/4.0..10.0",
|
||||
"chrome/20.0..latest",
|
||||
"chrome/canary",
|
||||
"opera/10.0..latest",
|
||||
"opera/next",
|
||||
"safari/4.0..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2"
|
||||
]
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
37
node_modules/is-function/test.js
generated
vendored
Normal file
37
node_modules/is-function/test.js
generated
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
var test = require('tape')
|
||||
var isFunction = require('./index.js')
|
||||
|
||||
test('isFunction', function (t) {
|
||||
t.ok(!isFunction(), 'undefined is not a function')
|
||||
t.ok(!isFunction(null), 'null is not a function')
|
||||
t.ok(!isFunction(''), 'string is not a function')
|
||||
t.ok(!isFunction(/a/), 'regex is not a function')
|
||||
t.ok(!isFunction(true), 'true is not a function')
|
||||
t.ok(!isFunction(false), 'false is not a function')
|
||||
t.ok(!isFunction(NaN), 'NaN is not a function')
|
||||
t.ok(!isFunction(42), '42 is not a function')
|
||||
t.ok(isFunction(function () {}), 'function is a function')
|
||||
t.ok(isFunction(setTimeout), 'setTimeout is a function')
|
||||
t.end()
|
||||
})
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
test('browser quirks', function (t) {
|
||||
t.plan(2)
|
||||
|
||||
t.ok(isFunction(window.alert), 'alert is a function')
|
||||
|
||||
window.testRegExpFromIframe = function (regexp) {
|
||||
t.ok(!isFunction(regexp))
|
||||
}
|
||||
|
||||
var iframe = document.createElement('iframe')
|
||||
document.body.appendChild(iframe)
|
||||
|
||||
iframe.contentWindow.document.write([
|
||||
"<html><body><script type=\"text/javascript\">",
|
||||
"parent.testRegExpFromIframe(/a/)",
|
||||
"</script></body></html>"
|
||||
].join("\n"));
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue