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.12.2 to 0.12.3

test/fixtures/bpmn/error/extension-definition-missing.bpmn

21

Gruntfile.js

@@ -37,3 +37,13 @@ 'use strict';

},
src: ['test/**/*.js']
src: [ 'test/**/*.js' ]
},
watch: {
options: {
noFail: true,
reporter: 'spec',
require: [
'./test/expect.js'
]
},
src: [ 'test/**/*.js' ]
}

@@ -52,4 +62,7 @@ },

test: {
files: [ '<%= config.sources %>/**/*.js', '<%= config.tests %>/spec/**/*.js' ],
tasks: [ 'test' ]
files: [
'<%= config.sources %>/**/*.js',
'<%= config.tests %>/spec/**/*.js'
],
tasks: [ 'mochaTest:watch' ]
}

@@ -63,5 +76,5 @@ }

grunt.registerTask('auto-test', [ 'test', 'watch:test' ]);
grunt.registerTask('auto-test', [ 'mochaTest:watch', 'watch:test' ]);
grunt.registerTask('default', [ 'jshint', 'test' ]);
};

5

package.json
{
"name": "bpmn-moddle",
"version": "0.12.2",
"version": "0.12.3",
"description": "A moddle wrapper for BPMN 2.0",

@@ -38,6 +38,7 @@ "scripts": {

"grunt-contrib-watch": "^0.5.0",
"grunt-mocha-test": "^0.11.0",
"grunt-mocha-test": "^0.13.2",
"grunt-release": "^0.7.0",
"jsondiffpatch": "^0.1.4",
"load-grunt-tasks": "^0.3.0",
"mocha": "^3.1.2",
"xsd-schema-validator": "^0.3.0"

@@ -44,0 +45,0 @@ },

@@ -461,3 +461,5 @@ {

"name": "definition",
"type": "ExtensionDefinition"
"type": "ExtensionDefinition",
"isAttr": true,
"isReference": true
}

@@ -464,0 +466,0 @@ ]

@@ -63,2 +63,10 @@ 'use strict';

// fix cryptic bpmn:Extension reference
builder.alter('Extension#definition', {
isAttr: true,
isReference: true
});
// fix documentation being first element

@@ -65,0 +73,0 @@

@@ -870,3 +870,3 @@ 'use strict';

expect(err).not.to.eql(null);
expect(err).to.exist;

@@ -883,3 +883,3 @@ done();

expect(err).not.to.eql(null);
expect(err).to.exist;

@@ -892,2 +892,21 @@ done();

it('when importing bpmn:Extension (missing definition)', function(done) {
// when
fromFile('test/fixtures/bpmn/error/extension-definition-missing.bpmn', function(err, result, context) {
var warnings = context.warnings;
// then
expect(warnings).to.have.length(1);
expect(warnings[0].message).to.eql('unresolved reference <ino:tInnovator>');
expect(err).not.to.exist;
done();
});
});
it('when importing invalid bpmn', function(done) {

@@ -894,0 +913,0 @@

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