You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

angular-meteor-promiser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-meteor-promiser

Turns Meteor subscribe, call, apply callbacks into promises

0.1.0
Source
npmnpm
Version published
Maintainers
1
Created
Source

angular-meteor-promiser

Turns Meteor subscribe, call, apply callbacks into promises

Install

npm install angular-meteor-promiser

$promiser

subscribe : Promise

Same arguments as Meteor.subscribe but without callback.

resolve() receives a handle that provides stop() and ready() methods.

call : Promise

Same arguments as Meteor.call.

apply : Promise

Same arguments as Meteor.apply.

any : Promise

function foo(bar) {
  if (!bar) {
    throw new Error('Bar, we need you!');
  }

  return bar;
}

$promiser.any(() => foo('bar'))
  .then((data) => { ... })
  .catch((error) => { ... });

FAQs

Package last updated on 28 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts