New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gooddata

Package Overview
Dependencies
Maintainers
5
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gooddata - npm Package Compare versions

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

19

lib/metadata.js

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

6

lib/xhr.js

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

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