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 0.5.0 to 0.5.1

.travis.yml

5

lib/reader.js

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

function normalizeNamespaces(node, model, defaultNsUri) {
var uri, childUri, prefix;
var uri, prefix;

@@ -486,4 +486,3 @@ uri = node.uri || defaultNsUri;

var model = this.model,
self = this;
var model = this.model;

@@ -490,0 +489,0 @@ rootHandler.context = context;

9

lib/writer.js

@@ -109,4 +109,3 @@ 'use strict';

BodySerializer.prototype.serializeValue = BodySerializer.prototype.serializeTo = function(writer) {
var value = this.value,
escape = this.escape;
var escape = this.escape;

@@ -297,4 +296,3 @@ if (escape) {

body = this.body,
element = this.element,
typeDesc = element.$descriptor;
element = this.element;

@@ -433,4 +431,3 @@ _.forEach(properties, function(p) {

ElementSerializer.prototype.serializeAttributes = function(writer) {
var element = this.element,
attrs = this.attrs,
var attrs = this.attrs,
root = !this.parent,

@@ -437,0 +434,0 @@ namespaces = this.namespaces;

{
"name": "moddle-xml",
"version": "0.5.0",
"version": "0.5.1",
"description": "XML import/export for documents described with moddle",

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

# moddle-xml
XML import/export for documents described with [moddle](https://github.com/bpmn-io/moddle).
[![Build Status](https://travis-ci.org/bpmn-io/moddle-xml.svg)](https://travis-ci.org/bpmn-io/moddle-xml)
Read and write XML documents described with [moddle](https://github.com/bpmn-io/moddle).
## Usage

@@ -16,3 +19,3 @@

Instantiate a [moddle instance](https://github.com/bpmn-io/moddle)
Create a [moddle instance](https://github.com/bpmn-io/moddle)

@@ -29,3 +32,3 @@ ```

Use the reader to parse XML into an object tree that represents your model descriptor:
Use the reader to parse XML into an easily accessible object tree:

@@ -39,3 +42,3 @@ ```javascript

'<my:engine power="121" fuelConsumption="10" />' +
'</my:car>
'</my:car>' +
'</my:root>';

@@ -73,3 +76,2 @@

});
```

@@ -76,0 +78,0 @@

Sorry, the diff of this file is not supported yet

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