Skip to content

Commit

Permalink
Merge 2554431 into 9ac9163
Browse files Browse the repository at this point in the history
  • Loading branch information
waltherjj committed May 18, 2021
2 parents 9ac9163 + 2554431 commit 870197a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Plugin from '@/Plugin'
import { setDefaultToken } from '@/Schema'
import Schema, { setDefaultToken } from '@/Schema'
import pg from '@/mixin'
import { AuthError, FetchError, PrimaryKeyError, SchemaNotFoundError } from '@/errors'

Expand All @@ -8,4 +8,8 @@ if (typeof globalThis !== 'undefined' && globalThis.Vue) {
globalThis.Vue.use(Plugin)
}

export { pg, AuthError, FetchError, PrimaryKeyError, SchemaNotFoundError, setDefaultToken, Plugin as default }
function usePostgrest (...args) {
return new Schema(...args)
}

export { pg, AuthError, FetchError, PrimaryKeyError, SchemaNotFoundError, setDefaultToken, usePostgrest, Plugin as default }

0 comments on commit 870197a

Please sign in to comment.