From e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Mon, 16 Nov 2020 00:10:28 +0100 Subject: api, login, auth --- node_modules/node-sass/lib/binding.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 node_modules/node-sass/lib/binding.js (limited to 'node_modules/node-sass/lib/binding.js') diff --git a/node_modules/node-sass/lib/binding.js b/node_modules/node-sass/lib/binding.js new file mode 100644 index 0000000..7af4132 --- /dev/null +++ b/node_modules/node-sass/lib/binding.js @@ -0,0 +1,20 @@ +/*! + * node-sass: lib/binding.js + */ + +var errors = require('./errors'); + +/** + * Require binding + */ +module.exports = function(ext) { + if (!ext.hasBinary(ext.getBinaryPath())) { + if (!ext.isSupportedEnvironment()) { + throw new Error(errors.unsupportedEnvironment()); + } else { + throw new Error(errors.missingBinary()); + } + } + + return require(ext.getBinaryPath()); +}; -- cgit v1.2.3