@esportsplus/routing 0.1.10 → 0.1.12

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 { Middleware, Next, Request, Route, Router } from './types';
1
+ import { Middleware, Next, Request, Route, Router } from './types.js';
2
2
  declare function back(): void;
3
3
  declare function forward(): void;
4
4
  declare const _default: <T>(instance?: Router<T>) => {
package/build/browser.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { effect, reactive, root } from '@esportsplus/reactivity';
2
2
  import { next } from '@esportsplus/pipeline';
3
- import factory from './router';
3
+ import factory from './router/index.js';
4
4
  let cache = [];
5
5
  function back() {
6
6
  window.history.back();
package/build/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { default as browser } from './browser';
2
- export { default as router } from './router';
3
- export { default as slugify } from './slugify';
4
- export * from './types';
1
+ export { default as browser } from './browser.js';
2
+ export { default as router } from './router/index.js';
3
+ export { default as slugify } from './slugify.js';
4
+ export * from './types.js';
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { default as browser } from './browser';
2
- export { default as router } from './router';
3
- export { default as slugify } from './slugify';
4
- export * from './types';
1
+ export { default as browser } from './browser.js';
2
+ export { default as router } from './router/index.js';
3
+ export { default as slugify } from './slugify.js';
4
+ export * from './types.js';
@@ -1,5 +1,5 @@
1
- import { Name, Options, Route, RouteOptions } from '../types';
2
- import { Node } from './node';
1
+ import { Name, Options, Route, RouteOptions } from '../types.js';
2
+ import { Node } from './node.js';
3
3
  declare class Router<T> {
4
4
  groups: Options<T>[];
5
5
  root: Node<T>;
@@ -1,5 +1,5 @@
1
- import { ON_DELETE, ON_GET, ON_POST, ON_PUT, STATIC } from '../constants';
2
- import { Node } from './node';
1
+ import { ON_DELETE, ON_GET, ON_POST, ON_PUT, STATIC } from '../constants.js';
2
+ import { Node } from './node.js';
3
3
  import pipeline from '@esportsplus/pipeline';
4
4
  function normalize(path) {
5
5
  if (path[0] !== '/') {
@@ -1,4 +1,4 @@
1
- import { Route } from './index';
1
+ import { Route } from './index.js';
2
2
  declare class Node<T> {
3
3
  children: Map<string | number, Node<T>> | null;
4
4
  parent: Node<T> | null;
@@ -1,4 +1,4 @@
1
- import { PLACEHOLDER, STATIC, WILDCARD } from '../constants';
1
+ import { PLACEHOLDER, STATIC, WILDCARD } from '../constants.js';
2
2
  class Node {
3
3
  children = null;
4
4
  parent = null;
package/build/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { NeverAsync } from '@esportsplus/typescript';
2
- import { Router } from './router';
2
+ import { Router } from './router/index.js';
3
3
  import pipeline from '@esportsplus/pipeline';
4
4
  type Middleware<T> = NeverAsync<(input: Request<T>, next: Next<T>) => T>;
5
5
  type Name = string;
package/build/types.js CHANGED
@@ -1,2 +1,2 @@
1
- import { Router } from './router';
1
+ import { Router } from './router/index.js';
2
2
  export { Router };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "author": "ICJR",
3
3
  "dependencies": {
4
- "@esportsplus/pipeline": "^1.1.1",
5
- "@esportsplus/reactivity": "^0.3.1"
4
+ "@esportsplus/pipeline": "^1.1.2",
5
+ "@esportsplus/reactivity": "^0.3.3"
6
6
  },
7
7
  "devDependencies": {
8
- "@esportsplus/typescript": "^0.4.13"
8
+ "@esportsplus/typescript": "^0.6.3"
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.10"
20
+ "version": "0.1.12"
21
21
  }