@dotcms/client
Advanced tools
Comparing version 0.0.1-alpha.7 to 0.0.1-alpha.8
{ | ||
"name": "@dotcms/client", | ||
"version": "0.0.1-alpha.7", | ||
"version": "0.0.1-alpha.8", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Official JavaScript library for interacting with DotCMS REST APIs.", |
@@ -53,2 +53,8 @@ export interface ClientConfig { | ||
/** | ||
* The mode of the page you want to retrieve. If not provided will use the default mode of the site. | ||
* | ||
* @type {number} | ||
*/ | ||
mode?: string; | ||
/** | ||
* The language id of the page you want to retrieve. If not provided will use the default language of the site. | ||
@@ -55,0 +61,0 @@ * |
@@ -50,2 +50,5 @@ function isValidUrl(url) { | ||
} | ||
else if (key === 'mode' && value) { | ||
queryParamsObj['mode'] = String(value); | ||
} | ||
else { | ||
@@ -52,0 +55,0 @@ queryParamsObj[key] = String(value); |
Sorry, the diff of this file is not supported yet
25835
431