
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
ember-promise-cps
Advanced tools
This Ember addon provides you with a computed property macros to aid with common problems when passing promises into components:
{{! application.hbs }}
{{items-list items-promise=promiseForItems}}
// items-list/component.js
import { promiseObject } from 'ember-promise-cps/macros';
export default Component.extend({
items: promiseArray('items-promise')
});
{{! items-list/template.hbs }}
{{#if items.isPending}}
Loading items
{{else if items.isRejected}}
Unable to display items: {{items.reason}}
{{else if items.isFulfilled}}
{{#each items as |item|}}
...
{{/each}}
{{/if}}
promiseObject({ foo: 'bar' })
promiseArray([ 'foo', 'bar' ])
promiseObject('myObject')
promiseArray('myArray')
{{#if (await items)}}
{{#each items as |item|}}
...
...then the downside is you don't _also_ have the ability to base more computed properties on the result of that promise in the component itself. (It's more useful to resolve the promise in the component, and let your template read the properties rather than the other way around. It also leads to simpler templates).
2. If you need something more substantial, see: http://ember-concurrency.com/
ember install ember-promise-cps
FAQs
Promise Proxy Object computed properties
The npm package ember-promise-cps receives a total of 0 weekly downloads. As such, ember-promise-cps popularity was classified as not popular.
We found that ember-promise-cps 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.