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

makecode

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

makecode - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

42

built/cli.js

@@ -35,16 +35,22 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const simpleOpts = {
native: opts.native
};
const res = yield prj.buildAsync(simpleOpts);
let output = "";
for (let diagnostic of res.diagnostics) {
const category = diagnostic.category == 1 ? chalk.red("error") : diagnostic.category == 2 ? chalk.yellowBright("warning") : "message";
if (diagnostic.fileName)
output += `${diagnostic.fileName}(${diagnostic.line + 1},${diagnostic.column + 1}): `;
output += `${category} TS${diagnostic.code}: ${diagnostic.messageText}\n`;
try {
const simpleOpts = {
native: opts.native
};
const res = yield prj.buildAsync(simpleOpts);
let output = "";
for (let diagnostic of res.diagnostics) {
const category = diagnostic.category == 1 ? chalk.red("error") : diagnostic.category == 2 ? chalk.yellowBright("warning") : "message";
if (diagnostic.fileName)
output += `${diagnostic.fileName}(${diagnostic.line + 1},${diagnostic.column + 1}): `;
output += `${category} TS${diagnostic.code}: ${diagnostic.messageText}\n`;
}
if (output)
console.log(output.replace(/\n$/, ""));
return res.success;
}
if (output)
console.log(output.replace(/\n$/, ""));
return res.success;
catch (e) {
error("Exception: " + e.stack);
return false;
}
});

@@ -170,11 +176,5 @@ }

}
try {
const ok = yield buildOnePrj(opts, prj0);
if (!ok)
success = false;
}
catch (e) {
error("Exception: " + e.message);
const ok = yield buildOnePrj(opts, prj0);
if (!ok)
success = false;
}
}

@@ -181,0 +181,0 @@ }

{
"name": "makecode",
"version": "0.8.1",
"version": "0.8.2",
"description": "MakeCode (PXT) - web-cached build tool",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

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