{"size": 759, "ext": "js", "max_stars_repo_path": "node_modules/xstate/lib/Machine.js", "max_stars_repo_name": "abreuboom/yap", "max_stars_repo_stars_event_min_datetime": "2020-08-10T15:08:55.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-13T05:34:56.000Z", "max_issues_repo_path": "node_modules/xstate/lib/Machine.js", "max_issues_repo_name": "abreuboom/yap", "max_issues_repo_issues_event_min_datetime": "2020-06-18T10:29:24.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-17T23:02:01.000Z", "max_forks_repo_path": "node_modules/xstate/lib/Machine.js", "max_forks_repo_name": "abreuboom/yap", "max_forks_repo_forks_event_min_datetime": "2020-01-19T14:09:19.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-23T19:56:38.000Z"}
{"max_stars_count": 3, "max_issues_count": 21, "max_forks_count": 3, "avg_line_length": 39.9473684211, "max_line_length": 78, "alphanum_fraction": 0.7246376812}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var StateNode_1 = require("./StateNode");
function Machine(config, options, initialContext) {
    if (initialContext === void 0) { initialContext = config.context; }
    var resolvedInitialContext = typeof initialContext === 'function'
        ? initialContext()
        : initialContext;
    return new StateNode_1.StateNode(config, options, resolvedInitialContext);
}
exports.Machine = Machine;
function createMachine(config, options) {
    var resolvedInitialContext = typeof config.context === 'function'
        ? config.context()
        : config.context;
    return new StateNode_1.StateNode(config, options, resolvedInitialContext);
}
exports.createMachine = createMachine;
