@@ -123,6 +123,7 @@ const _resolvedContextCache = new LRU({max: RESOLVED_CONTEXT_CACHE_MAX_SIZE});
123
123
* unmappable values (or to throw an error when they are detected);
124
124
* if this function returns `undefined` then the default behavior
125
125
* will be used.
126
+ * [handleEvent] handler for events such as warnings.
126
127
* [contextResolver] internal use only.
127
128
*
128
129
* @return a Promise that resolves to the compacted output.
@@ -271,6 +272,7 @@ jsonld.compact = async function(input, ctx, options) {
271
272
* unmappable values (or to throw an error when they are detected);
272
273
* if this function returns `undefined` then the default behavior
273
274
* will be used.
275
+ * [handleEvent] handler for events such as warnings.
274
276
* [contextResolver] internal use only.
275
277
*
276
278
* @return a Promise that resolves to the expanded output.
@@ -368,6 +370,7 @@ jsonld.expand = async function(input, options) {
368
370
* [base] the base IRI to use.
369
371
* [expandContext] a context to expand with.
370
372
* [documentLoader(url, options)] the document loader.
373
+ * [handleEvent] handler for events such as warnings.
371
374
* [contextResolver] internal use only.
372
375
*
373
376
* @return a Promise that resolves to the flattened output.
@@ -423,6 +426,7 @@ jsonld.flatten = async function(input, ctx, options) {
423
426
* [requireAll] default @requireAll flag (default: true).
424
427
* [omitDefault] default @omitDefault flag (default: false).
425
428
* [documentLoader(url, options)] the document loader.
429
+ * [handleEvent] handler for events such as warnings.
426
430
* [contextResolver] internal use only.
427
431
*
428
432
* @return a Promise that resolves to the framed output.
@@ -505,6 +509,7 @@ jsonld.frame = async function(input, frame, options) {
505
509
* [base] the base IRI to use.
506
510
* [expandContext] a context to expand with.
507
511
* [documentLoader(url, options)] the document loader.
512
+ * [handleEvent] handler for events such as warnings.
508
513
* [contextResolver] internal use only.
509
514
*
510
515
* @return a Promise that resolves to the linked output.
@@ -540,6 +545,7 @@ jsonld.link = async function(input, ctx, options) {
540
545
* 'application/n-quads' for N-Quads.
541
546
* [documentLoader(url, options)] the document loader.
542
547
* [useNative] true to use a native canonize algorithm
548
+ * [handleEvent] handler for events such as warnings.
543
549
* [contextResolver] internal use only.
544
550
*
545
551
* @return a Promise that resolves to the normalized output.
@@ -594,6 +600,7 @@ jsonld.normalize = jsonld.canonize = async function(input, options) {
594
600
* (default: false).
595
601
* [useNativeTypes] true to convert XSD types into native types
596
602
* (boolean, integer, double), false not to (default: false).
603
+ * [handleEvent] handler for events such as warnings.
597
604
*
598
605
* @return a Promise that resolves to the JSON-LD document.
599
606
*/
@@ -643,6 +650,7 @@ jsonld.fromRDF = async function(dataset, options) {
643
650
* [produceGeneralizedRdf] true to output generalized RDF, false
644
651
* to produce only standard RDF (default: false).
645
652
* [documentLoader(url, options)] the document loader.
653
+ * [handleEvent] handler for events such as warnings.
646
654
* [contextResolver] internal use only.
647
655
*
648
656
* @return a Promise that resolves to the RDF dataset.
@@ -696,6 +704,7 @@ jsonld.toRDF = async function(input, options) {
696
704
* [expandContext] a context to expand with.
697
705
* [issuer] a jsonld.IdentifierIssuer to use to label blank nodes.
698
706
* [documentLoader(url, options)] the document loader.
707
+ * [handleEvent] handler for events such as warnings.
699
708
* [contextResolver] internal use only.
700
709
*
701
710
* @return a Promise that resolves to the merged node map.
@@ -735,6 +744,7 @@ jsonld.createNodeMap = async function(input, options) {
735
744
* new properties where a node is in the `object` position
736
745
* (default: true).
737
746
* [documentLoader(url, options)] the document loader.
747
+ * [handleEvent] handler for events such as warnings.
738
748
* [contextResolver] internal use only.
739
749
*
740
750
* @return a Promise that resolves to the merged output.
@@ -897,6 +907,7 @@ jsonld.get = async function(url, options) {
897
907
* @param localCtx the local context to process.
898
908
* @param [options] the options to use:
899
909
* [documentLoader(url, options)] the document loader.
910
+ * [handleEvent] handler for events such as warnings.
900
911
* [contextResolver] internal use only.
901
912
*
902
913
* @return a Promise that resolves to the new active context.
0 commit comments