prague-fluent
Advanced tools
Comparing version 0.17.9 to 0.17.10
@@ -40,9 +40,2 @@ import { Observable } from 'rxjs'; | ||
constructor(routes: TemplateRoute<any, any>[]); | ||
toObject(): { | ||
templates: { | ||
action: any; | ||
args: any; | ||
score: number; | ||
}[]; | ||
}; | ||
} | ||
@@ -87,3 +80,3 @@ export declare type Action<ARG = undefined> = (arg?: ARG) => Observableable<any>; | ||
mapTemplate<TEMPLATES, CONTEXT>(templates: Templates<TEMPLATES>, context?: CONTEXT): Router<ARG, any>; | ||
mapMultiple(router: AnyRouter<Array<TemplateRoute<any, any>>>): Router<ARG, any>; | ||
mapMultiple(router: AnyRouter<MultipleRoute>): Router<ARG, any>; | ||
tap<VALUE>(fn: (route: Route<VALUE>) => Observableable<any>): Router<ARG, any>; | ||
@@ -90,0 +83,0 @@ default(router: AnyRouter<NoRoute>): Router<ARG, any>; |
@@ -177,11 +177,2 @@ "use strict"; | ||
} | ||
MultipleRoute.prototype.toObject = function () { | ||
return { | ||
templates: this.routes.map(function (route) { return ({ | ||
action: route.action, | ||
args: route.args, | ||
score: route.score | ||
}); }) | ||
}; | ||
}; | ||
return MultipleRoute; | ||
@@ -307,5 +298,3 @@ }(Route)); | ||
return this.mapByType({ | ||
multiple: function (route) { return Router | ||
.from(router) | ||
.route$(route.routes); } | ||
multiple: router | ||
}); | ||
@@ -312,0 +301,0 @@ }; |
{ | ||
"name": "prague-fluent", | ||
"version": "0.17.9", | ||
"version": "0.17.10", | ||
"description": "fluent API for Prague", | ||
@@ -5,0 +5,0 @@ "main": "dist/fluent.js", |
@@ -167,12 +167,2 @@ import { Observable } from 'rxjs'; | ||
} | ||
toObject() { | ||
return { | ||
templates: this.routes.map(route => ({ | ||
action: route.action, | ||
args: route.args, | ||
score: route.score | ||
})) | ||
} | ||
} | ||
} | ||
@@ -336,8 +326,6 @@ | ||
mapMultiple ( | ||
router: AnyRouter<Array<TemplateRoute<any, any>>> | ||
router: AnyRouter<MultipleRoute> | ||
) { | ||
return this.mapByType({ | ||
multiple: route => Router | ||
.from(router) | ||
.route$(route.routes) | ||
multiple: router | ||
}); | ||
@@ -344,0 +332,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63446
1162