@platformatic/client
Advanced tools
Comparing version 0.30.1 to 0.31.0
@@ -18,3 +18,3 @@ 'use strict' | ||
} | ||
operationId = method.toLowerCase() + stringToUpdate.split('/').map(capitalize).join('') | ||
operationId = method.toLowerCase() + stringToUpdate.split(/[/-]+/).map(capitalize).join('') | ||
} | ||
@@ -21,0 +21,0 @@ return operationId |
{ | ||
"name": "@platformatic/client", | ||
"version": "0.30.1", | ||
"version": "0.31.0", | ||
"description": "A client for all platformatic backends", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -657,3 +657,3 @@ { | ||
}, | ||
"/hello": { | ||
"/hello-world": { | ||
"get": { | ||
@@ -660,0 +660,0 @@ "responses": { |
@@ -34,3 +34,3 @@ 'use strict' | ||
app.get('/hello', async (request, reply) => { | ||
app.get('/hello-world', async (request, reply) => { | ||
return { hello: 'world' } | ||
@@ -37,0 +37,0 @@ }) |
@@ -98,3 +98,3 @@ 'use strict' | ||
{ | ||
const hello = await client.getHello() | ||
const hello = await client.getHelloWorld() | ||
same(hello, { hello: 'world' }) | ||
@@ -279,3 +279,3 @@ } | ||
{ | ||
const hello = await client.getHello() | ||
const hello = await client.getHelloWorld() | ||
match(hello, { | ||
@@ -425,3 +425,3 @@ statusCode: 200, | ||
{ | ||
const hello = await client.getHello() | ||
const hello = await client.getHelloWorld() | ||
same(hello, { hello: 'world' }) | ||
@@ -428,0 +428,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100242