@stencila/dockter
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -10,4 +10,5 @@ "use strict"; | ||
const DockerParser_1 = __importDefault(require("./DockerParser")); | ||
const JavascriptParser_1 = __importDefault(require("./JavascriptParser")); | ||
const PythonParser_1 = __importDefault(require("./PythonParser")); | ||
const RParser_1 = __importDefault(require("./RParser")); | ||
const PythonParser_1 = __importDefault(require("./PythonParser")); | ||
const DockerGenerator_1 = __importDefault(require("./DockerGenerator")); | ||
@@ -52,4 +53,5 @@ const DockerBuilder_1 = __importDefault(require("./DockerBuilder")); | ||
for (parser of [ | ||
new RParser_1.default(folder), | ||
new PythonParser_1.default(folder) | ||
new JavascriptParser_1.default(folder), | ||
new PythonParser_1.default(folder), | ||
new RParser_1.default(folder) | ||
]) { | ||
@@ -56,0 +58,0 @@ const pkg = await parser.parse(); |
@@ -15,3 +15,3 @@ /** | ||
write(subpath: string, content: string): void; | ||
fetch(url: string): Promise<any>; | ||
fetch(url: string, options?: any): Promise<any>; | ||
} |
@@ -48,3 +48,3 @@ "use strict"; | ||
} | ||
async fetch(url) { | ||
async fetch(url, options = { json: true }) { | ||
if (!REQUEST_CACHE_INITIALISED) { | ||
@@ -73,5 +73,3 @@ await node_persist_1.default.init({ | ||
try { | ||
const response = await got_1.default(url, { | ||
json: true | ||
}); | ||
const response = await got_1.default(url, options); | ||
value = response.body; | ||
@@ -78,0 +76,0 @@ } |
{ | ||
"name": "@stencila/dockter", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "A Docker image builder for researchers", | ||
@@ -54,3 +54,3 @@ "main": "dist/index.js", | ||
"@types/express": "^4.16.0", | ||
"@types/got": "^8.3.4", | ||
"@types/got": "^9.2.0", | ||
"@types/jest": "^23.3.3", | ||
@@ -78,2 +78,3 @@ "@types/js-yaml": "^3.11.2", | ||
"@stencila/schema": "0.2.1", | ||
"detective": "^5.1.0", | ||
"docker-file-parser": "^1.0.4", | ||
@@ -80,0 +81,0 @@ "dockerode": "^2.5.7", |
@@ -7,4 +7,5 @@ import fs from 'fs' | ||
import DockerParser from './DockerParser' | ||
import JavascriptParser from './JavascriptParser' | ||
import PythonParser from './PythonParser' | ||
import RParser from './RParser' | ||
import PythonParser from './PythonParser' | ||
@@ -51,4 +52,5 @@ import DockerGenerator from './DockerGenerator' | ||
for (parser of [ | ||
new RParser(folder), | ||
new PythonParser(folder) | ||
new JavascriptParser(folder), | ||
new PythonParser(folder), | ||
new RParser(folder) | ||
]) { | ||
@@ -55,0 +57,0 @@ const pkg = await parser.parse() |
@@ -55,3 +55,3 @@ import fs from 'fs' | ||
async fetch (url: string): Promise<any> { | ||
async fetch (url: string, options: any = { json: true }): Promise<any> { | ||
if (!REQUEST_CACHE_INITIALISED) { | ||
@@ -80,5 +80,3 @@ await persist.init({ | ||
try { | ||
const response = await got(url, { | ||
json: true | ||
}) | ||
const response = await got(url, options) | ||
value = response.body | ||
@@ -85,0 +83,0 @@ } catch (error) { |
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
252565
121
4670
14
1
+ Addeddetective@^5.1.0
+ Addedacorn@7.4.1(transitive)
+ Addedacorn-node@1.8.2(transitive)
+ Addedacorn-walk@7.2.0(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddetective@5.2.1(transitive)