New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

n3

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n3 - npm Package Compare versions

Comparing version 1.23.1 to 1.23.2

38

lib/N3Store.js

@@ -1086,22 +1086,24 @@ "use strict";

for (const graphKey in graphs) {
let subjects, predicates, objects;
if (!subjectId && predicateId) {
if (predicates = indexMatch(graphs[graphKey].predicates, [predicateId, objectId, subjectId])) {
subjects = indexMatch(graphs[graphKey].subjects, [subjectId, predicateId, objectId]);
objects = indexMatch(graphs[graphKey].objects, [objectId, subjectId, predicateId]);
let subjects, predicates, objects, content;
if (content = graphs[graphKey]) {
if (!subjectId && predicateId) {
if (predicates = indexMatch(content.predicates, [predicateId, objectId, subjectId])) {
subjects = indexMatch(content.subjects, [subjectId, predicateId, objectId]);
objects = indexMatch(content.objects, [objectId, subjectId, predicateId]);
}
} else if (objectId) {
if (objects = indexMatch(content.objects, [objectId, subjectId, predicateId])) {
subjects = indexMatch(content.subjects, [subjectId, predicateId, objectId]);
predicates = indexMatch(content.predicates, [predicateId, objectId, subjectId]);
}
} else if (subjects = indexMatch(content.subjects, [subjectId, predicateId, objectId])) {
predicates = indexMatch(content.predicates, [predicateId, objectId, subjectId]);
objects = indexMatch(content.objects, [objectId, subjectId, predicateId]);
}
} else if (objectId) {
if (objects = indexMatch(graphs[graphKey].objects, [objectId, subjectId, predicateId])) {
subjects = indexMatch(graphs[graphKey].subjects, [subjectId, predicateId, objectId]);
predicates = indexMatch(graphs[graphKey].predicates, [predicateId, objectId, subjectId]);
}
} else if (subjects = indexMatch(graphs[graphKey].subjects, [subjectId, predicateId, objectId])) {
predicates = indexMatch(graphs[graphKey].predicates, [predicateId, objectId, subjectId]);
objects = indexMatch(graphs[graphKey].objects, [objectId, subjectId, predicateId]);
if (subjects) newStore._graphs[graphKey] = {
subjects,
predicates,
objects
};
}
if (subjects) newStore._graphs[graphKey] = {
subjects,
predicates,
objects
};
}

@@ -1108,0 +1110,0 @@ newStore._size = null;

{
"name": "n3",
"version": "1.23.1",
"version": "1.23.2",
"description": "Lightning fast, asynchronous, streaming Turtle / N3 / RDF library.",

@@ -46,3 +46,3 @@ "author": "Ruben Verborgh <ruben.verborgh@gmail.com>",

"pre-commit": "^1.2.2",
"rdf-isomorphic": "^1.3.1",
"rdf-isomorphic": "^2.0.0",
"rdf-test-suite": "^1.25.0",

@@ -49,0 +49,0 @@ "streamify-string": "^1.0.1",

@@ -1137,23 +1137,24 @@ // **N3Store** objects store N3 quads by graph in memory.

for (const graphKey in graphs) {
let subjects, predicates, objects;
if (!subjectId && predicateId) {
if (predicates = indexMatch(graphs[graphKey].predicates, [predicateId, objectId, subjectId])) {
subjects = indexMatch(graphs[graphKey].subjects, [subjectId, predicateId, objectId]);
objects = indexMatch(graphs[graphKey].objects, [objectId, subjectId, predicateId]);
let subjects, predicates, objects, content;
if (content = graphs[graphKey]) {
if (!subjectId && predicateId) {
if (predicates = indexMatch(content.predicates, [predicateId, objectId, subjectId])) {
subjects = indexMatch(content.subjects, [subjectId, predicateId, objectId]);
objects = indexMatch(content.objects, [objectId, subjectId, predicateId]);
}
}
}
else if (objectId) {
if (objects = indexMatch(graphs[graphKey].objects, [objectId, subjectId, predicateId])) {
subjects = indexMatch(graphs[graphKey].subjects, [subjectId, predicateId, objectId]);
predicates = indexMatch(graphs[graphKey].predicates, [predicateId, objectId, subjectId]);
else if (objectId) {
if (objects = indexMatch(content.objects, [objectId, subjectId, predicateId])) {
subjects = indexMatch(content.subjects, [subjectId, predicateId, objectId]);
predicates = indexMatch(content.predicates, [predicateId, objectId, subjectId]);
}
}
else if (subjects = indexMatch(content.subjects, [subjectId, predicateId, objectId])) {
predicates = indexMatch(content.predicates, [predicateId, objectId, subjectId]);
objects = indexMatch(content.objects, [objectId, subjectId, predicateId]);
}
if (subjects)
newStore._graphs[graphKey] = { subjects, predicates, objects };
}
else if (subjects = indexMatch(graphs[graphKey].subjects, [subjectId, predicateId, objectId])) {
predicates = indexMatch(graphs[graphKey].predicates, [predicateId, objectId, subjectId]);
objects = indexMatch(graphs[graphKey].objects, [objectId, subjectId, predicateId]);
}
if (subjects)
newStore._graphs[graphKey] = { subjects, predicates, objects };
}

@@ -1160,0 +1161,0 @@ newStore._size = null;

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