bridge-compile
Advanced tools
Comparing version 1.0.1 to 1.0.2
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.runAsyncCommand = void 0; | ||
const child_process_1 = require("child_process"); | ||
function runAsyncCommand(command) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new Promise((resolve, reject) => { | ||
(0, child_process_1.exec)(command, (error, stdout, stderr) => { | ||
if (error) { | ||
reject(error); | ||
} | ||
else { | ||
resolve({ stdout, stderr }); | ||
} | ||
}); | ||
async function runAsyncCommand(command) { | ||
return new Promise((resolve, reject) => { | ||
(0, child_process_1.exec)(command, (error, stdout, stderr) => { | ||
if (error) { | ||
reject(error); | ||
} | ||
else { | ||
resolve({ stdout, stderr }); | ||
} | ||
}); | ||
@@ -26,0 +15,0 @@ }); |
{ | ||
"name": "bridge-compile", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Compile the sdk of your Bridge project with one command locally", | ||
@@ -5,0 +5,0 @@ "author": "Bridge Team <support@bridge.codes>", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
60945
32
1326
8
2