Commit 87c0cca 1 parent 2e0e600 commit 87c0cca Copy full SHA for 87c0cca
File tree 11 files changed +28
-13
lines changed
vendor/https/deno.land/std
11 files changed +28
-13
lines changed Original file line number Diff line number Diff line change 1
- v0.24 .0
1
+ v0.25 .0
Original file line number Diff line number Diff line change 20
20
- name : Run Tests
21
21
run : |
22
22
export PATH=$HOME/.deno/bin:$PATH
23
- deno -A test
23
+ deno test -A
Original file line number Diff line number Diff line change 1
1
name : Bump
2
2
3
3
on :
4
+ push :
5
+ branches :
6
+ - ci-test
4
7
schedule :
5
8
- cron : 0 13 * * *
6
9
jobs :
13
16
- 6379:6379
14
17
steps :
15
18
- uses : actions/checkout@v1
16
- -
uses :
keroxp/[email protected] .0
19
+ -
uses :
keroxp/[email protected] .3
17
20
with :
18
21
github-repository : ${{ github.repository }}
19
22
github-token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"https://deno.land/std" : {
3
- "version" : " @v0.24 .0" ,
3
+ "version" : " @v0.25 .0" ,
4
4
"modules" : [
5
5
" /util/async.ts" ,
6
6
" /testing/mod.ts" ,
9
9
" /fmt/colors.ts"
10
10
]
11
11
}
12
- }
12
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"https://deno.land/std" : {
3
- "version" : " @v0.24 .0" ,
3
+ "version" : " @v0.25 .0" ,
4
4
"modules" : [
5
5
" /util/async.ts" ,
6
6
" /testing/mod.ts" ,
Original file line number Diff line number Diff line change @@ -1551,6 +1551,18 @@ export type RedisConnectOptions = {
1551
1551
db ?: number ;
1552
1552
} ;
1553
1553
1554
+ function prasePortLike ( port : string | number | undefined ) : number {
1555
+ if ( typeof port === "string" ) {
1556
+ return parseInt ( port ) ;
1557
+ } else if ( typeof port === "number" ) {
1558
+ return port ;
1559
+ } else if ( port === undefined ) {
1560
+ return 6379 ;
1561
+ } else {
1562
+ throw new Error ( "port is invalid: typeof=" + typeof port ) ;
1563
+ }
1564
+ }
1565
+
1554
1566
/**
1555
1567
* Connect to Redis server
1556
1568
* @param opts redis server's url http/https url with port number
@@ -1562,11 +1574,11 @@ export async function connect({
1562
1574
hostname,
1563
1575
port,
1564
1576
tls,
1565
- db,
1577
+ db
1566
1578
} : RedisConnectOptions ) : Promise < Redis > {
1567
1579
const dialOpts : DialOptions = {
1568
1580
hostname,
1569
- port : typeof port === "string" ? parseInt ( port ) : port ?? 6379
1581
+ port : prasePortLike ( port )
1570
1582
} ;
1571
1583
if ( ! Number . isSafeInteger ( dialOpts . port ) ) {
1572
1584
throw new Error ( "deno-redis: opts.port is invalid" ) ;
Original file line number Diff line number Diff line change 1
- export * from "https://deno.land/std@v0.24 .0/fmt/colors.ts" ;
1
+ export * from "https://deno.land/std@v0.25 .0/fmt/colors.ts" ;
Original file line number Diff line number Diff line change 1
- export * from "https://deno.land/std@v0.24 .0/io/bufio.ts" ;
1
+ export * from "https://deno.land/std@v0.25 .0/io/bufio.ts" ;
Original file line number Diff line number Diff line change 1
- export * from "https://deno.land/std@v0.24 .0/testing/asserts.ts" ;
1
+ export * from "https://deno.land/std@v0.25 .0/testing/asserts.ts" ;
Original file line number Diff line number Diff line change 1
- export * from "https://deno.land/std@v0.24 .0/testing/mod.ts" ;
1
+ export * from "https://deno.land/std@v0.25 .0/testing/mod.ts" ;
Original file line number Diff line number Diff line change 1
- export * from "https://deno.land/std@v0.24 .0/util/async.ts" ;
1
+ export * from "https://deno.land/std@v0.25 .0/util/async.ts" ;
You can’t perform that action at this time.
0 commit comments