@como/como-client
Advanced tools
Comparing version 0.7.76 to 0.7.77
@@ -21,4 +21,4 @@ 'use strict'; | ||
var buildResourceUrl = function buildResourceUrl(baseUrl, resourceId, namespace, version) { | ||
return baseUrl + '/GetResource?namespace=' + namespace + '&resourceId=' + resourceId + '&version=' + version; | ||
var buildResourceUrl = function buildResourceUrl(baseUrl, resourceId, namespace, versio, locationId) { | ||
return baseUrl + '/GetResource?namespace=' + namespace + '&resourceId=' + resourceId + '&version=' + version + '&locationId=' + locationId; | ||
}; | ||
@@ -306,4 +306,4 @@ | ||
exports.getResourceUrl = function (service) { | ||
return function (baseUrl, resourceId, namespace, version) { | ||
return '' + buildResourceUrl(baseUrl, resourceId, namespace, version); | ||
return function (baseUrl, resourceId, namespace, version, locationId) { | ||
return '' + buildResourceUrl(baseUrl, resourceId, namespace, version, locationId); | ||
}; | ||
@@ -310,0 +310,0 @@ }; |
{ | ||
"name": "@como/como-client", | ||
"version": "0.7.76", | ||
"version": "0.7.77", | ||
"description": "Client module for Como's loaylty API", | ||
@@ -5,0 +5,0 @@ "main": "src/como.js", |
@@ -799,4 +799,4 @@ const moment = require('moment-timezone'); | ||
getResourceUrl(resourceId, namespace, version) { | ||
const { api, env_params: env } = this.comoData; | ||
return api.getResourceUrl(env.services_root_cdn, resourceId, namespace, version); | ||
const { api, env_params: env, locationId } = this.comoData; | ||
return api.getResourceUrl(env.services_root_cdn, resourceId, namespace, version, locationId); | ||
} | ||
@@ -803,0 +803,0 @@ |
Sorry, the diff of this file is too big to display
225198
4794