swico 0.5.0-beta17 → 0.5.0-beta18

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-beta17",
3
+ "version": "0.5.0-beta18",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -10,7 +10,7 @@ export declare const Link: FC<{
10
10
  children: ReactNode;
11
11
  }>;
12
12
  export { Outlet } from 'react-router-dom';
13
- export { useLocation } from './template/react/history';
13
+ export { func } from './template/react/history';
14
14
  export interface DefineSwicoConfigType {
15
15
  (env: 'base', config: CustomConfigType['base']): any;
16
16
  (env: 'dev', config: CustomConfigType['dev']): any;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.defineGlobal = exports.defineConfig = exports.useLocation = exports.Outlet = exports.Link = void 0;
6
+ exports.defineGlobal = exports.defineConfig = exports.func = exports.Outlet = exports.Link = void 0;
7
7
  var react_router_dom_1 = require("react-router-dom");
8
8
  var react_1 = __importDefault(require("react"));
9
9
  var Link = function (_a) {
@@ -14,7 +14,7 @@ exports.Link = Link;
14
14
  var react_router_dom_2 = require("react-router-dom");
15
15
  Object.defineProperty(exports, "Outlet", { enumerable: true, get: function () { return react_router_dom_2.Outlet; } });
16
16
  var history_1 = require("./template/react/history");
17
- Object.defineProperty(exports, "useLocation", { enumerable: true, get: function () { return history_1.useLocation; } });
17
+ Object.defineProperty(exports, "func", { enumerable: true, get: function () { return history_1.func; } });
18
18
  var defineConfig = function (env, config) { return config; };
19
19
  exports.defineConfig = defineConfig;
20
20
  var defineGlobal = function (config) {
@@ -9,7 +9,7 @@ export declare const getHistory: (routerBase: ConfigRouterType['base'], routerTy
9
9
  history: SwicoHistoryType;
10
10
  originalHistory: import("history").HashHistory;
11
11
  };
12
- export declare const useLocation: () => {
12
+ export declare const func: () => {
13
13
  name: string;
14
14
  path: string;
15
15
  pathname: string;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.useLocation = exports.getHistory = exports.getPathNameList = exports.formatAncPath = exports.HistoryRouter = void 0;
6
+ exports.func = exports.getHistory = exports.getPathNameList = exports.formatAncPath = exports.HistoryRouter = void 0;
7
7
  var qs_1 = __importDefault(require("qs"));
8
8
  var history_1 = require("history");
9
9
  var routes_1 = require("./routes");
@@ -145,7 +145,7 @@ var compareURLPatterns = function (urlPatternWithValues, urlPatternWithParams) {
145
145
  }
146
146
  return true;
147
147
  };
148
- var useLocation = function () {
148
+ var func = function () {
149
149
  var _a;
150
150
  console.log('routes2', routes_1.routes);
151
151
  return {
@@ -158,4 +158,4 @@ var useLocation = function () {
158
158
  params: {}
159
159
  };
160
160
  };
161
- exports.useLocation = useLocation;
161
+ exports.func = func;