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

@drieam/common

Package Overview
Dependencies
Maintainers
3
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

  • 2.0.2-beta.6
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-66.67%
Maintainers
3
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 @drieam/api @drieam/models @drieam/ui

Usage

import { connectActions, connectReducers } from '@drieam/api';
import * as models from '@drieam/models';
import { setStore } from '@drieam/common';

type API = {
  user: models.canvas.user;
};

type Store = RootReducer<{
  api: ConnectReducers<API>;
}>;

const api: ApiRoutes<API> = {
  user: {
    onError,
    path: '/lti/proxy/api/v1/users/:id?',
    mapper: models.canvas.User,
    list: true,
  },
};

const actions = connectActions<API>(api);
const rootReducer = connectReducers<API>(api);
const store = setStore(
  api,
  rootReducer,
  [/** EMPTY MIDDLEWARES **/],
  defaultOptions,
)({
  /* EMPTY INITIAL STATE */
});

Read the full API Documentation

Components

ApiTable

ApiWrapper

Contributing

We welcome all contributors who abide by our Code of Conduct. Please see the Contributors Guide for more details on submitting a PR, setting up a local dev environment, running tests, etc...

Versioning

Until this project reaches a 1.0 milestone, minor version numbers will simply be incremented during each release. The Changelog will continue to document the different types of updates, including any "breaking changes".

After the 1.0 milestone, this project will follow SemVer.

License

To Be Fill..

FAQs

Package last updated on 10 Apr 2019

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