New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/json-query

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/json-query - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

18

json-query/index.d.ts

@@ -41,11 +41,11 @@ // Type definitions for json-query 2.2

interface Options {
data?: Context;
rootContext?: Context;
source?: Context;
context?: Context;
parent?: Context;
locals?: Locals;
globals?: boolean;
force?: boolean;
allowRegexp?: boolean;
data?: Context | undefined;
rootContext?: Context | undefined;
source?: Context | undefined;
context?: Context | undefined;
parent?: Context | undefined;
locals?: Locals | undefined;
globals?: boolean | undefined;
force?: boolean | undefined;
allowRegexp?: boolean | undefined;
}

@@ -52,0 +52,0 @@

{
"name": "@types/json-query",
"version": "2.2.0",
"version": "2.2.1",
"description": "TypeScript definitions for json-query",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-query",
"license": "MIT",

@@ -14,10 +15,12 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/json-query"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "c9acb01fd605fd22afb0563c80423845dfb4b9b189b048d6e401095d18f83c85",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "4f904265a996d70656638653684d8138a6d2a77cd6de76d4e46a8d530debad78",
"typeScriptVersion": "3.6"
}

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

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-query
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-query.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-query/index.d.ts)
````ts
// Type definitions for json-query 2.2
// Project: http://github.com/mmckegg/json-query#readme
// Definitions by: Matt Traynham <https://github.com/mtraynham>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Tue, 07 Nov 2017 08:43:00 GMT
export = JsonQuery;
declare function JsonQuery(
selector: JsonQuery.Selector | JsonQuery.SelectorWithQueryParams,
options: JsonQuery.Options
): JsonQuery.Result;
declare namespace JsonQuery {
type Selector = string;
type QueryParam = any;
// No way to support [Selector, ...QueryParam[]]?
// 10 params should be more than enough, hopefully.
type SelectorWithQueryParams =
[Selector, QueryParam]
| [Selector, QueryParam]
| [Selector, QueryParam]
| [Selector, QueryParam, QueryParam]
| [Selector, QueryParam, QueryParam, QueryParam]
| [Selector, QueryParam, QueryParam, QueryParam, QueryParam]
| [Selector, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam]
| [Selector, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam]
| [Selector, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam]
| [Selector, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam]
| [Selector, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam]
| [Selector, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam, QueryParam];
type Context = any;
type Filter = (input: Context, ...args: any[]) => Context;
interface Locals {
[filterName: string]: Filter;
}
interface Options {
data?: Context | undefined;
rootContext?: Context | undefined;
source?: Context | undefined;
context?: Context | undefined;
parent?: Context | undefined;
locals?: Locals | undefined;
globals?: boolean | undefined;
force?: boolean | undefined;
allowRegexp?: boolean | undefined;
}
interface Result {
value: any;
key: string;
references: any[];
parents: string[];
}
}
````
### Additional Details
* Last updated: Thu, 08 Jul 2021 16:22:51 GMT
* Dependencies: none

@@ -17,2 +79,2 @@ * Global values: none

# Credits
These definitions were written by Matt Traynham <https://github.com/mtraynham>.
These definitions were written by [Matt Traynham](https://github.com/mtraynham).

Sorry, the diff of this file is not supported yet

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