Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stencila/dockter

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stencila/dockter - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

dist/JavascriptParser.d.ts

8

dist/DockerCompiler.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc