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

@nhost/nhost-js

Package Overview
Dependencies
Maintainers
3
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nhost/nhost-js - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

23

dist/utils/types.d.ts
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 @@ /**

9

package.json
{
"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

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