@sitecore-jss/sitecore-jss-proxy
Advanced tools
Comparing version 11.0.0 to 11.0.1
@@ -320,2 +320,5 @@ "use strict"; | ||
} | ||
if (config.qsParams) { | ||
qs += "&" + config.qsParams; | ||
} | ||
var lang; | ||
@@ -338,2 +341,5 @@ if (parseRouteUrl) { | ||
lang = routeParams.lang; | ||
if (routeParams.qsParams) { | ||
qs += "&" + routeParams.qsParams; | ||
} | ||
if (config.debug) { | ||
@@ -340,0 +346,0 @@ console.log("DEBUG: parseRouteUrl() result", routeParams); |
{ | ||
"name": "@sitecore-jss/sitecore-jss-proxy", | ||
"version": "11.0.0", | ||
"version": "11.0.1", | ||
"description": "Proxy middleware for express.js server.", | ||
@@ -44,3 +44,3 @@ "main": "dist/index.js", | ||
"types": "types/index.d.ts", | ||
"gitHead": "ae2766704a7edd3a746cdc3848a4f32cd70d2c1a" | ||
"gitHead": "1d39504e4a861a8ce9e303a3f2701fb55fbd092d" | ||
} |
@@ -12,2 +12,4 @@ /// <reference types="node" /> | ||
apiKey: string; | ||
/** Custom Query String parameters to send to Layout Service, e.g. sc_site=my-site&tracing=false */ | ||
qsParams?: string; | ||
/** | ||
@@ -14,0 +16,0 @@ * Array of paths to proxy without any SSR transformation (i.e. do not treat as app routes). |
export declare type RouteUrlParser = (url: string) => { | ||
sitecoreRoute?: string; | ||
lang?: string; | ||
qsParams?: string; | ||
}; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
40243
513
2