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

@dcos/connections

Package Overview
Dependencies
Maintainers
13
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dcos/connections - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

.vscode/settings.json

2

dist/XHRConnection.js

@@ -27,3 +27,3 @@ "use strict";

var ALLOWED_METHODS = ["GET", "POST", "PUT", "DELETE"];
var ALLOWED_METHODS = ["GET", "POST", "PUT", "DELETE", "PATCH"];
var ALLOWED_RESPONSE_TYPES = ["arraybuffer", "blob", "document", "json", "text"];

@@ -30,0 +30,0 @@

{
"name": "@dcos/connections",
"version": "0.2.0",
"version": "0.3.0",
"description": "Provides different connection types with a unified interface",

@@ -5,0 +5,0 @@ "repository": "https://github.com/dcos-labs/connections",

import AbstractConnection from "./AbstractConnection";
import ConnectionEvent from "./ConnectionEvent";
const ALLOWED_METHODS = ["GET", "POST", "PUT", "DELETE"];
const ALLOWED_METHODS = ["GET", "POST", "PUT", "DELETE", "PATCH"];
const ALLOWED_RESPONSE_TYPES = [

@@ -44,3 +44,5 @@ "arraybuffer",

throw new Error(
`Invalid method "${method}". Valid methods are: "${ALLOWED_METHODS.join('", "')}".`
`Invalid method "${method}". Valid methods are: "${ALLOWED_METHODS.join(
'", "'
)}".`
);

@@ -51,3 +53,5 @@ }

throw new Error(
`Invalid response type "${responseType}". Valid reponse types are "${ALLOWED_RESPONSE_TYPES.join('", "')}".`
`Invalid response type "${responseType}". Valid reponse types are "${ALLOWED_RESPONSE_TYPES.join(
'", "'
)}".`
);

@@ -109,3 +113,3 @@ }

Object.defineProperty(this, "xhr", { value: new XMLHttpRequest() });
this.xhr.withCredentials = withCredentials;

@@ -112,0 +116,0 @@ }

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