@builder.io/mitosis 0.2.4 → 0.2.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.
|
@@ -82,7 +82,11 @@ var checkIsObjectWithCodeBlock = function (obj) {
|
|
|
82
82
|
return typeof obj == 'object' && (obj === null || obj === void 0 ? void 0 : obj.code) && typeof obj.code === 'string';
|
|
83
83
|
};
|
|
84
84
|
function getLexicalScopeVars(component) {
|
|
85
|
-
|
|
85
|
+
var newLocal = __spreadArray(__spreadArray(__spreadArray([
|
|
86
|
+
'props',
|
|
87
|
+
'state'
|
|
88
|
+
], Object.keys(component.state).filter(function (k) { return component.state[k].type === 'getter'; }), true), Object.keys(component.refs), true), Object.keys(component.context.get), true);
|
|
89
|
+
return newLocal;
|
|
86
90
|
}
|
|
87
91
|
exports.getLexicalScopeVars = getLexicalScopeVars;
|
|
88
92
|
function rewriteCodeExpr(component, methodMap, lexicalArgs, replace) {
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"name": "Builder.io",
|
|
23
23
|
"url": "https://www.builder.io"
|
|
24
24
|
},
|
|
25
|
-
"version": "0.2.
|
|
25
|
+
"version": "0.2.5",
|
|
26
26
|
"homepage": "https://github.com/BuilderIO/mitosis",
|
|
27
27
|
"main": "./dist/src/index.js",
|
|
28
28
|
"exports": {
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"remove-stableVersion": "./scripts/remove-stableVersion.sh",
|
|
50
50
|
"release:dev": "yarn build && yarn run remove-stableVersion && yarn version prerelease && yarn npm publish --tag dev",
|
|
51
51
|
"release:patch": "yarn build && yarn run remove-stableVersion && yarn version patch && yarn npm publish",
|
|
52
|
-
"mitosis-save-artifacts": "node -r esbuild-register ../../scripts/mitosis-save-artifacts.ts",
|
|
53
52
|
"start": "yarn rmrf && concurrently --kill-others \"yarn tsc --watch\" \"yarn tsc-alias --watch\"",
|
|
54
53
|
"script": "ts-node -O '{\"module\": \"commonjs\"}'"
|
|
55
54
|
},
|