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

@indigov/flags-api

Package Overview
Dependencies
Maintainers
13
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@indigov/flags-api - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "@indigov/flags-api",
"version": "0.0.3",
"version": "0.0.4",
"description": "Strongly typed React/Node client for the Flags service",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -1,2 +0,2 @@

# F.L.A.G.S API Client
# F.L.A.G.S. API Client

@@ -3,0 +3,0 @@ Cross-platform Typescript SDK for the [Flags](https://github.com/indigov-us/flags) service.

@@ -42,3 +42,4 @@ import fetch from 'cross-fetch'

*/
public getFlag = async (flag: string, officeOverride?: string): Promise<GetFlagResponse> => this.request(`flag/${flag}/${officeOverride || this.office}`)
public getFlag = async (flag: string, officeOverride?: string): Promise<boolean> =>
(await this.request<GetFlagResponse>(`flag/${flag}/${officeOverride || this.office}`)).value

@@ -55,3 +56,3 @@ /**

private request = (path: string) =>
private request = <T>(path: string): Promise<T> =>
fetch(`${this.endpoint}/${path}`, {

@@ -58,0 +59,0 @@ method: 'GET',

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