You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

nate-react-api-helpers

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nate-react-api-helpers - npm Package Compare versions

Comparing version

to
1.2.0

10

lib/Fetcher.d.ts

@@ -10,7 +10,7 @@ import { ParsedUrlQueryInput } from 'querystring';

[k: string]: string | Blob;
}): Promise<T | ErrResponse>;
post<T>(path: string, body: any): Promise<T | ErrResponse>;
put<T>(path: string, body: any): Promise<T | ErrResponse>;
get<T>(path: string, urlParameters?: ParsedUrlQueryInput): Promise<T | ErrResponse>;
handleResponse<T>(result: Response): Promise<T | ErrResponse>;
}): Promise<T>;
post<T>(path: string, body: any): Promise<T>;
put<T>(path: string, body: any): Promise<T>;
get<T>(path: string, urlParameters?: ParsedUrlQueryInput): Promise<T>;
handleResponse<T>(result: Response): Promise<T>;
}

@@ -17,0 +17,0 @@ export interface ErrResponse {

@@ -175,2 +175,5 @@ "use strict";

}
if ("error" in jsonData) {
throw new Error(jsonData.error);
}
return [2 /*return*/, jsonData];

@@ -177,0 +180,0 @@ }

{
"name": "nate-react-api-helpers",
"version": "1.1.0",
"version": "1.2.0",
"description": "",

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