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

@copart/web-app-utils

Package Overview
Dependencies
Maintainers
14
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@copart/web-app-utils

Web app utils for Owner Connect Apps

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
14
Created
Source

@copart/web-app-utils

npm version npm downloads

Will serve as a common library to provide utilities for next generation web apps built in Copart.

Usage

yarn add -S @copart/web-app-utils

import { storage, fetcher } from '@copart/web-app-utils'

storage.accessToken // returns access_token if present from local storage
storage.isAuthenticated // returns true/false if the user attempted verfication on login page

// Coming soon
fetcher[method]() // Extension of axios to automatically append authentication headers and 401 statuses
// Supported methods GET, POST, PUT, DELETE, PATCH

Contribution

Clone this repository and install its dependencies:


git clone https://github.com/comproui

yarn install && yarn tools:start

yarn build builds the library to dist, generating three files:

  • dist/web-app-utils.js

A CommonJS bundle, suitable for use in Node.js, that requires the external dependency. This corresponds to the "main" field in package.json

  • dist/web-app-utils.esm.js

an ES module bundle, suitable for use in other people's libraries and applications, that imports the external dependency. This corresponds to the "module" field in package.json

  • dist/web-app-utils.umd.js

a UMD build, suitable for use in any environment (including the browser, as a <script> tag), that includes the external dependency. This corresponds to the "browser" field in package.json

yarn dev builds the library, then keeps rebuilding it whenever the source files change using rollup-watch.

yarn test builds the library, then tests it.

FAQs

Package last updated on 07 Nov 2022

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