@shuvi/platform-shared 1.0.19 → 1.0.20

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.
@@ -84,7 +84,7 @@ exports.getRawRoutesFromDir = getRawRoutesFromDir;
84
84
  const getPageRoutes = (dir, { includes, excludes } = {}) => __awaiter(void 0, void 0, void 0, function* () {
85
85
  let raw;
86
86
  if (typeof dir === 'string') {
87
- raw = yield (0, exports.getRawRoutesFromDir)(dir, { excludes });
87
+ raw = yield (0, exports.getRawRoutesFromDir)(dir, { includes, excludes });
88
88
  }
89
89
  else {
90
90
  raw = dir;
@@ -131,7 +131,7 @@ exports.getPageRoutes = getPageRoutes;
131
131
  const getApiRoutes = (dir, { includes, excludes } = {}) => __awaiter(void 0, void 0, void 0, function* () {
132
132
  let raw;
133
133
  if (typeof dir === 'string') {
134
- raw = yield (0, exports.getRawRoutesFromDir)(dir, { excludes });
134
+ raw = yield (0, exports.getRawRoutesFromDir)(dir, { includes, excludes });
135
135
  }
136
136
  else {
137
137
  raw = dir;
@@ -184,7 +184,7 @@ exports.getApiRoutes = getApiRoutes;
184
184
  const getMiddlewareRoutes = (dir, { includes, excludes } = {}) => __awaiter(void 0, void 0, void 0, function* () {
185
185
  let raw;
186
186
  if (typeof dir === 'string') {
187
- raw = yield (0, exports.getRawRoutesFromDir)(dir, { excludes });
187
+ raw = yield (0, exports.getRawRoutesFromDir)(dir, { includes, excludes });
188
188
  }
189
189
  else {
190
190
  raw = dir;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/platform-shared",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -83,17 +83,17 @@
83
83
  "node": ">= 16.0.0"
84
84
  },
85
85
  "dependencies": {
86
- "@shuvi/hook": "1.0.19",
87
- "doura": "0.0.8",
88
- "@shuvi/router": "1.0.19",
89
- "@shuvi/runtime": "1.0.19",
90
- "@shuvi/shared": "1.0.19",
91
- "@shuvi/toolpack": "1.0.19",
92
- "@shuvi/utils": "1.0.19",
86
+ "@shuvi/hook": "1.0.20",
87
+ "doura": "0.0.9",
88
+ "@shuvi/router": "1.0.20",
89
+ "@shuvi/runtime": "1.0.20",
90
+ "@shuvi/shared": "1.0.20",
91
+ "@shuvi/toolpack": "1.0.20",
92
+ "@shuvi/utils": "1.0.20",
93
93
  "redux": "4.1.2"
94
94
  },
95
95
  "peerDependencies": {
96
- "@shuvi/service": "1.0.19"
96
+ "@shuvi/service": "1.0.20"
97
97
  },
98
98
  "devDependencies": {
99
99
  "@shuvi/service": "workspace:*",