@mapl/router 0.4.10 → 0.4.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/constants.d.ts CHANGED
@@ -5,3 +5,4 @@ export declare const PARAMS = "q";
5
5
  export declare const PREV_PARAM_IDX = "i";
6
6
  export declare const CURRENT_PARAM_IDX = "j";
7
7
  export declare const TMP = "t";
8
+ export declare const DEP = "f";
package/constants.js CHANGED
@@ -1 +1 @@
1
- export var REQ="r";export var PATH="p";export var PATH_LEN="l";export var PARAMS="q";export var PREV_PARAM_IDX="i";export var CURRENT_PARAM_IDX="j";export var TMP="t";
1
+ export var REQ="r";export var PATH="p";export var PATH_LEN="l";export var PARAMS="q";export var PREV_PARAM_IDX="i";export var CURRENT_PARAM_IDX="j";export var TMP="t";export var DEP="f";
@@ -1 +1 @@
1
- export default (router,compile,methodInput,parsePath,startIndex)=>{let str="switch("+methodInput+"){";for(let key in router)str+='case"'+key+'":{'+parsePath+compilePath(router[key],compile,startIndex)+"break;}";str+="}";let all=router[ALL];if(all!=null)str+=parsePath+compilePath(all,compile,startIndex);return str};import{ALL}from"./index.js";import compilePath from"../path/compiler.js";
1
+ export default (router,compile,methodInput,parsePath,startIndex)=>{let str="switch("+methodInput+"){";for(let key in router)str+='case"'+key+'":{'+parsePath+compilePath(router[key],compile,startIndex)+"break}";str+="}";let all=router[ALL];if(all!=null)str+=parsePath+compilePath(all,compile,startIndex);return str};import{ALL}from"./index.js";import compilePath from"../path/compiler.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapl/router",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "main": "./index.js",
5
5
  "devDependencies": {
6
6
  "@stylistic/eslint-plugin": "latest",