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

@celo/celo-composer

Package Overview
Dependencies
Maintainers
21
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@celo/celo-composer - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

37

bin/create.js

@@ -7,2 +7,3 @@ const inquirer = require("inquirer");

const { ensureDir, readdir } = require("fs-extra");
const Os = require("os");

@@ -183,11 +184,28 @@ const BASE_URL = "https://github.com/celo-org/celo-composer/";

*/
let packagesStdOut;
if(isWindows) {
let { stdout } = shell.exec("dir packages /b", {
silent: true,
});
packagesStdOut = stdout;
} else {
let { stdout } = shell.exec("echo packages/*/", {
silent: true,
});
packagesStdOut = stdout;
}
let { stdout: packagesStdOut } = shell.exec("echo packages/*/", {
silent: true,
});
/**
* Node 14 and below doens't support replaceAll
*/
let packages = packagesStdOut
let packages;
if(isWindows) {
packages = packagesStdOut.replaceAll("\n", " ").replaceAll("\r", "").split(" ");
// remove empty strings from array
packages = packages.filter(function (el) {
return el != null && el != "";
});
} else {
// remove new line from packagesStdOut
packages = packagesStdOut
.replace(/packages\//g, "")

@@ -197,3 +215,4 @@ .replace(/\//g, "")

.split(" ");
}
/**

@@ -333,4 +352,8 @@ * For every package selected by user,

function isWindows() {
return Os.platform() === 'win32'
}
module.exports = {
createAsync,
};
};

2

package.json
{
"name": "@celo/celo-composer",
"version": "1.0.3",
"version": "1.0.4",
"description": "Get started building dApps on Celo",

@@ -5,0 +5,0 @@ "repository": {

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