File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 78
78
"abort-controller" : " ^3.0.0" ,
79
79
"async-retry" : " ^1.3.3" ,
80
80
"duplexify" : " ^4.1.3" ,
81
- "ent" : " ^2.2.0" ,
82
81
"fast-xml-parser" : " ^4.3.0" ,
83
82
"gaxios" : " ^6.0.2" ,
84
83
"google-auth-library" : " ^9.6.3" ,
84
+ "html-entities" : " ^2.5.2" ,
85
85
"mime" : " ^3.0.0" ,
86
86
"p-limit" : " ^3.0.1" ,
87
87
"retry-request" : " ^7.0.0" ,
95
95
"@grpc/grpc-js" : " ^1.0.3" ,
96
96
"@grpc/proto-loader" : " ^0.7.0" ,
97
97
"@types/async-retry" : " ^1.4.3" ,
98
- "@types/ent" : " ^2.2.1" ,
99
98
"@types/mime" : " ^3.0.0" ,
100
99
"@types/mocha" : " ^9.1.1" ,
101
100
"@types/mockery" : " ^1.4.29" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import {
22
22
replaceProjectIdToken ,
23
23
MissingProjectIdError ,
24
24
} from '@google-cloud/projectify' ;
25
- import * as ent from 'ent ' ;
25
+ import * as htmlEntities from 'html-entities ' ;
26
26
import { AuthClient , GoogleAuth , GoogleAuthOptions } from 'google-auth-library' ;
27
27
import { CredentialBody } from 'google-auth-library' ;
28
28
import * as r from 'teeny-request' ;
@@ -311,7 +311,7 @@ export class ApiError extends Error {
311
311
if ( errors && errors . length ) {
312
312
errors . forEach ( ( { message} ) => messages . add ( message ! ) ) ;
313
313
} else if ( err . response && err . response . body ) {
314
- messages . add ( ent . decode ( err . response . body . toString ( ) ) ) ;
314
+ messages . add ( htmlEntities . decode ( err . response . body . toString ( ) ) ) ;
315
315
} else if ( ! err . message ) {
316
316
messages . add ( 'A failure occurred during this request.' ) ;
317
317
}
You can’t perform that action at this time.
0 commit comments