How to use lie - 10 common examples

To help you get started, we’ve selected a few lie examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hoodiehq / hoodie-store-client / lib / pull.js View on Github external
return new Promise(function (resolve, reject) {
      if (Array.isArray(docsOrIds)) {
        docsOrIds = docsOrIds.map(toId)
      } else {
        docsOrIds = docsOrIds && [toId(docsOrIds)]
      }

      if (docsOrIds && docsOrIds.filter(Boolean).length !== docsOrIds.length) {
        return Promise.reject(errors.NOT_AN_OBJECT)
      }

      var replication = state.db.replicate.from(remote, {
        doc_ids: docsOrIds
      })

      /* istanbul ignore next */
      replication.catch(function () {
        // handled trough 'error' event
      })

      replication.on('complete', function () {
        resolve(pulledObjects)
      })
      replication.on('error', reject)
github hoodiehq / hoodie-store-client / lib / push.js View on Github external
return new Promise(function (resolve, reject) {
      if (Array.isArray(docsOrIds)) {
        docsOrIds = docsOrIds.map(toId)
      } else {
        docsOrIds = docsOrIds && [toId(docsOrIds)]
      }

      if (docsOrIds && docsOrIds.filter(Boolean).length !== docsOrIds.length) {
        return Promise.reject(errors.NOT_AN_OBJECT)
      }

      var replication = state.db.replicate.to(remote, {
        create_target: true,
        doc_ids: docsOrIds,
        include_docs: true
      })

      /* istanbul ignore next */
      replication.catch(function () {
        // handled trough 'error' event
      })

      replication.on('complete', function () {
        resolve(pushedObjects)
      })
github calvinmetcalf / liar / dist / liar.js View on Github external
promise.reject = require('lie-reject');
promise.all = require('lie-all');
promise.race = require('lie-race');
promise.cast = require('lie-cast');
promise.some = require('lie-some');
promise.map = require('lie-map');
promise.denodify = require('lie-denodify');
promise.apply = require('lie-apply');
promise.lfold = require('lie-lfold');
promise.rfold = require('lie-rfold');
promise.fold = require('lie-fold');
promise.zip = require('lie-zip');
promise.zipwith = require('lie-zipwith');
promise.filter = require('lie-filter');
promise.every = require('lie-every');
promise.any = require('lie-any');
module.exports = promise;
},{"lie":36,"lie-all":3,"lie-any":6,"lie-apply":8,"lie-cast":10,"lie-denodify":11,"lie-every":12,"lie-filter":13,"lie-fold":14,"lie-lfold":16,"lie-map":18,"lie-race":20,"lie-reject":22,"lie-resolve":23,"lie-rfold":24,"lie-some":26,"lie-use":29,"lie-zip":30,"lie-zipwith":33}],2:[function(require,module,exports){
// shim for using process in browser
github calvinmetcalf / liar / dist / liar.js View on Github external
return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o
github calvinmetcalf / liar / dist / liar.js View on Github external
return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o
github calvinmetcalf / liar / dist / liar.js View on Github external
return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o
github calvinmetcalf / liar / dist / liar.js View on Github external
promise.resolve = require('lie-resolve');
promise.reject = require('lie-reject');
promise.all = require('lie-all');
promise.race = require('lie-race');
promise.cast = require('lie-cast');
promise.some = require('lie-some');
promise.map = require('lie-map');
promise.denodify = require('lie-denodify');
promise.apply = require('lie-apply');
promise.lfold = require('lie-lfold');
promise.rfold = require('lie-rfold');
promise.fold = require('lie-fold');
promise.zip = require('lie-zip');
promise.zipwith = require('lie-zipwith');
promise.filter = require('lie-filter');
promise.every = require('lie-every');
promise.any = require('lie-any');
module.exports = promise;
},{"lie":36,"lie-all":3,"lie-any":6,"lie-apply":8,"lie-cast":10,"lie-denodify":11,"lie-every":12,"lie-filter":13,"lie-fold":14,"lie-lfold":16,"lie-map":18,"lie-race":20,"lie-reject":22,"lie-resolve":23,"lie-rfold":24,"lie-some":26,"lie-use":29,"lie-zip":30,"lie-zipwith":33}],2:[function(require,module,exports){
// shim for using process in browser
github calvinmetcalf / liar / dist / liar.js View on Github external
promise.use = require('lie-use');
promise.resolve = require('lie-resolve');
promise.reject = require('lie-reject');
promise.all = require('lie-all');
promise.race = require('lie-race');
promise.cast = require('lie-cast');
promise.some = require('lie-some');
promise.map = require('lie-map');
promise.denodify = require('lie-denodify');
promise.apply = require('lie-apply');
promise.lfold = require('lie-lfold');
promise.rfold = require('lie-rfold');
promise.fold = require('lie-fold');
promise.zip = require('lie-zip');
promise.zipwith = require('lie-zipwith');
promise.filter = require('lie-filter');
promise.every = require('lie-every');
promise.any = require('lie-any');
module.exports = promise;
},{"lie":36,"lie-all":3,"lie-any":6,"lie-apply":8,"lie-cast":10,"lie-denodify":11,"lie-every":12,"lie-filter":13,"lie-fold":14,"lie-lfold":16,"lie-map":18,"lie-race":20,"lie-reject":22,"lie-resolve":23,"lie-rfold":24,"lie-some":26,"lie-use":29,"lie-zip":30,"lie-zipwith":33}],2:[function(require,module,exports){
// shim for using process in browser
github calvinmetcalf / liar / dist / liar.js View on Github external
return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o
github calvinmetcalf / liar / dist / liar.js View on Github external
return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o