@ptolemy2002/rgx 7.6.0 → 7.7.0
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/dist/walker/base.js +5 -1
- package/dist/walker/part.d.ts +1 -0
- package/package.json +1 -1
package/dist/walker/base.js
CHANGED
|
@@ -138,7 +138,11 @@ class RGXWalker {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
const captureResult = {
|
|
141
|
+
const captureResult = {
|
|
142
|
+
raw, value, start, end, branch,
|
|
143
|
+
ownerId: isPart && token.hasId() ? token.id : null,
|
|
144
|
+
groups: isPart ? capture.groups ?? null : null
|
|
145
|
+
};
|
|
142
146
|
// Validate the part. If validation fails, it will throw an error, so nothing below will run.
|
|
143
147
|
if (isPart) {
|
|
144
148
|
token.validate(captureResult, this);
|
package/dist/walker/part.d.ts
CHANGED