@waves/ride-js
Advanced tools
Comparing version 2.1.1-beta.3 to 2.1.1
{ | ||
"name": "@waves/ride-js", | ||
"version": "2.1.1-beta.3", | ||
"version": "2.1.1", | ||
"description": "Js compiler for Ride - Waves smart contract language.", | ||
@@ -36,5 +36,4 @@ "main": "src/index.js", | ||
"chai": "^4.2.0", | ||
"copy-webpack-plugin": "^8.1.1", | ||
"mocha": "^8.3.2", | ||
"node-forge": "^0.10.0", | ||
"copy-webpack-plugin": "^4.5.2", | ||
"mocha": "^5.2.0", | ||
"webpack": "^4.16.0", | ||
@@ -45,5 +44,5 @@ "webpack-cli": "^3.0.8", | ||
"dependencies": { | ||
"@waves/ts-lib-crypto": "^1.4.4-beta.1", | ||
"axios": "^0.21.1" | ||
"@waves/ts-lib-crypto": "^1.4.3", | ||
"axios": "^0.19.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
export interface ICompilationResult { | ||
export interface ICompilationResult { | ||
result: { | ||
@@ -82,7 +82,7 @@ ast: object | ||
export function compile(code: string, estimatorVersion?: number): ICompilationResult | ICompilationError; | ||
export function compile(code: string, estimatorVersion: number, needCompaction?: boolean, removeUnusedCode?: boolean, libraries?: Record<string, string>): ICompilationResult | ICompilationError; | ||
export function flattenCompilationResult(compiled: ICompilationResult | ICompilationError): IFlattenedCompilationResult | ||
export function parseAndCompile(code: string, estimatorVersion?: number): IParseAndCompileResult | ICompilationError; | ||
export function parseAndCompile(code: string, estimatorVersion: number, needCompaction?: boolean, removeUnusedCode?: boolean, libraries?: Record<string, string>): IParseAndCompileResult | ICompilationError; | ||
@@ -236,5 +236,9 @@ export function scriptInfo(code: string): IScriptInfo | ICompilationError; | ||
export type TArgument = { argName: IName, typeList: TArgumentType[] } | ||
export type TArgumentType = { typeName: IName, typeParam?: any } | ||
export type TArgument = { argName: IName, type: TArgumentType } | ||
export type TArgumentType = { typeName: IName, typeParam?: ITypeParam } | ||
export interface ITypeParam extends IPos { | ||
value: {isUnion: boolean, typeList: TArgumentType[]} | ||
} | ||
export interface IFunctionCall extends IExprNode { | ||
@@ -241,0 +245,0 @@ type: 'FUNCTION_CALL' |
@@ -5,3 +5,3 @@ require('./interop'); | ||
function wrappedCompile(code, estimatorVersion = 2) { | ||
function wrappedCompile(code, estimatorVersion = 3, needCompaction = false, removeUnusedCode = false, libraries = {}) { | ||
if (typeof code !== 'string') { | ||
@@ -13,3 +13,3 @@ return { | ||
try { | ||
const result = scalaJsCompiler.compile(code, estimatorVersion); | ||
const result = scalaJsCompiler.compile(code, estimatorVersion, needCompaction, removeUnusedCode, libraries); | ||
if (result.error) { | ||
@@ -16,0 +16,0 @@ try { |
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4290805
6
17729
1
+ Added@waves/ts-lib-crypto@1.4.3(transitive)
+ Addedaxios@0.19.2(transitive)
+ Addedfollow-redirects@1.5.10(transitive)
+ Addednode-forge@0.8.5(transitive)
- Removed@waves/ts-lib-crypto@1.4.4-beta.1(transitive)
- Removedaxios@0.21.4(transitive)
- Removedfollow-redirects@1.15.9(transitive)
- Removednode-forge@0.10.0(transitive)
Updated@waves/ts-lib-crypto@^1.4.3
Updatedaxios@^0.19.0