diff --git a/package.json b/package.json index 016602660d75f..1569d999f81b3 100644 --- a/package.json +++ b/package.json @@ -1816,7 +1816,7 @@ "oboe": "^2.1.7", "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", diff --git a/src/platform/plugins/shared/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js b/src/platform/plugins/shared/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js index a74665d54d7eb..efb7240d82d69 100644 --- a/src/platform/plugins/shared/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js +++ b/src/platform/plugins/shared/vis_types/timeseries/server/lib/vis_data/response_processors/series/math.test.js @@ -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."` ); } }); diff --git a/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap index 6c938d237608f..7cd63b7383b2e 100644 --- a/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap +++ b/x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/workspace_panel/__snapshots__/workspace_panel.test.tsx.snap @@ -20,7 +20,7 @@ Array [ />
- Error: Unable to parse expression: Expected "/*", "//", [ ,\\t,\\r,\\n], or function but "|" found. + Error: Unable to parse expression: Expected "/*", "//", [ \\t\\r\\n], or function but "|" found.
, "severity": "error", diff --git a/yarn.lock b/yarn.lock index 46b74488b200f..9a8e5cfbf9e16 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9219,6 +9219,13 @@ node-addon-api "^3.2.1" node-gyp-build "^4.3.0" +"@peggyjs/from-mem@1.3.5": + version "1.3.5" + resolved "https://registry.yarnpkg.com/@peggyjs/from-mem/-/from-mem-1.3.5.tgz#d6294c588517728f73cc6c091706e147f8824be0" + integrity sha512-oRyzXE7nirAn+5yYjCdWQHg3EG2XXcYRoYNOK8Quqnmm+9FyK/2YWVunwudlYl++M3xY+gIAdf0vAYS+p0nKfQ== + dependencies: + semver "7.6.3" + "@pkgjs/parseargs@^0.11.0": version "0.11.0" resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" @@ -26957,10 +26964,14 @@ pdfmake@^0.2.15: iconv-lite "^0.6.3" xmldoc "^1.3.0" -peggy@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/peggy/-/peggy-1.2.0.tgz#657ba45900cbef1dc9f52356704bdbb193c2021c" - integrity sha512-PQ+NKpAobImfMprYQtc4Egmyi29bidRGEX0kKjCU5uuW09s0Cthwqhfy7mLkwcB4VcgacE5L/ZjruD/kOPCUUw== +peggy@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/peggy/-/peggy-4.2.0.tgz#9ce13fef2710357e881b57c41d426dbe90e9a001" + integrity sha512-ZjzyJYY8NqW8JOZr2PbS/J0UH/hnfGALxSDsBUVQg5Y/I+ZaPuGeBJ7EclUX2RvWjhlsi4pnuL1C/K/3u+cDeg== + dependencies: + "@peggyjs/from-mem" "1.3.5" + commander "^12.1.0" + source-map-generator "0.8.0" pend@~1.2.0: version "1.2.0" @@ -30080,6 +30091,11 @@ semver@7.5.4: dependencies: lru-cache "^6.0.0" +semver@7.6.3: + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + semver@^6.0.0, semver@^6.1.0, semver@^6.1.2, semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" @@ -30661,6 +30677,11 @@ source-list-map@^2.0.0: resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== +source-map-generator@0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/source-map-generator/-/source-map-generator-0.8.0.tgz#10d5ca0651e2c9302ea338739cbd4408849c5d00" + integrity sha512-psgxdGMwl5MZM9S3FWee4EgsEaIjahYV5AzGnwUvPhWeITz/j6rKpysQHlQ4USdxvINlb8lKfWGIXwfkrgtqkA== + source-map-js@^1.0.2, source-map-js@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46"