From 83875683cd1abe9e57d73814b90689034b01dc2d Mon Sep 17 00:00:00 2001 From: beautus Date: Fri, 25 Jun 2021 22:50:49 +0200 Subject: [PATCH 1/2] use require instead of es import style --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 6c4eb17..14d70fc 100644 --- a/index.js +++ b/index.js @@ -1,12 +1,12 @@ 'use strict'; -import { createClient } from '@supabase/supabase-js' +const { createClient } = require('@supabase/supabase-js') -export default { +module.exports = { install: function (Vue, options) { const supabase = createClient(options.supabaseUrl, options.supabaseKey, options.supabaseOptions) - Object.defineProperties(Vue.prototype, { + Object.defineProperties(Vue.prototype, { $supabase: { get: function() { return supabase; @@ -16,4 +16,4 @@ export default { Vue.supabase = supabase; } -}; +} \ No newline at end of file From 56a4dbfea226ad1050c55853abb7ef16a886b0b5 Mon Sep 17 00:00:00 2001 From: beautus Date: Fri, 25 Jun 2021 22:52:28 +0200 Subject: [PATCH 2/2] format some indentation --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 14d70fc..8cdbacd 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ module.exports = { install: function (Vue, options) { const supabase = createClient(options.supabaseUrl, options.supabaseKey, options.supabaseOptions) - Object.defineProperties(Vue.prototype, { + Object.defineProperties(Vue.prototype, { $supabase: { get: function() { return supabase;