cmacc-compiler
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "cmacc-compiler", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Cmacc Compiler", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -79,3 +79,3 @@ const url = require('url'); | ||
if (opts.token) { | ||
const base = 'https://api.github.com'; | ||
const base = opts.githubApiUrl || 'https://api.github.com'; | ||
const urlPath = path.join('repos', owner, repo, 'contents', path1); | ||
@@ -106,3 +106,6 @@ const location = url.resolve(base, urlPath); | ||
} else { | ||
return fetch(`https://raw.githubusercontent.com/${owner}/${repo}/${branch}/${path1}`) | ||
const base = opts.githubContentUrl || 'https://raw.githubusercontent.com'; | ||
const urlPath = path.join(owner, repo, branch, path1); | ||
const location = url.resolve(base, urlPath); | ||
return fetch(location) | ||
.then(res => res.text()) | ||
@@ -109,0 +112,0 @@ .then(x => { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
53057
1541
6