@esportsplus/routing 0.6.6 → 0.6.7

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,27 +1,27 @@
1
- import * as reactivity_3e52903f2ebe438891d12899b5b2fdee0 from '@esportsplus/reactivity';
1
+ import * as reactivity_133ba2c86bd54849af03b85c9ce9b48a0 from '@esportsplus/reactivity';
2
2
  import { effect, root } from '@esportsplus/reactivity';
3
3
  import { Router } from './router/index.js';
4
4
  import pipeline from '@esportsplus/pipeline';
5
5
  import { PACKAGE_NAME } from './constants.js';
6
- class ReactiveObject_3e52903f2ebe438891d12899b5b2fdee1 extends reactivity_3e52903f2ebe438891d12899b5b2fdee0.ReactiveObject {
6
+ class ReactiveObject_133ba2c86bd54849af03b85c9ce9b48a1 extends reactivity_133ba2c86bd54849af03b85c9ce9b48a0.ReactiveObject {
7
7
  #parameters;
8
8
  #route;
9
9
  constructor(_p0, _p1) {
10
10
  super(null);
11
- this.#parameters = this[reactivity_3e52903f2ebe438891d12899b5b2fdee0.SIGNAL](_p0);
12
- this.#route = this[reactivity_3e52903f2ebe438891d12899b5b2fdee0.SIGNAL](_p1);
11
+ this.#parameters = this[reactivity_133ba2c86bd54849af03b85c9ce9b48a0.SIGNAL](_p0);
12
+ this.#route = this[reactivity_133ba2c86bd54849af03b85c9ce9b48a0.SIGNAL](_p1);
13
13
  }
14
14
  get parameters() {
15
- return reactivity_3e52903f2ebe438891d12899b5b2fdee0.read(this.#parameters);
15
+ return reactivity_133ba2c86bd54849af03b85c9ce9b48a0.read(this.#parameters);
16
16
  }
17
17
  set parameters(_v0) {
18
- reactivity_3e52903f2ebe438891d12899b5b2fdee0.write(this.#parameters, _v0);
18
+ reactivity_133ba2c86bd54849af03b85c9ce9b48a0.write(this.#parameters, _v0);
19
19
  }
20
20
  get route() {
21
- return reactivity_3e52903f2ebe438891d12899b5b2fdee0.read(this.#route);
21
+ return reactivity_133ba2c86bd54849af03b85c9ce9b48a0.read(this.#route);
22
22
  }
23
23
  set route(_v1) {
24
- reactivity_3e52903f2ebe438891d12899b5b2fdee0.write(this.#route, _v1);
24
+ reactivity_133ba2c86bd54849af03b85c9ce9b48a0.write(this.#route, _v1);
25
25
  }
26
26
  }
27
27
  let cache = [], location = window.location;
@@ -80,7 +80,7 @@ function middleware(request, router) {
80
80
  return route.pipeline.dispatch(request);
81
81
  };
82
82
  host.match = (fallback) => {
83
- let state = new ReactiveObject_3e52903f2ebe438891d12899b5b2fdee1(undefined, undefined);
83
+ let state = new ReactiveObject_133ba2c86bd54849af03b85c9ce9b48a1(undefined, undefined);
84
84
  if (fallback === undefined) {
85
85
  throw new Error(`${PACKAGE_NAME}: fallback route does not exist`);
86
86
  }
@@ -120,7 +120,7 @@ function onpopstate() {
120
120
  }
121
121
  }
122
122
  const router = (...factories) => {
123
- let instance = factories.reduce((r, factory) => factory(r), new Router()), request = reactivity_3e52903f2ebe438891d12899b5b2fdee0.reactive(Object.assign(href(), { data: {} }));
123
+ let instance = factories.reduce((r, factory) => factory(r), new Router()), request = reactivity_133ba2c86bd54849af03b85c9ce9b48a0.reactive(Object.assign(href(), { data: {} }));
124
124
  if (cache.push(request) === 1) {
125
125
  window.addEventListener('hashchange', onpopstate);
126
126
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "ICJR",
3
3
  "dependencies": {
4
4
  "@esportsplus/pipeline": "^1.2.2",
5
- "@esportsplus/reactivity": "^0.30.0",
5
+ "@esportsplus/reactivity": "^0.30.2",
6
6
  "@esportsplus/typescript": "^0.29.0",
7
7
  "@esportsplus/utilities": "^0.27.2"
8
8
  },
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "type": "module",
31
31
  "types": "./build/index.d.ts",
32
- "version": "0.6.6",
32
+ "version": "0.6.7",
33
33
  "scripts": {
34
34
  "build": "tsc",
35
35
  "build:test": "vite build --config test/vite.config.ts",