Comparing version 0.28.2 to 0.28.3
@@ -81,3 +81,4 @@ import { HTTPError } from '../errors/HTTPError.js'; | ||
} | ||
await delay(1); | ||
// Delay the fetch so that body method shortcuts can set the Accept header | ||
await Promise.resolve(); | ||
let response = await ky._fetch(); | ||
@@ -84,0 +85,0 @@ for (const hook of ky._options.hooks.afterResponse) { |
{ | ||
"name": "ky", | ||
"version": "0.28.2", | ||
"version": "0.28.3", | ||
"description": "Tiny and elegant HTTP client based on the browser Fetch API", | ||
@@ -53,10 +53,10 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@sindresorhus/tsconfig": "^1.0.1", | ||
"@sindresorhus/tsconfig": "^1.0.2", | ||
"@types/body-parser": "^1.19.0", | ||
"@types/busboy": "^0.2.3", | ||
"@types/express": "^4.17.11", | ||
"@types/express": "^4.17.12", | ||
"@types/node-fetch": "^2.5.10", | ||
"@types/pify": "^5.0.0", | ||
"abort-controller": "^3.0.0", | ||
"ava": "^3.15.0", | ||
"ava": "^4.0.0-alpha.2", | ||
"body-parser": "^1.19.0", | ||
@@ -70,7 +70,7 @@ "busboy": "^0.3.1", | ||
"pify": "^5.0.0", | ||
"playwright-chromium": "^1.10.0", | ||
"playwright-chromium": "^1.11.1", | ||
"raw-body": "^2.4.1", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.2.4", | ||
"xo": "^0.38.2" | ||
"ts-node": "^10.0.0", | ||
"typescript": "^4.3.2", | ||
"xo": "^0.39.0" | ||
}, | ||
@@ -86,18 +86,11 @@ "sideEffects": false, | ||
"rules": { | ||
"@typescript-eslint/dot-notation": "off", | ||
"ava/no-import-test-files": "off", | ||
"unicorn/filename-case": "off" | ||
"unicorn/filename-case": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unsafe-argument": "off" | ||
} | ||
}, | ||
"ava": { | ||
"files": [ | ||
"test/*" | ||
], | ||
"require": [ | ||
"./test/_require.ts" | ||
], | ||
"nonSemVerExperiments": { | ||
"configurableModuleFormat": true, | ||
"nextGenConfig": true | ||
}, | ||
"extensions": { | ||
@@ -104,0 +97,0 @@ "ts": "module" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81714
875