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

auto-kubernetes-client

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-kubernetes-client - npm Package Compare versions

Comparing version 0.5.1 to 0.6.1

6

package.json
{
"name": "auto-kubernetes-client",
"version": "0.5.1",
"version": "0.6.1",
"description": "NodeJS Kubernetes Client with automatic API discovery",

@@ -26,3 +26,3 @@ "main": "src/index.js",

"devDependencies": {
"eslint": "^4.0.0",
"eslint": "^5.0.0",
"eslint-config-collaborne": "^1.1.1"

@@ -32,3 +32,3 @@ },

"check-node-version": "^3.0.0",
"deepmerge": "^2.0.0",
"deepmerge": "^3.0.0",
"flatmap": "0.0.3",

@@ -35,0 +35,0 @@ "request": "^2.81.0",

@@ -17,2 +17,3 @@ const request = require('request');

* @property {string} [key]
* @property {string} [token]
* @property {ConfigurationAuth} [auth]

@@ -42,6 +43,15 @@ */

function connect(config) {
const {token, ...otherConfig} = config;
let authConfig = {};
if (token) {
authConfig = {
auth: {
bearer: token,
},
};
}
// Ensure that the config.url ends with a '/'
const configOptions = Object.assign({}, config, {
url: config.url.endsWith('/') ? config.url : `${config.url}/`
});
const configOptions = Object.assign({}, otherConfig, {
url: config.url.endsWith('/') ? config.url : `${config.url}/`,
}, authConfig);

@@ -266,2 +276,5 @@ /**

*
* Note that not all resources support all patch content types, and an error 415 with a reason "UnsupportedMediaType" may get returned
* in that case.
*
* @param {any} object the patch to apply

@@ -268,0 +281,0 @@ * @param {String} [contentType] the content type

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