Skip to content

Commit

Permalink
bump: deno@v0.25.0 (#34)
Browse files Browse the repository at this point in the history
* bump: dink-bot@v0.3.3

* bump: deno@v0.25.0
  • Loading branch information
keroxp authored Nov 28, 2019
1 parent 2e0e600 commit 87c0cca
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .denov
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.24.0
v0.25.0
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
- name: Run Tests
run: |
export PATH=$HOME/.deno/bin:$PATH
deno -A test
deno test -A
5 changes: 4 additions & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Bump

on:
push:
branches:
- ci-test
schedule:
- cron: 0 13 * * *
jobs:
Expand All @@ -13,7 +16,7 @@ jobs:
- 6379:6379
steps:
- uses: actions/checkout@v1
- uses: keroxp/dink-bot@v0.3.0
- uses: keroxp/dink-bot@v0.3.3
with:
github-repository: ${{ github.repository }}
github-token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions modules-lock.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"https://deno.land/std": {
"version": "@v0.24.0",
"version": "@v0.25.0",
"modules": [
"/util/async.ts",
"/testing/mod.ts",
Expand All @@ -9,4 +9,4 @@
"/fmt/colors.ts"
]
}
}
}
2 changes: 1 addition & 1 deletion modules.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"https://deno.land/std": {
"version": "@v0.24.0",
"version": "@v0.25.0",
"modules": [
"/util/async.ts",
"/testing/mod.ts",
Expand Down
16 changes: 14 additions & 2 deletions redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,18 @@ export type RedisConnectOptions = {
db?: number;
};

function prasePortLike(port: string | number | undefined): number {
if (typeof port === "string") {
return parseInt(port);
} else if (typeof port === "number") {
return port;
} else if (port === undefined) {
return 6379;
} else {
throw new Error("port is invalid: typeof=" + typeof port);
}
}

/**
* Connect to Redis server
* @param opts redis server's url http/https url with port number
Expand All @@ -1562,11 +1574,11 @@ export async function connect({
hostname,
port,
tls,
db,
db
}: RedisConnectOptions): Promise<Redis> {
const dialOpts: DialOptions = {
hostname,
port: typeof port === "string" ? parseInt(port) : port ?? 6379
port: prasePortLike(port)
};
if (!Number.isSafeInteger(dialOpts.port)) {
throw new Error("deno-redis: opts.port is invalid");
Expand Down
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/fmt/colors.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@v0.24.0/fmt/colors.ts";
export * from "https://deno.land/std@v0.25.0/fmt/colors.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/io/bufio.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@v0.24.0/io/bufio.ts";
export * from "https://deno.land/std@v0.25.0/io/bufio.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/testing/asserts.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@v0.24.0/testing/asserts.ts";
export * from "https://deno.land/std@v0.25.0/testing/asserts.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/testing/mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@v0.24.0/testing/mod.ts";
export * from "https://deno.land/std@v0.25.0/testing/mod.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/util/async.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@v0.24.0/util/async.ts";
export * from "https://deno.land/std@v0.25.0/util/async.ts";

0 comments on commit 87c0cca

Please sign in to comment.