
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Note: this isn't an Ember addon, it's a shell script. :stuck_out_tongue:
ember-wrap is a shell script that transforms node modules into standalone
JavaScript files. It is a workaround for some of ember-browserify's
shortcomings, namely trouble with transpiling ES6 syntax and poor
compatibility with addons. Once the standalone JS files are generated, you
can move them to vendor/ and import them in your ember-cli-build.js as
usual.
$ npm install -g ember-wrap
Let's try installing git-data, which is a module that uses ES6.
Within an Ember project:
$ npm install git-data
$ wrap git-data
$ ls vendor/ # now has git-data.js and git-data-shim.js
Add the following to your ember-cli-build.js:
app.import('vendor/git-data.js')
app.import('vendor/git-data-shim.js')
And import the module freely in your Ember project:
import GitData from 'git-data'
window['git-data'] // => undefined
If necessary, you can run wrap in npm's postinstall hook. This is useful if
you want to keep a dependency up-to-date.
// place this in package.json
{
"scripts": {
"postinstall": "wrap git-data"
}
}
Usage: wrap [options] <module>
Options:
-o, --outdir <dirname> [default: vendor/]
Output directory.
Examples:
Note that the modules below use ES6 features.
$ npm install git-data
$ wrap git-data
$ npm install joi
$ wrap joi
$ wrap --outdir somedir/ joi
MIT
FAQs
Import node modules that use ES6 into your Ember projects
We found that ember-wrap 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.