@ls-age/xml
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"source": "src", | ||
"destination": "docs/api" | ||
"destination": "docs/api", | ||
"test": { | ||
"type": "mocha", | ||
"source": "./test" | ||
} | ||
} |
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="0.1.4"></a> | ||
## [0.1.4](https://github.com/ls-age/xml/compare/v0.1.3...v0.1.4) (2017-07-04) | ||
### Features | ||
* **builder:** Throw on non-documents passed ([eb17aaa](https://github.com/ls-age/xml/commit/eb17aaa)) | ||
<a name="0.1.3"></a> | ||
@@ -7,0 +17,0 @@ ## [0.1.3](https://github.com/ls-age/xml/compare/v0.1.2...v0.1.3) (2017-07-04) |
{ | ||
"name": "@ls-age/xml", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Modify XML documents in node.js with ease", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
@@ -63,2 +63,26 @@ window.esdocSearchIndex = [ | ||
[ | ||
"builder src/lib/builder.js~builder,builder", | ||
"test-file/test/lib/Builder.spec.js.html#lineNumber4", | ||
"Builder", | ||
"test" | ||
], | ||
[ | ||
"builder#build src/lib/builder.js~builder#build,builder#build", | ||
"test-file/test/lib/Builder.spec.js.html#lineNumber6", | ||
"Builder #build", | ||
"test" | ||
], | ||
[ | ||
"", | ||
"test-file/test/lib/Builder.spec.js.html#lineNumber13", | ||
"Builder #build should fail with non-document passed", | ||
"test" | ||
], | ||
[ | ||
"", | ||
"test-file/test/lib/Builder.spec.js.html#lineNumber9", | ||
"Builder #build should fail without document", | ||
"test" | ||
], | ||
[ | ||
"builtinexternal/ecmascriptexternal.js~array", | ||
@@ -394,2 +418,38 @@ "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", | ||
[ | ||
"parser src/lib/parser.js~parser,parser", | ||
"test-file/test/lib/Parser.spec.js.html#lineNumber4", | ||
"Parser", | ||
"test" | ||
], | ||
[ | ||
"parser#parse src/lib/parser.js~parser#parse,parser#parse", | ||
"test-file/test/lib/Parser.spec.js.html#lineNumber6", | ||
"Parser #parse", | ||
"test" | ||
], | ||
[ | ||
"", | ||
"test-file/test/lib/Parser.spec.js.html#lineNumber16", | ||
"Parser #parse should fail with second root element", | ||
"test" | ||
], | ||
[ | ||
"", | ||
"test-file/test/lib/Parser.spec.js.html#lineNumber7", | ||
"Parser #parse should fail without document element", | ||
"test" | ||
], | ||
[ | ||
"", | ||
"test-file/test/lib/Parser.spec.js.html#lineNumber11", | ||
"Parser #parse should forward parser errors", | ||
"test" | ||
], | ||
[ | ||
"", | ||
"test-file/test/lib/Parser.spec.js.html#lineNumber21", | ||
"Parser #parse should return document instance if everything worked", | ||
"test" | ||
], | ||
[ | ||
"src/index.js", | ||
@@ -831,3 +891,15 @@ "file/src/index.js.html", | ||
"member" | ||
], | ||
[ | ||
"test/lib/builder.spec.js", | ||
"test-file/test/lib/Builder.spec.js.html", | ||
"test/lib/Builder.spec.js", | ||
"testFile" | ||
], | ||
[ | ||
"test/lib/parser.spec.js", | ||
"test-file/test/lib/Parser.spec.js.html", | ||
"test/lib/Parser.spec.js", | ||
"testFile" | ||
] | ||
] |
@@ -41,2 +41,6 @@ 'use strict'; | ||
build(doc) { | ||
if (!doc || !doc[build]) { | ||
throw new Error('Not a document instance'); | ||
} | ||
return doc[build](Object.assign({}, this._options, { level: 0 })); | ||
@@ -43,0 +47,0 @@ } |
{ | ||
"name": "@ls-age/xml", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Modify XML documents in node.js with ease", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
@@ -32,2 +32,6 @@ const build = Symbol('Builder.build'); | ||
build(doc) { | ||
if (!doc || !doc[build]) { | ||
throw new Error('Not a document instance'); | ||
} | ||
return doc[build](Object.assign({}, this._options, { level: 0 })); | ||
@@ -34,0 +38,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3674877
82
126288