@mapl/router 0.1.1 → 0.1.2
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/index.d.ts +1 -2
- package/package.json +1 -4
- package/tree/compiler.d.ts +1 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Builder } from '@mapl/compiler';
|
|
2
1
|
import { type Node } from './tree/node.js';
|
|
3
2
|
export type Router = [staticMap: Record<string, string> | null, root: Node | null];
|
|
4
3
|
export declare function createRouter(): Router;
|
|
5
4
|
export declare function insertItem(router: Router, path: string, item: string): void;
|
|
6
|
-
export declare function compileRouter(router: Router, contentBuilder:
|
|
5
|
+
export declare function compileRouter(router: Router, contentBuilder: string[]): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapl/router",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@stylistic/eslint-plugin": "latest",
|
|
@@ -11,9 +11,6 @@
|
|
|
11
11
|
"mitata": "latest",
|
|
12
12
|
"typescript": "latest"
|
|
13
13
|
},
|
|
14
|
-
"peerDependencies": {
|
|
15
|
-
"@mapl/compiler": "0.0.x"
|
|
16
|
-
},
|
|
17
14
|
"description": "Fast compiled router for all runtimes",
|
|
18
15
|
"keywords": [
|
|
19
16
|
"fast",
|
package/tree/compiler.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Builder } from '@mapl/compiler';
|
|
2
1
|
import type { Node } from './node.js';
|
|
3
|
-
declare const f: (node: Node, builder:
|
|
2
|
+
declare const f: (node: Node, builder: string[], hasParam: boolean, hasMultipleParams: boolean, startIndexValue: number, startIndexPrefix: string) => void;
|
|
4
3
|
export default f;
|