Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.