@nhost/nhost-js
Advanced tools
Comparing version 2.1.2 to 2.2.0
import { NhostAuthConstructorParams } from '@nhost/hasura-auth-js'; | ||
export type ErrorPayload = { | ||
export interface ErrorPayload { | ||
error: string; | ||
status: number; | ||
message: string; | ||
}; | ||
} | ||
export interface ActionErrorState { | ||
/** | ||
* @return `true` if an error occurred | ||
* @depreacted use `!isSuccess` or `!!error` instead | ||
* */ | ||
isError: boolean; | ||
/** Provides details about the error */ | ||
error: ErrorPayload | null; | ||
} | ||
export interface ActionLoadingState { | ||
/** | ||
* @return `true` when the action is executing, `false` when it finished its execution. | ||
*/ | ||
isLoading: boolean; | ||
} | ||
export interface ActionSuccessState { | ||
/** Returns `true` if the action is successful. */ | ||
isSuccess: boolean; | ||
} | ||
export type BackendUrl = { | ||
@@ -8,0 +27,0 @@ /** |
{ | ||
"name": "@nhost/nhost-js", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"description": "Nhost JavaScript SDK", | ||
@@ -48,4 +48,4 @@ "license": "MIT", | ||
"@nhost/graphql-js": "0.1.0", | ||
"@nhost/hasura-auth-js": "2.0.2", | ||
"@nhost/hasura-storage-js": "2.0.5" | ||
"@nhost/hasura-auth-js": "2.1.0", | ||
"@nhost/hasura-storage-js": "2.1.0" | ||
}, | ||
@@ -61,3 +61,4 @@ "devDependencies": { | ||
"dev": "vite build --config ../../config/vite.lib.dev.config.js", | ||
"build": "run-p build:lib build:umd", | ||
"build": "run-p typecheck build:lib build:umd", | ||
"typecheck": "tsc --noEmit", | ||
"build:lib": "vite build", | ||
@@ -64,0 +65,0 @@ "build:umd": "vite build --config ../../config/vite.lib.umd.config.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
632749
877
+ Added@nhost/hasura-auth-js@2.1.0(transitive)
+ Added@nhost/hasura-storage-js@2.1.0(transitive)
- Removed@nhost/hasura-auth-js@2.0.2(transitive)
- Removed@nhost/hasura-storage-js@2.0.5(transitive)
Updated@nhost/hasura-auth-js@2.1.0