Skip to content

Commit

Permalink
Merge pull request #4 from sduduzog/use_vue-supabase_as_dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrobertson authored Jul 23, 2021
2 parents 91f4098 + 47ea3e1 commit 545567b
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 39 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
},
"homepage": "https://github.com/scottrobertson/nuxt-supabase#readme",
"dependencies": {
"@supabase/supabase-js": "^1.11.13"
"vue-supabase": "^1.0.6"
}
}
17 changes: 11 additions & 6 deletions plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { createClient } from '@supabase/supabase-js'
import Vue from 'vue'
import VueSupabase from 'vue-supabase'

export default function (ctx, inject) {
const client = createClient('<%= options.supabaseUrl %>', '<%= options.supabaseKey %>')
ctx.$supabase = client
inject('supabase', client)
}
Vue.use(VueSupabase, {
supabaseUrl: '<%= options.supabaseUrl %>',
supabaseKey: '<%= options.supabaseKey %>'
})

// Inject Supabase into Nuxt Context
export default (ctx, inject) => {
inject('supabase', Vue.supabase)
}
71 changes: 39 additions & 32 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,54 @@
# yarn lockfile v1


"@supabase/gotrue-js@^1.15.1":
version "1.15.1"
resolved "https://registry.yarnpkg.com/@supabase/gotrue-js/-/gotrue-js-1.15.1.tgz#f9ae8552a52b0177cabc28941ff3c4f216fcdd0d"
integrity sha512-d3UP+UCaakP2wMxe9KzM4Ig0w2P+EifWPVzXXWgnly0jeX1XppIm7OzQveqiTucuIKb/5ZUYjtXBYrry4dlBFw==
"@supabase/gotrue-js@^1.16.6":
version "1.16.7"
resolved "https://registry.yarnpkg.com/@supabase/gotrue-js/-/gotrue-js-1.16.7.tgz#7e003e4c8cdef973c4dc3c67900439e23d4982ea"
integrity sha512-aRqwVLPPYQn616cG4SSlX/buEDiPG6/CBycpamaF6TAVm4C+lMTxaMIr7asNgV9SoGNGP4cQpluiRrNFZ6mNBw==
dependencies:
cross-fetch "^3.0.6"

"@supabase/postgrest-js@^0.28.3":
version "0.28.3"
resolved "https://registry.yarnpkg.com/@supabase/postgrest-js/-/postgrest-js-0.28.3.tgz#0989e7968cb618122577ee7ff625f5c141658ae9"
integrity sha512-nibxmeKdkxLKBrxe/K7udSb22g37RKfo2HTo3Icw0glb0scP3/cIb+tkbrvnAj6NRfCt5FTXh7Wic+lT4G5onw==
"@supabase/postgrest-js@^0.33.0":
version "0.33.0"
resolved "https://registry.yarnpkg.com/@supabase/postgrest-js/-/postgrest-js-0.33.0.tgz#36e0bfd0f79a0fa01a4bb7c7881ee463fd7d60a8"
integrity sha512-og6Evdkan7Qp6+tOch7Pyq+ZWMnrCQtPHWwPpsN5A3iYQSro2yn21Yvazs9qAFoWAeTGNkuTOVpShT5Mbc9WcQ==
dependencies:
cross-fetch "^3.0.6"

"@supabase/realtime-js@^1.0.9":
version "1.0.9"
resolved "https://registry.yarnpkg.com/@supabase/realtime-js/-/realtime-js-1.0.9.tgz#a4be4f893be78db4487ad2c9de155a4a07532eae"
integrity sha512-hGClyW7hHXW0PC6reJgaKFL0c3ubC+AVt7U/MxD0VJNjVXIw4PLj7DxgMpCIpNXksHJsLOBL8ht+BMhPb6rE8Q==
"@supabase/realtime-js@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@supabase/realtime-js/-/realtime-js-1.1.1.tgz#3a1be101eecbc2413d41bfdd6757d964a5f82b14"
integrity sha512-kUew5KPjgWYtenxrQJWZ/tHMGlg5Qz++bbsiY8Y89AjZQioSO557MlGHaEoT6k4s7CJ6e/ctNsT7tRhCKJimcQ==
dependencies:
"@types/websocket" "^1.0.1"
"@types/websocket" "^1.0.3"
websocket "^1.0.34"

