Comparing version 4.1.1 to 4.1.2
import type { ParsedJson } from './parse.js'; | ||
import { LocationOptionsPath } from './path.js'; | ||
import { Position } from './position.js'; | ||
export declare type LocationOptions = LocationOptionsPath & { | ||
export type LocationOptions = LocationOptionsPath & { | ||
markIdentifier?: boolean; | ||
@@ -6,0 +6,0 @@ }; |
@@ -1,3 +0,3 @@ | ||
export declare type LocationPath = Array<number | string>; | ||
export declare type LocationPathAsPath = { | ||
export type LocationPath = Array<number | string>; | ||
export type LocationPathAsPath = { | ||
path: LocationPath; | ||
@@ -7,3 +7,3 @@ dotPath?: undefined; | ||
}; | ||
export declare type LocationPathAsDotPath = { | ||
export type LocationPathAsDotPath = { | ||
path?: undefined; | ||
@@ -13,3 +13,3 @@ dotPath: string; | ||
}; | ||
export declare type LocationPathAsPointerPath = { | ||
export type LocationPathAsPointerPath = { | ||
path?: undefined; | ||
@@ -19,3 +19,3 @@ dotPath?: undefined; | ||
}; | ||
export declare type LocationOptionsPath = LocationPathAsPath | LocationPathAsDotPath | LocationPathAsPointerPath; | ||
export type LocationOptionsPath = LocationPathAsPath | LocationPathAsDotPath | LocationPathAsPointerPath; | ||
export declare function parsePath(path: LocationOptionsPath): LocationPath; | ||
@@ -22,0 +22,0 @@ export declare function parseJsonPointerPath(path: string): Array<string>; |
{ | ||
"name": "jsonpos", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Get the textual position of a property in a JSON text", | ||
@@ -17,3 +17,3 @@ "author": "Gustaf Räntilä", | ||
"engines": { | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
"node": "^14.13.1 || >=16.0.0" | ||
}, | ||
@@ -40,11 +40,11 @@ "files": [ | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.16.5", | ||
"@babel/preset-typescript": "^7.16.5", | ||
"@types/jest": "^27.0.3", | ||
"cz-conventional-changelog": "^3.1.0", | ||
"jest": "^27.4.5", | ||
"rimraf": "^3.0.1", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@types/jest": "^29.4.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"jest": "^29.4.1", | ||
"rimraf": "^4.1.2", | ||
"ts-jest-resolver": "^2.0.0", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.5.4" | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -58,3 +58,4 @@ "dependencies": { | ||
} | ||
} | ||
}, | ||
"packageManager": "yarn@3.2.4" | ||
} |
@@ -5,3 +5,2 @@ [![npm version][npm-image]][npm-url] | ||
[![coverage status][coverage-image]][coverage-url] | ||
[![Language grade: JavaScript][lgtm-image]][lgtm-url] | ||
@@ -268,8 +267,6 @@ | ||
[downloads-image]: https://img.shields.io/npm/dm/jsonpos.svg | ||
[build-image]: https://img.shields.io/github/workflow/status/grantila/jsonpos/Master.svg | ||
[build-image]: https://img.shields.io/github/actions/workflow/status/grantila/jsonpos/master.yml?branch=master | ||
[build-url]: https://github.com/grantila/jsonpos/actions?query=workflow%3AMaster | ||
[coverage-image]: https://coveralls.io/repos/github/grantila/jsonpos/badge.svg?branch=master | ||
[coverage-url]: https://coveralls.io/github/grantila/jsonpos?branch=master | ||
[lgtm-image]: https://img.shields.io/lgtm/grade/javascript/g/grantila/jsonpos.svg?logo=lgtm&logoWidth=18 | ||
[lgtm-url]: https://lgtm.com/projects/g/grantila/jsonpos/context:javascript | ||
[pure-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c |
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
20347
271