Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/query-string

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/query-string - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

55

query-string/index.d.ts

@@ -7,34 +7,31 @@ // Type definitions for query-string 4.3

declare module "query-string" {
export interface ParseOptions {
arrayFormat?: 'bracket' | 'index' | 'none';
}
interface ParseOptions {
arrayFormat?: 'bracket' | 'index' | 'none';
}
/**
* Parse a query string into an object.
* Leading ? or # are ignored, so you can pass location.search or location.hash directly.
* @param str
*/
export function parse(str: string, options?: ParseOptions): any;
/**
* Parse a query string into an object.
* Leading ? or # are ignored, so you can pass location.search or location.hash directly.
* @param str
*/
export function parse(str: string, options?: ParseOptions): any;
export interface StringifyOptions {
strict?: boolean;
encode?: boolean;
arrayFormat?: 'bracket' | 'index' | 'none';
}
interface StringifyOptions {
strict?: boolean;
encode?: boolean;
arrayFormat?: 'bracket' | 'index' | 'none';
}
/**
* Stringify an object into a query string, sorting the keys.
*
* @param obj
*/
export function stringify(obj: object, options?: StringifyOptions): string;
/**
* Stringify an object into a query string, sorting the keys.
*
* @param obj
*/
export function stringify(obj: object, options?: StringifyOptions): string;
/**
* Extract a query string from a URL that can be passed into .parse().
*
* @param str
*/
export function extract(str: string): string;
}
/**
* Extract a query string from a URL that can be passed into .parse().
*
* @param str
*/
export function extract(str: string): string;
{
"name": "@types/query-string",
"version": "4.3.0",
"version": "4.3.1",
"description": "TypeScript definitions for query-string",

@@ -24,4 +24,4 @@ "license": "MIT",

"peerDependencies": {},
"typesPublisherContentHash": "4c13d6714ac2e7024513337c80486d15b36e3276bcb6d95f4a2865f52732e793",
"typesPublisherContentHash": "d3db1a644c0495b74ef36629c4a6ef675b57a946d2bb34573f5dfa66fb6c17c6",
"typeScriptVersion": "2.2"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/query-string
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/query-string
Additional Details
* Last updated: Wed, 22 Mar 2017 18:19:15 GMT
* Last updated: Fri, 31 Mar 2017 18:05:15 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc