ebay-api 9.5.1 → 9.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { X2jOptions, XMLBuilder, XmlBuilderOptions } from 'fast-xml-parser';
1
+ import { MatcherView, X2jOptions, XMLBuilder, XmlBuilderOptions } from 'fast-xml-parser';
2
2
  import { IEBayApiRequest } from '../../request.js';
3
3
  import { ApiRequestConfig, Headers } from '../../types/index.js';
4
4
  import { Fields } from './fields.js';
@@ -29,7 +29,7 @@ export declare const defaultXML2JSONParseOptions: {
29
29
  maxExpandedLength: number;
30
30
  maxEntityCount: number;
31
31
  };
32
- isArray: (name: string, jpath: string) => boolean;
32
+ isArray: (name: string, jpath: string | MatcherView) => boolean;
33
33
  };
34
34
  export type BodyHeaders = {
35
35
  body: any;
@@ -36,7 +36,7 @@ exports.defaultXML2JSONParseOptions = {
36
36
  maxEntityCount: 100
37
37
  },
38
38
  isArray: (name, jpath) => {
39
- return /Array$/.test(jpath.slice(0, -name.length - 1));
39
+ return typeof jpath === 'string' && /Array$/.test(jpath.slice(0, -name.length - 1));
40
40
  }
41
41
  };
42
42
  exports.defaultApiConfig = {