@d-fischer/qs
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -14,49 +14,47 @@ // Type definitions for @d-fischer/qs | ||
declare module '@d-fischer/qs' { | ||
export = QueryString; | ||
export = QueryString; | ||
namespace QueryString { | ||
type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string; | ||
type defaultDecoder = (str: string, decoder?: any, charset?: string) => string; | ||
declare namespace QueryString { | ||
type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string; | ||
type defaultDecoder = (str: string, decoder?: any, charset?: string) => string; | ||
interface IStringifyOptions { | ||
delimiter?: string; | ||
strictNullHandling?: boolean; | ||
skipNulls?: boolean; | ||
encode?: boolean; | ||
encoder?: (str: any, defaultEncoder: defaultEncoder, charset: string, type: 'key' | 'value') => string; | ||
filter?: Array<string | number> | ((prefix: string, value: any) => any); | ||
arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma'; | ||
indices?: boolean; | ||
sort?: (a: any, b: any) => number; | ||
serializeDate?: (d: Date) => string; | ||
format?: 'RFC1738' | 'RFC3986'; | ||
encodeValuesOnly?: boolean; | ||
addQueryPrefix?: boolean; | ||
allowDots?: boolean; | ||
charset?: 'utf-8' | 'iso-8859-1'; | ||
charsetSentinel?: boolean; | ||
} | ||
interface IStringifyOptions { | ||
delimiter?: string; | ||
strictNullHandling?: boolean; | ||
skipNulls?: boolean; | ||
encode?: boolean; | ||
encoder?: (str: any, defaultEncoder: defaultEncoder, charset: string, type: 'key' | 'value') => string; | ||
filter?: Array<string | number> | ((prefix: string, value: any) => any); | ||
arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma'; | ||
indices?: boolean; | ||
sort?: (a: any, b: any) => number; | ||
serializeDate?: (d: Date) => string; | ||
format?: 'RFC1738' | 'RFC3986'; | ||
encodeValuesOnly?: boolean; | ||
addQueryPrefix?: boolean; | ||
allowDots?: boolean; | ||
charset?: 'utf-8' | 'iso-8859-1'; | ||
charsetSentinel?: boolean; | ||
} | ||
interface IParseOptions { | ||
comma?: boolean; | ||
delimiter?: string | RegExp; | ||
depth?: number | false; | ||
decoder?: (str: string, defaultDecoder: defaultDecoder, charset: string, type: 'key' | 'value') => any; | ||
arrayLimit?: number; | ||
parseArrays?: boolean; | ||
allowDots?: boolean; | ||
plainObjects?: boolean; | ||
allowPrototypes?: boolean; | ||
parameterLimit?: number; | ||
strictNullHandling?: boolean; | ||
ignoreQueryPrefix?: boolean; | ||
charset?: 'utf-8' | 'iso-8859-1'; | ||
charsetSentinel?: boolean; | ||
interpretNumericEntities?: boolean; | ||
} | ||
interface IParseOptions { | ||
comma?: boolean; | ||
delimiter?: string | RegExp; | ||
depth?: number | false; | ||
decoder?: (str: string, defaultDecoder: defaultDecoder, charset: string, type: 'key' | 'value') => any; | ||
arrayLimit?: number; | ||
parseArrays?: boolean; | ||
allowDots?: boolean; | ||
plainObjects?: boolean; | ||
allowPrototypes?: boolean; | ||
parameterLimit?: number; | ||
strictNullHandling?: boolean; | ||
ignoreQueryPrefix?: boolean; | ||
charset?: 'utf-8' | 'iso-8859-1'; | ||
charsetSentinel?: boolean; | ||
interpretNumericEntities?: boolean; | ||
} | ||
function stringify(obj: any, options?: IStringifyOptions): string; | ||
function parse(str: string, options?: IParseOptions): any; | ||
} | ||
function stringify(obj: any, options?: IStringifyOptions): string; | ||
function parse(str: string, options?: IParseOptions): any; | ||
} |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/d-fischer/qs", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164524
2861