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

@oada/client

Package Overview
Dependencies
Maintainers
8
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oada/client - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

12

dist/http.js

@@ -109,8 +109,16 @@ "use strict";

let timedout = false;
let signal = undefined;
if (timeout) {
setTimeout(() => (timedout = true), timeout);
const controller = new AbortController();
({ signal } = controller);
setTimeout(() => {
controller.abort();
timedout = true;
}, timeout);
}
const result = await this.context
.fetch(`${this._domain}${req.path}`, {
.fetch(new URL(req.path, this._domain).toString(), {
method: req.method.toUpperCase(),
signal,
timeout,
body: JSON.stringify(req.data),

@@ -117,0 +125,0 @@ headers: req.headers,

6

package.json
{
"name": "@oada/client",
"version": "2.4.1",
"version": "2.4.2",
"description": "A lightweight client tool to interact with an OADA-compliant server",

@@ -8,6 +8,6 @@ "repository": "https://github.com/OADA/client",

"browser": {
"./lib/fetch": "cross-fetch"
"./dist/fetch": "cross-fetch"
},
"react-native": {
"./lib/fetch": "cross-fetch"
"./dist/fetch": "cross-fetch"
},

@@ -14,0 +14,0 @@ "types": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

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