Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

2

angular-meteor-promiser.js

@@ -74,3 +74,3 @@ "use strict";

}());
var name = 'angular-meteor.promiser';
var name = 'angular-meteor-promiser';
Object.defineProperty(exports, "__esModule", { value: true });

@@ -77,0 +77,0 @@ exports.default = name;

@@ -70,3 +70,3 @@ import * as angular from 'angular';

const name = 'angular-meteor.promiser';
const name = 'angular-meteor-promiser';
export default name;

@@ -73,0 +73,0 @@

{
"name": "angular-meteor-promiser",
"version": "0.2.0",
"description": "Turns Meteor subscribe, call, apply callbacks into promises",
"version": "1.0.0",
"description": "Turns Meteor subscribe, call, apply callbacks into AngularJS promises",
"main": "angular-meteor-promiser.js",
"keywords": [
"AngularJS",
"Meteor",
"angular-meteor",
"angular"
],
"repository": {

@@ -7,0 +13,0 @@ "type": "git",

@@ -10,5 +10,20 @@ # angular-meteor-promiser

```js
angular.module('app', [
'angular-meteor-promiser'
]);
```
### `$promiser`
```js
function controller($promiser) {
// $promiser.subscribe
// $promiser.call
// $promiser.apply
// $promiser.any
}
```
#### subscribe

@@ -24,3 +39,3 @@

#### apply=
#### apply

@@ -40,10 +55,17 @@ Same arguments as `Meteor.apply`.

$promiser.any(() => foo('sync'))
$promiser.any(() => {
return foo('sync');
})
.then((data) => { ... }) // 'sync'
.catch((error) => { ... });
$promiser.any((done) => {
setTimeout(() => {
done(foo('async'))
done(foo('async'));
}, 500);
})

@@ -50,0 +72,0 @@ .then((data) => { ... }) // 'async'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc