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

@waves/ride-js

Package Overview
Dependencies
Maintainers
13
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waves/ride-js - npm Package Compare versions

Comparing version 2.1.1-beta.3 to 2.1.1

11

package.json
{
"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

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