Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
ember-cli-fetch-pretender
Advanced tools
Include fetch-pretender (fetch-based Pretender fork) into an ember-cli application.
Simple wrapper for pretender.js, this project removes the need for the developer to know which files need to be imported.
ember install ember-cli-pretender
You can then import Pretender in your tests:
import Pretender from 'pretender';
see: pretenderjs/pretender for pretender docs
By default pretender.enabled
will be set to app.tests
. This means that pretender will only be available as an import when your app includes your test suite.
If you'd like to include Pretender into production builds as well, you can set pretender.enabled
to true
in your ember-cli-build.js
or Brocfile.js
:
var app = new EmberApp({
pretender: {
enabled: true
}
});
To publish an addon that exports functionality driven by ember-cli-pretender,
note that ember-cli-pretender must be listed in the dependencies
for NPM
and not the devDependencies
.
When consuming an addon that consumes ember-cli-pretender, running the initializing generator by hand is required.
ember generate ../node_modules/the-addon/node_modules/ember-cli-pretender/blueprints/ember-cli-pretender
FAQs
Include fetch-pretender (fetch-based Pretender fork) into an ember-cli application.
We found that ember-cli-fetch-pretender 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.