Comparing version 4.4.0 to 4.4.1
@@ -66,3 +66,3 @@ 'use strict'; | ||
var getDomainProjects = exports.getDomainProjects = function getDomainProjects(contractId, domainId, query, paging) { | ||
var getDomainProjects = exports.getDomainProjects = function getDomainProjects(contractId, domainId, state, query, paging) { | ||
if (paging && !paging.next) { | ||
@@ -72,3 +72,3 @@ return Promise.resolve({ items: [], paging: {} }); | ||
var uri = paging ? paging.next : routes.interpolate(routes.CONTRACT_DOMAIN_PROJECTS, { contractId: contractId, domainId: domainId }, query && { prefixSearch: query }); | ||
var uri = paging ? paging.next : routes.interpolate(routes.CONTRACT_DOMAIN_PROJECTS, { contractId: contractId, domainId: domainId }, state || query ? Object.assign(state && { state: state }, query && { prefixSearch: query }) : null); | ||
@@ -75,0 +75,0 @@ return (0, _xhr.get)(uri).then(function (result) { |
{ | ||
"name": "gooddata", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"author": "GoodData", | ||
@@ -66,3 +66,3 @@ "description": "GoodData JavaScript SDK", | ||
"dependencies": { | ||
"@gooddata/typings": "0.0.3", | ||
"@gooddata/typings": "0.0.4", | ||
"es6-promise": "3.0.2", | ||
@@ -69,0 +69,0 @@ "fetch-cookie": "0.4.0", |
@@ -48,3 +48,3 @@ import { get } from '../xhr'; | ||
export const getDomainProjects = (contractId, domainId, query, paging) => { | ||
export const getDomainProjects = (contractId, domainId, state, query, paging) => { | ||
if (paging && !paging.next) { | ||
@@ -57,3 +57,4 @@ return Promise.resolve({ items: [], paging: {} }); | ||
routes.CONTRACT_DOMAIN_PROJECTS, | ||
{ contractId, domainId }, query && { prefixSearch: query } | ||
{ contractId, domainId }, state || query ? | ||
Object.assign(state && { state }, query && { prefixSearch: query }) : null | ||
); | ||
@@ -60,0 +61,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1130959
26523
+ Added@gooddata/typings@0.0.4(transitive)
- Removed@gooddata/typings@0.0.3(transitive)
Updated@gooddata/typings@0.0.4