scryptlib
Advanced tools
Comparing version 0.3.2-beta2 to 0.3.2-beta3
@@ -112,2 +112,3 @@ import { ContractDescription } from './contract'; | ||
optimize?: boolean; | ||
timeout?: number; | ||
}): CompileResult; | ||
@@ -114,0 +115,0 @@ export declare function compilerVersion(cwd?: string): string; |
@@ -51,2 +51,3 @@ "use strict"; | ||
const outputDir = settings.outputDir || srcDir; | ||
const timeout = settings.timeout || 1200000; | ||
const outputFiles = {}; | ||
@@ -57,3 +58,3 @@ try { | ||
const cmd = `${cmdPrefix} compile ${settings.asm || settings.desc ? '--asm' : ''} ${settings.ast || settings.desc ? '--ast' : ''} ${settings.debug == false ? '' : '--debug'} ${settings.optimize ? '--opt' : ''} -r -o "${outputDir}" ${settings.cmdArgs ? settings.cmdArgs : ''}`; | ||
let output = child_process_1.execSync(cmd, { input: sourceContent, cwd: curWorkingDir }).toString(); | ||
let output = child_process_1.execSync(cmd, { input: sourceContent, cwd: curWorkingDir, timeout }).toString(); | ||
// Because the output of the compiler on the win32 platform uses crlf as a newline, here we change \r\n to \n. make SYNTAX_ERR_REG、SEMANTIC_ERR_REG、IMPORT_ERR_REG work. | ||
@@ -60,0 +61,0 @@ output = output.split(/\r?\n/g).join('\n'); |
{ | ||
"name": "scryptlib", | ||
"version": "0.3.2-beta2", | ||
"version": "0.3.2-beta3", | ||
"description": "Javascript SDK for integration of Bitcoin SV Smart Contracts written in sCrypt language.", | ||
@@ -5,0 +5,0 @@ "engines": { |
128479
2922