Home
last modified time | relevance | path

Searched refs:iferr (Results 1 – 25 of 25) sorted by relevance

/third_party/node/deps/npm/node_modules/iferr/
DREADME.md1 # iferr chapter
9 npm install iferr
16 var iferr = require('iferr');
19 User.load_user(id, iferr(cb, user =>
20 user.load_friends(iferr(cb, friends =>
29 var iferr = require('iferr');
32 User.load_user(id, iferr(cb, function(user) {
33 user.load_friends(iferr(cb, function(friends) {
42 iferr = require 'iferr'
45 User.load_user id, iferr cb, (user) ->
[all …]
Diferr.js3 const iferr = (fail, succ) => (err, ...a) => err ? fail(err) : succ(...a) function
6 const tiferr = (fail, succ) => iferr(fail, (...a) => {
13 const throwerr = iferr.bind(null, err => { throw err })
17 const printerr = iferr(err => console.error(err), () => {})
19 module.exports = exports = iferr
20 exports.iferr = iferr
/third_party/node/deps/npm/node_modules/gentle-fs/node_modules/iferr/
DREADME.md1 # iferr chapter
9 npm install iferr
16 var iferr = require('iferr');
19 User.load_user(id, iferr(cb, function(user) {
20 user.load_friends(iferr(cb, function(friends) {
29 iferr = require 'iferr'
32 User.load_user id, iferr cb, (user) ->
33 user.load_friends iferr cb, (friends) ->
Dindex.coffee2 # ex: Thing.load 123, iferr cb, (thing) -> ...
3 iferr = (fail, succ) -> (err, a...) ->
7 # Like iferr, but also catches errors thrown from `succ` and passes to `fail`
8 tiferr = (fail, succ) -> iferr fail, (a...) ->
14 throwerr = iferr.bind null, (err) -> throw err
18 printerr = iferr (err) -> console.error err.stack or err
20 module.exports = exports = iferr
21 exports.iferr = iferr
Dindex.js3 var exports, iferr, printerr, throwerr, tiferr,
6 iferr = function(fail, succ) { function
19 return iferr(fail, function() {
31 throwerr = iferr.bind(null, function(err) {
35 printerr = iferr(function(err) {
39 module.exports = exports = iferr;
41 exports.iferr = iferr;
/third_party/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/
DREADME.md1 # iferr chapter
9 npm install iferr
16 var iferr = require('iferr');
19 User.load_user(id, iferr(cb, function(user) {
20 user.load_friends(iferr(cb, function(friends) {
29 iferr = require 'iferr'
32 User.load_user id, iferr cb, (user) ->
33 user.load_friends iferr cb, (friends) ->
Dindex.coffee2 # ex: Thing.load 123, iferr cb, (thing) -> ...
3 iferr = (fail, succ) -> (err, a...) ->
7 # Like iferr, but also catches errors thrown from `succ` and passes to `fail`
8 tiferr = (fail, succ) -> iferr fail, (a...) ->
14 throwerr = iferr.bind null, (err) -> throw err
18 printerr = iferr (err) -> console.error err.stack or err
20 module.exports = exports = iferr
21 exports.iferr = iferr
Dindex.js3 var exports, iferr, printerr, throwerr, tiferr,
6 iferr = function(fail, succ) { function
19 return iferr(fail, function() {
31 throwerr = iferr.bind(null, function(err) {
35 printerr = iferr(function(err) {
39 module.exports = exports = iferr;
41 exports.iferr = iferr;
/third_party/node/deps/npm/node_modules/fs-write-stream-atomic/node_modules/iferr/
DREADME.md1 # iferr chapter
9 npm install iferr
16 var iferr = require('iferr');
19 User.load_user(id, iferr(cb, function(user) {
20 user.load_friends(iferr(cb, function(friends) {
29 iferr = require 'iferr'
32 User.load_user id, iferr cb, (user) ->
33 user.load_friends iferr cb, (friends) ->
Dindex.coffee2 # ex: Thing.load 123, iferr cb, (thing) -> ...
3 iferr = (fail, succ) -> (err, a...) ->
7 # Like iferr, but also catches errors thrown from `succ` and passes to `fail`
8 tiferr = (fail, succ) -> iferr fail, (a...) ->
14 throwerr = iferr.bind null, (err) -> throw err
18 printerr = iferr (err) -> console.error err.stack or err
20 module.exports = exports = iferr
21 exports.iferr = iferr
Dindex.js3 var exports, iferr, printerr, throwerr, tiferr,
6 iferr = function(fail, succ) { function
19 return iferr(fail, function() {
31 throwerr = iferr.bind(null, function(err) {
35 printerr = iferr(function(err) {
39 module.exports = exports = iferr;
41 exports.iferr = iferr;
/third_party/node/deps/npm/lib/install/action/
Dmove.js5 var iferr = require('iferr') variable
53 rimraf(to, iferr(next, makeDestination(next)))
55 rimraf(to, iferr(next, makeDestination(iferr(next, moveToModulesBack(next)))))
70 mkdirp(path.resolve(to, '..'), iferr(done, moveNodeModules(next)))
90 mkdirp(from, iferr(done, function () {
/third_party/node/deps/npm/node_modules/gentle-fs/lib/
Drm.js11 const iferr = require('iferr') constant
54 isSafeToRm(parentInfo, targetInfo, opts.name, opts.log, iferr(cb, thenRemove))
169 asyncMap(paths, errorsToValues(readAllLinks), iferr(cb, function (resolvedPaths) {
179 readAllLinks(target, iferr(skipENOENT(cb), function (targets) {
217 resolveSymlink(path, iferr(cb, _readAllLinks))
228 readLinkOrShim(symlink, iferr(cb, function (symlinkTarget) {
241 fs.lstat(path, iferr(cb, function (stat) {
/third_party/node/deps/npm/node_modules/gentle-fs/node_modules/iferr/test/
Dindex.coffee1 { iferr, tiferr, throwerr } = require '../index.coffee'
8 describe 'iferr', ->
10 invoke_fail iferr(
19 invoke_succ iferr(
/third_party/node/deps/npm/node_modules/fs-write-stream-atomic/node_modules/iferr/test/
Dindex.coffee1 { iferr, tiferr, throwerr } = require '../index.coffee'
8 describe 'iferr', ->
10 invoke_fail iferr(
19 invoke_succ iferr(
/third_party/node/deps/npm/node_modules/copy-concurrently/node_modules/iferr/test/
Dindex.coffee1 { iferr, tiferr, throwerr } = require '../index.coffee'
8 describe 'iferr', ->
10 invoke_fail iferr(
19 invoke_succ iferr(
/third_party/node/deps/npm/node_modules/fs-write-stream-atomic/
Dindex.js5 var iferr = require('iferr') variable
85 return fs.chown(writeStream.__atomicTmp, uid, gid, iferr(cleanup, moveIntoPlace))
92 fs.rename(writeStream.__atomicTmp, writeStream.__atomicTarget, iferr(trapWindowsEPERM, end))
/third_party/node/deps/npm/lib/
Duninstall.js9 const iferr = require('iferr') constant
69 super.loadAllDepsIntoIdealTree(iferr(cb, () => {
Dinstall.js110 var iferr = require('iferr') variable
366 getAllMetadata(this.args, this.currentTree, process.cwd(), iferr(next, (args) => {
667 this.loadArgMetadata(iferr(cb, function () {
668 mkdirp(self.where, iferr(cb, function () {
673 …readPackageTree(self.where, function (ctx, kid) { return ctx.parent || pkgs[kid] }, iferr(cb, func…
685 mkdirp(this.where, iferr(cb, function () {
686 readPackageTree(self.where, iferr(cb, function (currentTree) {
740 readShrinkwrap.andInflate(this.idealTree, iferr(cb, () => {
Dshrinkwrap.js11 const iferr = require('iferr') constant
93 ], iferr(cb, function (data) {
/third_party/node/deps/npm/lib/install/
Dvalidate-args.js6 var iferr = require('iferr') variable
60 checkEngine(pkg, npm.version, nodeVersion, force, strict, iferr(next, thenWarnEngineIssues))
Dread-shrinkwrap.js6 const iferr = require('iferr') constant
44 readShrinkwrap(child, iferr(next, function () {
Dsave.js7 const iferr = require('iferr') constant
64 fs.readFile(saveTarget, 'utf8', iferr(next, function (packagejson) {
Ddeps.js11 var iferr = require('iferr') variable
267 …resolveWithNewModule(pkg, tree, log.newGroup('loadRequestedDeps'), iferr(depLoaded, function (chil…
599 …(req, packageRelativePath(tree), {tracker: log.newItem('fetchMetadata')}, iferr(next, function (pk…
/third_party/node/deps/npm/
DCHANGELOG.md1964 `iferr@1.0.2`
2846 `iferr@1.0.0`
2993 `iferr@1.0.0`