@esportsplus/routing 0.6.2 → 0.6.3

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_14d67e3b96364d0fa5456fd677e2fba30 from '@esportsplus/reactivity';
1
+ import * as reactivity_cf3aff1f37e24e7d8f747f225ef13cc90 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_14d67e3b96364d0fa5456fd677e2fba31 extends reactivity_14d67e3b96364d0fa5456fd677e2fba30.ReactiveObject {
6
+ class ReactiveObject_cf3aff1f37e24e7d8f747f225ef13cc91 extends reactivity_cf3aff1f37e24e7d8f747f225ef13cc90.ReactiveObject {
7
7
  #parameters;
8
8
  #route;
9
9
  constructor(_p0, _p1) {
10
10
  super(null);
11
- this.#parameters = this[reactivity_14d67e3b96364d0fa5456fd677e2fba30.SIGNAL](_p0);
12
- this.#route = this[reactivity_14d67e3b96364d0fa5456fd677e2fba30.SIGNAL](_p1);
11
+ this.#parameters = this[reactivity_cf3aff1f37e24e7d8f747f225ef13cc90.SIGNAL](_p0);
12
+ this.#route = this[reactivity_cf3aff1f37e24e7d8f747f225ef13cc90.SIGNAL](_p1);
13
13
  }
14
14
  get parameters() {
15
- return reactivity_14d67e3b96364d0fa5456fd677e2fba30.read(this.#parameters);
15
+ return reactivity_cf3aff1f37e24e7d8f747f225ef13cc90.read(this.#parameters);
16
16
  }
17
17
  set parameters(_v0) {
18
- reactivity_14d67e3b96364d0fa5456fd677e2fba30.write(this.#parameters, _v0);
18
+ reactivity_cf3aff1f37e24e7d8f747f225ef13cc90.write(this.#parameters, _v0);
19
19
  }
20
20
  get route() {
21
- return reactivity_14d67e3b96364d0fa5456fd677e2fba30.read(this.#route);
21
+ return reactivity_cf3aff1f37e24e7d8f747f225ef13cc90.read(this.#route);
22
22
  }
23
23
  set route(_v1) {
24
- reactivity_14d67e3b96364d0fa5456fd677e2fba30.write(this.#route, _v1);
24
+ reactivity_cf3aff1f37e24e7d8f747f225ef13cc90.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_14d67e3b96364d0fa5456fd677e2fba31(undefined, undefined);
83
+ let state = new ReactiveObject_cf3aff1f37e24e7d8f747f225ef13cc91(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_14d67e3b96364d0fa5456fd677e2fba30.reactive(Object.assign(href(), { data: {} }));
123
+ let instance = factories.reduce((r, factory) => factory(r), new Router()), request = reactivity_cf3aff1f37e24e7d8f747f225ef13cc90.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,8 +2,8 @@
2
2
  "author": "ICJR",
3
3
  "dependencies": {
4
4
  "@esportsplus/pipeline": "^1.2.2",
5
- "@esportsplus/reactivity": "^0.29.20",
6
- "@esportsplus/typescript": "^0.28.2",
5
+ "@esportsplus/reactivity": "^0.29.21",
6
+ "@esportsplus/typescript": "^0.28.3",
7
7
  "@esportsplus/utilities": "^0.27.2"
8
8
  },
9
9
  "exports": {
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "type": "module",
31
31
  "types": "./build/index.d.ts",
32
- "version": "0.6.2",
32
+ "version": "0.6.3",
33
33
  "scripts": {
34
34
  "build": "tsc",
35
35
  "build:test": "vite build --config test/vite.config.ts",