Comparing version 8.4.14 to 8.4.15-canary.0
{ | ||
"name": "get-it", | ||
"version": "8.4.14", | ||
"version": "8.4.15-canary.0", | ||
"description": "Generic HTTP request library for node, browsers and workers", | ||
@@ -24,3 +24,2 @@ "keywords": [ | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"source": "./src/index.ts", | ||
@@ -41,3 +40,2 @@ "browser": { | ||
"./middleware": { | ||
"types": "./dist/middleware.d.ts", | ||
"source": "./src/middleware.ts", | ||
@@ -115,3 +113,3 @@ "browser": { | ||
"@edge-runtime/vm": "^3.2.0", | ||
"@sanity/pkg-utils": "^5.0.4", | ||
"@sanity/pkg-utils": "5.1.1-canary.0", | ||
"@sanity/semantic-release-preset": "^4.1.7", | ||
@@ -138,3 +136,3 @@ "@types/debug": "^4.1.10", | ||
"rimraf": "^5.0.1", | ||
"typescript": "^5.4.2", | ||
"typescript": "5.4.2", | ||
"vite": "5.1.6", | ||
@@ -149,5 +147,4 @@ "vitest": "^1.4.0", | ||
"publishConfig": { | ||
"access": "public", | ||
"provenance": true | ||
"access": "public" | ||
} | ||
} |
/** | ||
* This middleware only has an effect in Node.js. | ||
* @public | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export function agent(opts?: any): any { | ||
export function agent( | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
opts?: any, | ||
): any { | ||
return {} | ||
} |
import type {Middleware} from '../../types' | ||
/** @public */ | ||
export function progress() { | ||
@@ -4,0 +5,0 @@ return { |
@@ -6,3 +6,6 @@ import parseHeaders from 'parse-headers' | ||
// Use fetch if it's available, non-browser environments such as Deno, Edge Runtime and more provide fetch as a global but doesn't provide xhr | ||
/** | ||
* Use fetch if it's available, non-browser environments such as Deno, Edge Runtime and more provide fetch as a global but doesn't provide xhr | ||
* @public | ||
*/ | ||
export const adapter: RequestAdapter = typeof XMLHttpRequest === 'function' ? 'xhr' : 'fetch' | ||
@@ -9,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
558507
81
6283
1