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

rdf-ext

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdf-ext - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

10

lib/rdfxml-parser.js

@@ -569,2 +569,12 @@ /**

if (isNode) {
// Node.js handles the XMLDOM dependency
// use options.parseXml in the browser if you want to parse a string
var xmldom = require('xmldom');
options.parseXml = function (toparse) {
return (new xmldom.DOMParser().parseFromString(toparse));
};
}
this.process = function (toparse, callback, base, filter, done) {

@@ -571,0 +581,0 @@ if (typeof toparse === 'string') {

2

package.json
{
"name": "rdf-ext",
"version": "0.1.2",
"version": "0.1.3",
"description": "Implements the RDF-Ext spec plus parsers (JSON-LD, RDF/XML, Turtle), serializers (JSON-LD, N-Triples) and stores (in memory, LDP, SPARQL)",

@@ -5,0 +5,0 @@ "main": "rdf-ext.js",

@@ -9,3 +9,2 @@ var config = {};

// RDF Interfaces for node.js https://github.com/Acubed/node-rdf
// Doesn't support the complete RDF Interfaces API
//config.rdf = require('rdf').environment;

@@ -12,0 +11,0 @@

@@ -46,4 +46,3 @@ var

card = fs.readFileSync(__dirname + '/support/card.xml').toString(),
parseXml = function (toparse) { return (new xmldom.DOMParser().parseFromString(toparse));},
parser = new rdf.RdfXmlParser({parseXml: parseXml});
parser = new rdf.RdfXmlParser();

@@ -50,0 +49,0 @@ parser.parse(card, function(graph) {

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