🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

ember-cli-stack-trace-limit

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-stack-trace-limit

The default blueprint for ember-cli addons.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

ember-cli-stack-trace-limit

An ember-cli addon to set Error.stackTraceLimit early.

Installation

ember install ember-cli-stack-trace-limit

Usage

By default, this addon sets Error.stackTraceLimit to 100 in development and test environments. This number can be overridden with this stackTraceLimit configuration property. It can be enabled in other environments by configuring stackTraceLimit for those environments.

Configuration

ENV.stackTraceLimit

You can configure the limit in your project's config/environment.js file. This is an easy way to change settings for a given environment. For example:

// config/environment.js
module.exports = function(environment) {
  var ENV = { };

  if (environment === 'test') {
    ENV.stackTraceLimit = 30;
  }
  
  if (environment === 'development') {
    ENV.stackTraceLimit = 120;
  }

  return ENV;
};

Keywords

ember-addon

FAQs

Package last updated on 10 Feb 2016

Did you know?

Socket

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.

Install

Related posts