Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var path = require('path');
var Backend = require('sharedb').Backend;
var Model = require('./Model');
var util = require('./util');
module.exports = RacerBackend;
function RacerBackend(racer, options) {
Backend.call(this, options);
this.racer = racer;
this.modelOptions = options && options.modelOptions;
this.on('bundle', function(browserify) {
var racerPath = path.join(__dirname, 'index.js');
browserify.require(racerPath, {expose: 'racer'});
});
}
RacerBackend.prototype = Object.create(Backend.prototype);