@rsmax/macro 1.0.1 → 1.0.4
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/macro.js +2 -2
- package/package.json +5 -5
package/lib/macro.js
CHANGED
|
@@ -11,7 +11,7 @@ const requirePluginComponent_1 = __importDefault(require("./requirePluginCompone
|
|
|
11
11
|
const requirePlugin_1 = __importDefault(require("./requirePlugin"));
|
|
12
12
|
const usePageEvent_1 = __importDefault(require("./usePageEvent"));
|
|
13
13
|
const useAppEvent_1 = __importDefault(require("./useAppEvent"));
|
|
14
|
-
function
|
|
14
|
+
function rsmax({ references, state }) {
|
|
15
15
|
var _a, _b, _c, _d, _e;
|
|
16
16
|
(_a = references.createHostComponent) === null || _a === void 0 ? void 0 : _a.forEach(path => (0, createHostComponent_1.default)(path, state));
|
|
17
17
|
(_b = references.requirePluginComponent) === null || _b === void 0 ? void 0 : _b.forEach(path => (0, requirePluginComponent_1.default)(path, state));
|
|
@@ -22,4 +22,4 @@ function remax({ references, state }) {
|
|
|
22
22
|
(_d = references.useAppEvent) === null || _d === void 0 ? void 0 : _d.forEach(path => (0, useAppEvent_1.default)(path, state));
|
|
23
23
|
(_e = references.usePageEvent) === null || _e === void 0 ? void 0 : _e.forEach(path => (0, usePageEvent_1.default)(path, state));
|
|
24
24
|
}
|
|
25
|
-
exports.default = (0, babel_plugin_macros_1.createMacro)(
|
|
25
|
+
exports.default = (0, babel_plugin_macros_1.createMacro)(rsmax);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsmax/macro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@babel/core": "^7.4.3",
|
|
25
25
|
"@babel/plugin-transform-modules-commonjs": "^7.4.4",
|
|
26
|
-
"@rsmax/build-store": "1.0.
|
|
27
|
-
"@rsmax/types": "1.0.
|
|
26
|
+
"@rsmax/build-store": "1.0.4",
|
|
27
|
+
"@rsmax/types": "1.0.4",
|
|
28
28
|
"@types/babel-plugin-macros": "^2.6.0",
|
|
29
29
|
"@types/lodash": "^4.14.149",
|
|
30
30
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"react": "^18.3.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@rsmax/shared": "1.0.
|
|
35
|
+
"@rsmax/shared": "1.0.4"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "bd8591134054359ec7038b85b7cafc287223034c"
|
|
41
41
|
}
|