@octokit/endpoint
Advanced tools
Comparing version 9.0.1 to 9.0.2
@@ -31,3 +31,3 @@ "use strict"; | ||
// pkg/dist-src/version.js | ||
var VERSION = "9.0.1"; | ||
var VERSION = "9.0.2"; | ||
@@ -240,3 +240,3 @@ // pkg/dist-src/defaults.js | ||
var operators = ["+", "#", ".", "/", ";", "?", "&"]; | ||
return template.replace( | ||
template = template.replace( | ||
/\{([^\{\}]+)\}|([^\{\}]+)/g, | ||
@@ -271,2 +271,7 @@ function(_, expression, literal) { | ||
); | ||
if (template === "/") { | ||
return template; | ||
} else { | ||
return template.replace(/\/$/, ""); | ||
} | ||
} | ||
@@ -273,0 +278,0 @@ |
@@ -95,3 +95,3 @@ function encodeReserved(str) { | ||
var operators = ["+", "#", ".", "/", ";", "?", "&"]; | ||
return template.replace( | ||
template = template.replace( | ||
/\{([^\{\}]+)\}|([^\{\}]+)/g, | ||
@@ -126,2 +126,7 @@ function(_, expression, literal) { | ||
); | ||
if (template === "/") { | ||
return template; | ||
} else { | ||
return template.replace(/\/$/, ""); | ||
} | ||
} | ||
@@ -128,0 +133,0 @@ export { |
@@ -1,4 +0,4 @@ | ||
const VERSION = "9.0.1"; | ||
const VERSION = "9.0.2"; | ||
export { | ||
VERSION | ||
}; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "9.0.1"; | ||
export declare const VERSION = "9.0.2"; |
@@ -5,3 +5,3 @@ // pkg/dist-src/defaults.js | ||
// pkg/dist-src/version.js | ||
var VERSION = "9.0.1"; | ||
var VERSION = "9.0.2"; | ||
@@ -214,3 +214,3 @@ // pkg/dist-src/defaults.js | ||
var operators = ["+", "#", ".", "/", ";", "?", "&"]; | ||
return template.replace( | ||
template = template.replace( | ||
/\{([^\{\}]+)\}|([^\{\}]+)/g, | ||
@@ -245,2 +245,7 @@ function(_, expression, literal) { | ||
); | ||
if (template === "/") { | ||
return template; | ||
} else { | ||
return template.replace(/\/$/, ""); | ||
} | ||
} | ||
@@ -247,0 +252,0 @@ |
{ | ||
"name": "@octokit/endpoint", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
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
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
88307
1064