You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
355 B
20 lines
355 B
11 years ago
|
"use strict";
|
||
|
|
||
8 years ago
|
export = (params, processor) => ({
|
||
8 years ago
|
"process": () => {
|
||
8 years ago
|
if (params.error) {
|
||
|
processor.onError(params.error);
|
||
|
}
|
||
11 years ago
|
|
||
8 years ago
|
if (params.warn) {
|
||
|
processor.onWarn(params.warn);
|
||
|
}
|
||
11 years ago
|
|
||
8 years ago
|
if (params.info) {
|
||
|
processor.onInfo(params.info);
|
||
|
}
|
||
8 years ago
|
|
||
8 years ago
|
processor.done();
|
||
|
}
|
||
8 years ago
|
});
|