Skip to content

Commit 6155e2a

Browse files
authored
chore: update Deno 1.4.0 (#4)
1 parent c841869 commit 6155e2a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ on:
88

99
jobs:
1010
build:
11-
name: build-${{ matrix.deno-version }}-${{ matrix.unstable && 'unstable' || 'stable' }}
11+
name: build-${{ matrix.deno-version == 'nightly' && 'nightly' || 'release' }}-${{ matrix.unstable && 'unstable' || 'stable' }}-${{ matrix.no-check && 'nocheck' || 'tsc' }}
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
deno-version: [v1.3.3, nightly]
15+
deno-version: [v1.4.0, nightly]
1616
unstable: [false, true]
17+
no-check: [false, true]
1718
steps:
1819
- name: Setup Deno environment
1920
uses: denolib/setup-deno@v2.2.0
@@ -29,4 +30,4 @@ jobs:
2930
run: deno lint --unstable
3031

3132
- name: Test
32-
run: deno test --allow-env ${{ matrix.unstable && '--unstable' || '' }}
33+
run: deno test --allow-env${{ matrix.unstable && ' --unstable' || '' }}${{ matrix.no-check && ' --no-check' || '' }}

deps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export { hmac } from "https://denopkg.com/chiefbiiko/hmac@v1.0.2/mod.ts";
22

3-
import { createHash } from "https://deno.land/std@0.68.0/hash/mod.ts";
3+
import { createHash } from "https://deno.land/std@0.69.0/hash/mod.ts";
44
export function sha256Hex(data: string | Uint8Array): string {
55
const hasher = createHash("sha256");
66
hasher.update(data);

mod.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class AWSSignerV4 {
118118

119119
headers.set("Authorization", authHeader);
120120

121-
const req = new Request(
121+
return new Request(
122122
request.url,
123123
{
124124
headers,
@@ -135,7 +135,6 @@ export class AWSSignerV4 {
135135
signal: request.signal,
136136
},
137137
);
138-
return req;
139138
}
140139

141140
#getDefaultCredentials = (): Credentials => {

mod_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { AWSSignerV4 } from "./mod.ts";
22
import {
33
assertEquals,
44
assertStringContains,
5-
} from "https://deno.land/std@0.68.0/testing/asserts.ts";
5+
} from "https://deno.land/std@0.69.0/testing/asserts.ts";
66

77
Deno.test("construct from env vars", async () => {
88
Deno.env.set("AWS_ACCESS_KEY_ID", "examplekey");

0 commit comments

Comments
 (0)