Socket
Socket
Sign inDemoInstall

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 0.27.0 to 0.28.0

distribution/core/constants.d.ts

76

package.json
{
"name": "ky",
"version": "0.27.0",
"version": "0.28.0",
"description": "Tiny and elegant HTTP client based on the browser Fetch API",

@@ -14,3 +14,4 @@ "license": "MIT",

"type": "module",
"exports": "./index.js",
"exports": "./distribution/index.js",
"types": "./distribution/index.d.ts",
"engines": {

@@ -20,7 +21,10 @@ "node": ">=12"

"scripts": {
"test": "xo && ava && tsd"
"test": "xo && npm run build && ava",
"debug": "PWDEBUG=1 ava --timeout=2m",
"release": "np",
"build": "del-cli distribution && tsc --project tsconfig.dist.json",
"prepare": "npm run build"
},
"files": [
"index.js",
"index.d.ts"
"distribution"
],

@@ -50,14 +54,23 @@ "keywords": [

"devDependencies": {
"@sindresorhus/tsconfig": "^1.0.1",
"@types/body-parser": "^1.19.0",
"@types/busboy": "^0.2.3",
"@types/express": "^4.17.11",
"@types/node-fetch": "^2.5.10",
"@types/pify": "^5.0.0",
"abort-controller": "^3.0.0",
"ava": "^3.15.0",
"body": "^5.1.0",
"body-parser": "^1.19.0",
"busboy": "^0.3.1",
"create-test-server": "2.1.1",
"delay": "^4.1.0",
"form-data": "^3.0.0",
"node-fetch": "^2.5.0",
"nyc": "^15.0.0",
"playwright-chromium": "^1.7.1",
"tsd": "^0.13.1",
"xo": "^0.25.3"
"del-cli": "^3.0.1",
"delay": "^5.0.0",
"express": "^4.17.1",
"form-data": "^4.0.0",
"node-fetch": "^2.6.1",
"pify": "^5.0.0",
"playwright-chromium": "^1.10.0",
"raw-body": "^2.4.1",
"ts-node": "^9.1.1",
"typescript": "^4.2.4",
"xo": "^0.38.2"
},

@@ -73,29 +86,38 @@ "sideEffects": false,

"rules": {
"import/no-useless-path-segments": "off",
"unicorn/import-index": "off",
"import/extensions": "off"
"@typescript-eslint/dot-notation": "off",
"ava/no-import-test-files": "off",
"unicorn/filename-case": "off"
}
},
"ava": {
"files": [
"test/*"
],
"require": [
"./test/_require"
"./test/_require.ts"
],
"nonSemVerExperiments": {
"configurableModuleFormat": true,
"nextGenConfig": true
}
},
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--loader=ts-node/esm"
]
},
"tsd": {
"compilerOptions": {
"lib": [
"es2019",
"dom"
]
}
},
"nyc": {
"reporter": [
"text",
"html",
"lcov"
],
"extension": [
".ts"
],
"exclude": [
"**/test/**"
]
}
}

@@ -428,10 +428,2 @@ <div align="center">

### ky.HTTPError
Exposed for `instanceof` checks. The error has a `response` property with the [`Response` object](https://developer.mozilla.org/en-US/docs/Web/API/Response), `request` property with the [`Request` object](https://developer.mozilla.org/en-US/docs/Web/API/Request), and `options` property with normalized options (either passed to `ky` when creating an instance with `ky.create()` or directly when performing the request).
### ky.TimeoutError
The error thrown when the request times out. It has a `request` property with the [`Request` object](https://developer.mozilla.org/en-US/docs/Web/API/Request).
### ky.stop

@@ -468,2 +460,10 @@

### HTTPError
Exposed for `instanceof` checks. The error has a `response` property with the [`Response` object](https://developer.mozilla.org/en-US/docs/Web/API/Response), `request` property with the [`Request` object](https://developer.mozilla.org/en-US/docs/Web/API/Request), and `options` property with normalized options (either passed to `ky` when creating an instance with `ky.create()` or directly when performing the request).
### TimeoutError
The error thrown when the request times out. It has a `request` property with the [`Request` object](https://developer.mozilla.org/en-US/docs/Web/API/Request).
## Tips

@@ -470,0 +470,0 @@

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