Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bpmn-moddle

Package Overview
Dependencies
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmn-moddle - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

test/fixtures/bpmn/extension/camunda/inputOutput-list.part.bpmn

6

lib/simple.js
'use strict';
var assign = require('lodash/object/assign');
var BpmnModdle = require('./bpmn-moddle');

@@ -12,4 +14,4 @@

module.exports = function() {
return new BpmnModdle(packages);
module.exports = function(additionalPackages, options) {
return new BpmnModdle(assign({}, packages, additionalPackages), options);
};
{
"name": "bpmn-moddle",
"version": "0.6.0",
"version": "0.7.0",
"description": "A moddle wrapper for BPMN 2.0",

@@ -5,0 +5,0 @@ "scripts": {

'use strict';
var fs = require('fs'),
map = require('lodash/collection/map');
var fs = require('fs');
var Model = require('moddle');
var SimpleBpmnModdle = require('../');

@@ -21,39 +18,7 @@

function createModelBuilder(base) {
var cache = {};
if (!base) {
throw new Error('[test-util] must specify a base directory');
}
function createModel(packageNames) {
var packages = map(packageNames, function(f) {
var pkg = cache[f];
var file = base + f + '.json';
if (!pkg) {
try {
pkg = cache[f] = JSON.parse(readFile(base + f + '.json'));
} catch (e) {
throw new Error('[Helper] failed to parse <' + file + '> as JSON: ' + e.message);
}
}
return pkg;
});
return new Model(packages);
}
return createModel;
}
module.exports.readFile = readFile;
module.exports.ensureDirExists = ensureDirExists;
module.exports.createModelBuilder = createModelBuilder;
module.exports.createModdle = function() {
return new SimpleBpmnModdle();
module.exports.createModdle = function(additionalPackages, options) {
return new SimpleBpmnModdle(additionalPackages, options);
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc