Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@sitecore-jss/sitecore-jss

Package Overview
Dependencies
Maintainers
8
Versions
1351
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sitecore-jss/sitecore-jss - npm Package Compare versions

Comparing version 16.0.0-canary.14 to 16.0.0-canary.17

dist/dictionary-service.js

6

dist/dataApi.js

@@ -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;

5

package.json
{
"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 @@ /**

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc