github-picbed
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "github-picbed", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Upload file to github and Get Url", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -12,3 +12,3 @@ const request = require('./request'); | ||
}) { | ||
let isPage = false; | ||
async function getOptions({ token, repository, branch }) { | ||
@@ -28,9 +28,11 @@ repository = repository.replace(/http(s|):\/\/github.com\//, ''); | ||
} | ||
isPage = true; | ||
} | ||
else { | ||
options = { | ||
domain: `https://cdn.jsdelivr.net/gh/${username}/${repository}/`, | ||
domain: `https://cdn.jsdelivr.net/gh/${username}/${repository}@${branch}/`, | ||
path: '/', | ||
branch | ||
} | ||
isPage = false; | ||
} | ||
@@ -37,0 +39,0 @@ |
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
11302
191