@esportsplus/routing 0.1.1 → 0.1.2

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.
@@ -1,4 +1,4 @@
1
- import { Name, Options, Route, RouteOptions } from '../types';
1
+ import { Name, Options, Route, RouteOptions } from '~/types';
2
2
  import { Node } from './node';
3
3
  declare class Router<T> {
4
4
  groups: Options<T>[];
@@ -15,7 +15,7 @@ declare class Router<T> {
15
15
  routes: (fn: (router: Router<T>) => void) => void;
16
16
  };
17
17
  match(method: string, path: string, subdomain?: string | null): {
18
- parameters?: Readonly<Record<PropertyKey, unknown>> | undefined;
18
+ parameters?: Readonly<Record<PropertyKey, unknown>>;
19
19
  route?: Readonly<Route<T>> | undefined;
20
20
  };
21
21
  on(methods: string[], options: RouteOptions<T>): this;
@@ -1,4 +1,4 @@
1
- import { ON_DELETE, ON_GET, ON_POST, ON_PUT, STATIC } from '../constants';
1
+ import { ON_DELETE, ON_GET, ON_POST, ON_PUT, STATIC } from '~/constants';
2
2
  import { Node } from './node';
3
3
  import pipeline from '@esportsplus/pipeline';
4
4
  function normalize(path) {
@@ -1,4 +1,4 @@
1
- import { PLACEHOLDER, STATIC, WILDCARD } from '../constants';
1
+ import { PLACEHOLDER, STATIC, WILDCARD } from '~/constants';
2
2
  class Node {
3
3
  children = null;
4
4
  parent = null;
package/package.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "author": "ICJR",
3
3
  "dependencies": {
4
4
  "@esportsplus/pipeline": "^1.1.0",
5
- "@esportsplus/reactivity": "^0.1.21"
5
+ "@esportsplus/reactivity": "^0.1.23"
6
6
  },
7
7
  "devDependencies": {
8
- "@esportsplus/typescript": "^0.1.2"
8
+ "@esportsplus/typescript": "^0.4.6"
9
9
  },
10
10
  "main": "./build/index.js",
11
11
  "name": "@esportsplus/routing",
@@ -17,5 +17,5 @@
17
17
  "prepublishOnly": "npm run build"
18
18
  },
19
19
  "types": "./build/index.d.ts",
20
- "version": "0.1.1"
20
+ "version": "0.1.2"
21
21
  }
package/tsconfig.json CHANGED
@@ -1,11 +1,3 @@
1
1
  {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "declaration": true,
5
- "declarationDir": "build",
6
- "outDir": "build"
7
- },
8
- "exclude": ["node_modules"],
9
- "extends": "./node_modules/@esportsplus/typescript/tsconfig.base.json",
10
- "include": ["src"]
2
+ "extends": "@esportsplus/typescript/tsconfig.package.json"
11
3
  }