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

moddle-xml

Package Overview
Dependencies
Maintainers
2
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moddle-xml - npm Package Compare versions

Comparing version 7.1.0 to 7.2.0

2

CHANGELOG.md

@@ -9,2 +9,4 @@ # Changelog

* `FEAT`: warn on invalid attributes under well-known namespaces ([#32](https://github.com/bpmn-io/moddle-xml/issues/32))
## 7.1.0

@@ -11,0 +13,0 @@

@@ -302,3 +302,5 @@ import {

context = this.context,
instance = new Type({});
instance = new Type({}),
model = this.model,
propNameNs;

@@ -334,2 +336,16 @@ forEach(attributes, function(value, name) {

value = coerceType(prop.type, value);
} else {
propNameNs = parseNameNs(name, descriptor.ns.prefix);
// check whether attribute is defined in a well-known namespace
// if that is the case we emit a warning to indicate potential misuse
if (model.getPackage(propNameNs.prefix)) {
context.addWarning({
message: 'unknown attribute <' + name + '>',
element: instance,
property: name,
value: value
});
}
}

@@ -375,3 +391,5 @@

return assign({}, property, { effectiveType: getModdleDescriptor(elementType).name });
return assign({}, property, {
effectiveType: getModdleDescriptor(elementType).name
});
}

@@ -396,3 +414,5 @@ }

if (property) {
return assign({}, property, { effectiveType: getModdleDescriptor(elementType).name });
return assign({}, property, {
effectiveType: getModdleDescriptor(elementType).name
});
}

@@ -399,0 +419,0 @@ } else {

2

package.json
{
"name": "moddle-xml",
"version": "7.1.0",
"version": "7.2.0",
"description": "XML import/export for documents described with moddle",

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

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