Comparing version 0.1.0 to 0.1.1
@@ -62,3 +62,3 @@ var inflection = require('inflection'); | ||
this.params = params; | ||
this.pathSegments = pathSegments.filter(function (segment) { return segment }); | ||
this.pathSegments = pathSegments; | ||
this.path = "/" + pathSegments.join("/"); | ||
@@ -81,2 +81,3 @@ }; | ||
pathSegments = pathSegments.concat([segment, param]); | ||
pathSegments = pathSegments.filter(function (segment) { return segment }); | ||
@@ -83,0 +84,0 @@ return new constructor(_base, params, pathSegments); |
{ | ||
"name": "path-proxy", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A path proxy object constructor", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "./node_modules/jasmine-node/bin/jasmine-node spec" | ||
}, | ||
@@ -24,3 +24,6 @@ "repository": { | ||
"inflection": "~1.3.0" | ||
}, | ||
"devDependencies": { | ||
"jasmine-node": "~1.11.0" | ||
} | ||
} |
@@ -80,8 +80,11 @@ # path-proxy | ||
## The End | ||
## Tests | ||
That's all there is for now. This is might prove to be a useful tool for working | ||
on documented API clients in the future. For now, don't rely on it. There are | ||
no tests, and it's more of a fun experiment at the moment | ||
path-proxy uses jasmine-node for tests. To run them: | ||
```sh | ||
$ npm install | ||
$ npm test | ||
``` | ||
[heroku_client]: https://github.com/heroku/node-heroku-client |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
7911
5
137
2
90
1