New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@portkey/request

Package Overview
Dependencies
Maintainers
3
Versions
370
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@portkey/request - npm Package Compare versions

Comparing version 1.5.2-alpha.0 to 1.5.2

2

dist/commonjs/types.d.ts
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;

6

package.json
{
"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

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