Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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({
proxy: promiseObject('items-promise')
});
{{! items-list/template.hbs }}
{{#if proxy.isPending}}
Loading items
{{else if proxy.isRejected}}
Unable to display items: {{proxy.reason}}
{{else if proxy.isFulfilled}}
{{#each proxy.items as |item|}}
...
{{/each}}
{{/if}}
{{#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
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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.