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

aeproject-utils

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aeproject-utils - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

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

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