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

@elastic.io/component-commons-library

Package Overview
Dependencies
Maintainers
12
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elastic.io/component-commons-library - npm Package Compare versions

Comparing version 3.0.3-dev.16 to 3.0.3-dev.17

2

dist/package.json
{
"name": "@elastic.io/component-commons-library",
"version": "3.0.3-dev.15",
"version": "3.0.3-dev.17",
"description": "Library for most common component development cases",

@@ -5,0 +5,0 @@ "author": {

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

method: 'GET',
body: {},
data: {},
headers: {},

@@ -48,0 +48,0 @@ };

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

// method: HTTP verb to use
// body: Body of the request, if applicable. Defaults to undefined.
// data: Body of the request, if applicable. Defaults to undefined.
// headers: Any HTTP headers to add to the request. Defaults to {}

@@ -53,3 +53,3 @@ // urlIsSegment: Whether to append to the base server url or

var _a, _b;
const { url, method, body, headers = {}, urlIsSegment = true, } = options;
const { url, method, data, headers = {}, urlIsSegment = true, } = options;
const urlToCall = urlIsSegment

@@ -62,3 +62,3 @@ ? `${(0, remove_trailing_slash_1.default)(this.cfg.resourceServerUrl.trim())}/${(0, remove_leading_slash_1.default)(url.trim())}` // Trim trailing or leading '/'

url: urlToCall,
data: body,
data,
headers,

@@ -65,0 +65,0 @@ };

{
"name": "@elastic.io/component-commons-library",
"version": "3.0.3-dev.16",
"version": "3.0.3-dev.17",
"description": "Library for most common component development cases",

@@ -5,0 +5,0 @@ "author": {

@@ -56,3 +56,3 @@ import http from 'http';

// method: HTTP verb to use
// body: Body of the request, if applicable. Defaults to undefined.
// data: Body of the request, if applicable. Defaults to undefined.
// headers: Any HTTP headers to add to the request. Defaults to {}

@@ -63,3 +63,3 @@ // urlIsSegment: Whether to append to the base server url or

const {
url, method, body, headers = {}, urlIsSegment = true,
url, method, data, headers = {}, urlIsSegment = true,
} = options;

@@ -75,3 +75,3 @@ const urlToCall = urlIsSegment

url: urlToCall,
data: body,
data,
headers,

@@ -78,0 +78,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