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

@esy-nightly/esy

Package Overview
Dependencies
Maintainers
3
Versions
581
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@esy-nightly/esy - npm Package Compare versions

Comparing version 0.6.14-d8cb5b to 0.6.14-f380ce

platform-darwin/_export/esy-b79b29e0.tar.gz

2

package.json
{
"name": "@esy-nightly/esy",
"version": "0.6.14-d8cb5b",
"version": "0.6.14-f380ce",
"license": "BSD-2-Clause",

@@ -5,0 +5,0 @@ "description": "Package builder for esy.",

@@ -7,6 +7,5 @@ {

"scripts": {
"postinstall":
"node -e \"process.env['OCAML_VERSION']='ocaml'; process.env['OCAML_PKG_NAME']='n.00.0000'; require('./esyInstallRelease.js')\""
"postinstall": "node -e \"process.env['OCAML_VERSION']='ocaml'; process.env['OCAML_PKG_NAME']='n.00.0000'; require('./esyInstallRelease.js')\""
},
"bin": { "esy": "bin/esy" }
}

@@ -152,3 +152,3 @@ # esy

```sh
.\node_modules\esy-bash\re\_build\default\bin\EsyBash.exe bash
.\node_modules\@prometheansacrifice\esy-bash\re\_build\default\bin\EsyBash.exe bash
```

@@ -155,0 +155,0 @@

@@ -7,6 +7,5 @@ {

"scripts": {
"postinstall":
"node -e \"process.env['OCAML_VERSION']='ocaml'; process.env['OCAML_PKG_NAME']='n.00.0000'; require('./esyInstallRelease.js')\""
"postinstall": "node -e \"process.env['OCAML_VERSION']='ocaml'; process.env['OCAML_PKG_NAME']='n.00.0000'; require('./esyInstallRelease.js')\""
},
"bin": { "esy": "bin/esy.exe" }
}

@@ -152,3 +152,3 @@ # esy

```sh
.\node_modules\esy-bash\re\_build\default\bin\EsyBash.exe bash
.\node_modules\@prometheansacrifice\esy-bash\re\_build\default\bin\EsyBash.exe bash
```

@@ -155,0 +155,0 @@

@@ -12,15 +12,15 @@ /**

var path = require("path");
var cp = require("child_process");
var fs = require("fs");
var os = require("os");
var path = require('path');
var cp = require('child_process');
var fs = require('fs');
var os = require('os');
var platform = process.platform;
var packageJson = require("./package.json");
var packageJson = require('./package.json');
var binariesToCopy = Object.keys(packageJson.bin)
.map(function(name) {
.map(function (name) {
return packageJson.bin[name];
})
.concat(["esyInstallRelease.js"]);
var foldersToCopy = ["bin", "_export"];
.concat(['esyInstallRelease.js']);
var foldersToCopy = ['bin', '_export'];

@@ -31,3 +31,3 @@ function copyRecursive(srcDir, dstDir) {

var src, dst;
list.forEach(function(file) {
list.forEach(function (file) {
src = path.join(srcDir, file);

@@ -41,3 +41,3 @@ dst = path.join(dstDir, file);

} catch (e) {
console.log("directory already exists: " + dst);
console.log('directory already exists: ' + dst);
console.error(e);

@@ -69,4 +69,4 @@ }

*/
if (process.arch === "x64") {
return "x64";
if (process.arch === 'x64') {
return 'x64';
}

@@ -77,4 +77,4 @@

*/
if (process.platform === "darwin") {
return "x64";
if (process.platform === 'darwin') {
return 'x64';
}

@@ -87,11 +87,9 @@

*/
if (process.platform === "win32") {
if (process.platform === 'win32') {
var useEnv = false;
try {
useEnv = !!(
process.env.SYSTEMROOT && fs.statSync(process.env.SYSTEMROOT)
);
useEnv = !!(process.env.SYSTEMROOT && fs.statSync(process.env.SYSTEMROOT));
} catch (err) {}
var sysRoot = useEnv ? process.env.SYSTEMROOT : "C:\\Windows";
var sysRoot = useEnv ? process.env.SYSTEMROOT : 'C:\\Windows';

@@ -101,6 +99,6 @@ // If %SystemRoot%\SysNative exists, we are in a WOW64 FS Redirected application.

try {
isWOW64 = !!fs.statSync(path.join(sysRoot, "sysnative"));
isWOW64 = !!fs.statSync(path.join(sysRoot, 'sysnative'));
} catch (err) {}
return isWOW64 ? "x64" : "x86";
return isWOW64 ? 'x64' : 'x86';
}

@@ -111,5 +109,5 @@

*/
if (process.platform === "linux") {
var output = cp.execSync("getconf LONG_BIT", { encoding: "utf8" });
return output === "64\n" ? "x64" : "x86";
if (process.platform === 'linux') {
var output = cp.execSync('getconf LONG_BIT', {encoding: 'utf8'});
return output === '64\n' ? 'x64' : 'x86';
}

@@ -120,3 +118,3 @@

*/
return "x86";
return 'x86';
}

@@ -131,5 +129,5 @@

} catch (e) {
data = fs.readFileSync(sourcePath + ".exe");
sourcePath = sourcePath + ".exe";
destPath = destPath + ".exe";
data = fs.readFileSync(sourcePath + '.exe');
sourcePath = sourcePath + '.exe';
destPath = destPath + '.exe';
}

@@ -141,6 +139,6 @@ var stat = fs.statSync(sourcePath);

var copyPlatformBinaries = platformPath => {
var platformBuildPath = path.join(__dirname, "platform-" + platformPath);
var copyPlatformBinaries = (platformPath) => {
var platformBuildPath = path.join(__dirname, 'platform-' + platformPath);
foldersToCopy.forEach(folderPath => {
foldersToCopy.forEach((folderPath) => {
var sourcePath = path.join(platformBuildPath, folderPath);

@@ -152,3 +150,3 @@ var destPath = path.join(__dirname, folderPath);

binariesToCopy.forEach(binaryPath => {
binariesToCopy.forEach((binaryPath) => {
var sourcePath = path.join(platformBuildPath, binaryPath);

@@ -164,29 +162,31 @@ var destPath = path.join(__dirname, binaryPath);

try {
fs.mkdirSync("_export");
fs.mkdirSync('_export');
} catch (e) {
console.log("Could not create _export folder");
console.log('Could not create _export folder');
}
switch (platform) {
case "win32":
if (arch() !== "x64") {
console.warn("error: x86 is currently not supported on Windows");
case 'win32':
if (arch() !== 'x64') {
console.warn('error: x86 is currently not supported on Windows');
process.exit(1);
}
copyPlatformBinaries("windows-x64");
copyPlatformBinaries('windows-x64');
console.log('Installing native compiler toolchain for Windows...');
cp.execSync(`npm install esy-bash@0.3.20 --prefix "${__dirname}"`);
cp.execSync(
`npm install @prometheansacrifice/esy-bash@0.1.0-dev-f2e419601a34c3ce53cbe1f025f490276b9e879f --prefix "${__dirname}"`,
);
console.log('Native compiler toolchain installed successfully.');
break;
break;
case "linux":
case "darwin":
copyPlatformBinaries(platform + (process.arch === "x64" ? "": "-arm64"));
case 'linux':
case 'darwin':
copyPlatformBinaries(platform + (process.arch === 'x64' ? '' : '-arm64'));
break;
default:
console.warn("error: no release built for the " + platform + " platform");
console.warn('error: no release built for the ' + platform + ' platform');
process.exit(1);
}
require("./esyInstallRelease");
require('./esyInstallRelease');

@@ -152,3 +152,3 @@ # esy

```sh
.\node_modules\esy-bash\re\_build\default\bin\EsyBash.exe bash
.\node_modules\@prometheansacrifice\esy-bash\re\_build\default\bin\EsyBash.exe bash
```

@@ -155,0 +155,0 @@

Sorry, the diff of this file is not supported yet

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