"@supabase/storage-js@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@supabase/storage-js/-/storage-js-1.0.2.tgz#8fa3bd2b683a8ff95321586c6024edb9f4e44e7a"
integrity sha512-cnmdzLcUc06JqqxxqK6grALnUhWbR4d5AyzsG5zlXgMW78JmdghofNz5ToDwMq949RZgxXmknBWZWhS+yhns3Q==
"@supabase/storage-js@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@supabase/storage-js/-/storage-js-1.4.0.tgz#0692782ccaf10df27d539d9349031ed87c7ec426"
integrity sha512-7+SGyXOgdhtz8qHzXo64HiS66PT/y4F8YFNMtXqYOu1LjHh0YwtOgpPLDA8obiSsNVwZiKwpgBJkz4LHG1YvRQ==
dependencies:
cross-fetch "^3.1.0"

"@supabase/supabase-js@^1.11.13":
version "1.11.13"
resolved "https://registry.yarnpkg.com/@supabase/supabase-js/-/supabase-js-1.11.13.tgz#965e9529725362900e09f988e1170c377b76e541"
integrity sha512-8xoOQMysC7BVuP1rdnamvsVtR26g35pqA+s66vTdXBu+od8pM+2+BgFcPkarRZZTtAVfyrmcFv4qbKwGTS2g6g==
"@supabase/supabase-js@^1.4.2":
version "1.20.0"
resolved "https://registry.yarnpkg.com/@supabase/supabase-js/-/supabase-js-1.20.0.tgz#3d7bd464c4170126f176fdfede747cba751651fb"
integrity sha512-G+BKKlr6a+q5Rf6OcNP3LInTih+hP92gmWp6zQZL2rYVvCa51LLhAtu+NrgMR6+AYs1D7ipLKYYiiq85Oerazg==
dependencies:
"@supabase/gotrue-js" "^1.15.1"
"@supabase/postgrest-js" "^0.28.3"
"@supabase/realtime-js" "^1.0.9"
"@supabase/storage-js" "^1.0.2"
"@supabase/gotrue-js" "^1.16.6"
"@supabase/postgrest-js" "^0.33.0"
"@supabase/realtime-js" "^1.1.1"
"@supabase/storage-js" "^1.4.0"

"@types/node@*":
version "15.3.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-15.3.0.tgz#d6fed7d6bc6854306da3dea1af9f874b00783e26"
integrity sha512-8/bnjSZD86ZfpBsDlCIkNXIvm+h6wi9g7IqL+kmFkQ+Wvu3JrasgLElfiPgoo8V8vVfnEi0QVS12gbl94h9YsQ==
version "16.4.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.4.0.tgz#2c219eaa3b8d1e4d04f4dd6e40bc68c7467d5272"
integrity sha512-HrJuE7Mlqcjj+00JqMWpZ3tY8w7EUd+S0U3L1+PQSWiXZbOgyQDvi+ogoUxaHApPJq5diKxYBQwA3iIlNcPqOg==

"@types/websocket@^1.0.1":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.2.tgz#d2855c6a312b7da73ed16ba6781815bf30c6187a"
integrity sha512-B5m9aq7cbbD/5/jThEr33nUY8WEfVi6A2YKCTOvw5Ldy7mtsOkqRvGjnzy6g7iMMDsgu7xREuCzqATLDLQVKcQ==
"@types/websocket@^1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.3.tgz#49e09f939afd0ccdee4f7108d4712ec9feb0f153"
integrity sha512-ZdoTSwmDsKR7l1I8fpfQtmTI/hUwlOvE3q0iyJsp4tXU0MkdrYowimDzwxjhQvxU4qjhHLd3a6ig0OXRbLgIdw==
dependencies:
"@types/node" "*"

Expand Down Expand Up @@ -164,6 +164,13 @@ utf-8-validate@^5.0.2:
dependencies:
node-gyp-build "^4.2.0"

vue-supabase@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/vue-supabase/-/vue-supabase-1.0.6.tgz#66764ef25c30dac7767f89fc767b728f6694dd32"
integrity sha512-/uw3QVU+VTkM1rdg8gVbhIhatPDVGvc8TJQLQMP9rvpkeL18/Gyk0JnqNcLzZ6qWXZmMgp/E1RWxjfsg3Vbv9g==
dependencies:
"@supabase/supabase-js" "^1.4.2"

websocket@^1.0.34:
version "1.0.34"
resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111"
Expand Down

0 comments on commit 545567b

Please sign in to comment.