@barefootjs/test 0.21.0 → 0.21.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/dist/index.js +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -195298,6 +195298,12 @@ function getAttributeValue(attr, ctx) {
|
|
|
195298
195298
|
return AttrValueOf.template(parts);
|
|
195299
195299
|
}
|
|
195300
195300
|
}
|
|
195301
|
+
if (import_typescript11.default.isElementAccessExpression(expr) && !import_typescript11.default.isStringLiteralLike(expr.argumentExpression) && !import_typescript11.default.isNumericLiteral(expr.argumentExpression)) {
|
|
195302
|
+
const parts = tryResolveTemplateSpanFromConst(expr, ctx);
|
|
195303
|
+
if (parts) {
|
|
195304
|
+
return AttrValueOf.template(parts);
|
|
195305
|
+
}
|
|
195306
|
+
}
|
|
195301
195307
|
if (import_typescript11.default.isIdentifier(expr)) {
|
|
195302
195308
|
const resolved = tryResolveIdentifierAsTemplateLiteral(expr, ctx);
|
|
195303
195309
|
if (resolved) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@barefootjs/test",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.2",
|
|
4
4
|
"description": "Test utilities for BarefootJS - IR-based component testing without a browser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"directory": "packages/test"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@barefootjs/jsx": "0.21.
|
|
42
|
+
"@barefootjs/jsx": "0.21.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"typescript": "^5.0.0"
|