postman-sandbox
Version:
Sandbox for Postman Scripts to run in Node.js or browser
19 lines (15 loc) • 402 B
JavaScript
/**
* Error message to trigger if bundling is accidentally triggered inside a browser
*
* @constant
* @private
* @type {String}
*/
const ERROR_MESSAGE = 'sandbox: code bundling is not supported in browser. use cached templates.';
function StubBundle () {
throw new Error(ERROR_MESSAGE);
}
StubBundle.load = function () {
throw new Error(ERROR_MESSAGE);
};
module.exports = StubBundle;