{"size": 566, "ext": "js", "max_stars_repo_path": "lib/simple.js", "max_stars_repo_name": "bpmn-io/cmmn-moddle", "max_stars_repo_stars_event_min_datetime": "2015-11-19T13:54:18.000Z", "max_stars_repo_stars_event_max_datetime": "2016-01-08T19:09:09.000Z", "max_issues_repo_path": "lib/simple.js", "max_issues_repo_name": "bpmn-io/cmmn-moddle", "max_issues_repo_issues_event_min_datetime": "2015-09-15T11:19:43.000Z", "max_issues_repo_issues_event_max_datetime": "2018-02-19T10:39:23.000Z", "max_forks_repo_path": "lib/simple.js", "max_forks_repo_name": "bpmn-io/cmmn-moddle", "max_forks_repo_forks_event_min_datetime": "2016-10-05T13:02:39.000Z", "max_forks_repo_forks_event_max_datetime": "2020-06-05T02:51:34.000Z"}
{"max_stars_count": 2, "max_issues_count": 5, "max_forks_count": 3, "avg_line_length": 24.6086956522, "max_line_length": 63, "alphanum_fraction": 0.7296819788}
import {
  assign
} from 'min-dash';

import CmmnModdle from './cmmn-moddle';

import CmmnPackage from '../resources/cmmn/json/cmmn.json';
import CmmnDiPackage from '../resources/cmmn/json/cmmndi.json';
import DcPackage from '../resources/cmmn/json/dc.json';
import DiPackage from '../resources/cmmn/json/di.json';

var packages = {
  cmmn: CmmnPackage,
  cmmndi: CmmnDiPackage,
  dc: DcPackage,
  di: DiPackage
};

export default function(additionalPackages, options) {
  var pks = assign({}, packages, additionalPackages);

  return new CmmnModdle(pks, options);
}