@typed/router 0.16.1 → 0.16.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/dist/CurrentPath.d.ts +5 -0
- package/dist/CurrentPath.d.ts.map +1 -0
- package/dist/CurrentPath.js +4 -0
- package/dist/CurrentPath.js.map +1 -0
- package/dist/cjs/CurrentPath.d.ts +5 -0
- package/dist/cjs/CurrentPath.d.ts.map +1 -0
- package/dist/cjs/CurrentPath.js +7 -0
- package/dist/cjs/CurrentPath.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.cjs.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/CurrentPath.ts +13 -0
- package/src/index.ts +1 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from '@effect/io/Effect';
|
|
2
|
+
import * as Fx from '@typed/fx';
|
|
3
|
+
import { Router } from './router.js';
|
|
4
|
+
export declare const CurrentPath: Effect.Effect<Router<string>, never, string> & Fx.Fx<Router<string>, never, string>;
|
|
5
|
+
//# sourceMappingURL=CurrentPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentPath.d.ts","sourceRoot":"","sources":["../src/CurrentPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,WAAW,CAAA;AAE/B,OAAO,EAAE,MAAM,EAAyB,MAAM,aAAa,CAAA;AAK3D,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,GACpE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAGpC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Router, getCurrentPathFromUrl } from './router.js';
|
|
2
|
+
const getCurrentPathFromRouter = (router) => router.navigation.currentEntry.map((entry) => getCurrentPathFromUrl(entry.url));
|
|
3
|
+
export const CurrentPath = Object.assign(Router.withEffect(getCurrentPathFromRouter), Router.withFx(getCurrentPathFromRouter));
|
|
4
|
+
//# sourceMappingURL=CurrentPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentPath.js","sourceRoot":"","sources":["../src/CurrentPath.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAE3D,MAAM,wBAAwB,GAAG,CAAmB,MAAiB,EAAE,EAAE,CACvE,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;AAEjF,MAAM,CAAC,MAAM,WAAW,GACiB,MAAM,CAAC,MAAM,CACpD,MAAM,CAAC,UAAU,CAAC,wBAAwB,CAAC,EAC3C,MAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,CACxC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from '@effect/io/Effect';
|
|
2
|
+
import * as Fx from '@typed/fx';
|
|
3
|
+
import { Router } from './router.js';
|
|
4
|
+
export declare const CurrentPath: Effect.Effect<Router<string>, never, string> & Fx.Fx<Router<string>, never, string>;
|
|
5
|
+
//# sourceMappingURL=CurrentPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentPath.d.ts","sourceRoot":"","sources":["../../src/CurrentPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,WAAW,CAAA;AAE/B,OAAO,EAAE,MAAM,EAAyB,MAAM,aAAa,CAAA;AAK3D,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,GACpE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAGpC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CurrentPath = void 0;
|
|
4
|
+
const router_js_1 = require("./router.js");
|
|
5
|
+
const getCurrentPathFromRouter = (router) => router.navigation.currentEntry.map((entry) => (0, router_js_1.getCurrentPathFromUrl)(entry.url));
|
|
6
|
+
exports.CurrentPath = Object.assign(router_js_1.Router.withEffect(getCurrentPathFromRouter), router_js_1.Router.withFx(getCurrentPathFromRouter));
|
|
7
|
+
//# sourceMappingURL=CurrentPath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrentPath.js","sourceRoot":"","sources":["../../src/CurrentPath.ts"],"names":[],"mappings":";;;AAGA,2CAA2D;AAE3D,MAAM,wBAAwB,GAAG,CAAmB,MAAiB,EAAE,EAAE,CACvE,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAA,iCAAqB,EAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;AAEpE,QAAA,WAAW,GACiB,MAAM,CAAC,MAAM,CACpD,kBAAM,CAAC,UAAU,CAAC,wBAAwB,CAAC,EAC3C,kBAAM,CAAC,MAAM,CAAC,wBAAwB,CAAC,CACxC,CAAA"}
|
package/dist/cjs/index.d.ts
CHANGED
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CurrentPath.js"), exports);
|
|
17
18
|
__exportStar(require("./Link.js"), exports);
|
|
18
19
|
__exportStar(require("./Match.js"), exports);
|
|
19
20
|
__exportStar(require("./Matcher.js"), exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B;AAC1B,+CAA4B;AAC5B,mDAAgC;AAChC,kDAA+B;AAC/B,gDAA6B;AAC7B,8CAA2B;AAC3B,yDAAsC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,4CAAyB;AACzB,6CAA0B;AAC1B,+CAA4B;AAC5B,mDAAgC;AAChC,kDAA+B;AAC/B,gDAA6B;AAC7B,8CAA2B;AAC3B,yDAAsC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA"}
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA"}
|