Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ky

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ky - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

distribution/types/request.d.ts

2

distribution/core/constants.d.ts
import { type KyOptionsRegistry } from '../types/options.js';
import { type RequestInitRegistry } from '../types/request.js';
export declare const supportsRequestStreams: boolean;

@@ -17,1 +18,2 @@ export declare const supportsAbortController: boolean;

export declare const kyOptionKeys: KyOptionsRegistry;
export declare const requestOptionsRegistry: RequestInitRegistry;

@@ -47,2 +47,19 @@ export const supportsRequestStreams = (() => {

};
export const requestOptionsRegistry = {
method: true,
headers: true,
body: true,
mode: true,
credentials: true,
cache: true,
redirect: true,
referrer: true,
referrerPolicy: true,
integrity: true,
keepalive: true,
signal: true,
window: true,
dispatcher: true,
duplex: true,
};
//# sourceMappingURL=constants.js.map

4

distribution/utils/options.js

@@ -1,6 +0,6 @@

import { kyOptionKeys } from '../core/constants.js';
import { kyOptionKeys, requestOptionsRegistry } from '../core/constants.js';
export const findUnknownOptions = (request, options) => {
const unknownOptions = {};
for (const key in options) {
if (!(key in kyOptionKeys) && !(key in request)) {
if (!(key in requestOptionsRegistry) && !(key in kyOptionKeys) && !(key in request)) {
unknownOptions[key] = options[key];

@@ -7,0 +7,0 @@ }

{
"name": "ky",
"version": "1.1.1",
"version": "1.1.2",
"description": "Tiny and elegant HTTP client based on the browser Fetch API",

@@ -70,3 +70,3 @@ "license": "MIT",

"pify": "^6.1.0",
"playwright-chromium": "^1.37.1",
"playwright": "^1.39.0",
"raw-body": "^2.5.2",

@@ -73,0 +73,0 @@ "ts-node": "^10.9.1",

Sorry, the diff of this file is not supported yet

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