@soedirgo/supabase-js
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -1,2 +0,12 @@ | ||
export {}; | ||
import SupabaseClient from './SupabaseClient'; | ||
import { SupabaseClientOptions, SupabaseRealtimePayload } from './lib/types'; | ||
import { User as AuthUser, Session as AuthSession } from '@soedirgo/gotrue-js'; | ||
export * from '@soedirgo/gotrue-js'; | ||
export { PostgrestResponse, PostgrestSingleResponse, PostgrestMaybeSingleResponse, PostgrestError, } from '@soedirgo/postgrest-js'; | ||
export * from '@soedirgo/realtime-js'; | ||
/** | ||
* Creates a new Supabase Client. | ||
*/ | ||
declare const createClient: (supabaseUrl: string, supabaseKey: string, options?: SupabaseClientOptions | undefined) => SupabaseClient; | ||
export { createClient, SupabaseClient, SupabaseClientOptions, SupabaseRealtimePayload, AuthUser, AuthSession, }; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// export * from '@supabase/realtime-js' | ||
// /** | ||
// * Creates a new Supabase Client. | ||
// */ | ||
// const createClient = ( | ||
// supabaseUrl: string, | ||
// supabaseKey: string, | ||
// options?: SupabaseClientOptions | ||
// ): SupabaseClient => { | ||
// return new SupabaseClient(supabaseUrl, supabaseKey, options) | ||
// } | ||
// export { | ||
// createClient, | ||
// SupabaseClient, | ||
// SupabaseClientOptions, | ||
// SupabaseRealtimePayload, | ||
// AuthUser, | ||
// AuthSession, | ||
// } | ||
exports.SupabaseClient = exports.createClient = void 0; | ||
const SupabaseClient_1 = __importDefault(require("./SupabaseClient")); | ||
exports.SupabaseClient = SupabaseClient_1.default; | ||
__exportStar(require("@soedirgo/gotrue-js"), exports); | ||
__exportStar(require("@soedirgo/realtime-js"), exports); | ||
/** | ||
* Creates a new Supabase Client. | ||
*/ | ||
const createClient = (supabaseUrl, supabaseKey, options) => { | ||
return new SupabaseClient_1.default(supabaseUrl, supabaseKey, options); | ||
}; | ||
exports.createClient = createClient; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,12 @@ | ||
export {}; | ||
import SupabaseClient from './SupabaseClient'; | ||
import { SupabaseClientOptions, SupabaseRealtimePayload } from './lib/types'; | ||
import { User as AuthUser, Session as AuthSession } from '@soedirgo/gotrue-js'; | ||
export * from '@soedirgo/gotrue-js'; | ||
export { PostgrestResponse, PostgrestSingleResponse, PostgrestMaybeSingleResponse, PostgrestError, } from '@soedirgo/postgrest-js'; | ||
export * from '@soedirgo/realtime-js'; | ||
/** | ||
* Creates a new Supabase Client. | ||
*/ | ||
declare const createClient: (supabaseUrl: string, supabaseKey: string, options?: SupabaseClientOptions | undefined) => SupabaseClient; | ||
export { createClient, SupabaseClient, SupabaseClientOptions, SupabaseRealtimePayload, AuthUser, AuthSession, }; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,21 +0,11 @@ | ||
export {}; | ||
// export * from '@supabase/realtime-js' | ||
// /** | ||
// * Creates a new Supabase Client. | ||
// */ | ||
// const createClient = ( | ||
// supabaseUrl: string, | ||
// supabaseKey: string, | ||
// options?: SupabaseClientOptions | ||
// ): SupabaseClient => { | ||
// return new SupabaseClient(supabaseUrl, supabaseKey, options) | ||
// } | ||
// export { | ||
// createClient, | ||
// SupabaseClient, | ||
// SupabaseClientOptions, | ||
// SupabaseRealtimePayload, | ||
// AuthUser, | ||
// AuthSession, | ||
// } | ||
import SupabaseClient from './SupabaseClient'; | ||
export * from '@soedirgo/gotrue-js'; | ||
export * from '@soedirgo/realtime-js'; | ||
/** | ||
* Creates a new Supabase Client. | ||
*/ | ||
const createClient = (supabaseUrl, supabaseKey, options) => { | ||
return new SupabaseClient(supabaseUrl, supabaseKey, options); | ||
}; | ||
export { createClient, SupabaseClient, }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@soedirgo/supabase-js", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Isomorphic Javascript client for Supabase", | ||
@@ -21,2 +21,3 @@ "keywords": [ | ||
"types": "dist/module/index.d.ts", | ||
"sideEffects": false, | ||
"repository": "supabase/supabase-js", | ||
@@ -30,2 +31,3 @@ "scripts": { | ||
"build:module": "tsc -p tsconfig.module.json", | ||
"build:umd": "webpack", | ||
"types-generate": "dts-gen -m '@supabase/supabase-js' -s", | ||
@@ -40,3 +42,7 @@ "test": "jest --runInBand", | ||
"dependencies": { | ||
"@soedirgo/postgrest-js": "^0.0.0" | ||
"@soedirgo/functions-js": "^0.0.0", | ||
"@soedirgo/gotrue-js": "^0.0.0", | ||
"@soedirgo/postgrest-js": "^0.0.0", | ||
"@soedirgo/realtime-js": "^0.0.11", | ||
"@soedirgo/storage-js": "^0.0.0" | ||
}, | ||
@@ -64,5 +70,4 @@ "devDependencies": { | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
"jsdelivr": "dist/umd/supabase.js", | ||
"unpkg": "dist/umd/supabase.js" | ||
} |
@@ -1,26 +0,31 @@ | ||
// import SupabaseClient from './SupabaseClient' | ||
// import { SupabaseClientOptions, SupabaseRealtimePayload } from './lib/types' | ||
// import { User as AuthUser, Session as AuthSession } from '@supabase/gotrue-js' | ||
// export * from '@supabase/gotrue-js' | ||
import { PostgrestClient } from '@soedirgo/postgrest-js' | ||
// export * from '@supabase/realtime-js' | ||
import SupabaseClient from './SupabaseClient' | ||
import { SupabaseClientOptions, SupabaseRealtimePayload } from './lib/types' | ||
import { User as AuthUser, Session as AuthSession } from '@soedirgo/gotrue-js' | ||
export * from '@soedirgo/gotrue-js' | ||
export { | ||
PostgrestResponse, | ||
PostgrestSingleResponse, | ||
PostgrestMaybeSingleResponse, | ||
PostgrestError, | ||
} from '@soedirgo/postgrest-js' | ||
export * from '@soedirgo/realtime-js' | ||
// /** | ||
// * Creates a new Supabase Client. | ||
// */ | ||
// const createClient = ( | ||
// supabaseUrl: string, | ||
// supabaseKey: string, | ||
// options?: SupabaseClientOptions | ||
// ): SupabaseClient => { | ||
// return new SupabaseClient(supabaseUrl, supabaseKey, options) | ||
// } | ||
/** | ||
* Creates a new Supabase Client. | ||
*/ | ||
const createClient = ( | ||
supabaseUrl: string, | ||
supabaseKey: string, | ||
options?: SupabaseClientOptions | ||
): SupabaseClient => { | ||
return new SupabaseClient(supabaseUrl, supabaseKey, options) | ||
} | ||
// export { | ||
// createClient, | ||
// SupabaseClient, | ||
// SupabaseClientOptions, | ||
// SupabaseRealtimePayload, | ||
// AuthUser, | ||
// AuthSession, | ||
// } | ||
export { | ||
createClient, | ||
SupabaseClient, | ||
SupabaseClientOptions, | ||
SupabaseRealtimePayload, | ||
AuthUser, | ||
AuthSession, | ||
} |
@@ -1,2 +0,2 @@ | ||
import { GoTrueClient } from '@supabase/gotrue-js' | ||
import { GoTrueClient } from '@soedirgo/gotrue-js' | ||
import { SupabaseAuthClientOptions } from './types' | ||
@@ -3,0 +3,0 @@ |
@@ -1,4 +0,4 @@ | ||
import { PostgrestQueryBuilder } from '@supabase/postgrest-js' | ||
import { PostgrestQueryBuilder } from '@soedirgo/postgrest-js' | ||
import { SupabaseRealtimeClient } from './SupabaseRealtimeClient' | ||
import { RealtimeClient } from '@supabase/realtime-js' | ||
import { RealtimeClient } from '@soedirgo/realtime-js' | ||
import { Fetch, GenericObject, SupabaseEventTypes, SupabaseRealtimePayload } from './types' | ||
@@ -5,0 +5,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { RealtimeSubscription, RealtimeClient, Transformers } from '@supabase/realtime-js' | ||
import { RealtimeSubscription, RealtimeClient, Transformers } from '@soedirgo/realtime-js' | ||
import { GenericObject, SupabaseEventTypes, SupabaseRealtimePayload } from './types' | ||
@@ -3,0 +3,0 @@ |
@@ -1,5 +0,3 @@ | ||
// @deno-types=https://esm.sh/@supabase/gotrue-js | ||
import { GoTrueClient } from '@supabase/gotrue-js' | ||
// @deno-types=https://esm.sh/@supabase/realtime-js | ||
import { RealtimeClientOptions } from '@supabase/realtime-js' | ||
import { GoTrueClient } from '@soedirgo/gotrue-js' | ||
import { RealtimeClientOptions } from '@soedirgo/realtime-js' | ||
@@ -6,0 +4,0 @@ type GoTrueClientOptions = ConstructorParameters<typeof GoTrueClient>[0] |
@@ -6,7 +6,7 @@ import { DEFAULT_HEADERS, STORAGE_KEY } from './lib/constants' | ||
import { SupabaseQueryBuilder } from './lib/SupabaseQueryBuilder' | ||
import { SupabaseStorageClient } from '@supabase/storage-js' | ||
import { FunctionsClient } from '@supabase/functions-js' | ||
import { PostgrestClient } from '@supabase/postgrest-js' | ||
import { AuthChangeEvent } from '@supabase/gotrue-js' | ||
import { RealtimeClient, RealtimeSubscription, RealtimeClientOptions } from '@supabase/realtime-js' | ||
import { SupabaseStorageClient } from '@soedirgo/storage-js' | ||
import { FunctionsClient } from '@soedirgo/functions-js' | ||
import { PostgrestClient } from '@soedirgo/postgrest-js' | ||
import { AuthChangeEvent } from '@soedirgo/gotrue-js' | ||
import { RealtimeClient, RealtimeSubscription, RealtimeClientOptions } from '@soedirgo/realtime-js' | ||
@@ -13,0 +13,0 @@ const DEFAULT_OPTIONS = { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
205236
85
1828
5
13
+ Added@soedirgo/gotrue-js@^0.0.0
+ Added@soedirgo/storage-js@^0.0.0
+ Added@soedirgo/functions-js@0.0.0(transitive)
+ Added@soedirgo/gotrue-js@0.0.0(transitive)
+ Added@soedirgo/realtime-js@0.0.11(transitive)
+ Added@soedirgo/storage-js@0.0.0(transitive)
+ Added@types/phoenix@1.6.4(transitive)
+ Addedbufferutil@4.0.8(transitive)
+ Addedd@1.0.2(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedlodash.clonedeep@4.5.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addednode-gyp-build@4.8.1(transitive)
+ Addedtype@2.7.2(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
+ Addedutf-8-validate@5.0.10(transitive)
+ Addedwebsocket@1.0.35(transitive)
+ Addedyaeti@0.0.6(transitive)