swico 0.5.0-beta22 → 0.5.0-beta23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "0.5.0-beta22",
3
+ "version": "0.5.0-beta23",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -1,10 +1 @@
1
- import qs from 'qs';
2
- export declare const useLocation: () => {
3
- name: string;
4
- path: string;
5
- pathname: string;
6
- search: string;
7
- query: qs.ParsedQs;
8
- hash: string;
9
- params: Readonly<import("react-router-dom").Params<string>>;
10
- };
1
+ export declare const useLocation: UseLocationType;
@@ -253,7 +253,7 @@ var formatRouterConfig = function (_a, templateType) {
253
253
  switch (_a.label) {
254
254
  case 0:
255
255
  formatRouter = getFormatRouter(routes, templateType);
256
- textData = "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.routes = ".concat(JSON.stringify(formatRouter), ";");
256
+ textData = "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = ".concat(JSON.stringify(formatRouter), ";");
257
257
  modifiedText = textData.replace(/"(\(\)=>import\('[^']+'\))"/g, '$1');
258
258
  return [4, (0, tools_1.writeFile)(path_1.default.resolve(projectPath, './src/.swico/routes.js'), modifiedText)];
259
259
  case 1: