
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
ember-is-fastboot
Advanced tools
Provides a mixin for addons to check the FastBoot status of their consuming apps
This addon provides a mixin to make it easy to know if your addon is currently in FastBoot mode. This approach is lovingly stolen from a great PR made by @tylerturdenpants!
ember install ember-is-fastboot
The is-fastboot
mixin is the only utility you need to use! It provides an
_isFastBoot
computed that tells you if FastBoot mode is currently active.
For example, if you have a service that needs to short-circuit some logic in FastBoot:
// services/foo.js
import Service from '@ember/service';
import IsFastbootMixin from 'ember-is-fastboot/mixins/is-fastboot';
export default Service.extend(IsFastbootMixin, {
doStuff() {
if (this.get('_isFastBoot')) {
return; // Don't do the stuff, we're in FastBoot mode
}
// Do the stuff, we're not in FastBoot mode
}
});
That's it! You can throw this mixin into any Ember object that needs to be FastBoot-aware.
git clone <repository-url>
cd ember-is-fastboot
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versionsember serve
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.
FAQs
Provides a mixin for addons to check the FastBoot status of their consuming apps
The npm package ember-is-fastboot receives a total of 10 weekly downloads. As such, ember-is-fastboot popularity was classified as not popular.
We found that ember-is-fastboot 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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.