Skip to content

Commit f560e39

Browse files
committed
Merge in work from MrRefactoring's branch
2 parents 86c23d1 + 593ee0c commit f560e39

File tree

5 files changed

+642
-96
lines changed

5 files changed

+642
-96
lines changed

packages/core/lib/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ReplManager.prototype.start = function(options) {
6969

7070
// Bubble the internal repl's reset event
7171
this.repl.on("reset", function() {
72-
process.stdout.write('\u001B[2J\u001B[0;0f');
72+
process.stdout.write("\u001B[2J\u001B[0;0f");
7373
self.emit("reset");
7474
});
7575

packages/core/lib/testing/testresolver.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@ TestResolver.prototype.require = function(import_path) {
2727
return result;
2828
};
2929

30-
TestResolver.prototype.resolve = function(
31-
importPath,
32-
importedFrom,
33-
callback
34-
) {
30+
TestResolver.prototype.resolve = function(importPath, importedFrom, callback) {
3531
var self = this;
36-
this.source.resolve(importPath)
32+
this.source
33+
.resolve(importPath)
3734
.then(result => {
38-
if (result && result.body) return callback(null, result.body, result.resolvedPath);
35+
if (result && result.body)
36+
return callback(null, result.body, result.resolvedPath);
3937
self.resolver.resolve(importPath, importedFrom, callback);
4038
})
4139
.catch(callback);

packages/core/lib/testing/testsource.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ TestSource.prototype.resolve = async function(importPath) {
2222
const buildDirFiles = (abstractionFiles = fse.readdirSync(
2323
self.config.contracts_build_directory
2424
));
25-
abstractionFiles = buildDirFiles.filter(file =>
26-
file.match(/^.*.json$/)
27-
);
25+
abstractionFiles = buildDirFiles.filter(file => file.match(/^.*.json$/));
2826

2927
const mapping = {};
3028

packages/resolver/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ Resolver.prototype.resolve = function(import_path, imported_from, callback) {
4646
},
4747
function(next) {
4848
source = self.sources[current_index];
49-
source.resolve(import_path, imported_from)
49+
source
50+
.resolve(import_path, imported_from)
5051
.then(result => {
5152
if (result.body) {
5253
resolved_body = result.body;

0 commit comments

Comments
 (0)