File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,8 +72,12 @@ export async function computeHashesFromStream(
7272 }
7373
7474 return {
75- md5 : hashes . includes ( HashType . HASH_TYPE_MD5 ) ? md5 . digest ( 'hex' ) : undefined ,
76- sha1 : hashes . includes ( HashType . HASH_TYPE_SHA1 ) ? sha1 . digest ( 'hex' ) : undefined ,
75+ md5 : hashes . includes ( HashType . HASH_TYPE_MD5 )
76+ ? md5 . digest ( 'hex' )
77+ : undefined ,
78+ sha1 : hashes . includes ( HashType . HASH_TYPE_SHA1 )
79+ ? sha1 . digest ( 'hex' )
80+ : undefined ,
7781 data,
7882 format : imageFormat ,
7983 } ;
Original file line number Diff line number Diff line change @@ -12,16 +12,14 @@ import {
1212 ClassificationOutput ,
1313} from './generated/athena/models.js' ;
1414import * as grpc from '@grpc/grpc-js' ;
15- import {
16- ClassifierServiceClient ,
17- } from './generated/athena/athena.js' ;
15+ import { ClassifierServiceClient } from './generated/athena/athena.js' ;
1816import { EventEmitter } from 'events' ;
19- import { Empty } from './generated/google/protobuf/empty' ;
17+ import { Empty } from './generated/google/protobuf/empty.js ' ;
2018import {
2119 type AuthenticationOptions ,
2220 AuthenticationManager ,
23- } from './authenticationManager' ;
24- import { computeHashesFromStream } from './hashing' ;
21+ } from './authenticationManager.js ' ;
22+ import { computeHashesFromStream } from './hashing.js ' ;
2523import type TypedEventEmitter from 'typed-emitter' ;
2624
2725/**
You can’t perform that action at this time.
0 commit comments