
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
ember-getowner-polyfill
Advanced tools
This provides a polyfill for the Ember.getOwner
and Ember.setOwner
features
added in Ember 2.3.
ember install ember-getowner-polyfill
import Ember from 'ember';
export default Ember.Service.extend({
someMethod() {
let owner = Ember.getOwner(this);
// do stuff with owner
}
});
After you upgrade your application to Ember 2.3, you should remove ember-getowner-polyfill
from
your package.json
.
Addons generally support many different Ember versions, so leaving ember-getowner-polyfill
in
place for consumers of your addon is perfectly normal. When the addon no longer supports Ember
versions older than 2.4, we recommend removing ember-getowner-polyfill
from your package.json
and doing a major version bump.
The returned owner object should support all of the methods of the ContainerProxyMixin
and RegistryProxyMixin
.
This addon is tested against quite a few past Ember versions. Check config/ember-try.js
for the current list, but
the list of supported Ember versions at the time of authoring was:
git clone
this repositorynpm install
ember serve
npm test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
FAQs
The default blueprint for ember-cli addons.
The npm package ember-getowner-polyfill receives a total of 31,580 weekly downloads. As such, ember-getowner-polyfill popularity was classified as popular.
We found that ember-getowner-polyfill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.