Socket
Socket
Sign inDemoInstall

node-pty

Package Overview
Dependencies
Maintainers
3
Versions
164
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pty - npm Package Compare versions

Comparing version 0.9.0-beta21 to 0.9.0-beta22

11

lib/unixTerminal.js

@@ -28,4 +28,11 @@ "use strict";

}
catch (_a) {
pty = require('../build/Debug/pty.node');
catch (outerError) {
try {
pty = require('../build/Debug/pty.node');
}
catch (innerError) {
console.error('innerError', innerError);
// Re-throw the exception from the Release require if the Debug require fails as well
throw outerError;
}
}

@@ -32,0 +39,0 @@ var DEFAULT_FILE = 'sh';

@@ -37,4 +37,11 @@ "use strict";

}
catch (err) {
conptyNative = require('../build/Debug/conpty.node');
catch (outerError) {
try {
conptyNative = require('../build/Debug/conpty.node');
}
catch (innerError) {
console.error('innerError', innerError);
// Re-throw the exception from the Release require if the Debug require fails as well
throw outerError;
}
}

@@ -48,4 +55,11 @@ }

}
catch (err) {
winptyNative = require('../build/Debug/pty.node');
catch (outerError) {
try {
winptyNative = require('../build/Debug/pty.node');
}
catch (innerError) {
console.error('innerError', innerError);
// Re-throw the exception from the Release require if the Debug require fails as well
throw outerError;
}
}

@@ -52,0 +66,0 @@ }

2

package.json

@@ -7,3 +7,3 @@ {

},
"version": "0.9.0-beta21",
"version": "0.9.0-beta22",
"license": "MIT",

@@ -10,0 +10,0 @@ "main": "./lib/index.js",

@@ -15,4 +15,10 @@ /**

pty = require('../build/Release/pty.node');
} catch {
pty = require('../build/Debug/pty.node');
} catch (outerError) {
try {
pty = require('../build/Debug/pty.node');
} catch (innerError) {
console.error('innerError', innerError);
// Re-throw the exception from the Release require if the Debug require fails as well
throw outerError;
}
}

@@ -19,0 +25,0 @@

@@ -64,4 +64,10 @@ /**

conptyNative = require('../build/Release/conpty.node');
} catch (err) {
conptyNative = require('../build/Debug/conpty.node');
} catch (outerError) {
try {
conptyNative = require('../build/Debug/conpty.node');
} catch (innerError) {
console.error('innerError', innerError);
// Re-throw the exception from the Release require if the Debug require fails as well
throw outerError;
}
}

@@ -73,4 +79,10 @@ }

winptyNative = require('../build/Release/pty.node');
} catch (err) {
winptyNative = require('../build/Debug/pty.node');
} catch (outerError) {
try {
winptyNative = require('../build/Debug/pty.node');
} catch (innerError) {
console.error('innerError', innerError);
// Re-throw the exception from the Release require if the Debug require fails as well
throw outerError;
}
}

@@ -77,0 +89,0 @@ }

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