File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 "@google-cloud/promisify" : " ^4.0.0" ,
3737 "arrify" : " ^2.0.1" ,
3838 "duplexify" : " ^4.1.1" ,
39- "ent" : " ^2.2.0" ,
4039 "extend" : " ^3.0.2" ,
4140 "google-auth-library" : " ^9.0.0" ,
41+ "html-entities" : " ^2.5.2" ,
4242 "retry-request" : " ^7.0.0" ,
4343 "teeny-request" : " ^9.0.0"
4444 },
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {
2020 replaceProjectIdToken ,
2121 MissingProjectIdError ,
2222} from '@google-cloud/projectify' ;
23- import * as ent from 'ent ' ;
23+ import * as htmlEntities from 'html-entities ' ;
2424import * as extend from 'extend' ;
2525import { AuthClient , GoogleAuth , GoogleAuthOptions } from 'google-auth-library' ;
2626import { CredentialBody } from 'google-auth-library' ;
@@ -291,7 +291,7 @@ export class ApiError extends Error {
291291 if ( errors && errors . length ) {
292292 errors . forEach ( ( { message} ) => messages . add ( message ! ) ) ;
293293 } else if ( err . response && err . response . body ) {
294- messages . add ( ent . decode ( err . response . body . toString ( ) ) ) ;
294+ messages . add ( htmlEntities . decode ( err . response . body . toString ( ) ) ) ;
295295 } else if ( ! err . message ) {
296296 messages . add ( 'A failure occurred during this request.' ) ;
297297 }
You can’t perform that action at this time.
0 commit comments