@ray-js/build-plugin-router 1.5.23 → 1.5.25

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +4 -4
package/lib/index.js CHANGED
@@ -67,6 +67,7 @@ function duplicates(arr, fn, key) {
67
67
  return key ? res : b;
68
68
  }
69
69
  const standardAppConfigFieldMap = [
70
+ 'custom',
70
71
  ['textColor', 'color'],
71
72
  'borderStyle',
72
73
  'selectedColor',
@@ -158,7 +159,7 @@ function normalizeTabBarConfig(config, routes, fields) {
158
159
  }
159
160
  cfg = fields.reduce((o, next) => {
160
161
  const [src, t] = typeof next === 'string' ? [next] : next;
161
- if (rest[src]) {
162
+ if (src in rest) {
162
163
  o[t || src] = rest[src];
163
164
  }
164
165
  return o;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/build-plugin-router",
3
- "version": "1.5.23",
3
+ "version": "1.5.25",
4
4
  "description": "Ray build plugin for router",
5
5
  "keywords": [
6
6
  "ray"
@@ -24,7 +24,7 @@
24
24
  "watch": "tsc -p ./tsconfig.build.json --watch"
25
25
  },
26
26
  "dependencies": {
27
- "@ray-js/shared": "1.5.23",
27
+ "@ray-js/shared": "1.5.25",
28
28
  "chokidar": "^3.6.0",
29
29
  "colors": "1.4.0",
30
30
  "ejs": "^3.1.10",
@@ -33,11 +33,11 @@
33
33
  "url": "^0.11.3"
34
34
  },
35
35
  "devDependencies": {
36
- "@ray-js/types": "1.5.23"
36
+ "@ray-js/types": "1.5.25"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public",
40
40
  "registry": "https://registry.npmjs.com"
41
41
  },
42
- "gitHead": "9d5dd605f3a63ab0581861597f861756a444a391"
42
+ "gitHead": "58144ea1f2a375876e4d5c3a561011862723bd15"
43
43
  }