@esportsplus/routing 0.1.2 → 0.1.6

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>[];
@@ -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
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "author": "ICJR",
3
3
  "dependencies": {
4
- "@esportsplus/pipeline": "^1.1.0",
5
- "@esportsplus/reactivity": "^0.1.23"
4
+ "@esportsplus/pipeline": "^1.1.1",
5
+ "@esportsplus/reactivity": "^0.1.26"
6
6
  },
7
7
  "devDependencies": {
8
- "@esportsplus/typescript": "^0.4.6"
8
+ "@esportsplus/typescript": "^0.4.9"
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.2"
20
+ "version": "0.1.6"
21
21
  }
package/src/browser.ts CHANGED
@@ -133,7 +133,7 @@ function onpopstate() {
133
133
 
134
134
 
135
135
  export default <T>(instance?: Router<T>) => {
136
- let request = reactive( Object.assign(href<T>(), { data: {} }) ),
136
+ let request = reactive( Object.assign(href<T>(), { data: {} } as any) ),
137
137
  router = instance || factory<T>();
138
138
 
139
139
  if (cache.push(request) === 1) {