Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

path-proxy

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-proxy - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

spec/pathProxy_spec.js

3

index.js

@@ -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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc