@bablr/agast-vm 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/evaluate.js +3 -3
- package/package.json +3 -3
package/lib/evaluate.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
buildNodeOpenTag,
|
|
11
11
|
buildNodeCloseTag,
|
|
12
12
|
} from '@bablr/agast-vm-helpers/internal-builders';
|
|
13
|
-
import {
|
|
13
|
+
import { getEmbeddedExpression } from '@bablr/agast-vm-helpers/deembed';
|
|
14
14
|
import { StreamIterable, getStreamIterator } from '@bablr/agast-helpers/stream';
|
|
15
15
|
import { printExpression } from '@bablr/agast-helpers/print';
|
|
16
16
|
import { getRange, getOpenTag } from '@bablr/agast-helpers/tree';
|
|
@@ -160,7 +160,7 @@ const __evaluate = function* agast(ctx, strategy, options = {}) {
|
|
|
160
160
|
|
|
161
161
|
returnValue = s.advance(
|
|
162
162
|
buildNodeOpenTag(flags, language, type, attributes),
|
|
163
|
-
|
|
163
|
+
getEmbeddedExpression(options),
|
|
164
164
|
);
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
@@ -259,7 +259,7 @@ const __evaluate = function* agast(ctx, strategy, options = {}) {
|
|
|
259
259
|
|
|
260
260
|
case 'write': {
|
|
261
261
|
if (options.emitEffects) {
|
|
262
|
-
yield buildWriteEffect(args[0], args[1]);
|
|
262
|
+
yield buildWriteEffect(args[0], getEmbeddedExpression(args[1]));
|
|
263
263
|
}
|
|
264
264
|
break;
|
|
265
265
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bablr/agast-vm",
|
|
3
3
|
"description": "A VM providing DOM-like guarantees about agAST trees",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.2",
|
|
5
5
|
"author": "Conrad Buck<conartist6@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@bablr/agast-helpers": "0.3.
|
|
16
|
-
"@bablr/agast-vm-helpers": "0.3.
|
|
15
|
+
"@bablr/agast-helpers": "0.3.1",
|
|
16
|
+
"@bablr/agast-vm-helpers": "0.3.2",
|
|
17
17
|
"@bablr/coroutine": "0.1.0",
|
|
18
18
|
"@bablr/weak-stack": "0.1.0",
|
|
19
19
|
"@iter-tools/imm-stack": "1.1.0"
|