Skip to content

Commit cbdfd06

Browse files
authored
Remove vendored jsonpath-plus (#6021)
The current support range allows to use the library directly again.
1 parent 1137f40 commit cbdfd06

File tree

6 files changed

+30
-2124
lines changed

6 files changed

+30
-2124
lines changed

LICENSE-3rdparty.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ require,ignore,MIT,Copyright 2013 Kael Zhang and contributors
1515
require,import-in-the-middle,Apache license 2.0,Copyright 2021 Datadog Inc.
1616
require,istanbul-lib-coverage,BSD-3-Clause,Copyright 2012-2015 Yahoo! Inc.
1717
require,jest-docblock,MIT,Copyright Meta Platforms, Inc. and affiliates.
18+
require,jsonpath-plus,MIT,Copyright (c) 2011-2019 Stefan Goessner, Subbu Allamaraju, Mike Brevoort, Robert Krahn, Brett Zamir, Richard Schneider
1819
require,koalas,MIT,Copyright 2013-2017 Brian Woodward
1920
require,limiter,MIT,Copyright 2011 John Hurliman
2021
require,lodash.sortby,MIT,Copyright JS Foundation and other contributors

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export default [
5454
'integration-tests/debugger/target-app/source-map-support/typescript.js', // Generated
5555
'integration-tests/esbuild/out.js', // Generated
5656
'integration-tests/esbuild/aws-sdk-out.js', // Generated
57-
'packages/dd-trace/src/payload-tagging/jsonpath-plus.js', // Vendored
5857
'packages/dd-trace/src/guardrails/**/*' // Guardrails contain very old JS
5958
]
6059
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
"import-in-the-middle": "^1.14.2",
102102
"istanbul-lib-coverage": "^3.2.2",
103103
"jest-docblock": "^29.7.0",
104+
"jsonpath-plus": "^10.3.0",
104105
"koalas": "^1.0.2",
105106
"limiter": "^1.1.5",
106107
"lodash.sortby": "^4.7.0",

packages/dd-trace/src/payload-tagging/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const {
55
PAYLOAD_TAG_RESPONSE_PREFIX
66
} = require('../constants')
77

8-
const jsonpath = require('./jsonpath-plus.js').JSONPath
8+
const jsonpath = require('jsonpath-plus').JSONPath
99

1010
const { tagsFromObject } = require('./tagging')
1111

0 commit comments

Comments
 (0)