diff --git a/index.js b/index.js index e2f6387..8f2b62e 100644 --- a/index.js +++ b/index.js @@ -10,8 +10,10 @@ const processor = require('remark') const path = require('path') const fs = require('fs') +const kPromise = Symbol('promise') + function hallmark (options, callback) { - callback = fromCallback(callback) + callback = fromCallback(callback, kPromise) const fix = !!options.fix const cwd = path.resolve(options.cwd || '.') @@ -116,7 +118,7 @@ function hallmark (options, callback) { }) }) - return callback.promise + return callback[kPromise] } exports.lint = function (options, callback) { diff --git a/package.json b/package.json index aa31b0a..103d2e8 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "USAGE" ], "dependencies": { - "catering": "^2.0.0", + "catering": "^2.1.0", "deglob": "^4.0.0", "find-file-up": "^2.0.1", "find-githost": "^1.0.0",