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

@e2y/odata-client

Package Overview
Dependencies
Maintainers
6
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 2.0.2 to 2.1.1

6

lib/o-handler.d.ts

@@ -49,8 +49,2 @@ import { ORequest } from './o-request';

*
* @example
* ```typescript
* const req = new ORequest('http://full.url/healt', { method: 'HEAD'});
* const res = await o('http://another.url').request(req).fetch();
* console.log(res.status); // e.g. 200 from http://full.url/healt
* ```
* @param req The request to add.

@@ -57,0 +51,0 @@ */

15

lib/o-handler.js

@@ -18,3 +18,8 @@ "use strict";

const response = await this._request.fetch();
return response?.json();
const contentType = response.headers.get('content-type');
const contentLength = Number(response.headers.get('content-length'));
if (contentType?.includes('json') && contentLength > 0) {
return (await response.json());
}
return (await response.clone().textConverted());
}

@@ -95,8 +100,2 @@ finally {

*
* @example
* ```typescript
* const req = new ORequest('http://full.url/healt', { method: 'HEAD'});
* const res = await o('http://another.url').request(req).fetch();
* console.log(res.status); // e.g. 200 from http://full.url/healt
* ```
* @param req The request to add.

@@ -115,2 +114,2 @@ */

exports.OHandler = OHandler;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiby1oYW5kbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL28taGFuZGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQ0FBdUM7QUFRdkMsTUFBYSxRQUFRO0lBR25CLFlBQW1CLE1BQW1CO1FBQW5CLFdBQU0sR0FBTixNQUFNLENBQWE7SUFBRyxDQUFDO0lBRW5DLEtBQUssQ0FBQyxLQUFLLENBQUksS0FBa0I7UUFDdEMsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLEVBQUU7WUFDbEIsTUFBTSxJQUFJL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xDQUFDO0lBQ2QsQ0FBQztJQUVEOzs7OztPQUtHO0lBQ0ksVUFBVSxDQUFDLEdBQWE7UUFDN0IsSUFBSSxDQUFDLFFBQVEsR0FBRyxHQUFHLENBQUM7SUFDdEIsQ0FBQztJQUVNLE1BQU0sQ0FBQyxRQUFnQjtRQUM1QixPQUFPLEdBQUcsSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsQ0FBQyxJQUFJLElBQUksUUFBUSxFQUFFLENBQUM7SUFDNUQsQ0FBQztJQUVELElBQUksT0FBTztRQUNULE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQztJQUN2QixDQUFDO0NBQ0Y7QUE3SEQsNEJBNkhDIn0=

@@ -17,4 +17,6 @@ "use strict";

const propertySymbol = Object.getOwnPropertySymbols(response)[1];
console.error(await response.text());
throw new Error(JSON.stringify(response[propertySymbol]));
const contentType = response.headers.get('content-type');
const contentLength = Number(response.headers.get('content-length'));
const body = contentType?.includes('json') && contentLength > 0 ? await response.json() : await response.text();
throw new Error(JSON.stringify({ body, response: response[propertySymbol] }));
}

@@ -32,2 +34,2 @@ return response;

exports.ORequest = ORequest;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiby1yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL28tcmVxdWVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSw0REFBd0U7QUFJeEUsTUFBYSxRQUFRO0lBR25CLFlBQVksR0FBaUIsRUFBUyxNQUFtQjtRQUFuQixXQUFNLEdBQU4sTUFBTSxDQUFhO1FBQ3ZELElBQUksQ0FBQyxHQUFHLEdBQUcsT0FBTyxHQUFHLEtBQUssUUFBUSxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsR0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sR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDLE1BQU0sUUFBUSxDQUFDLElBQUksRUFBRSxDQUFDLENBQUMsQ0FBQyxNQUFNLFFBQVEsQ0FBQyxJQUFJLEVBQUUsQ0FBQztZQUVyRyxNQUFNLElBQUksS0FBSyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLFFBQVEsQ0FBQyxjQUFjLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztTQUMvRTtRQUVELE9BQU8sUUFBUSxDQUFDO0lBQ2xCLENBQUM7SUFFTSxVQUFVLENBQUMsS0FBaUI7UUFDakMsS0FBSyxNQUFNLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxJQUFJLE1BQU0sQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLEVBQUU7WUFDaEQsSUFBSSxDQUFDLEdBQUcsQ0FBQyxZQUFZLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQztnQkFDNUIsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsWUFBWSxDQUFDLEdBQUcsQ0FBQyxHQUFHLEVBQUUsTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDO2dCQUMvQyxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEdBQUcsRUFBRSxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztTQUN0RDtJQUNILENBQUM7Q0FDRjtBQS9CRCw0QkErQkMifQ==
import { RequestInit } from 'node-fetch';
import { OdataQuery } from './OdataQuery';
export declare type OdataConfig = RequestInit & {
export type OdataConfig = RequestInit & {
/**

@@ -5,0 +5,0 @@ * The URL to request data from

{
"name": "@e2y/odata-client",
"version": "2.0.2",
"version": "2.1.1",
"description": "odata client",

@@ -36,3 +36,3 @@ "author": "e2y",

},
"gitHead": "2037b2ca57d71aaaf22200ae55d7ef6246b86837"
"gitHead": "9eb434bd341893b2aa267e89764de75720e92fa4"
}
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