{"_id":"powerbi-router","_rev":"17-56e5bd84e47763d832433f22057ea99e","name":"powerbi-router","dist-tags":{"latest":"0.1.5"},"versions":{"0.1.0":{"name":"powerbi-router","version":"0.1.0","keywords":["microsoft","powerbi","router"],"author":{"name":"Microsoft Power BI Team"},"license":"MIT","_id":"powerbi-router@0.1.0","maintainers":[{"name":"powerbi","email":"nugetpowerbi@microsoft.com"}],"homepage":"https://github.com/Microsoft/powerbi-router#readme","bugs":{"url":"https://github.com/Microsoft/powerbi-router/issues"},"dist":{"shasum":"c8fde7e7003d26427e161c1d4e58acf0e6b334e5","tarball":"https://registry.npmjs.org/powerbi-router/-/powerbi-router-0.1.0.tgz","integrity":"sha512-bMAEHEDBOXjihNi4+5F8nkrh65w8s9vyqHTjrBtvf721cchrkbmvcl1V5RdIBrb8w3nvxI8QAM/20IEuV7K6ZQ==","signatures":[{"sig":"MEYCIQD8W5yM6uuzGkFj33q4o1nSQ4cbtUZI/8CQDll3cifcaQIhANExQ7Wye/5rkQujpVA5Mg2AKoDo4BYJsoBRzhzVgIpX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/router.js","_from":".","_shasum":"c8fde7e7003d26427e161c1d4e58acf0e6b334e5","gitHead":"60121e3a9debcfd4eb4f4fdc0aa44ad9f145ae12","scripts":{"test":"gulp test --chrome","prepublish":"gulp build"},"typings":"dist/router.d.ts","_npmUser":{"name":"powerbi","email":"nugetpowerbi@microsoft.com"},"repository":{"url":"git+https://github.com/Microsoft/powerbi-router.git","type":"git"},"_npmVersion":"3.7.3","description":"outer for Microsoft Power BI. Given an http method and url pattern call the matching handler with the request and response object. Syntax matches common libraries such as express and restify.","directories":{},"_nodeVersion":"5.8.0","dependencies":{"es6-promise":"^3.2.1","route-recognizer":"^0.1.11"},"publishConfig":{"tag":"beta"},"devDependencies":{"del":"^2.2.0","gulp":"^3.9.1","karma":"^0.13.22","yargs":"^4.7.1","gulp-help":"^1.6.1","ts-loader":"^0.8.2","gulp-rename":"^1.2.2","gulp-uglify":"^1.5.3","gulp-replace":"^0.5.4","jasmine-core":"^2.4.1","run-sequence":"^1.2.0","karma-jasmine":"^1.0.2","karma-coverage":"^1.0.0","webpack-stream":"^3.2.0","phantomjs-prebuilt":"^2.1.7","karma-spec-reporter":"0.0.26","karma-chrome-launcher":"^1.0.1","karma-sourcemap-loader":"^0.3.7","karma-phantomjs-launcher":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/powerbi-router-0.1.0.tgz_1466713104627_0.4368108918424696","host":"packages-12-west.internal.npmjs.com"}},"0.1.1":{"name":"powerbi-router","version":"0.1.1","keywords":["microsoft","powerbi","router"],"author":{"name":"Microsoft Power BI Team"},"license":"MIT","_id":"powerbi-router@0.1.1","maintainers":[{"name":"powerbi","email":"nugetpowerbi@microsoft.com"}],"homepage":"https://github.com/Microsoft/powerbi-router#readme","bugs":{"url":"https://github.com/Microsoft/powerbi-router/issues"},"dist":{"shasum":"9f9b84f8de0747868a03e9f5f1ed15a15c6d7e8a","tarball":"https://registry.npmjs.org/powerbi-router/-/powerbi-router-0.1.1.tgz","integrity":"sha512-gYxAx2xP/vwpCMWETszeXlgtmBTZkEE6/LAHzRX/mVu7LqJVxN/HnRjZ6TANyDOgvIrLGKByLwf4ywsLFjxI5A==","signatures":[{"sig":"MEUCIAHKVyNLjP0YMqpNvVp3XGe3q8P6B4Syh0faqn9T4TyIAiEA2dxqhUz5pXJn/tmXIondpOnqISRfQNic9kiRVbphzc8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/router.js","_from":".","_shasum":"9f9b84f8de0747868a03e9f5f1ed15a15c6d7e8a","gitHead":"c0ba72f869e07149505aa97e725fee378d4cbab3","scripts":{"test":"gulp test --chrome","prepublish":"gulp build"},"typings":"dist/router.d.ts","_npmUser":{"name":"powerbi","email":"nugetpowerbi@microsoft.com"},"repository":{"url":"git+https://github.com/Microsoft/powerbi-router.git","type":"git"},"_npmVersion":"3.7.3","description":"outer for Microsoft Power BI. Given an http method and url pattern call the matching handler with the request and response object. Syntax matches common libraries such as express and restify.","directories":{},"_nodeVersion":"5.8.0","dependencies":{"es6-promise":"^3.2.1","route-recognizer":"^0.1.11"},"publishConfig":{"tag":"beta"},"devDependencies":{"del":"^2.2.0","gulp":"^3.9.1","karma":"^0.13.22","yargs":"^4.7.1","gulp-help":"^1.6.1","ts-loader":"^0.8.2","gulp-header":"^1.8.7","gulp-rename":"^1.2.2","gulp-uglify":"^1.5.3","gulp-replace":"^0.5.4","jasmine-core":"^2.4.1","run-sequence":"^1.2.0","karma-jasmine":"^1.0.2","karma-coverage":"^1.0.0","webpack-stream":"^3.2.0","phantomjs-prebuilt":"^2.1.7","karma-spec-reporter":"0.0.26","karma-chrome-launcher":"^1.0.1","karma-sourcemap-loader":"^0.3.7","karma-phantomjs-launcher":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/powerbi-router-0.1.1.tgz_1466798467898_0.7218875435646623","host":"packages-16-east.internal.npmjs.com"}},"0.1.2":{"name":"powerbi-router","version":"0.1.2","keywords":["microsoft","powerbi","router"],"author":{"name":"Microsoft Power BI Team"},"license":"MIT","_id":"powerbi-router@0.1.2","maintainers":[{"name":"powerbi","email":"nugetpowerbi@microsoft.com"}],"homepage":"https://github.com/Microsoft/powerbi-router#readme","bugs":{"url":"https://github.com/Microsoft/powerbi-router/issues"},"dist":{"shasum":"b648fa358ec5279a134247864442c83d3175a469","tarball":"https://registry.npmjs.org/powerbi-router/-/powerbi-router-0.1.2.tgz","integrity":"sha512-XHdp+9pCCUNXtzdD7vzSTQ4FP73ViVxpBHwk6aZqRO/RoUrZ//wXOpmyaG+9eTfRTCJlG+qfkyMrbqy5YyNngw==","signatures":[{"sig":"MEUCIQCU3zg11/amAgM8U8fhBUa9eWirJ0uD4MAo5QL7vYfGQwIgUAn9/P2fa+PIxsbgAPchTjhGGdZ5dJxSTj57jlN1Y78=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/router.js","_from":".","files":["dist"],"_shasum":"b648fa358ec5279a134247864442c83d3175a469","gitHead":"c84cc9cd0d322f21ab2efa3c9616f2e6d542229d","scripts":{"test":"gulp test --chrome","prepublish":"gulp build"},"typings":"dist/router.d.ts","_npmUser":{"name":"powerbi","email":"nugetpowerbi@microsoft.com"},"repository":{"url":"git+https://github.com/Microsoft/powerbi-router.git","type":"git"},"_npmVersion":"3.7.3","description":"outer for Microsoft Power BI. Given an http method and url pattern call the matching handler with the request and response object. Syntax matches common libraries such as express and restify.","directories":{},"_nodeVersion":"5.8.0","dependencies":{"es6-promise":"^3.2.1","route-recognizer":"^0.1.11"},"publishConfig":{"tag":"beta"},"devDependencies":{"del":"^2.2.0","gulp":"^3.9.1","karma":"^0.13.22","yargs":"^4.7.1","moment":"^2.14.1","typedoc":"^0.4.4","gulp-help":"^1.6.1","ts-loader":"^0.8.2","gulp-header":"^1.8.7","gulp-rename":"^1.2.2","gulp-uglify":"^1.5.3","gulp-replace":"^0.5.4","gulp-typedoc":"^2.0.0","jasmine-core":"^2.4.1","run-sequence":"^1.2.0","gulp-gh-pages":"^0.5.4","karma-jasmine":"^1.0.2","karma-coverage":"^1.0.0","webpack-stream":"^3.2.0","phantomjs-prebuilt":"^2.1.7","karma-spec-reporter":"0.0.26","karma-chrome-launcher":"^1.0.1","karma-sourcemap-loader":"^0.3.7","karma-phantomjs-launcher":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/powerbi-router-0.1.2.tgz_1468432045772_0.0661900071427226","host":"packages-12-west.internal.npmjs.com"}},"0.1.4":{"name":"powerbi-router","version":"0.1.4","keywords":["microsoft","powerbi","router"],"author":{"name":"Microsoft Power BI Team"},"license":"MIT","_id":"powerbi-router@0.1.4","maintainers":[{"name":"powerbi","email":"nugetpowerbi@microsoft.com"}],"homepage":"https://github.com/Microsoft/powerbi-router#readme","bugs":{"url":"https://github.com/Microsoft/powerbi-router/issues"},"dist":{"shasum":"0a3429fb287a567800a39be93e57fe6f056b8c14","tarball":"https://registry.npmjs.org/powerbi-router/-/powerbi-router-0.1.4.tgz","integrity":"sha512-7iPPXeySFYsv02p+kbkxVjySoa8wi8UrWsREkAbZTIZnKtL5N7PSOXNTW/H6oEP8UQFR/sfntgOm9wBSxf1+FA==","signatures":[{"sig":"MEUCIF4NxzRWn9eEPEGpS9MOajh+YJHGVBtIVJaawfbnTxRoAiEA0MH/ot6F9vaQRSF+v4gZ6N7UJehjqmQK6enqj+MWhYI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/router.js","_from":".","files":["dist"],"_shasum":"0a3429fb287a567800a39be93e57fe6f056b8c14","gitHead":"0688e431d2a308a78abd600b4222fa750ce62936","scripts":{"gulp":"gulp","test":"gulp test","build":"gulp build","typings":"typings","prepublish":"typings install && gulp build"},"typings":"dist/router.d.ts","_npmUser":{"name":"powerbi","email":"nugetpowerbi@microsoft.com"},"repository":{"url":"git+https://github.com/Microsoft/powerbi-router.git","type":"git"},"_npmVersion":"3.10.3","description":"Router for Microsoft Power BI. Given an http method and url pattern call the matching handler with the request and response object. Syntax matches common libraries such as express and restify.","directories":{},"_nodeVersion":"6.3.1","dependencies":{"es6-promise":"^3.2.1","route-recognizer":"^0.1.11"},"publishConfig":{"tag":"beta"},"devDependencies":{"del":"^2.2.0","gulp":"^3.9.1","karma":"^0.13.22","yargs":"^4.7.1","moment":"^2.14.1","tslint":"^3.15.0","typedoc":"^0.4.4","typings":"^1.3.2","gulp-help":"^1.6.1","ts-loader":"^0.8.2","typescript":"^1.8.10","gulp-header":"^1.8.7","gulp-rename":"^1.2.2","gulp-tslint":"^6.1.1","gulp-uglify":"^1.5.3","gulp-replace":"^0.5.4","gulp-typedoc":"^2.0.0","jasmine-core":"^2.4.1","run-sequence":"^1.2.0","gulp-gh-pages":"^0.5.4","karma-jasmine":"^1.0.2","karma-coverage":"^1.0.0","webpack-stream":"^3.2.0","phantomjs-prebuilt":"^2.1.7","karma-spec-reporter":"0.0.26","karma-chrome-launcher":"^1.0.1","karma-sourcemap-loader":"^0.3.7","karma-phantomjs-launcher":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/powerbi-router-0.1.4.tgz_1472331510859_0.8674842002801597","host":"packages-12-west.internal.npmjs.com"}},"0.1.5":{"name":"powerbi-router","version":"0.1.5","keywords":["microsoft","powerbi","router"],"author":{"name":"Microsoft Power BI Team"},"license":"MIT","_id":"powerbi-router@0.1.5","maintainers":[{"name":"powerbi","email":"nugetpowerbi@microsoft.com"}],"homepage":"https://github.com/Microsoft/powerbi-router#readme","bugs":{"url":"https://github.com/Microsoft/powerbi-router/issues"},"dist":{"shasum":"dd2d2d0474f8cb76690a85f6a51d8ca9fea93a32","tarball":"https://registry.npmjs.org/powerbi-router/-/powerbi-router-0.1.5.tgz","integrity":"sha512-DFJCKxwh/DqMZXtHSo6xZl87mbRviZGn4P7Oi2rT0L4HMI4AjnWIrwg0JCSM7ymBzYnNe5UmrsCaf2Upur5RQA==","signatures":[{"sig":"MEUCICZcVzrP5/ZSJuk/CTfNkJL+OSo1XITkRQsBJLv2bSsAAiEA9V+GtnigFJQ7rOySyM8gDqfqLuJAUGFI7/QTGMOsaWo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"dist/router.js","_from":".","files":["dist"],"_shasum":"dd2d2d0474f8cb76690a85f6a51d8ca9fea93a32","gitHead":"8ddc843d87fae753d47735cc4aefdf80d36828f9","scripts":{"gulp":"gulp","test":"gulp test","build":"gulp build","typings":"typings","prepublish":"typings install && gulp build"},"typings":"dist/router.d.ts","_npmUser":{"name":"powerbi","email":"nugetpowerbi@microsoft.com"},"repository":{"url":"git+https://github.com/Microsoft/powerbi-router.git","type":"git"},"_npmVersion":"3.10.3","description":"Router for Microsoft Power BI. Given an http method and url pattern call the matching handler with the request and response object. Syntax matches common libraries such as express and restify.","directories":{},"_nodeVersion":"6.5.0","dependencies":{"es6-promise":"^3.2.1","route-recognizer":"^0.1.11"},"publishConfig":{"tag":"beta"},"devDependencies":{"del":"^2.2.0","gulp":"^3.9.1","karma":"^0.13.22","yargs":"^4.7.1","moment":"^2.14.1","tslint":"^3.15.0","typedoc":"^0.4.4","typings":"^1.3.2","gulp-help":"^1.6.1","ts-loader":"^0.8.2","typescript":"^1.8.10","gulp-header":"^1.8.7","gulp-rename":"^1.2.2","gulp-tslint":"^6.1.1","gulp-uglify":"^1.5.3","gulp-replace":"^0.5.4","gulp-typedoc":"^2.0.0","jasmine-core":"^2.4.1","run-sequence":"^1.2.0","gulp-gh-pages":"^0.5.4","karma-jasmine":"^1.0.2","karma-coverage":"^1.0.0","webpack-stream":"^3.2.0","phantomjs-prebuilt":"^2.1.7","karma-spec-reporter":"0.0.26","karma-chrome-launcher":"^1.0.1","karma-sourcemap-loader":"^0.3.7","karma-phantomjs-launcher":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/powerbi-router-0.1.5.tgz_1472491448169_0.47111256257630885","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-06-23T20:18:27.272Z","modified":"2026-07-16T15:49:26.997Z","0.1.0":"2016-06-23T20:18:27.272Z","0.1.1":"2016-06-24T20:01:12.138Z","0.1.2":"2016-07-13T17:47:28.078Z","0.1.4":"2016-08-27T20:58:31.092Z","0.1.5":"2016-08-29T17:24:09.839Z"},"bugs":{"url":"https://github.com/Microsoft/powerbi-router/issues"},"author":{"name":"Microsoft Power BI Team"},"license":"MIT","homepage":"https://github.com/Microsoft/powerbi-router#readme","keywords":["microsoft","powerbi","router"],"repository":{"url":"git+https://github.com/Microsoft/powerbi-router.git","type":"git"},"description":"Router for Microsoft Power BI. Given an http method and url pattern call the matching handler with the request and response object. Syntax matches common libraries such as express and restify.","maintainers":[{"email":"npmjs@microsoft.com","name":"microsoft1es"},{"email":"microsoft-oss-publishing@microsoft.com","name":"microsoft-oss-releases"},{"email":"nugetpowerbi@microsoft.com","name":"powerbi"}],"readme":"# powerbi-router\r\n\r\nRouter for Microsoft Power BI. Given an http method and url pattern call the matching handler with the request and response object. Syntax matches common libraries such as express and restify.\r\nThis library uses [Route-recognizer](https://github.com/tildeio/route-recognizer) to handle pattern matching such as `/root/path/:name` where `name` will be passed as paramter to the handler.\r\n\r\n## Installation:\r\n```\r\nnpm install --save powerbi-router\r\n```\r\n\r\n## Usage:\r\n```\r\nimport * as Wpmp from 'window-post-message-proxy';\r\nimport * as Router from 'powerbi-router';\r\n\r\nconst wpmp = new Wpmp.WindowPostMessageProxy();\r\nconst router = new Router.Router(wpmp);\r\n\r\nrouter.get('/report/pages', (request, response) => {\r\n  return app.getPages()\r\n    .then(pages => {\r\n      response.send(200, pages);\r\n    });\r\n});\r\n\r\nrouter.put('/report/pages/active', (request, response) => {\r\n  app.setPage(request.body)\r\n    .then(page => {\r\n      host.sendEvent('pageChanged', page);\r\n    });\r\n    \r\n  response.send(202);\r\n});\r\n```\r\n\r\n","readmeFilename":"README.md"}