File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 88
99jobs :
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
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 ' || '' }}
Original file line number Diff line number Diff line change 11export { 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" ;
44export function sha256Hex ( data : string | Uint8Array ) : string {
55 const hasher = createHash ( "sha256" ) ;
66 hasher . update ( data ) ;
Original file line number Diff line number Diff 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 => {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { AWSSignerV4 } from "./mod.ts";
22import {
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
77Deno . test ( "construct from env vars" , async ( ) => {
88 Deno . env . set ( "AWS_ACCESS_KEY_ID" , "examplekey" ) ;
You can’t perform that action at this time.
0 commit comments