@waves/ride-js
Advanced tools
Comparing version 2.1.5-beta.1 to 2.1.5-beta.2
{ | ||
"name": "@waves/ride-js", | ||
"version": "2.1.5-beta.1", | ||
"version": "2.1.5-beta.2", | ||
"description": "Js compiler for Ride - Waves smart contract language.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -83,3 +83,2 @@ export interface ICompilationResult { | ||
//todo разобраться в акой версии компилятора импорту рыботают | ||
export function compile( | ||
@@ -90,2 +89,3 @@ code: string, | ||
removeUnusedCode?: boolean, | ||
libraries?: Record<string, string> | ||
): ICompilationResult | ICompilationError; | ||
@@ -98,2 +98,3 @@ | ||
removeUnusedCode?: boolean, | ||
libraries?: Record<string, string> | ||
): IParseAndCompileResult | ICompilationError; | ||
@@ -335,2 +336,2 @@ | ||
| IMatch | ||
| IRef | ||
| IRef |
@@ -6,3 +6,3 @@ require('./interop'); | ||
function wrappedCompile(code, estimatorVersion = 2, needCompaction, removeUnusedCode) { | ||
function wrappedCompile(code, estimatorVersion = 3, needCompaction = false, removeUnusedCode = false, libraries = {}) { | ||
if (typeof code !== 'string') { | ||
@@ -14,3 +14,3 @@ return { | ||
try { | ||
const result = scalaJsCompiler.compile(code, estimatorVersion, needCompaction, removeUnusedCode); | ||
const result = scalaJsCompiler.compile(code, estimatorVersion, needCompaction, removeUnusedCode, libraries); | ||
if (result.error) { | ||
@@ -103,2 +103,2 @@ try { | ||
global.RideJS = api; | ||
module.exports = api; | ||
module.exports = api; |
Sorry, the diff of this file is too big to display
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
6395149
26351