Socket
Socket
Sign inDemoInstall

typed-rest-client

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-rest-client - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

package.json
{
"name": "typed-rest-client",
"version": "1.0.1",
"version": "1.0.2",
"description": "Node Rest and Http Clients for use with TypeScript",

@@ -9,3 +9,4 @@ "main": "./RestClient.js",

"test": "node make.js test",
"samples": "node make.js samples"
"samples": "node make.js samples",
"validate": "node make.js validate"
},

@@ -12,0 +13,0 @@ "repository": {

6

Util.js

@@ -15,2 +15,5 @@ "use strict";

}
if (!resource) {
return baseUrl;
}
let base = url.parse(baseUrl);

@@ -22,4 +25,3 @@ // resource (specific per request) eliments take priority

resultantUrl.host = resultantUrl.host || base.host;
let basePathComponent = base.pathname === '/' ? '' : base.pathname;
resultantUrl.pathname = path.posix.resolve(basePathComponent, resultantUrl.pathname);
resultantUrl.pathname = path.posix.resolve(base.pathname, resultantUrl.pathname);
let res = url.format(resultantUrl);

@@ -26,0 +28,0 @@ return res;

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