Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings #13

Merged
merged 3 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fi
echo "BIN_EXTENSION=$BIN_EXTENSION" >> $GITHUB_ENV

export TOIT_VERSION="v2.0.0-alpha.92"
export TOIT_VERSION="v2.0.0-alpha.128"

export DOWNLOAD_DIR="${{ github.workspace }}/downloads"
echo "DOWNLOAD_DIR=$DOWNLOAD_DIR" >> $GITHUB_ENV
Expand Down
5 changes: 3 additions & 2 deletions examples/auth_email.toit
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
// be found in the EXAMPLES_LICENSE file.

import .utils.client
import system

signup args/List:
if args.size != 3:
print "Usage: $program_name signup <email> <password>"
print "Usage: $system.program_name signup <email> <password>"
exit 1

client := instantiate_client
Expand All @@ -15,7 +16,7 @@ signup args/List:

login args/List:
if args.size != 3:
print "Usage: $program_name login <email> <password>"
print "Usage: $system.program_name login <email> <password>"
exit 1

client := instantiate_client
Expand Down
17 changes: 10 additions & 7 deletions examples/package.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk: ^2.0.0-alpha.64
sdk: ^2.0.0-alpha.124
prefixes:
certificate_roots: toit-cert-roots
host: pkg-host
Expand All @@ -11,13 +11,16 @@ packages:
http: pkg-http
pkg-host:
url: github.com/toitlang/pkg-host
version: 1.9.0
hash: 76e4dc5328a5c3739e97f65ed196d05058071359
name: host
version: 1.13.0
hash: 64ee9e7bf1fd0e748e778a61269cd653fd748af8
pkg-http:
url: github.com/toitlang/pkg-http
version: 2.1.0
hash: 54cb9c5e06d53da3d5608ea7454b9113de079c15
name: http
version: 2.3.4
hash: 39fe52083b4c745cc37420649a48277b45728fd2
toit-cert-roots:
url: github.com/toitware/toit-cert-roots
version: 1.4.0
hash: bf41ee60ebba65ba01bc9ba1aa6d697e4cc4a8c7
name: certificate_roots
version: 1.6.1
hash: 55d3be82ed53d8d332338b2de931865cf69fe48b
4 changes: 2 additions & 2 deletions examples/package.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
certificate_roots:
url: github.com/toitware/toit-cert-roots
version: ^1.4.0
version: ^1.6.1
host:
url: github.com/toitlang/pkg-host
version: ^1.9.0
version: ^1.13.0
supabase:
path: ..
1 change: 1 addition & 0 deletions examples/utils/local_storage.toit
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import host.file
import host.directory
import supabase
import writer show Writer
import system show platform PLATFORM_WINDOWS

// TODO(florian): A lot of this functionality should come from the CLI package.

Expand Down
10 changes: 5 additions & 5 deletions package.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
sdk: ^2.0.0-alpha.64
sdk: ^2.0.0-alpha.124
prefixes:
host: pkg-host
http: pkg-http
packages:
pkg-host:
url: github.com/toitlang/pkg-host
name: host
version: 1.9.0
hash: 76e4dc5328a5c3739e97f65ed196d05058071359
version: 1.13.0
hash: 64ee9e7bf1fd0e748e778a61269cd653fd748af8
pkg-http:
url: github.com/toitlang/pkg-http
name: http
version: 2.1.0
hash: 54cb9c5e06d53da3d5608ea7454b9113de079c15
version: 2.3.4
hash: 39fe52083b4c745cc37420649a48277b45728fd2
9 changes: 4 additions & 5 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: supabase
description: A Supabase client.
environment:
sdk: ^2.0.0-alpha.128
dependencies:
host:
url: github.com/toitlang/pkg-host
version: ^1.9.0
version: ^1.13.0
http:
url: github.com/toitlang/pkg-http
version: ^2.1.0

environment:
sdk: ^2.0.0-alpha.91
version: ^2.3.4
1 change: 1 addition & 0 deletions src/auth.toit
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import log
import monitor
import net
import .supabase
import system show platform PLATFORM-LINUX PLATFORM-MACOS PLATFORM-WINDOWS

/**
A class that handles all authentication related functionality of the Supabase API.
Expand Down
10 changes: 5 additions & 5 deletions tests/package.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sdk: ^2.0.0-alpha.64
sdk: ^2.0.0-alpha.124
prefixes:
host: pkg-host
supabase: ..
Expand All @@ -11,10 +11,10 @@ packages:
pkg-host:
url: github.com/toitlang/pkg-host
name: host
version: 1.9.0
hash: 76e4dc5328a5c3739e97f65ed196d05058071359
version: 1.13.0
hash: 64ee9e7bf1fd0e748e778a61269cd653fd748af8
pkg-http:
url: github.com/toitlang/pkg-http
name: http
version: 2.1.0
hash: 54cb9c5e06d53da3d5608ea7454b9113de079c15
version: 2.3.4
hash: 39fe52083b4c745cc37420649a48277b45728fd2
2 changes: 1 addition & 1 deletion tests/package.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
host:
url: github.com/toitlang/pkg-host
version: ^1.9.0
version: ^1.13.0
supabase:
path: ..