Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bem-deps: Add sync version of parse #301

Open
Yeti-or opened this issue Apr 3, 2018 · 0 comments
Open

bem-deps: Add sync version of parse #301

Yeti-or opened this issue Apr 3, 2018 · 0 comments

Comments

@Yeti-or
Copy link
Member

Yeti-or commented Apr 3, 2018

smth like:

'use strict';

const defaultParser = require('./formats/deps.js/parser');

module.exports = function parse(parser) {
    parser || (parser = defaultParser);

    return function (deps) {
        return parser(deps);
        // return new Promise(
        //     (resolve) => {
        //         resolve(parser(deps));
        //     }
        // );
    };
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment