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

jsonld

Package Overview
Dependencies
Maintainers
3
Versions
214
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonld - npm Package Compare versions

Comparing version 0.0.62 to 0.0.63

45

js/request.js

@@ -103,25 +103,28 @@ /**

try {
jsdom.env(data, function(errors, window) {
if(errors && errors.length > 0) {
return callback({
message: 'DOM Errors:',
errors: errors,
url: loc
});
}
jsdom.env({
html: data,
done: function(errors, window) {
if(errors && errors.length > 0) {
return callback({
message: 'DOM Errors:',
errors: errors,
url: loc
});
}
try {
// extract JSON-LD from RDFa
RDFa.attach(window.document);
jsonld.fromRDF(window.document.data,
{format: 'rdfa-api'}, callback);
try {
// extract JSON-LD from RDFa
RDFa.attach(window.document);
jsonld.fromRDF(window.document.data,
{format: 'rdfa-api'}, callback);
}
catch(ex) {
// FIXME: expose RDFa/jsonld ex?
callback({
message: 'RDFa extraction error.',
contentType: type,
url: loc
});
}
}
catch(ex) {
// FIXME: expose RDFa/jsonld ex?
callback({
message: 'RDFa extraction error.',
contentType: type,
url: loc
});
}
});

@@ -128,0 +131,0 @@ }

{
"name": "jsonld",
"version": "0.0.62",
"version": "0.0.63",
"description": "A JSON-LD Processor and API implementation in JavaScript.",

@@ -26,10 +26,10 @@ "homepage": "http://github.com/digitalbazaar/jsonld.js",

"async": "~0.2.6",
"commander": "~1.1.0",
"jsdom": "~0.6.5",
"pkginfo": "~0.2.3",
"request": "~2.21.0",
"commander": "~1.3.0",
"jsdom": "~0.7.0",
"pkginfo": "~0.3.0",
"request": "~2.22.0",
"xmldom": "0.1.16"
},
"devDependencies": {
"mocha": "~1.10.0",
"mocha": "~1.12.0",
"visionmedia-jscoverage": "~1.0.0"

@@ -36,0 +36,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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