bpmn-moddle 8.1.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -0
- package/dist/{index.esm.js → index.js} +5 -4
- package/dist/index.js.map +1 -0
- package/package.json +27 -22
- package/dist/bpmn-moddle.umd.cjs +0 -7893
package/dist/index.cjs
CHANGED
|
@@ -3730,7 +3730,7 @@ var BpmnInColorPackage = {
|
|
|
3730
3730
|
associations: associations
|
|
3731
3731
|
};
|
|
3732
3732
|
|
|
3733
|
-
|
|
3733
|
+
const packages = {
|
|
3734
3734
|
bpmn: BpmnPackage,
|
|
3735
3735
|
bpmndi: BpmnDiPackage,
|
|
3736
3736
|
dc: DcPackage,
|
|
@@ -3739,10 +3739,11 @@ var packages = {
|
|
|
3739
3739
|
color: BpmnInColorPackage
|
|
3740
3740
|
};
|
|
3741
3741
|
|
|
3742
|
-
function
|
|
3743
|
-
|
|
3742
|
+
function SimpleBpmnModdle(additionalPackages, options) {
|
|
3743
|
+
const pks = minDash.assign({}, packages, additionalPackages);
|
|
3744
3744
|
|
|
3745
3745
|
return new BpmnModdle(pks, options);
|
|
3746
3746
|
}
|
|
3747
3747
|
|
|
3748
|
-
module.exports =
|
|
3748
|
+
module.exports = SimpleBpmnModdle;
|
|
3749
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../lib/bpmn-moddle.js","../lib/simple.js"],"sourcesContent":["import {\n isString,\n assign\n} from 'min-dash';\n\nimport {\n Moddle\n} from 'moddle';\n\nimport {\n Reader,\n Writer\n} from 'moddle-xml';\n\n\n/**\n * A sub class of {@link Moddle} with support for import and export of BPMN 2.0 xml files.\n *\n * @class BpmnModdle\n * @extends Moddle\n *\n * @param {Object|Array} packages to use for instantiating the model\n * @param {Object} [options] additional options to pass over\n */\nexport default function BpmnModdle(packages, options) {\n Moddle.call(this, packages, options);\n}\n\nBpmnModdle.prototype = Object.create(Moddle.prototype);\n\n/**\n * The fromXML result.\n *\n * @typedef {Object} ParseResult\n *\n * @property {ModdleElement} rootElement\n * @property {Array<Object>} references\n * @property {Array<Error>} warnings\n * @property {Object} elementsById - a mapping containing each ID -> ModdleElement\n */\n\n/**\n * The fromXML error.\n *\n * @typedef {Error} ParseError\n *\n * @property {Array<Error>} warnings\n */\n\n/**\n * Instantiates a BPMN model tree from a given xml string.\n *\n * @param {String} xmlStr\n * @param {String} [typeName='bpmn:Definitions'] name of the root element\n * @param {Object} [options] options to pass to the underlying reader\n *\n * @returns {Promise<ParseResult, ParseError>}\n */\nBpmnModdle.prototype.fromXML = function(xmlStr, typeName, options) {\n\n if (!isString(typeName)) {\n options = typeName;\n typeName = 'bpmn:Definitions';\n }\n\n var reader = new Reader(assign({ model: this, lax: true }, options));\n var rootHandler = reader.handler(typeName);\n\n return reader.fromXML(xmlStr, rootHandler);\n};\n\n\n/**\n * The toXML result.\n *\n * @typedef {Object} SerializationResult\n *\n * @property {String} xml\n */\n\n/**\n * Serializes a BPMN 2.0 object tree to XML.\n *\n * @param {String} element the root element, typically an instance of `bpmn:Definitions`\n * @param {Object} [options] to pass to the underlying writer\n *\n * @returns {Promise<SerializationResult, Error>}\n */\nBpmnModdle.prototype.toXML = function(element, options) {\n\n var writer = new Writer(options);\n\n return new Promise(function(resolve, reject) {\n try {\n var result = writer.toXML(element);\n\n return resolve({\n xml: result\n });\n } catch (err) {\n return reject(err);\n }\n });\n};\n","import {\n assign\n} from 'min-dash';\n\nimport BpmnModdle from './bpmn-moddle.js';\n\nimport BpmnPackage from '../resources/bpmn/json/bpmn.json' with { type: 'json' };\nimport BpmnDiPackage from '../resources/bpmn/json/bpmndi.json' with { type: 'json' };\nimport DcPackage from '../resources/bpmn/json/dc.json' with { type: 'json' };\nimport DiPackage from '../resources/bpmn/json/di.json' with { type: 'json' };\nimport BiocPackage from '../resources/bpmn-io/json/bioc.json' with { type: 'json' };\nimport BpmnInColorPackage from 'bpmn-in-color-moddle/resources/bpmn-in-color.json' with { type: 'json' };\n\nconst packages = {\n bpmn: BpmnPackage,\n bpmndi: BpmnDiPackage,\n dc: DcPackage,\n di: DiPackage,\n bioc: BiocPackage,\n color: BpmnInColorPackage\n};\n\nexport default function SimpleBpmnModdle(additionalPackages, options) {\n const pks = assign({}, packages, additionalPackages);\n\n return new BpmnModdle(pks, options);\n}\n"],"names":["Moddle","isString","Reader","assign","Writer"],"mappings":";;;;;;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE;AACtD,EAAEA,aAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC;AACD;AACA,UAAU,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAACA,aAAM,CAAC,SAAS,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,CAAC,SAAS,CAAC,OAAO,GAAG,SAAS,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE;AACnE;AACA,EAAE,IAAI,CAACC,gBAAQ,CAAC,QAAQ,CAAC,EAAE;AAC3B,IAAI,OAAO,GAAG,QAAQ,CAAC;AACvB,IAAI,QAAQ,GAAG,kBAAkB,CAAC;AAClC,GAAG;AACH;AACA,EAAE,IAAI,MAAM,GAAG,IAAIC,gBAAM,CAACC,cAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC7C;AACA,EAAE,OAAO,MAAM,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1FD,MAAM,QAAQ,GAAG;AACjB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,MAAM,EAAE,aAAa;AACvB,EAAE,EAAE,EAAE,SAAS;AACf,EAAE,EAAE,EAAE,SAAS;AACf,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,KAAK,EAAE,kBAAkB;AAC3B,CAAC,CAAC;AACF;AACe,SAAS,gBAAgB,CAAC,kBAAkB,EAAE,OAAO,EAAE;AACtE,EAAE,MAAM,GAAG,GAAGD,cAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,kBAAkB,CAAC,CAAC;AACvD;AACA,EAAE,OAAO,IAAI,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACtC;;;;"}
|
|
@@ -3728,7 +3728,7 @@ var BpmnInColorPackage = {
|
|
|
3728
3728
|
associations: associations
|
|
3729
3729
|
};
|
|
3730
3730
|
|
|
3731
|
-
|
|
3731
|
+
const packages = {
|
|
3732
3732
|
bpmn: BpmnPackage,
|
|
3733
3733
|
bpmndi: BpmnDiPackage,
|
|
3734
3734
|
dc: DcPackage,
|
|
@@ -3737,10 +3737,11 @@ var packages = {
|
|
|
3737
3737
|
color: BpmnInColorPackage
|
|
3738
3738
|
};
|
|
3739
3739
|
|
|
3740
|
-
function
|
|
3741
|
-
|
|
3740
|
+
function SimpleBpmnModdle(additionalPackages, options) {
|
|
3741
|
+
const pks = assign({}, packages, additionalPackages);
|
|
3742
3742
|
|
|
3743
3743
|
return new BpmnModdle(pks, options);
|
|
3744
3744
|
}
|
|
3745
3745
|
|
|
3746
|
-
export {
|
|
3746
|
+
export { SimpleBpmnModdle as default };
|
|
3747
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../lib/bpmn-moddle.js","../lib/simple.js"],"sourcesContent":["import {\n isString,\n assign\n} from 'min-dash';\n\nimport {\n Moddle\n} from 'moddle';\n\nimport {\n Reader,\n Writer\n} from 'moddle-xml';\n\n\n/**\n * A sub class of {@link Moddle} with support for import and export of BPMN 2.0 xml files.\n *\n * @class BpmnModdle\n * @extends Moddle\n *\n * @param {Object|Array} packages to use for instantiating the model\n * @param {Object} [options] additional options to pass over\n */\nexport default function BpmnModdle(packages, options) {\n Moddle.call(this, packages, options);\n}\n\nBpmnModdle.prototype = Object.create(Moddle.prototype);\n\n/**\n * The fromXML result.\n *\n * @typedef {Object} ParseResult\n *\n * @property {ModdleElement} rootElement\n * @property {Array<Object>} references\n * @property {Array<Error>} warnings\n * @property {Object} elementsById - a mapping containing each ID -> ModdleElement\n */\n\n/**\n * The fromXML error.\n *\n * @typedef {Error} ParseError\n *\n * @property {Array<Error>} warnings\n */\n\n/**\n * Instantiates a BPMN model tree from a given xml string.\n *\n * @param {String} xmlStr\n * @param {String} [typeName='bpmn:Definitions'] name of the root element\n * @param {Object} [options] options to pass to the underlying reader\n *\n * @returns {Promise<ParseResult, ParseError>}\n */\nBpmnModdle.prototype.fromXML = function(xmlStr, typeName, options) {\n\n if (!isString(typeName)) {\n options = typeName;\n typeName = 'bpmn:Definitions';\n }\n\n var reader = new Reader(assign({ model: this, lax: true }, options));\n var rootHandler = reader.handler(typeName);\n\n return reader.fromXML(xmlStr, rootHandler);\n};\n\n\n/**\n * The toXML result.\n *\n * @typedef {Object} SerializationResult\n *\n * @property {String} xml\n */\n\n/**\n * Serializes a BPMN 2.0 object tree to XML.\n *\n * @param {String} element the root element, typically an instance of `bpmn:Definitions`\n * @param {Object} [options] to pass to the underlying writer\n *\n * @returns {Promise<SerializationResult, Error>}\n */\nBpmnModdle.prototype.toXML = function(element, options) {\n\n var writer = new Writer(options);\n\n return new Promise(function(resolve, reject) {\n try {\n var result = writer.toXML(element);\n\n return resolve({\n xml: result\n });\n } catch (err) {\n return reject(err);\n }\n });\n};\n","import {\n assign\n} from 'min-dash';\n\nimport BpmnModdle from './bpmn-moddle.js';\n\nimport BpmnPackage from '../resources/bpmn/json/bpmn.json' with { type: 'json' };\nimport BpmnDiPackage from '../resources/bpmn/json/bpmndi.json' with { type: 'json' };\nimport DcPackage from '../resources/bpmn/json/dc.json' with { type: 'json' };\nimport DiPackage from '../resources/bpmn/json/di.json' with { type: 'json' };\nimport BiocPackage from '../resources/bpmn-io/json/bioc.json' with { type: 'json' };\nimport BpmnInColorPackage from 'bpmn-in-color-moddle/resources/bpmn-in-color.json' with { type: 'json' };\n\nconst packages = {\n bpmn: BpmnPackage,\n bpmndi: BpmnDiPackage,\n dc: DcPackage,\n di: DiPackage,\n bioc: BiocPackage,\n color: BpmnInColorPackage\n};\n\nexport default function SimpleBpmnModdle(additionalPackages, options) {\n const pks = assign({}, packages, additionalPackages);\n\n return new BpmnModdle(pks, options);\n}\n"],"names":[],"mappings":";;;;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE;AACtD,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC;AACD;AACA,UAAU,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,CAAC,SAAS,CAAC,OAAO,GAAG,SAAS,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE;AACnE;AACA,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;AAC3B,IAAI,OAAO,GAAG,QAAQ,CAAC;AACvB,IAAI,QAAQ,GAAG,kBAAkB,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1FD,MAAM,QAAQ,GAAG;AACjB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,MAAM,EAAE,aAAa;AACvB,EAAE,EAAE,EAAE,SAAS;AACf,EAAE,EAAE,EAAE,SAAS;AACf,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,KAAK,EAAE,kBAAkB;AAC3B,CAAC,CAAC;AACF;AACe,SAAS,gBAAgB,CAAC,kBAAkB,EAAE,OAAO,EAAE;AACtE,EAAE,MAAM,GAAG,GAAG,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,kBAAkB,CAAC,CAAC;AACvD;AACA,EAAE,OAAO,IAAI,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACtC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpmn-moddle",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.1",
|
|
4
4
|
"description": "A moddle wrapper for BPMN 2.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"all": "run-s generate-schema lint test
|
|
6
|
+
"all": "run-s generate-schema lint test",
|
|
7
7
|
"lint": "eslint .",
|
|
8
8
|
"dev": "npm test -- --watch",
|
|
9
|
-
"
|
|
9
|
+
"pretest": "run-s build",
|
|
10
|
+
"test": "mocha --reporter=spec --recursive test",
|
|
10
11
|
"distro": "run-s build test:build",
|
|
11
12
|
"build": "rollup -c",
|
|
12
|
-
"
|
|
13
|
-
"prepare": "run-s distro",
|
|
13
|
+
"prepare": "run-s build",
|
|
14
14
|
"generate-schema": "node tasks/generate-schema.cjs"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
@@ -18,10 +18,17 @@
|
|
|
18
18
|
"type": "git",
|
|
19
19
|
"url": "https://github.com/bpmn-io/bpmn-moddle"
|
|
20
20
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"import": "./dist/index.js",
|
|
24
|
+
"require": "./dist/index.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./resources/*": "./resources/*",
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">= 18"
|
|
31
|
+
},
|
|
25
32
|
"keywords": [
|
|
26
33
|
"bpmn",
|
|
27
34
|
"moddle",
|
|
@@ -41,26 +48,24 @@
|
|
|
41
48
|
"license": "MIT",
|
|
42
49
|
"sideEffects": false,
|
|
43
50
|
"devDependencies": {
|
|
44
|
-
"@babel/eslint-parser": "^7.
|
|
45
|
-
"@babel/plugin-syntax-import-
|
|
46
|
-
"@rollup/plugin-commonjs": "^25.0.7",
|
|
51
|
+
"@babel/eslint-parser": "^7.23.10",
|
|
52
|
+
"@babel/plugin-syntax-import-attributes": "^7.23.3",
|
|
47
53
|
"@rollup/plugin-json": "^6.1.0",
|
|
48
54
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
49
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
50
55
|
"bpmn-in-color-moddle": "^0.1.0",
|
|
51
|
-
"chai": "^4.
|
|
56
|
+
"chai": "^4.4.1",
|
|
52
57
|
"cmof-parser": "^0.5.2",
|
|
53
|
-
"eslint": "^8.
|
|
54
|
-
"eslint-plugin-bpmn-io": "^0.
|
|
55
|
-
"mocha": "^10.
|
|
56
|
-
"npm-run-
|
|
57
|
-
"rollup": "^4.
|
|
58
|
+
"eslint": "^8.57.0",
|
|
59
|
+
"eslint-plugin-bpmn-io": "^1.0.0",
|
|
60
|
+
"mocha": "^10.3.0",
|
|
61
|
+
"npm-run-all2": "^6.1.2",
|
|
62
|
+
"rollup": "^4.12.1",
|
|
58
63
|
"xsd-schema-validator": "^0.7.0"
|
|
59
64
|
},
|
|
60
65
|
"dependencies": {
|
|
61
|
-
"min-dash": "^4.
|
|
62
|
-
"moddle": "^
|
|
63
|
-
"moddle-xml": "^
|
|
66
|
+
"min-dash": "^4.2.1",
|
|
67
|
+
"moddle": "^7.0.0",
|
|
68
|
+
"moddle-xml": "^11.0.0"
|
|
64
69
|
},
|
|
65
70
|
"files": [
|
|
66
71
|
"dist",
|