[8.x] Update dependency peggy to v4 (main) (#212280) (#215388)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Update dependency peggy to v4 (main)
(#212280)](https://github.com/elastic/kibana/pull/212280)

---------

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
This commit is contained in:
Lukas Olson 2025-03-31 15:10:27 -07:00 committed by GitHub
parent 5b07825d6c
commit bc08bd7a44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -1838,7 +1838,7 @@
"oboe": "^2.1.4",
"openapi-types": "^12.1.3",
"p-reflect": "2.1.0",
"peggy": "^1.2.0",
"peggy": "^4.2.0",
"picomatch": "^2.3.1",
"pirates": "^4.0.1",
"piscina": "^3.2.0",

View file

@ -253,8 +253,8 @@ describe('math(resp, panel, series)', () => {
series
)(await mathAgg(resp, panel, series)((results) => results))([]);
} catch (e) {
expect(e.message).toEqual(
'Failed to parse expression. Expected "*", "+", "-", "/", "<", "=", ">", end of input, or whitespace but "(" found.'
expect(e.message).toMatchInlineSnapshot(
`"Failed to parse expression. Expected \\"*\\", \\"+\\", \\"-\\", \\"/\\", \\"<\\", \\"=\\", \\">\\", end of input, or whitespace but \\"(\\" found."`
);
}
});