@supabase/supabase-js
Advanced tools
Comparing version 2.38.5 to 2.39.0
@@ -9,3 +9,3 @@ import SupabaseClient from './SupabaseClient'; | ||
export { default as SupabaseClient } from './SupabaseClient'; | ||
export type { SupabaseClientOptions } from './lib/types'; | ||
export type { SupabaseClientOptions, QueryResult, QueryData, QueryError } from './lib/types'; | ||
/** | ||
@@ -12,0 +12,0 @@ * Creates a new Supabase Client. |
import { GoTrueClient } from '@supabase/gotrue-js'; | ||
import { RealtimeClientOptions } from '@supabase/realtime-js'; | ||
import { PostgrestError } from '@supabase/postgrest-js'; | ||
declare type GoTrueClientOptions = ConstructorParameters<typeof GoTrueClient>[0]; | ||
@@ -88,3 +89,11 @@ export interface SupabaseAuthClientOptions extends GoTrueClientOptions { | ||
}; | ||
/** | ||
* Helper types for query results. | ||
*/ | ||
export declare type QueryResult<T> = T extends PromiseLike<infer U> ? U : never; | ||
export declare type QueryData<T> = T extends PromiseLike<{ | ||
data: infer U; | ||
}> ? Exclude<U, null> : never; | ||
export declare type QueryError = PostgrestError; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.38.5"; | ||
export declare const version = "2.39.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '2.38.5'; | ||
exports.version = '2.39.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -9,3 +9,3 @@ import SupabaseClient from './SupabaseClient'; | ||
export { default as SupabaseClient } from './SupabaseClient'; | ||
export type { SupabaseClientOptions } from './lib/types'; | ||
export type { SupabaseClientOptions, QueryResult, QueryData, QueryError } from './lib/types'; | ||
/** | ||
@@ -12,0 +12,0 @@ * Creates a new Supabase Client. |
import { GoTrueClient } from '@supabase/gotrue-js'; | ||
import { RealtimeClientOptions } from '@supabase/realtime-js'; | ||
import { PostgrestError } from '@supabase/postgrest-js'; | ||
declare type GoTrueClientOptions = ConstructorParameters<typeof GoTrueClient>[0]; | ||
@@ -88,3 +89,11 @@ export interface SupabaseAuthClientOptions extends GoTrueClientOptions { | ||
}; | ||
/** | ||
* Helper types for query results. | ||
*/ | ||
export declare type QueryResult<T> = T extends PromiseLike<infer U> ? U : never; | ||
export declare type QueryData<T> = T extends PromiseLike<{ | ||
data: infer U; | ||
}> ? Exclude<U, null> : never; | ||
export declare type QueryError = PostgrestError; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.38.5"; | ||
export declare const version = "2.39.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = '2.38.5'; | ||
export const version = '2.39.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@supabase/supabase-js", | ||
"version": "2.38.5", | ||
"version": "2.39.0", | ||
"description": "Isomorphic Javascript client for Supabase", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -20,3 +20,3 @@ import SupabaseClient from './SupabaseClient' | ||
export { default as SupabaseClient } from './SupabaseClient' | ||
export type { SupabaseClientOptions } from './lib/types' | ||
export type { SupabaseClientOptions, QueryResult, QueryData, QueryError } from './lib/types' | ||
@@ -23,0 +23,0 @@ /** |
import { GoTrueClient } from '@supabase/gotrue-js' | ||
import { RealtimeClientOptions } from '@supabase/realtime-js' | ||
import { PostgrestError } from '@supabase/postgrest-js' | ||
@@ -98,1 +99,8 @@ type GoTrueClientOptions = ConstructorParameters<typeof GoTrueClient>[0] | ||
} | ||
/** | ||
* Helper types for query results. | ||
*/ | ||
export type QueryResult<T> = T extends PromiseLike<infer U> ? U : never | ||
export type QueryData<T> = T extends PromiseLike<{ data: infer U }> ? Exclude<U, null> : never | ||
export type QueryError = PostgrestError |
@@ -1,1 +0,1 @@ | ||
export const version = '2.38.5' | ||
export const version = '2.39.0' |
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
211967
1760