File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
import * as qs from 'qs' ;
2
2
import {
3
- RequestData ,
4
- UrlInterpolator ,
3
+ MultipartRequestData ,
5
4
RequestArgs ,
6
- StripeResourceObject ,
5
+ RequestData ,
7
6
RequestHeaders ,
8
- MultipartRequestData ,
7
+ StripeResourceObject ,
8
+ UrlInterpolator ,
9
9
} from './Types.js' ;
10
10
11
11
const OPTIONS_KEYS = [
@@ -310,10 +310,7 @@ export function flattenAndStringify(
310
310
const result : Record < string , string | Uint8Array > = { } ;
311
311
312
312
const step = ( obj : MultipartRequestData , prevKey : string | null ) : void => {
313
- Object . keys ( obj ) . forEach ( ( key ) => {
314
- // @ts -ignore
315
- const value = obj [ key ] ;
316
-
313
+ Object . entries ( obj ) . forEach ( ( [ key , value ] ) => {
317
314
const newKey = prevKey ? `${ prevKey } [${ key } ]` : key ;
318
315
319
316
if ( isObject ( value ) ) {
You can’t perform that action at this time.
0 commit comments