Comparing version 1.5.1-pbenes-pb-propagate-beforesend-2017-05-26T08-02-27-931Z to 1.5.1-vojty-identifier2uri-2017-05-29T12-30-11-438Z
@@ -43,2 +43,3 @@ 'use strict'; | ||
exports.getObjectUri = getObjectUri; | ||
exports.getUrisFromIdentifiers = getUrisFromIdentifiers; | ||
exports.getValidElements = getValidElements; | ||
@@ -662,2 +663,20 @@ exports.deleteObject = deleteObject; | ||
/** | ||
* Get uris specified by identifiers | ||
* | ||
* @method getUrisFromIdentifiers | ||
* @param {String} projectId id of the project | ||
* @param {Array} identifiers identifiers of the metadata objects | ||
* @return {Array} array of identifier + uri pairs | ||
*/ | ||
function getUrisFromIdentifiers(projectId, identifiers) { | ||
return (0, _xhr.post)('/gdc/md/' + projectId + '/identifiers', { | ||
body: { | ||
identifierToUri: identifiers | ||
} | ||
}).then(_xhr.parseJSON).then(function (data) { | ||
return data.identifiers; | ||
}); | ||
} | ||
/** | ||
* Get valid elements of an attribute, specified by its identifier and project id it belongs to | ||
@@ -664,0 +683,0 @@ * |
@@ -77,3 +77,3 @@ 'use strict'; | ||
function simulateBeforeSend(settings, url) { | ||
function simulateBeforeSend(settings) { | ||
var xhr = { | ||
@@ -86,3 +86,3 @@ setRequestHeader: function setRequestHeader(key, value) { | ||
if ((0, _isFunction3.default)(settings.beforeSend)) { | ||
settings.beforeSend(xhr, url); | ||
settings.beforeSend(xhr); | ||
} | ||
@@ -222,3 +222,3 @@ } | ||
simulateBeforeSend(settings, url); | ||
simulateBeforeSend(settings); | ||
@@ -225,0 +225,0 @@ if (tokenRequest) { |
{ | ||
"name": "gooddata", | ||
"version": "1.5.1-pbenes-pb-propagate-beforesend-2017-05-26T08-02-27-931Z", | ||
"version": "1.5.1-vojty-identifier2uri-2017-05-29T12-30-11-438Z", | ||
"author": "GoodData", | ||
@@ -5,0 +5,0 @@ "description": "GoodData JavaScript SDK", |
@@ -549,2 +549,20 @@ // Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved. | ||
/** | ||
* Get uris specified by identifiers | ||
* | ||
* @method getUrisFromIdentifiers | ||
* @param {String} projectId id of the project | ||
* @param {Array} identifiers identifiers of the metadata objects | ||
* @return {Array} array of identifier + uri pairs | ||
*/ | ||
export function getUrisFromIdentifiers(projectId, identifiers) { | ||
return post(`/gdc/md/${projectId}/identifiers`, { | ||
body: { | ||
identifierToUri: identifiers | ||
} | ||
}).then(parseJSON).then((data) => { | ||
return data.identifiers; | ||
}); | ||
} | ||
/** | ||
* Get valid elements of an attribute, specified by its identifier and project id it belongs to | ||
@@ -551,0 +569,0 @@ * |
@@ -42,3 +42,3 @@ // Copyright (C) 2007-2013, GoodData(R) Corporation. All rights reserved. | ||
function simulateBeforeSend(settings, url) { | ||
function simulateBeforeSend(settings) { | ||
const xhr = { | ||
@@ -51,3 +51,3 @@ setRequestHeader(key, value) { | ||
if (isFunction(settings.beforeSend)) { | ||
settings.beforeSend(xhr, url); | ||
settings.beforeSend(xhr); | ||
} | ||
@@ -182,3 +182,3 @@ } | ||
simulateBeforeSend(settings, url); | ||
simulateBeforeSend(settings); | ||
@@ -185,0 +185,0 @@ if (tokenRequest) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
463324
10932
7