Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.