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

jsql-api

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsql-api - npm Package Compare versions

Comparing version

to
0.0.54

6

dist/src/functions/fetchJsqlApi.d.ts

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

import { AxiosResponse, Method } from "axios";
import * as axios from "axios";
import { IQuery } from "../types/abstract/IQuery";

@@ -6,3 +6,3 @@ import { IEntity } from "../types/abstract/IEntity";

path: string;
method: Method;
method: axios.Method;
body?: Query;

@@ -30,3 +30,3 @@ params: {

*/
export declare function fetchJsqlApi<Query extends IQuery, Table extends IEntity = any>({ path, method, body, params, headers, isLocal }: IFetchSqlApiProps<Query>): Promise<AxiosResponse<Table, any>>;
export declare function fetchJsqlApi<Query extends IQuery, Table extends IEntity = any>({ path, method, body, params, headers, isLocal }: IFetchSqlApiProps<Query>): Promise<axios.AxiosResponse<Table, any>>;
export {};

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

import axios from "axios";
import * as axios from "axios";
/**

@@ -23,3 +23,3 @@ * Make a query to the database

try {
const response = await axios(config);
const response = await axios.default(config);
return response;

@@ -26,0 +26,0 @@ }

{
"name": "jsql-api",
"version": "0.0.53",
"version": "0.0.54",
"main": "dist/index.d.ts",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",