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

@e2y/odata-client

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@e2y/odata-client - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

17

lib/odata-client.js

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

const expect_1 = __importDefault(require("expect"));
const https_1 = require("https");
const md5_1 = __importDefault(require("md5"));

@@ -34,5 +33,7 @@ const odata_1 = require("odata");

const { headers, ...rest } = this.handler.config;
const hookBean = this.CRONJOB_PRE_PERSISTENCE_HOOK_BEAN_ID;
const prePersitHook = hookBean ? { 'Pre-Persist-Hook': hookBean } : undefined;
const handler = odata_1.o(this.BASE_URL, {
...rest,
headers: { ...headers, 'Pre-Persist-Hook': this.CRONJOB_PRE_PERSISTENCE_HOOK_BEAN_ID }
headers: { ...headers, ...prePersitHook }
}), body = {

@@ -46,15 +47,13 @@ code,

createOHandlerDefaultInstance(baseURL, username, password, accessPassword) {
const Authorization = ODataClient.generateAuthorization(username, password), Cookie = accessPassword ? ODataClient.encryptMD5(accessPassword) : undefined;
const Authorization = ODataClient.generateAuthorization(username, password), Cookie = accessPassword ? { Cookie: ODataClient.encryptMD5(accessPassword) } : undefined;
return odata_1.o(baseURL, {
agent: new https_1.Agent({
rejectUnauthorized: false
}),
headers: {
Accept: 'application/json',
Authorization,
'Content-Type': 'application/json',
Accept: 'application/json',
Cookie
...Cookie
},
onError: (oHandler, response) => {
console.error(response);
return null;
}

@@ -78,2 +77,2 @@ });

exports.ODataClient = ODataClient;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2RhdGEtY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL29kYXRhLWNsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQ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UFFLHlCQUFjLEVBQUU7UUFFekUsTUFBTSx5QkFBYSxDQUNqQixLQUFLLElBQUksRUFBRTtZQUNULE1BQU0sRUFDSixDQUFDLEVBQUUsRUFDRCxPQUFPLEVBQUUsQ0FBQyxPQUFPLENBQUMsRUFDbkIsRUFDRixHQUFHLENBQUMsTUFBTSxJQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsZ0JBQWdCLENBQUMsQ0FBQyxLQUFLLENBQUM7Z0JBQ3ZELE9BQU8sRUFBRSxlQUFlO2dCQUN4QixPQUFPLEVBQUUsWUFBWSxJQUFJLEdBQUc7Z0JBQzVCLE9BQU8sRUFBRSxNQUFNO2FBQ2hCLENBQUMsQ0FBZ0MsQ0FBQztZQUVuQyxnQkFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFDLGFBQWEsQ0FBQyxFQUFFLE1BQU0sRUFBRSxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsRUFBRSxNQUFNLEVBQUUsRUFBRSxJQUFJLEVBQUUsVUFBVSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQy9GLENBQUMsRUFDRCxpQkFBaUIsQ0FBQyxPQUFPLEVBQ3pCLGlCQUFpQixDQUFDLFFBQVEsQ0FDM0IsQ0FBQztJQUNKLENBQUM7SUFFTyxnREFBZ0Q7UUFDdEQsZ0JBQU0sQ0FDSixJQUFJLENBQUMsb0NBQW9DLEVBQ3pDLHVHQUF1RyxDQUN4RyxDQUFDO0lBQ0osQ0FBQztDQUNGO0FBbkdELGtDQW1HQyJ9
{
"name": "@e2y/odata-client",
"version": "1.0.8",
"version": "1.0.9",
"description": "odata client",

@@ -30,8 +30,8 @@ "author": "e2y",

"@types/md5": "^2.3.0",
"expect": "^27.0.2",
"expect": "^27.2.4",
"md5": "^2.3.0",
"odata": "^1.3.0",
"odata": "^1.3.1",
"wait-for-expect": "^3.0.2"
},
"gitHead": "4c8863e0a4bc8e7190bdf5afbf0b729192f3fab2"
"gitHead": "a7a9529eec22537bc7a60628a6e6e1cff9a852e4"
}
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