Skip to content

Commit 8020b01

Browse files
committed
deps: update to moddle@7
Introduces strict namespace handling.
1 parent cdb24de commit 8020b01

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"eslint": "^8.24.0",
5555
"eslint-plugin-bpmn-io": "^0.16.0",
5656
"mocha": "^10.0.0",
57-
"moddle": "^6.2.0",
57+
"moddle": "^7.0.0-exp.1",
5858
"npm-run-all": "^4.1.5",
5959
"rollup": "^2.79.1"
6060
},

test/spec/reader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,7 +2120,7 @@ describe('Reader', function() {
21202120

21212121
expect(rootElement).to.jsonEqual({
21222122
$type: 'b:Root',
2123-
generic: {
2123+
'c:generic': {
21242124
$type: 'c:CustomGeneric',
21252125
count: 10
21262126
}
@@ -2147,7 +2147,7 @@ describe('Reader', function() {
21472147

21482148
expect(rootElement).to.jsonEqual({
21492149
$type: 'b:Root',
2150-
customAttr: 666
2150+
'c:customAttr': 666
21512151
});
21522152

21532153
});

test/spec/writer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ describe('Writer', function() {
455455
var writer = createWriter(extendedModel);
456456

457457
var root = extendedModel.create('b:SubRoot', {
458-
customAttr: 1,
458+
'c:customAttr': 1,
459459
subAttr: 'FOO',
460460
ownAttr: 'OWN'
461461
});
@@ -1375,7 +1375,7 @@ describe('Writer', function() {
13751375
var customGeneric = extensionModel.create('c:CustomGeneric', { count: 10 });
13761376

13771377
var root = extensionModel.create('b:Root', {
1378-
generic: customGeneric
1378+
'c:generic': customGeneric
13791379
});
13801380

13811381
// when
@@ -1396,7 +1396,7 @@ describe('Writer', function() {
13961396
// given
13971397
var writer = createWriter(extensionModel);
13981398

1399-
var root = extensionModel.create('b:Root', { customAttr: 666 });
1399+
var root = extensionModel.create('b:Root', { 'c:customAttr': 666 });
14001400

14011401
// when
14021402
var xml = writer.toXML(root);

0 commit comments

Comments
 (0)