
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
ember-cli-addon-aware-resolver
Advanced tools
Resolve paths within dependent packages, with additional awareness of:
Resolve paths within dependent packages, with additional awareness of:
yard add ember-cli-addon-aware-resolver
const resolveCliAware = require('ember-cli-addon-aware-resolver');
resolveCliAware('../foo', {
basedir: '/some/absolute/path'
}) // => /some/absolute/foo
// for an ember app at /some/absolute/path
resolveCliAware('my-ember-app-name/foo', {
basedir: '/some/absolute/path'
}) // => /some/absolute/path/app/foo
// with a v1 ember-addon configured as follows
{
"ember-addon": {
paths: ["./lib/my-in-repo-addon"]
}
}
resolveCliAware('my-in-repo-addon/some/path/in/addon', {
basedir: '/some/absolute/path'
}) // => /some/absolute/path/lib/my-in-repo-addon/addon/some/path/in/addon
resolveCliAware('my-dependency/some/path', {
basedir: '/path/to/project/some/nested/path',
// you can optionally pass pkg and pkgRoot for resolving package dependencies
// if these are absent, package.json will be found by walking up the tree
// from basedir
pkg: myAlreadyReadPackageJson,
pkgRoot: '/path/to/project'
}) // => /some/absolute/foo
try {
resolveCliAware('non-existant-package', {
basedir: '/some/absolute/path'
});
} catch (e) {
e.code // => "MODULE_NOT_FOUND"
}
Non-ember npm dependencies are not supported. It is assumed all resolutions one of:
No support for app namespace merging: so files in an addon's app directory will not be resolved. Similarly, ${my-addon}/test-support will not be resolved as being merged to ${my-app}/tests.
No support for path conflict resolution. This is unlikely to affect anybody, but if you have an Ember app with my-app/app/tests/foo, my-app/tests/foo will not resolve to this file, but instead only look for my-app/tests/foo
No support for customized this.treePaths in addons.
"main" imports are not supported (i.e. imports without paths)
FAQs
Resolve paths within dependent packages, with additional awareness of:
We found that ember-cli-addon-aware-resolver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.