Compare commits
5 Commits
@nhost/vue
...
@nhost/rea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ce3ece1ad7 | ||
|
|
c81002622c | ||
|
|
35fa6bb043 | ||
|
|
b8f11a13d7 | ||
|
|
1d1555593f |
@@ -1,5 +1,12 @@
|
||||
# @nhost/dashboard
|
||||
|
||||
## 0.12.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @nhost/react-apollo@5.0.9
|
||||
- @nhost/nextjs@1.13.14
|
||||
|
||||
## 0.12.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/dashboard",
|
||||
"version": "0.12.3",
|
||||
"version": "0.12.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @nhost/apollo
|
||||
|
||||
## 5.0.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1d155559]
|
||||
- @nhost/nhost-js@2.0.8
|
||||
|
||||
## 5.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/apollo",
|
||||
"version": "5.0.7",
|
||||
"version": "5.0.8",
|
||||
"description": "Nhost Apollo Client library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @nhost/react-apollo
|
||||
|
||||
## 5.0.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @nhost/apollo@5.0.8
|
||||
- @nhost/react@2.0.8
|
||||
|
||||
## 5.0.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-apollo",
|
||||
"version": "5.0.8",
|
||||
"version": "5.0.9",
|
||||
"description": "Nhost React Apollo client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @nhost/react-urql
|
||||
|
||||
## 2.0.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @nhost/react@2.0.8
|
||||
|
||||
## 2.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react-urql",
|
||||
"version": "2.0.7",
|
||||
"version": "2.0.8",
|
||||
"description": "Nhost React URQL client",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @nhost/nextjs
|
||||
|
||||
## 1.13.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @nhost/react@2.0.8
|
||||
|
||||
## 1.13.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nextjs",
|
||||
"version": "1.13.13",
|
||||
"version": "1.13.14",
|
||||
"description": "Nhost NextJS library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @nhost/nhost-js
|
||||
|
||||
## 2.0.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 1d155559: fix(nhost-js): allow `null` as body and return JSON when `content-type` is `application/json`
|
||||
|
||||
## 2.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/nhost-js",
|
||||
"version": "2.0.7",
|
||||
"version": "2.0.8",
|
||||
"description": "Nhost JavaScript SDK",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -40,7 +40,7 @@ export class NhostFunctionsClient {
|
||||
|
||||
async call<T = unknown, D = any>(
|
||||
url: string,
|
||||
data: D,
|
||||
data: D | null,
|
||||
config?: NhostFunctionCallConfig
|
||||
): Promise<NhostFunctionCallResponse<T>>
|
||||
|
||||
@@ -56,7 +56,7 @@ export class NhostFunctionsClient {
|
||||
*/
|
||||
async call<T = unknown, D = any>(
|
||||
url: string,
|
||||
body: D,
|
||||
body: D | null,
|
||||
config?: NhostFunctionCallConfig
|
||||
): Promise<NhostFunctionCallResponse<T>> {
|
||||
const headers: HeadersInit = {
|
||||
@@ -69,7 +69,7 @@ export class NhostFunctionsClient {
|
||||
|
||||
try {
|
||||
const result = await fetch(fullUrl, {
|
||||
body: JSON.stringify(body),
|
||||
body: body ? JSON.stringify(body) : null,
|
||||
headers,
|
||||
method: 'POST'
|
||||
})
|
||||
@@ -80,7 +80,7 @@ export class NhostFunctionsClient {
|
||||
|
||||
let data: T
|
||||
|
||||
if (result.headers.get('content-type') === 'application/json') {
|
||||
if (result.headers.get('content-type')?.includes('application/json')) {
|
||||
data = await result.json()
|
||||
} else {
|
||||
data = (await result.text()) as unknown as T
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @nhost/react
|
||||
|
||||
## 2.0.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1d155559]
|
||||
- @nhost/nhost-js@2.0.8
|
||||
|
||||
## 2.0.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/react",
|
||||
"version": "2.0.7",
|
||||
"version": "2.0.8",
|
||||
"description": "Nhost React library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @nhost/vue
|
||||
|
||||
## 1.13.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1d155559]
|
||||
- @nhost/nhost-js@2.0.8
|
||||
|
||||
## 1.13.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nhost/vue",
|
||||
"version": "1.13.13",
|
||||
"version": "1.13.14",
|
||||
"description": "Nhost Vue library",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
|
||||
Reference in New Issue
Block a user