Comparing version 0.9.0-beta21 to 0.9.0-beta22
@@ -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 @@ } |
@@ -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
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
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
1080438
3438