Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
load: function(datasourcePath, password) {
var workspace = new Buttercup.Workspace(),
datasource = new Buttercup.FileDatasource(datasourcePath);
return datasource.load(password).then(function(archive) {
workspace
.setArchive(archive)
.setDatasource(datasource)
.setPassword(password);
return workspace;
});
},