Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
angular-meteor-promiser
Advanced tools
Turns Meteor subscribe, call, apply callbacks into AngularJS promises
Turns Meteor subscribe, call, apply callbacks into promises
npm install angular-meteor-promiser
angular.module('app', [
'angular-meteor-promiser'
]);
$promiser
function controller($promiser) {
// $promiser.subscribe
// $promiser.call
// $promiser.apply
// $promiser.any
}
Same arguments as Meteor.subscribe
but without callback.
resolve()
receives a handle that provides stop()
and ready()
methods.
Same arguments as Meteor.call
.
Same arguments as Meteor.apply
.
function foo(bar) {
if (!bar) {
throw new Error('Bar, we need you!');
}
return bar;
}
$promiser.any(() => {
return foo('sync');
})
.then((data) => { ... }) // 'sync'
.catch((error) => { ... });
$promiser.any((resolve, reject) => {
setTimeout(() => {
resolve(foo('async'));
}, 500);
})
.then((data) => { ... }) // 'async'
.catch((error) => { ... });
FAQs
Turns Meteor subscribe, call, apply callbacks into AngularJS promises
The npm package angular-meteor-promiser receives a total of 2 weekly downloads. As such, angular-meteor-promiser popularity was classified as not popular.
We found that angular-meteor-promiser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.