aeproject-utils
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "aeproject-utils", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -10,4 +10,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"@aeternity/aepp-sdk": "4.5.0", | ||
"aeproject-config": "^1.0.0", | ||
"@aeternity/aepp-sdk": "5.0.0", | ||
"aeproject-config": "^1.0.1", | ||
"axios": "^0.19.0", | ||
@@ -14,0 +14,0 @@ "chalk": "^2.4.1", |
@@ -1,2 +0,2 @@ | ||
require = require('esm')(module /*, options */) // use to handle es6 import/export | ||
require = require('esm')(module /*, options */ ) // use to handle es6 import/export | ||
let axios = require('axios'); | ||
@@ -7,2 +7,3 @@ const fs = require('fs'); | ||
const Universal = AeSDK.Universal; | ||
const Node = AeSDK.Node; | ||
let rgx = /^include\s+\"([\d\w\/\.\-\_]+)\"/gmi; | ||
@@ -31,6 +32,15 @@ let dependencyPathRgx = /"([\d\w\/\.\-\_]+)\"/gmi; | ||
} | ||
let node = await Node({ | ||
url: network.url, | ||
internalUrl: internalUrl, | ||
forceCompatibility: true | ||
}) | ||
await handleApiError(async () => { | ||
client = await Universal({ | ||
url: network.url, | ||
internalUrl, | ||
nodes: [{ | ||
name: 'ANY_NAME', | ||
instance: node | ||
}], | ||
accounts: [AeSDK.MemoryAccount({ | ||
@@ -41,3 +51,4 @@ keypair | ||
networkId: network.networkId, | ||
compilerUrl: network.compilerUrl | ||
compilerUrl: network.compilerUrl, | ||
forceCompatibility: true | ||
}) | ||
@@ -98,3 +109,3 @@ }); | ||
function logApiError (error) { | ||
function logApiError(error) { | ||
printError(`API ERROR: ${ error }`) | ||
@@ -155,3 +166,3 @@ } | ||
function readErrorSpawnOutput (spawnResult) { | ||
function readErrorSpawnOutput(spawnResult) { | ||
if (!spawnResult.stderr || spawnResult.stderr === '') { | ||
@@ -165,3 +176,3 @@ return ''; | ||
function readSpawnOutput (spawnResult) { | ||
function readSpawnOutput(spawnResult) { | ||
if (!spawnResult.stdout || spawnResult.stdout === '') { | ||
@@ -175,3 +186,3 @@ return ''; | ||
async function contractCompile (source, contractPath, compileOptions) { | ||
async function contractCompile(source, contractPath, compileOptions) { | ||
let result; | ||
@@ -198,3 +209,3 @@ let options = { | ||
function checkNestedProperty (obj, property) { | ||
function checkNestedProperty(obj, property) { | ||
if (!obj || !obj.hasOwnProperty(property)) { | ||
@@ -207,3 +218,3 @@ return false; | ||
function getDependencies (contractContent, contractPath) { | ||
function getDependencies(contractContent, contractPath) { | ||
let allDependencies = []; | ||
@@ -241,3 +252,3 @@ let dependencyFromContract; | ||
function getActualContract (contractContent) { | ||
function getActualContract(contractContent) { | ||
let contentStartIndex = contractContent.indexOf('contract '); | ||
@@ -249,3 +260,3 @@ let content = contractContent.substr(contentStartIndex); | ||
function normalizeCompilerUrl (url) { | ||
function normalizeCompilerUrl(url) { | ||
@@ -267,3 +278,3 @@ if (!url.startsWith('http')) { | ||
async function waitForContainer (dockerImage, options) { | ||
async function waitForContainer(dockerImage, options) { | ||
try { | ||
@@ -270,0 +281,0 @@ let running = false; |
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
618
20902
8
+ Added@aeternity/aepp-sdk@5.0.0(transitive)
+ Addedserialize-javascript@2.1.2(transitive)
- Removed@aeternity/aepp-sdk@4.5.0(transitive)
- Removedserialize-javascript@1.9.1(transitive)
Updated@aeternity/aepp-sdk@5.0.0
Updatedaeproject-config@^1.0.1