Upgrades Meriah to v5 to support import-attributes.
Replaces assert keword of old import-assertions with
"with" keyword of import-attributes before parsing
code with Meriah because Meriah does not support
import-assertions.
Replaces Astring library with the forked version
modifed to support import-attributes.
Adds a test which passes with the fix and fails with
"Unexpected token: 'identifier'" error message which
is encountered while running CyberChef project tests
with appmap-node.
The cause of the problem was the following example syntax in CyberChef project:
import OperationConfig from "./config/OperationConfig.json" assert {type: "json"};
This is called "import assertions." Later it was replaced with "import attributes" proposal and the syntax was changed a bit. Using the new syntax (import attributes), it would be written as:
import OperationConfig from "./config/OperationConfig.json" with {type: "json"};
The cause of the problem was the following example syntax in CyberChef project:
import OperationConfig from "./config/OperationConfig.json" assert {type: "json"};
This is called "import assertions." Later it was replaced with "import attributes" proposal and the syntax was changed a bit. Using the new syntax (import attributes), it would be written as:
import OperationConfig from "./config/OperationConfig.json" with {type: "json"};
Resolves #157