Skip to content

Commit 99a757c

Browse files
committed
- Fix: Expose pointer on resultType: "all"
- npm: Bump to 0.18.1
1 parent d06f6ec commit 99a757c

12 files changed

Lines changed: 18 additions & 11 deletions

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# jsonpath-plus changes
22

3+
## 0.18.1 (May 14, 2019)
4+
5+
- Fix: Expose `pointer` on `resultType: "all"`
6+
37
## 0.18.0 (October 20, 2018)
48

59
- Security enhancement: Use global eval instead of regular eval

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Analyse, transform, and selectively extract data from JSON
44
documents (and JavaScript objects).
55

6-
**Note that `jsonpath-plus` is currently suffering from [performance problems](https://github.com/s3u/JSONPath/issues/14)
6+
**Note that `jsonpath-plus` may be suffering from [performance problems](https://github.com/s3u/JSONPath/issues/14)
77
and the maintainers are not currently able to work on resolving.
88
You may wish to use [jsonpath](https://www.npmjs.com/package/jsonpath)
99
to avoid this problem (though noting that it does not include the

dist/index-es.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ JSONPath.prototype._getPreferredOutput = function (ea) {
390390

391391
switch (resultType) {
392392
case 'all':
393+
ea.pointer = JSONPath.toPointer(ea.path);
393394
ea.path = typeof ea.path === 'string' ? ea.path : JSONPath.toPathString(ea.path);
394395
return ea;
395396

dist/index-es.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-es.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-umd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@
396396

397397
switch (resultType) {
398398
case 'all':
399+
ea.pointer = JSONPath.toPointer(ea.path);
399400
ea.path = typeof ea.path === 'string' ? ea.path : JSONPath.toPathString(ea.path);
400401
return ea;
401402

dist/index-umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index-umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "Stefan Goessner",
33
"name": "jsonpath-plus",
4-
"version": "0.18.0",
4+
"version": "0.18.1",
55
"main": "dist/index-umd.js",
66
"module": "dist/index-es.js",
77
"description": "A JS implementation of JSONPath with some additional operators",

0 commit comments

Comments
 (0)