Comparing version 1.2.0 to 1.2.1
@@ -68,3 +68,6 @@ "use strict"; | ||
_setBase(baseIRI) { | ||
if (!baseIRI) this._base = null;else { | ||
if (!baseIRI) { | ||
this._base = ''; | ||
this._basePath = ''; | ||
} else { | ||
// Remove fragment if present | ||
@@ -71,0 +74,0 @@ var fragmentPos = baseIRI.indexOf('#'); |
{ | ||
"name": "n3", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Lightning fast, asynchronous, streaming Turtle / N3 / RDF library.", | ||
@@ -5,0 +5,0 @@ "author": "Ruben Verborgh <ruben.verborgh@gmail.com>", |
@@ -122,2 +122,10 @@ # Lightning fast, asynchronous, streaming RDF for JavaScript | ||
By default, `N3.Parser` will prefix blank node labels with a `b{digit}_` prefix. | ||
This is done to prevent collisions of unrelated blank nodes having identical | ||
labels. The `blankNodePrefix` constructor argument can be used to modify the | ||
prefix or, if set to an empty string, completely disable prefixing: | ||
```JavaScript | ||
const parser = new N3.Parser({ blankNodePrefix: '' }); | ||
``` | ||
### From an RDF stream to quads | ||
@@ -124,0 +132,0 @@ |
@@ -56,4 +56,6 @@ // **N3Parser** parses N3 documents. | ||
_setBase(baseIRI) { | ||
if (!baseIRI) | ||
this._base = null; | ||
if (!baseIRI) { | ||
this._base = ''; | ||
this._basePath = ''; | ||
} | ||
else { | ||
@@ -60,0 +62,0 @@ // Remove fragment if present |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
238738
5146
372
0