Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@harnessio/react-api-client

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harnessio/react-api-client

Harness React API client - APIs integrated with react hooks

Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

API-Client

Status: Beta

Steps to generate TS output from YAML

  • Run 'yarn' to download depenencies
  • Run command "npx oats import --config='./oats.config.ts'"

To Generate API Client build from TS

  • Running 'yarn build' will generate dist folder

  • With following steps, testing can be done before publishing using yalc

    • Run 'yalc push' in this repo
    • Run 'yalc add @harnessio/react-api-client' in consumer repo
    • '@harnessio/react-api-client': 'file:.yalc/@harnessio/react-api-client' as consumer dependency
  • For NGUI adoption :

    getHeaders: () => {
        return { token: SessionToken.getToken(), 'Harness-Account': accountId }
    }

FAQs

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