@sanity/client
Advanced tools
Comparing version 6.20.0 to 6.20.1
{ | ||
"name": "@sanity/client", | ||
"version": "6.20.0", | ||
"version": "6.20.1", | ||
"description": "Client for retrieving, creating and patching data from Sanity.io", | ||
@@ -121,3 +121,3 @@ "keywords": [ | ||
"@sanity/eventsource": "^5.0.2", | ||
"get-it": "^8.6.0", | ||
"get-it": "^8.6.1", | ||
"rxjs": "^7.0.0" | ||
@@ -133,4 +133,4 @@ }, | ||
"@types/node": "^20.8.8", | ||
"@typescript-eslint/eslint-plugin": "^7.12.0", | ||
"@typescript-eslint/parser": "^7.12.0", | ||
"@typescript-eslint/eslint-plugin": "^7.13.1", | ||
"@typescript-eslint/parser": "^7.13.1", | ||
"@vercel/stega": "0.1.2", | ||
@@ -145,6 +145,6 @@ "@vitest/coverage-v8": "1.6.0", | ||
"json-diff": "^1.0.6", | ||
"ls-engines": "^0.9.1", | ||
"next": "^14.2.3", | ||
"ls-engines": "^0.9.2", | ||
"next": "^14.2.4", | ||
"nock": "^13.5.4", | ||
"prettier": "^3.3.1", | ||
"prettier": "^3.3.2", | ||
"prettier-plugin-packagejson": "^2.5.0", | ||
@@ -151,0 +151,0 @@ "rimraf": "^5.0.7", |
@@ -133,2 +133,7 @@ import {generateHelpUrl} from './generateHelpUrl' | ||
newConfig.isDefaultApi = newConfig.apiHost === defaultConfig.apiHost | ||
if (newConfig.useCdn === true && newConfig.withCredentials) { | ||
warnings.printCdnAndWithCredentialsWarning() | ||
} | ||
// If `useCdn` is undefined, we treat it as `true` | ||
@@ -135,0 +140,0 @@ newConfig.useCdn = newConfig.useCdn !== false && !newConfig.withCredentials |
@@ -9,2 +9,7 @@ import {generateHelpUrl} from './generateHelpUrl' | ||
export const printCdnAndWithCredentialsWarning = createWarningPrinter([ | ||
`Because you set \`withCredentials\` to true, we will override your \`useCdn\``, | ||
`setting to be false since (cookie-based) credentials are never set on the CDN`, | ||
]) | ||
export const printCdnWarning = createWarningPrinter([ | ||
@@ -11,0 +16,0 @@ `Since you haven't set a value for \`useCdn\`, we will deliver content using our`, |
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 too big to display
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2245927
25343
Updatedget-it@^8.6.1