-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[major] Move binary dependencies to optionalDependencies to preven bu…
…ild failures
- Loading branch information
Showing
6 changed files
with
15 additions
and
304 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
'use strict'; | ||
|
||
/*! | ||
* ws: a node.js websocket client | ||
* Copyright(c) 2011 Einar Otto Stangvik <[email protected]> | ||
* MIT Licensed | ||
*/ | ||
|
||
try { | ||
module.exports = require('../build/Release/bufferutil'); | ||
} catch (e) { try { | ||
module.exports = require('../build/default/bufferutil'); | ||
} catch (e) { try { | ||
module.exports = require('./BufferUtil.fallback'); | ||
module.exports = require('bufferutil'); | ||
} catch (e) { | ||
console.error('bufferutil.node seems to not have been built. Run npm install.'); | ||
throw e; | ||
}}} | ||
module.exports = require('./BufferUtil.fallback'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
'use strict'; | ||
|
||
/*! | ||
* ws: a node.js websocket client | ||
* Copyright(c) 2011 Einar Otto Stangvik <[email protected]> | ||
* MIT Licensed | ||
*/ | ||
|
||
try { | ||
module.exports = require('../build/Release/validation'); | ||
} catch (e) { try { | ||
module.exports = require('../build/default/validation'); | ||
} catch (e) { try { | ||
module.exports = require('./Validation.fallback'); | ||
module.exports = require('utf-8-validation'); | ||
} catch (e) { | ||
console.error('validation.node seems to not have been built. Run npm install.'); | ||
throw e; | ||
}}} | ||
module.exports = require('./Validation.fallback'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.