@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.
- package/build/browser.d.ts +1 -1
- package/build/browser.js +1 -1
- package/build/index.d.ts +4 -4
- package/build/index.js +4 -4
- package/build/router/index.d.ts +2 -2
- package/build/router/index.js +2 -2
- package/build/router/node.d.ts +1 -1
- package/build/router/node.js +1 -1
- package/build/types.d.ts +1 -1
- package/build/types.js +1 -1
- package/package.json +4 -4
package/build/browser.d.ts
CHANGED
package/build/browser.js
CHANGED
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';
|
package/build/router/index.d.ts
CHANGED
|
@@ -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>;
|
package/build/router/index.js
CHANGED
|
@@ -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] !== '/') {
|
package/build/router/node.d.ts
CHANGED
package/build/router/node.js
CHANGED
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.
|
|
5
|
-
"@esportsplus/reactivity": "^0.3.
|
|
4
|
+
"@esportsplus/pipeline": "^1.1.2",
|
|
5
|
+
"@esportsplus/reactivity": "^0.3.3"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@esportsplus/typescript": "^0.
|
|
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.
|
|
20
|
+
"version": "0.1.12"
|
|
21
21
|
}
|