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

xmldoc

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmldoc - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

15

CHANGELOG.md
# Change Log
## [v1.0.0](https://github.com/nfarina/xmldoc/tree/v1.0.0) (2016-12-26)
[Full Changelog](https://github.com/nfarina/xmldoc/compare/v0.5.1...v1.0.0)
**Closed issues:**
- Excellent library with a beautiful, clean API [\#42](https://github.com/nfarina/xmldoc/issues/42)
- Order of elements changed [\#41](https://github.com/nfarina/xmldoc/issues/41)
- While writing back xml document to a file it removes all comments [\#39](https://github.com/nfarina/xmldoc/issues/39)
- react native using xmldoc to parser xml [\#38](https://github.com/nfarina/xmldoc/issues/38)
- Order of val in relation to children? [\#37](https://github.com/nfarina/xmldoc/issues/37)
**Merged pull requests:**
- Fix CData overwriting bug [\#43](https://github.com/nfarina/xmldoc/pull/43) ([calebmer](https://github.com/calebmer))
## [v0.5.1](https://github.com/nfarina/xmldoc/tree/v0.5.1) (2016-05-12)

@@ -4,0 +19,0 @@ [Full Changelog](https://github.com/nfarina/xmldoc/compare/v0.5.0...v0.5.1)

9

lib/xmldoc.js

@@ -178,3 +178,10 @@ (function () {

}
else s += "/>";
else if (options && options.html) {
var whiteList = ["br", "img", "input", "link", "meta"];
if (whiteList.indexOf(this.name) !== -1) s += "/>";
else s += "></" + this.name + ">";
}
else {
s += "/>";
}

@@ -181,0 +188,0 @@ return s;

2

package.json

@@ -9,3 +9,3 @@ {

},
"version": "1.0.0",
"version": "1.1.0",
"main": "./index",

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

@@ -25,6 +25,12 @@

## Installation - React Native
I haven't tested this myself but [installing `buffer` and `stream` separately](https://github.com/nfarina/xmldoc/issues/38) may be necessary for `xmldoc` to work on React Native:
npm install buffer stream xmldoc
## Usage
```js
var xmldoc = require('../lib/xmldoc');
var xmldoc = require('xmldoc');

@@ -31,0 +37,0 @@ var document = new xmldoc.XmlDocument("<some>xml</some>");

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