New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wandboxjs

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wandboxjs - npm Package Compare versions

Comparing version 1.0.8 to 2.0.0

21

dist/src/main.js

@@ -19,2 +19,3 @@ "use strict";

function compiler(lang, code) {
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () {

@@ -51,17 +52,11 @@ try {

throw new Error("There was an error executing the command please make sure the language or code you entered is correct.");
const exitCode = splitted
.find((x) => x.includes("data: ExitCode"))
.replace("data: ExitCode:", "") || null;
const signalCode = splitted
.find((x) => x.includes("Signal:"))
.replace(/(data:|Signal:|\\n)/g, "") || null;
const end = splitted === null || splitted === void 0 ? void 0 : splitted.findIndex((x) => x.includes("data: ExitCode"));
const result = splitted
const exitCode = ((_a = splitted
.find((x) => x.includes("data: ExitCode"))) === null || _a === void 0 ? void 0 : _a.replace("data: ExitCode:", "")) || null;
const signalCode = ((_b = splitted
.find((x) => x.includes("Signal:"))) === null || _b === void 0 ? void 0 : _b.replace(/(data:|Signal:|\\n)/g, "")) || null;
const end = splitted.findIndex((x) => x.includes("data: ExitCode"));
const result = ((_c = splitted
.slice(5, end - 3)
.filter((i) => !i.includes("\r"))
.join("\n")
.replace(/(data: |data:|StdOut:|StdErr:|\\n)/g, "")
.split("\n")
.filter((i) => i !== "" && i !== "\r")
.join("\n") || null;
.join("\n")) === null || _c === void 0 ? void 0 : _c.replace(/(data: |data:|StdOut:|StdErr:|\\n)/g, "").split("\n").filter((i) => i !== "" && i !== "\r").join("\n")) || null;
if (result === null || result === void 0 ? void 0 : result.length) {

@@ -68,0 +63,0 @@ return {

@@ -6,3 +6,3 @@ {

"name": "wandboxjs",
"version": "1.0.8",
"version": "2.0.0",
"main": "dist",

@@ -9,0 +9,0 @@ "scripts": {

@@ -47,3 +47,3 @@ "use strict";

.find((x: string) => x.includes("data: ExitCode"))
.replace("data: ExitCode:", "") || null;
?.replace("data: ExitCode:", "") || null;

@@ -53,5 +53,5 @@ const signalCode: string | null =

.find((x) => x.includes("Signal:"))
.replace(/(data:|Signal:|\\n)/g, "") || null;
?.replace(/(data:|Signal:|\\n)/g, "") || null;
const end: number = splitted?.findIndex((x: string) =>
const end: number = splitted.findIndex((x: string) =>
x.includes("data: ExitCode")

@@ -65,3 +65,3 @@ );

.join("\n")
.replace(/(data: |data:|StdOut:|StdErr:|\\n)/g, "")
?.replace(/(data: |data:|StdOut:|StdErr:|\\n)/g, "")
.split("\n")

@@ -68,0 +68,0 @@ .filter((i: string) => i !== "" && i !== "\r")

Sorry, the diff of this file is not supported yet

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