@portkey/request
Advanced tools
Comparing version 1.5.2-alpha.0 to 1.5.2
export interface IAbortSignal { | ||
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; | ||
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */ | ||
dispatchEvent(event: Event): boolean; | ||
/** Removes the event listener in target's event listener list with the same type, callback, and options. */ | ||
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; | ||
@@ -5,0 +7,0 @@ readonly aborted: boolean; |
@@ -45,2 +45,3 @@ "use strict"; | ||
let { url: uri, method = 'GET', headers, query, body, params } = config; | ||
// TODO: adjust no url | ||
if (!uri) | ||
@@ -58,2 +59,3 @@ throw new Error('no url'); | ||
} | ||
// TODO:fix headers | ||
const myHeaders = Object.assign(Object.assign({}, defaultHeaders), headers); | ||
@@ -60,0 +62,0 @@ const result = yield fetch(uri, { |
export interface IAbortSignal { | ||
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; | ||
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */ | ||
dispatchEvent(event: Event): boolean; | ||
/** Removes the event listener in target's event listener list with the same type, callback, and options. */ | ||
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; | ||
@@ -5,0 +7,0 @@ readonly aborted: boolean; |
@@ -41,2 +41,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
let { url: uri, method = 'GET', headers, query, body, params } = config; | ||
// TODO: adjust no url | ||
if (!uri) | ||
@@ -54,2 +55,3 @@ throw new Error('no url'); | ||
} | ||
// TODO:fix headers | ||
const myHeaders = Object.assign(Object.assign({}, defaultHeaders), headers); | ||
@@ -56,0 +58,0 @@ const result = yield fetch(uri, { |
export interface IAbortSignal { | ||
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void; | ||
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */ | ||
dispatchEvent(event: Event): boolean; | ||
/** Removes the event listener in target's event listener list with the same type, callback, and options. */ | ||
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void; | ||
@@ -5,0 +7,0 @@ readonly aborted: boolean; |
{ | ||
"name": "@portkey/request", | ||
"version": "1.5.2-alpha.0", | ||
"version": "1.5.2", | ||
"description": "", | ||
@@ -43,6 +43,6 @@ "main": "./dist/commonjs/index.js", | ||
"dependencies": { | ||
"@portkey/types": "^1.5.2-alpha.0", | ||
"@portkey/types": "^1.5.2", | ||
"query-string": "^7.1.1" | ||
}, | ||
"gitHead": "d78fdaae320a2fd38dbeaf15d31adf2726578c10" | ||
"gitHead": "20e7e64ea49904e59a69bb6cce8a54c22921993b" | ||
} |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
56764
343
0
Updated@portkey/types@^1.5.2