New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ng-stackdriver-errors

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-stackdriver-errors

Client-side AngularJS library for Stackdriver Error Reporting

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
3
Created
Source

Do it. Or do not. There is no attempt. =)

Client-side AngularJS library for Stackdriver Error Reporting

IMG

"Fear is the way to the dark side. Fear leads to anger, anger leads to hatred, hatred leads to suffering."

-- Yoda

Stories in Ready

on npm

Dependencies

Download make the dependencies of simpleGridMaterial and include in your project

Installation

$ npm install ng-stackdriver-errors --save

Module AngularJS include

require('angular');

angular.module('Requisition', [
  require('angular-animate'),
  require('angular-material'),
  require('ng-stackdriver-errors') //Component Injection
])

Implementation

Inside config:

angular.module('example').config(function($exceptionHandlerStdProvider) {

  $exceptionHandlerStdProvider.config({
    key: '<my-api-key>',
    projectId: '<my-project-id>',
    service: '<my-service>',              // (optional)
    version: '<my-service-version>'       // (optional)
  });

  $exceptionHandlerStdProvider.setUser('XUXA-010203');
});

Inside the Controller:

angular.module('example').controller('ExampleController', function ($exceptionHandlerStd) {

  try {
  ...
  } catch(e) {
    $exceptionHandlerStd.throw(e);
  }
});

Parameters

NameTypeproviderControllerDescription
configMethodtruefalsesets the stackdriver-errors configuration data
setUserMethodtruetruesets the user to be logged on to stackdriver-errors
throwMethodtruetruethrows an exception

Development

Edit version.js and run the command below:

$ npm run build

Metrics

Throughput Graph

Keywords

stackdriver

FAQs

Package last updated on 21 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