leanweb 2.0.4 → 2.0.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leanweb",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Builds framework agnostic web components.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"leanweb": "leanweb.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"author": "Qian Chen",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@babel/parser": "^7.
|
|
24
|
-
"clean-css": "^5.3.
|
|
25
|
-
"esbuild": "^0.
|
|
23
|
+
"@babel/parser": "^7.21.1",
|
|
24
|
+
"clean-css": "^5.3.2",
|
|
25
|
+
"esbuild": "^0.17.10",
|
|
26
26
|
"fs-extra": "^11.1.0",
|
|
27
27
|
"globby": "^13.1.3",
|
|
28
28
|
"html-minifier": "^4.0.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"live-server": "^1.2.2",
|
|
31
31
|
"node-watch": "^0.7.3",
|
|
32
32
|
"parse5": "^7.1.2",
|
|
33
|
-
"sass": "^1.
|
|
33
|
+
"sass": "^1.58.3",
|
|
34
34
|
"semver": "^7.3.8"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -271,11 +271,8 @@ export default class LWElement extends HTMLElement {
|
|
|
271
271
|
let object;
|
|
272
272
|
let propertyExpr;
|
|
273
273
|
if (astModel.type === 'MemberExpression') {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
// . false and [] true
|
|
277
|
-
propertyExpr = parser.evaluate([astModel.property], context, interpolation.loc)[0];
|
|
278
|
-
}
|
|
274
|
+
// . false and [] true
|
|
275
|
+
propertyExpr = astModel.computed ? parser.evaluate([astModel.property], context, interpolation.loc)[0] : astModel.property.name;
|
|
279
276
|
object = parser.evaluate([astModel.object], context, interpolation.loc)[0];
|
|
280
277
|
} else if (astModel.type === 'Identifier') {
|
|
281
278
|
object = this;
|