@sitecore-jss/sitecore-jss
Advanced tools
Comparing version 16.0.0-canary.14 to 16.0.0-canary.17
@@ -66,3 +66,6 @@ "use strict"; | ||
var qs = getQueryString(params); | ||
var fetchUrl = url.indexOf('?') !== -1 ? url + "&" + qs : url + "?" + qs; | ||
var fetchUrl = url; | ||
if (Object.keys(params).length) { | ||
fetchUrl = url.indexOf('?') !== -1 ? url + "&" + qs : url + "?" + qs; | ||
} | ||
return fetcher(fetchUrl) | ||
@@ -75,2 +78,3 @@ .then(checkStatus) | ||
} | ||
exports.fetchData = fetchData; | ||
var resolveLayoutServiceUrl = function (options, verb) { | ||
@@ -77,0 +81,0 @@ if (options === void 0) { options = {}; } |
@@ -18,2 +18,4 @@ "use strict"; | ||
exports.LayoutService = layout_service_1.LayoutService; | ||
var dictionary_service_1 = require("./dictionary-service"); | ||
exports.DictionaryService = dictionary_service_1.DictionaryService; | ||
var util_1 = require("./util"); | ||
@@ -20,0 +22,0 @@ exports.isExperienceEditorActive = util_1.isExperienceEditorActive; |
{ | ||
"name": "@sitecore-jss/sitecore-jss", | ||
"version": "16.0.0-canary.14", | ||
"version": "16.0.0-canary.17", | ||
"main": "dist/index.js", | ||
@@ -49,2 +49,3 @@ "scripts": { | ||
"lodash.unescape": "^4.0.1", | ||
"node-cache": "^5.1.2", | ||
"url-parse": "^1.4.7" | ||
@@ -54,3 +55,3 @@ }, | ||
"types": "types/index.d.ts", | ||
"gitHead": "e7d1a52aac7c14a1cb579f2e3299f9e14b4c92ab" | ||
"gitHead": "d5a0731e93487ad0093efb1ab7def3a17a2bf704" | ||
} |
import { LayoutServiceData, PlaceholderData } from './dataModels'; | ||
import { HttpJsonFetcher } from './httpClientInterface'; | ||
/** | ||
* @param {string} url | ||
* @param {HttpJsonFetcher} fetcher | ||
* @param {Object} params | ||
*/ | ||
export declare function fetchData<T>(url: string, fetcher: HttpJsonFetcher<T>, params?: { | ||
[key: string]: string | number | boolean; | ||
}): Promise<T>; | ||
export interface LayoutServiceConfig { | ||
@@ -4,0 +12,0 @@ /** |
@@ -7,2 +7,3 @@ import * as dataApi from './dataApi'; | ||
export { LayoutService, LayoutServiceInstanceConfig, DataFetcherResolver } from './layout-service'; | ||
export { DictionaryService, DictionaryServiceConfig } from './dictionary-service'; | ||
export { isExperienceEditorActive, isServer, resetExperienceEditorChromes } from './util'; | ||
@@ -9,0 +10,0 @@ export { DictionaryPhrases, DictionaryServiceData, LayoutServiceData, LayoutServicePageState, LayoutServiceContext, LayoutServiceContextData, RouteData, PlaceholderData, ComponentRendering, HtmlElementRendering, Field, Item, PlaceholdersData, ComponentFields, ComponentParams, } from './dataModels'; |
@@ -7,4 +7,13 @@ /// <reference types="node" /> | ||
export declare type LayoutServiceInstanceConfig = { | ||
/** | ||
* Your Sitecore instance hostname that is the backend for JSS | ||
*/ | ||
apiHost: string; | ||
/** | ||
* The Sitecore SSC API key your app uses | ||
*/ | ||
apiKey: string; | ||
/** | ||
* The JSS application name | ||
*/ | ||
siteName: string; | ||
@@ -11,0 +20,0 @@ /** |
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
58903
23
1118
3
+ Addednode-cache@^5.1.2
+ Addedclone@2.1.2(transitive)
+ Addednode-cache@5.1.2(transitive)