Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@drieam/common

Package Overview
Dependencies
Maintainers
4
Versions
395
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drieam/common

Default Drieam api wrapper

  • 6.13.4-next.0
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
4
Weekly downloads
 
Created
Source

npm

@drieam/common

This package include some utilities used by Drieam LTI apps.

Getting Started

Installation

Install the @drieam/common and its dependencies.

yarn add @drieam/common

Read the full API Documentation

Options

General settings of an action as an extension of api actions.

{
  withErrorHandler: true,
  csrfToken: getCSRFToken(),
  history: createBrowserHistory(),
  toasts: {
    offline: {
      duration: 0,
      message: 'Not connected.',
    },
    save: { message: 'Saved success.' },
    delete: { message: 'Deleted success.' },
  },
};
}
  • Attributes:
    1. withErrorHandler (boolean): Enables ErrorHandlingMiddleware (Default: true). Provides feedback through an Antd Notification on offline, save success or fail action.
    2. toasts (object): Notification settings, you can express which message can be provided by the error handler.
    3. history (object): history is a JavaScript library that lets you easily manage session history anywhere JavaScript runs. (default: require 'history').
    4. csfrToken (string): Cross-site request forgery token. (Default: <meta [name="csrf-token"] />).
    5. Api options

FAQs

Package last updated on 08 Jul 2020

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