@rdf-esm/formats-common
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.5.3](https://github.com/rdf-esm/formats-common/compare/v0.5.2...v0.5.3) (2020-08-14) | ||
### Bug Fixes | ||
* cater for rdf/xml parser's inconsistent export ([f571fcb](https://github.com/rdf-esm/formats-common/commit/f571fcb95c91b1d3065f6ae4310c4448be4c87a1)) | ||
### [0.5.2](https://github.com/rdf-esm/formats-common/compare/v0.5.1...v0.5.2) (2020-06-12) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "@rdf-esm/formats-common", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Parsers and serializers for common RDF formats", | ||
@@ -30,7 +30,7 @@ "main": "index.js", | ||
"@rdf-esm/sink-map": "^0.5.1", | ||
"@rdfjs/parser-jsonld": "^1.1.1", | ||
"@rdfjs/parser-n3": "^1.1.2", | ||
"@rdfjs/serializer-jsonld": "^1.2.0", | ||
"@rdfjs/serializer-ntriples": "^1.0.1", | ||
"rdfxml-streaming-parser": "^1.2.0" | ||
"@rdfjs/parser-jsonld": "^1.2.1", | ||
"@rdfjs/parser-n3": "^1.1.4", | ||
"@rdfjs/serializer-jsonld": "^1.2.2", | ||
"@rdfjs/serializer-ntriples": "^1.0.3", | ||
"rdfxml-streaming-parser": "^1.3.6" | ||
}, | ||
@@ -37,0 +37,0 @@ "devDependencies": { |
@@ -13,4 +13,13 @@ export async function jsonLdParser () { | ||
export async function rdfXmlParser () { | ||
const { RdfXmlParser } = (await import('rdfxml-streaming-parser')).default | ||
const module = await import('rdfxml-streaming-parser') | ||
let RdfXmlParser | ||
if (module.default) { | ||
RdfXmlParser = module.default.RdfXmlParser | ||
} | ||
else { | ||
RdfXmlParser = module.RdfXmlParser | ||
} | ||
return new RdfXmlParser() | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10766
136