Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
declare class AjaonPromise<Res = any, Error = string> extends Promise<Res> { | ||
export declare class AjaonPromise<Res = any, Error = string> extends Promise<Res> { | ||
constructor(f: (res: (res: Res) => void, fail: (err: Error) => void) => void); | ||
@@ -17,3 +17,3 @@ private hasFailed; | ||
}; | ||
export default function ajaon(apiUrl: string, sessKeyKey: string | SessKeyKey, verbose?: boolean): { | ||
export default function ajaon(apiUrl: string, sessKeyKey?: string | SessKeyKey, verbose?: boolean): { | ||
post: <Res = GenericObject>(url: string | string[], body: string | object, headers?: HeadersInit) => AjaonPromise<Res, string>; | ||
@@ -20,0 +20,0 @@ get: <Res_1>(...url: string[]) => Promise<Res_1>; |
import clone from "tiny-clone"; | ||
class AjaonPromise extends Promise { | ||
export class AjaonPromise extends Promise { | ||
constructor(f) { | ||
@@ -42,3 +42,3 @@ super((res) => { | ||
const constructConsoleWarnVerbose = constructConsoleType("warn"); | ||
export default function ajaon(apiUrl, sessKeyKey, verbose = true) { | ||
export default function ajaon(apiUrl, sessKeyKey = "sessKey", verbose = true) { | ||
const warn = constructConsoleWarnVerbose(verbose); | ||
@@ -45,0 +45,0 @@ if (apiUrl.charAt(apiUrl.length - 1) !== "/") |
@@ -5,3 +5,3 @@ import clone from "tiny-clone" | ||
class AjaonPromise<Res = any, Error = string> extends Promise<Res> { | ||
export class AjaonPromise<Res = any, Error = string> extends Promise<Res> { | ||
constructor(f: (res: (res: Res) => void, fail: (err: Error) => void) => void) { | ||
@@ -51,3 +51,3 @@ super((res) => { | ||
export default function ajaon(apiUrl: string, sessKeyKey: string | SessKeyKey, verbose: boolean = true) { | ||
export default function ajaon(apiUrl: string, sessKeyKey: string | SessKeyKey = "sessKey", verbose: boolean = true) { | ||
const warn = constructConsoleWarnVerbose(verbose) | ||
@@ -54,0 +54,0 @@ |
{ | ||
"name": "ajaon", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Asynchron js and json. A tiny, fetch based http client for the web.", | ||
@@ -5,0 +5,0 @@ "main": "app/dist/ajaon.js", |
@@ -0,0 +0,0 @@ # Ajaon |
@@ -0,0 +0,0 @@ import ajaon from "./../../app/src/ajaon" |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ const InjectPlugin = require('webpack-inject-plugin').default; |
@@ -0,0 +0,0 @@ const merge = require('webpack-merge'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
12639