Socket
Socket
Sign inDemoInstall

ember-cli-profitwell

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-profitwell

An Ember CLI addon for integrating with ProfitWell


Version published
Maintainers
1
Created
Source

ember-cli-profitwell

Greenkeeper badge

This addon inserts the ProfitWell script into the <head> of the page for you.

Installation

ember install ember-cli-profitwell

After installing the addon, you MUST provide a configuration value for your authentication token.

Configuration

You can configure some of the variables used in the inserted script.

// config/environment.js

ENV['ember-cli-profitwell'] = {
  enabledEnvironments: ['production'], // default
  authToken: 'YourAuthToken'           // required, no default
};

Usage

The addon exposes a profitwell service through which you can set the email of the current logged in user.

// some component/controller/route

profitwell: Ember.inject.service(),

onLogin(userEmail) {
  this.get('profitwell').setUserEmail(userEmail);
}

...

Keywords

FAQs

Package last updated on 22 Mar 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc