@erebos/api-bzz-base
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -176,6 +176,6 @@ "use strict"; | ||
var protocol = raw ? BZZ_MODE_PROTOCOLS.raw : getModeProtocol(options.mode); | ||
var url = this._url + protocol + hash; | ||
var url = "" + this._url + protocol + hash + "/"; | ||
if (options.path != null) { | ||
url += "/" + options.path; | ||
url += options.path; | ||
} | ||
@@ -234,3 +234,3 @@ | ||
// hash | ||
url += userOrHash; | ||
url += userOrHash + "/"; | ||
} | ||
@@ -242,3 +242,3 @@ | ||
return url + "?" + query.join('&'); | ||
return query.length > 0 ? url + "?" + query.join('&') : url; | ||
}; | ||
@@ -259,6 +259,6 @@ | ||
var url = this._url + "bzz-list:/" + hash; | ||
var url = this._url + "bzz-list:/" + hash + "/"; | ||
if (options.path != null) { | ||
url += "/" + options.path; | ||
url += options.path; | ||
} | ||
@@ -265,0 +265,0 @@ |
@@ -125,6 +125,6 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; | ||
var protocol = raw ? BZZ_MODE_PROTOCOLS.raw : getModeProtocol(options.mode); | ||
var url = this._url + protocol + hash; | ||
var url = "" + this._url + protocol + hash + "/"; | ||
if (options.path != null) { | ||
url += "/" + options.path; | ||
url += options.path; | ||
} | ||
@@ -183,3 +183,3 @@ | ||
// hash | ||
url += userOrHash; | ||
url += userOrHash + "/"; | ||
} | ||
@@ -191,3 +191,3 @@ | ||
return url + "?" + query.join('&'); | ||
return query.length > 0 ? url + "?" + query.join('&') : url; | ||
}; | ||
@@ -208,6 +208,6 @@ | ||
var url = this._url + "bzz-list:/" + hash; | ||
var url = this._url + "bzz-list:/" + hash + "/"; | ||
if (options.path != null) { | ||
url += "/" + options.path; | ||
url += options.path; | ||
} | ||
@@ -214,0 +214,0 @@ |
{ | ||
"name": "@erebos/api-bzz-base", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "Base Bzz API", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:MainframeHQ/erebos.git", |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
67562
1