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

@platformatic/client

Package Overview
Dependencies
Maintainers
6
Versions
269
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@platformatic/client - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

17

index.js

@@ -66,5 +66,14 @@ 'use strict'

const pathMeta = spec.paths[path]
let commonParameters = []
if (pathMeta.parameters) {
commonParameters = pathMeta.parameters
delete pathMeta.parameters
}
for (const method of Object.keys(pathMeta)) {
const methodMeta = pathMeta[method]
if (methodMeta.parameters) {
methodMeta.parameters = [...methodMeta.parameters, ...commonParameters]
} else {
methodMeta.parameters = commonParameters
}
const operationId = generateOperationId(path, method, methodMeta, generatedOperationIds)

@@ -82,3 +91,2 @@ const responses = pathMeta[method].responses

}
return client

@@ -128,3 +136,3 @@ }

headers = args?.headers
body = args?.body
body = args?.body || ''
for (const param of pathParams) {

@@ -149,3 +157,3 @@ if (args?.path[param.name] === undefined) {

} else {
body = { ...args } // shallow copy
body = { ...args } || '' // shallow copy
for (const param of pathParams) {

@@ -390,2 +398,3 @@ if (body[param.name] === undefined) {

const newClient = Object.create(client)
if (getHeaders) {

@@ -392,0 +401,0 @@ newClient[kGetHeaders] = getHeaders.bind(newClient, req, reply)

{
"name": "@platformatic/client",
"version": "1.5.0",
"version": "1.5.1",
"description": "A client for all platformatic backends",

@@ -27,3 +27,3 @@ "main": "index.js",

"typescript": "^5.2.2",
"@platformatic/telemetry": "1.5.0"
"@platformatic/telemetry": "1.5.1"
},

@@ -30,0 +30,0 @@ "dependencies": {

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