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

@comunica/actor-rdf-parse-jsonld

Package Overview
Dependencies
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comunica/actor-rdf-parse-jsonld - npm Package Compare versions

Comparing version 1.19.2 to 1.20.0

11

lib/ActorRdfParseJsonLd.d.ts
import type { IActionHttp, IActorHttpOutput } from '@comunica/bus-http';
import type { IActionRdfParse, IActorRdfParseFixedMediaTypesArgs, IActorRdfParseOutput } from '@comunica/bus-rdf-parse';
import { ActorRdfParseFixedMediaTypes } from '@comunica/bus-rdf-parse';
import { KeysRdfParseJsonLd } from '@comunica/context-entries';
import type { ActionContext, Actor, IActorTest, Mediator } from '@comunica/core';

@@ -19,3 +20,9 @@ /**

}
export declare const KEY_CONTEXT_DOCUMENTLOADER = "@comunica/actor-rdf-parse-jsonld:documentLoader";
export declare const KEY_CONTEXT_STRICTVALUES = "@comunica/actor-rdf-parse-jsonld:strictValues";
/**
* @deprecated Import this constant from @comunica/context-entries.
*/
export declare const KEY_CONTEXT_DOCUMENTLOADER = KeysRdfParseJsonLd.documentLoader;
/**
* @deprecated Import this constant from @comunica/context-entries.
*/
export declare const KEY_CONTEXT_STRICTVALUES = KeysRdfParseJsonLd.strictValues;

15

lib/ActorRdfParseJsonLd.js

@@ -5,2 +5,3 @@ "use strict";

const bus_rdf_parse_1 = require("@comunica/bus-rdf-parse");
const context_entries_1 = require("@comunica/context-entries");
const jsonld_streaming_parser_1 = require("jsonld-streaming-parser");

@@ -30,5 +31,5 @@ const DocumentLoaderMediated_1 = require("./DocumentLoaderMediated");

const parser = jsonld_streaming_parser_1.JsonLdParser.fromHttpResponse(action.baseIRI, mediaType, action.headers, {
documentLoader: actionContext && actionContext.get(exports.KEY_CONTEXT_DOCUMENTLOADER) ||
documentLoader: actionContext && actionContext.get(context_entries_1.KeysRdfParseJsonLd.documentLoader) ||
new DocumentLoaderMediated_1.DocumentLoaderMediated(this.mediatorHttp, actionContext),
strictValues: actionContext && actionContext.get(exports.KEY_CONTEXT_STRICTVALUES),
strictValues: actionContext && actionContext.get(context_entries_1.KeysRdfParseJsonLd.strictValues),
});

@@ -40,4 +41,10 @@ const quads = parser.import(action.input);

exports.ActorRdfParseJsonLd = ActorRdfParseJsonLd;
exports.KEY_CONTEXT_DOCUMENTLOADER = '@comunica/actor-rdf-parse-jsonld:documentLoader';
exports.KEY_CONTEXT_STRICTVALUES = '@comunica/actor-rdf-parse-jsonld:strictValues';
/**
* @deprecated Import this constant from @comunica/context-entries.
*/
exports.KEY_CONTEXT_DOCUMENTLOADER = context_entries_1.KeysRdfParseJsonLd.documentLoader;
/**
* @deprecated Import this constant from @comunica/context-entries.
*/
exports.KEY_CONTEXT_STRICTVALUES = context_entries_1.KeysRdfParseJsonLd.strictValues;
//# sourceMappingURL=ActorRdfParseJsonLd.js.map
{
"name": "@comunica/actor-rdf-parse-jsonld",
"version": "1.19.2",
"version": "1.20.0",
"description": "A JSON-LD RDF Parse actor",

@@ -38,7 +38,8 @@ "lsd:module": true,

"devDependencies": {
"@comunica/bus-http": "^1.19.2",
"@comunica/bus-rdf-parse": "^1.19.2",
"@comunica/core": "^1.19.2"
"@comunica/bus-http": "^1.20.0",
"@comunica/bus-rdf-parse": "^1.20.0",
"@comunica/core": "^1.20.0"
},
"dependencies": {
"@comunica/context-entries": "^1.20.0",
"@types/rdf-js": "*",

@@ -71,3 +72,3 @@ "jsonld-context-parser": "^2.1.1",

},
"gitHead": "73525f72e616c1f8ee244ea5c64e10e4a6032cf5"
"gitHead": "e939e0abd92972407bd8dc04d8073720efdfe2f1"
}
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