@ray-js/build-plugin-router 1.6.0-beta.9 → 1.6.0

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 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[src]) {
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
@@ -1,6 +1,6 @@
1
1
  declare const _default: (handle: any) => {
2
2
  configWebpack({ config }: {
3
- config;
3
+ config: any;
4
4
  }): void;
5
5
  };
6
6
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/build-plugin-router",
3
- "version": "1.6.0-beta.9",
3
+ "version": "1.6.0",
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": "^1.6.0-beta.9",
27
+ "@ray-js/shared": "1.6.0",
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.2.2",
33
- "url": "^0.11.3"
32
+ "path-to-regexp": "^6.3.0",
33
+ "url": "^0.11.4"
34
34
  },
35
35
  "devDependencies": {
36
- "@ray-js/types": "^1.6.0-beta.9"
36
+ "@ray-js/types": "1.6.0"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public",
40
- "registry": "https://registry.npmjs.org"
40
+ "registry": "https://registry.npmjs.com"
41
41
  },
42
- "gitHead": "a63a269523887feb9d8dbdd42f6e3669e3aa3fc5"
42
+ "gitHead": "b5b10947abcec036f88b73320491fb4e0a4cbe52"
43
43
  }