@baselinemain/cli-test 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @baselinemain/cli-test might be problematic. Click here for more details.
- package/README.md +1 -0
- package/bin/cli.js +5 -0
- package/lib/publisher.js +14 -0
- package/package.json +24 -0
- package/supabase/config.toml +72 -0
- package/supabase/functions/hello-world/index.ts +20 -0
- package/supabase/seed.sql +0 -0
package/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# readme
|
package/bin/cli.js
ADDED
package/lib/publisher.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
const axios = require("axios");
|
2
|
+
|
3
|
+
async function publish() {
|
4
|
+
const response = await axios.post(
|
5
|
+
"https://urrwhppxqcdztkqcufcj.functions.supabase.co/hello-world",
|
6
|
+
{
|
7
|
+
name: "mantej",
|
8
|
+
}
|
9
|
+
);
|
10
|
+
|
11
|
+
console.log(response);
|
12
|
+
}
|
13
|
+
|
14
|
+
module.exports = { publish };
|
package/package.json
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"name": "@baselinemain/cli-test",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "test build for a cli tool",
|
5
|
+
"main": "./bin/publisher.js",
|
6
|
+
"repository": {
|
7
|
+
"type": "git",
|
8
|
+
"url": "git+https://gitlab.com/baseline7/npm-dummy-test"
|
9
|
+
},
|
10
|
+
"keywords": [
|
11
|
+
"cli"
|
12
|
+
],
|
13
|
+
"author": "baselineadmin",
|
14
|
+
"license": "MIT",
|
15
|
+
"bin": {
|
16
|
+
"generate": "./bin/cli.js"
|
17
|
+
},
|
18
|
+
"devDependencies": {
|
19
|
+
"supabase": "^1.34.5"
|
20
|
+
},
|
21
|
+
"dependencies": {
|
22
|
+
"axios": "^1.2.3"
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# A string used to distinguish different Supabase projects on the same host. Defaults to the working
|
2
|
+
# directory name when running `supabase init`.
|
3
|
+
project_id = "npm-dummy-test"
|
4
|
+
|
5
|
+
[api]
|
6
|
+
# Port to use for the API URL.
|
7
|
+
port = 54321
|
8
|
+
# Schemas to expose in your API. Tables, views and stored procedures in this schema will get API
|
9
|
+
# endpoints. public and storage are always included.
|
10
|
+
schemas = ["public", "storage", "graphql_public"]
|
11
|
+
# Extra schemas to add to the search_path of every request. public is always included.
|
12
|
+
extra_search_path = ["public", "extensions"]
|
13
|
+
# The maximum number of rows returns from a view, table, or stored procedure. Limits payload size
|
14
|
+
# for accidental or malicious requests.
|
15
|
+
max_rows = 1000
|
16
|
+
|
17
|
+
[db]
|
18
|
+
# Port to use for the local database URL.
|
19
|
+
port = 54322
|
20
|
+
# The database major version to use. This has to be the same as your remote database's. Run `SHOW
|
21
|
+
# server_version;` on the remote database to check.
|
22
|
+
major_version = 15
|
23
|
+
|
24
|
+
[studio]
|
25
|
+
# Port to use for Supabase Studio.
|
26
|
+
port = 54323
|
27
|
+
|
28
|
+
# Email testing server. Emails sent with the local dev setup are not actually sent - rather, they
|
29
|
+
# are monitored, and you can view the emails that would have been sent from the web interface.
|
30
|
+
[inbucket]
|
31
|
+
# Port to use for the email testing server web interface.
|
32
|
+
port = 54324
|
33
|
+
smtp_port = 54325
|
34
|
+
pop3_port = 54326
|
35
|
+
|
36
|
+
[storage]
|
37
|
+
# The maximum file size allowed (e.g. "5MB", "500KB").
|
38
|
+
file_size_limit = "50MiB"
|
39
|
+
|
40
|
+
[auth]
|
41
|
+
# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used
|
42
|
+
# in emails.
|
43
|
+
site_url = "http://localhost:3000"
|
44
|
+
# A list of *exact* URLs that auth providers are permitted to redirect to post authentication.
|
45
|
+
additional_redirect_urls = ["https://localhost:3000"]
|
46
|
+
# How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 seconds (one
|
47
|
+
# week).
|
48
|
+
jwt_expiry = 3600
|
49
|
+
# Allow/disallow new user signups to your project.
|
50
|
+
enable_signup = true
|
51
|
+
|
52
|
+
[auth.email]
|
53
|
+
# Allow/disallow new user signups via email to your project.
|
54
|
+
enable_signup = true
|
55
|
+
# If enabled, a user will be required to confirm any email change on both the old, and new email
|
56
|
+
# addresses. If disabled, only the new email is required to confirm.
|
57
|
+
double_confirm_changes = true
|
58
|
+
# If enabled, users need to confirm their email address before signing in.
|
59
|
+
enable_confirmations = false
|
60
|
+
|
61
|
+
# Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`,
|
62
|
+
# `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin`, `notion`, `twitch`,
|
63
|
+
# `twitter`, `slack`, `spotify`, `workos`, `zoom`.
|
64
|
+
[auth.external.apple]
|
65
|
+
enabled = false
|
66
|
+
client_id = ""
|
67
|
+
secret = ""
|
68
|
+
# Overrides the default auth redirectUrl.
|
69
|
+
redirect_uri = ""
|
70
|
+
# Overrides the default auth provider URL. Used to support self-hosted gitlab, single-tenant Azure,
|
71
|
+
# or any other third-party OIDC providers.
|
72
|
+
url = ""
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// Follow this setup guide to integrate the Deno language server with your editor:
|
2
|
+
// https://deno.land/manual/getting_started/setup_your_environment
|
3
|
+
// This enables autocomplete, go to definition, etc.
|
4
|
+
|
5
|
+
import { serve } from "https://deno.land/std@0.168.0/http/server.ts"
|
6
|
+
|
7
|
+
console.log("Hello from Functions!")
|
8
|
+
|
9
|
+
serve(async (req) => {
|
10
|
+
const { name } = await req.json()
|
11
|
+
const data = {
|
12
|
+
message: `Hello ${name}!`,
|
13
|
+
}
|
14
|
+
|
15
|
+
return new Response(
|
16
|
+
JSON.stringify(data),
|
17
|
+
{ headers: { "Content-Type": "application/json" } },
|
18
|
+
)
|
19
|
+
})
|
20
|
+
|
File without changes
|