From 352b8eb93ad2b565bbf8faa785a491b8510f4761 Mon Sep 17 00:00:00 2001 From: Sander Verweij Date: Sun, 22 Dec 2024 19:00:32 +0100 Subject: [PATCH] refactor(scxml): replaces 'traverse' with 'neotraverse' (#220) ## Description - replaces traverse with neotraverse ## Motivation and Context Bumping `traverse` to latest yields inexplicable error messages. `neotraverse` - which seems to be actively maintained - doesn't + is ESM only ## How Has This Been Tested? - [x] green ci - [x] working version of the on-line interpreter --- dist/parse/scxml/index.mjs | 2 +- docs/index.html | 2 +- docs/inpage.html | 2 +- docs/smcat-online-interpreter.min.js | 106 ++++++++--------- docs/smcat-online-interpreter.min.js.map | 8 +- docs/state-machine-cat-inpage.min.js | 144 +++++++++++------------ docs/state-machine-cat-inpage.min.js.map | 8 +- package-lock.json | 23 ++-- package.json | 11 +- src/parse/scxml/index.mjs | 2 +- 10 files changed, 148 insertions(+), 160 deletions(-) diff --git a/dist/parse/scxml/index.mjs b/dist/parse/scxml/index.mjs index 3e5a8642..2e105ab6 100644 --- a/dist/parse/scxml/index.mjs +++ b/dist/parse/scxml/index.mjs @@ -1,6 +1,6 @@ import fastxml from "fast-xml-parser"; import he from "he"; -import traverse from "traverse"; +import traverse from "neotraverse"; import utl from "../../transform/utl.mjs"; import parserHelpers from "../parser-helpers.mjs"; import { castArray } from "./utl.mjs"; diff --git a/docs/index.html b/docs/index.html index f79e64d8..0907b68a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -37,7 +37,7 @@ - +