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

@sap_oss/odata-library

Package Overview
Dependencies
Maintainers
14
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap_oss/odata-library - npm Package Compare versions

Comparing version 0.9.14 to 0.10.0

4

CHANGELOG.md
# Changelog
# 0.10.0
* d3a7aef - [FIX] Finish request definition inside tick - Norbert Volf
# 0.9.14

@@ -4,0 +8,0 @@

28

lib/engine/FunctionImport.js

@@ -117,2 +117,3 @@ "use strict";

let defaultChangeSet = this.agent.batchManager.defaultChangeSet;
let request = this.defaultRequest;
let path = `/${this.meta.name}?${query}`;

@@ -126,3 +127,3 @@ let callRequestPromise;

path,
this.defaultRequest._headers,
request._headers,
undefined,

@@ -140,14 +141,14 @@ defaultChangeSet

return this.agent.post(path, this.defaultRequest._headers, undefined);
return this.agent.post(path, request._headers, undefined);
});
}
this.reset();
return new Promise((resolve, reject) => {
callRequestPromise
.then((res) => {
this.reset();
resolve(this.normalizeResponse(res));
resolve(this.normalizeResponse(res, request._isRaw));
})
.catch((err) => {
this.reset();
reject(new Error(err.message));

@@ -171,2 +172,3 @@ });

let defaultChangeSet = this.agent.batchManager.defaultChangeSet;
let request = this.defaultRequest;
let path = `/${this.meta.name}?${query}`;

@@ -180,3 +182,3 @@ let callRequestPromise;

path,
this.defaultRequest._headers,
request._headers,
undefined,

@@ -189,13 +191,13 @@ defaultChangeSet

this.header("Accept", "application/json");
callRequestPromise = this.agent.get(path, this.defaultRequest._headers);
callRequestPromise = this.agent.get(path, request._headers);
}
this.reset();
return new Promise((resolve, reject) => {
callRequestPromise
.then((res) => {
this.reset();
resolve(this.normalizeResponse(res));
resolve(this.normalizeResponse(res, request._isRaw));
})
.catch((err) => {
this.reset();
reject(new Error(err.message));

@@ -209,3 +211,4 @@ });

*
* @param {Boolean} rawResponse force to use raw response
* @param {IncomingMessage} rawResponse from HTTP client
* @param {Boolean} raw force to use raw response
*

@@ -216,5 +219,4 @@ * @returns {Object|Array} raw response object or object or results array

*/
normalizeResponse(rawResponse) {
normalizeResponse(rawResponse, raw) {
let response;
let raw = this.defaultRequest._isRaw;
if (raw) {

@@ -221,0 +223,0 @@ response = rawResponse;

@@ -94,2 +94,4 @@ "use strict";

count(request = this.defaultRequest) {
this.reset();
return new Promise((resolve, reject) => {

@@ -114,6 +116,4 @@ if (!this.entitySetModel.sap.countable) {

if (request._isRaw) {
this.reset();
resolve(res);
} else {
this.reset();
count = this.parseCount(res);

@@ -127,3 +127,2 @@ if (isNaN(count)) {

.catch((err) => {
this.reset();
reject(err);

@@ -631,2 +630,4 @@ });

this.reset();
return new Promise((resolve, reject) => {

@@ -641,7 +642,5 @@ this.agent

let value = this.determineResponseResult(request, rawRes);
this.reset();
resolve(value);
})
.catch((err) => {
this.reset();
reject(err);

@@ -648,0 +647,0 @@ });

{
"name": "@sap_oss/odata-library",
"version": "0.9.14",
"version": "0.10.0",
"description": "OData client for testing Netweawer OData services.",

@@ -5,0 +5,0 @@ "main": "index.js",

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