Initial commit
This commit is contained in:
16
node_modules/call-me-maybe/.zuul.yml
generated
vendored
Normal file
16
node_modules/call-me-maybe/.zuul.yml
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
ui: mocha-bdd
|
||||
browsers:
|
||||
- name: chrome
|
||||
version: -2..latest
|
||||
- name: ie
|
||||
version: -2..latest
|
||||
- name: iphone
|
||||
version: -3..latest
|
||||
- name: safari
|
||||
version: -4..latest
|
||||
- name: firefox
|
||||
version: -2..latest
|
||||
- name: android
|
||||
version: -3..latest
|
||||
- name: opera
|
||||
version: latest
|
||||
22
node_modules/call-me-maybe/LICENSE
generated
vendored
Normal file
22
node_modules/call-me-maybe/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Eric McCarthy
|
||||
|
||||
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.
|
||||
|
||||
20
node_modules/call-me-maybe/index.js
generated
vendored
Normal file
20
node_modules/call-me-maybe/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict"
|
||||
|
||||
var next = (global.process && process.nextTick) || global.setImmediate || function (f) {
|
||||
setTimeout(f, 0)
|
||||
}
|
||||
|
||||
module.exports = function maybe (cb, promise) {
|
||||
if (cb) {
|
||||
promise
|
||||
.then(function (result) {
|
||||
next(function () { cb(null, result) })
|
||||
}, function (err) {
|
||||
next(function () { cb(err) })
|
||||
})
|
||||
return undefined
|
||||
}
|
||||
else {
|
||||
return promise
|
||||
}
|
||||
}
|
||||
19
node_modules/call-me-maybe/package.json
generated
vendored
Normal file
19
node_modules/call-me-maybe/package.json
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "call-me-maybe",
|
||||
"version": "1.0.1",
|
||||
"description": "Let your JS API users either give you a callback or receive a promise",
|
||||
"main": "index.js",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"mocha": "^2.3.2",
|
||||
"promise": "^7.0.4",
|
||||
"zuul": "^3.4.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/limulus/call-me-maybe.git"
|
||||
},
|
||||
"author": "Eric McCarthy <eric@limulus.net> (http://www.limulus.net/)",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/limulus/call-me-maybe#readme"
|
||||
}
|
||||
Reference in New Issue
Block a user