-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replaces jsonpath-plus module #1547
Conversation
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" | ||
integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== | ||
|
||
ansi-regex@^3.0.1, ansi-regex@^6.0.1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was expecting to see jsonpath-plus
removed in this diff but it isn't
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jared:auth-js$ yarn why jsonpath-plus
yarn why v1.22.19
[1/4] 🤔 Why do we have the module "jsonpath-plus"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "jsonpath-plus@6.0.1"
info Reasons this module exists
- "_project_#@okta#samples.express-embedded-sign-in-widget#@okta#okta-signin-widget#@okta#okta-auth-js" depends on it
- Hoisted from "_project_#@okta#samples.express-embedded-sign-in-widget#@okta#okta-signin-widget#@okta#okta-auth-js#jsonpath-plus"
- Hoisted from "_project_#@okta#samples.react-embedded-auth-with-sdk#@okta#okta-signin-widget#@okta#okta-auth-js#jsonpath-plus"
- Hoisted from "_project_#@okta#samples.webpack-spa#@okta#okta-signin-widget#@okta#okta-auth-js#jsonpath-plus"
info Disk size without dependencies: "372KB"
info Disk size with unique dependencies: "372KB"
info Disk size with transitive dependencies: "372KB"
info Number of shared dependencies: 0
✨ Done in 0.56s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We include samples in the repo
lib/util/jsonpath.ts
Outdated
while ((match = jsonpathRegex.exec(path)) !== null) { | ||
const step = match?.groups?.step ?? match?.groups?.index; | ||
if (step) { | ||
steps.push(step); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting is kind of wonky, it's not failing lint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a comment about the indentation/whitespace of the main util file but overall lgtm
jsonpath-plus
in vulnerable to RCE: https://security.snyk.io/vuln/SNYK-JS-JSONPATHPLUS-7945884