datagrok-api
Advanced tools
Comparing version 1.21.0 to 1.21.1-rc.9512de7493.2dcfbfff81
{ | ||
"name": "datagrok-api", | ||
"version": "1.21.0", | ||
"version": "1.21.1-rc.9512de7493.2dcfbfff81", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -184,6 +184,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
let proxyUrl = `${this.root}/connectors/proxy`; | ||
if (maxAge && (params.method == 'GET' || params.method == 'HEAD')) { | ||
// @ts-ignore | ||
params.headers['dg-cache-control'] = `max-age=${maxAge}`; | ||
params.cache = 'default'; | ||
if (params.method == 'GET' || params.method == 'HEAD') { | ||
if (maxAge) { | ||
// @ts-ignore | ||
params.headers['dg-cache-control'] = `max-age=${maxAge}`; | ||
params.cache = 'default'; | ||
} | ||
proxyUrl = `${proxyUrl}?url=${encodeURI(url)}`; | ||
@@ -190,0 +192,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 too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
1944694
27496
0
2