Comparing version 0.4.0 to 0.4.1
@@ -308,3 +308,3 @@ // **N3Lexer** tokenizes N3 documents. | ||
if (isNaN(charCode)) throw new Error(); // can never happen (regex), but helps performance | ||
if (charCode < 0xFFFF) return fromCharCode(charCode); | ||
if (charCode <= 0xFFFF) return fromCharCode(charCode); | ||
return fromCharCode(0xD800 + ((charCode -= 0x10000) / 0x400), 0xDC00 + (charCode & 0x3FF)); | ||
@@ -311,0 +311,0 @@ } |
@@ -161,3 +161,3 @@ // **N3Writer** writes N3 documents. | ||
// The triple was given as a triple object, so shift parameters | ||
if (!object) | ||
if (typeof object !== 'string') | ||
this._writeTriple(subject.subject, subject.predicate, subject.object, | ||
@@ -164,0 +164,0 @@ subject.graph || '', predicate); |
{ | ||
"name": "n3", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Lightning fast, asynchronous, streaming Turtle / N3 / RDF library.", | ||
@@ -5,0 +5,0 @@ "author": "Ruben Verborgh <ruben.verborgh@gmail.com>", |
@@ -50,3 +50,3 @@ # Lightning fast, asynchronous, streaming RDF for JavaScript | ||
## Triple representation | ||
For maximum performance and easy of use, | ||
For maximum performance and ease of use, | ||
triples are simple objects with string properties. | ||
@@ -53,0 +53,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
229113