@ray-js/build-plugin-router 1.6.0-beta.9 → 1.6.1
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/index.js +3 -2
- package/lib/theme.d.ts +1 -1
- package/package.json +7 -7
package/lib/index.js
CHANGED
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
exports.default = PluginRouter;
|
17
18
|
const chokidar_1 = __importDefault(require("chokidar"));
|
18
19
|
const colors_1 = __importDefault(require("colors"));
|
19
20
|
const path_1 = __importDefault(require("path"));
|
@@ -67,6 +68,7 @@ function duplicates(arr, fn, key) {
|
|
67
68
|
return key ? res : b;
|
68
69
|
}
|
69
70
|
const standardAppConfigFieldMap = [
|
71
|
+
'custom',
|
70
72
|
['textColor', 'color'],
|
71
73
|
'borderStyle',
|
72
74
|
'selectedColor',
|
@@ -158,7 +160,7 @@ function normalizeTabBarConfig(config, routes, fields) {
|
|
158
160
|
}
|
159
161
|
cfg = fields.reduce((o, next) => {
|
160
162
|
const [src, t] = typeof next === 'string' ? [next] : next;
|
161
|
-
if (rest
|
163
|
+
if (src in rest) {
|
162
164
|
o[t || src] = rest[src];
|
163
165
|
}
|
164
166
|
return o;
|
@@ -339,4 +341,3 @@ function PluginRouter(api) {
|
|
339
341
|
}
|
340
342
|
return plugin;
|
341
343
|
}
|
342
|
-
exports.default = PluginRouter;
|
package/lib/theme.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/build-plugin-router",
|
3
|
-
"version": "1.6.
|
3
|
+
"version": "1.6.1",
|
4
4
|
"description": "Ray build plugin for router",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -24,20 +24,20 @@
|
|
24
24
|
"watch": "tsc -p ./tsconfig.build.json --watch"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@ray-js/shared": "
|
27
|
+
"@ray-js/shared": "1.6.1",
|
28
28
|
"chokidar": "^3.6.0",
|
29
29
|
"colors": "1.4.0",
|
30
30
|
"ejs": "^3.1.10",
|
31
31
|
"fs-extra": "^10.1.0",
|
32
|
-
"path-to-regexp": "^6.
|
33
|
-
"url": "^0.11.
|
32
|
+
"path-to-regexp": "^6.3.0",
|
33
|
+
"url": "^0.11.4"
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
|
-
"@ray-js/types": "
|
36
|
+
"@ray-js/types": "1.6.1"
|
37
37
|
},
|
38
38
|
"publishConfig": {
|
39
39
|
"access": "public",
|
40
|
-
"registry": "https://registry.npmjs.
|
40
|
+
"registry": "https://registry.npmjs.com"
|
41
41
|
},
|
42
|
-
"gitHead": "
|
42
|
+
"gitHead": "cb6ffc5dc0ace4c698bf12ab2102420550964a7d"
|
43
43
|
}
|