Skip to content

Commit 7011161

Browse files
committed
Add safe mode default to docs.
1 parent b3475c9 commit 7011161

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/jsonld.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const _resolvedContextCache = new LRU({max: RESOLVED_CONTEXT_CACHE_MAX_SIZE});
129129
* unmappable values (or to throw an error when they are detected);
130130
* if this function returns `undefined` then the default behavior
131131
* will be used.
132-
* [safe] true to use safe mode.
132+
* [safe] true to use safe mode. (default: false)
133133
* [eventHandler] handler for events.
134134
* [contextResolver] internal use only.
135135
*
@@ -269,7 +269,7 @@ jsonld.compact = async function(input, ctx, options) {
269269
* unmappable values (or to throw an error when they are detected);
270270
* if this function returns `undefined` then the default behavior
271271
* will be used.
272-
* [safe] true to use safe mode.
272+
* [safe] true to use safe mode. (default: false)
273273
* [eventHandler] handler for events.
274274
* [contextResolver] internal use only.
275275
*
@@ -424,7 +424,7 @@ jsonld.flatten = async function(input, ctx, options) {
424424
* [requireAll] default @requireAll flag (default: true).
425425
* [omitDefault] default @omitDefault flag (default: false).
426426
* [documentLoader(url, options)] the document loader.
427-
* [safe] true to use safe mode.
427+
* [safe] true to use safe mode. (default: false)
428428
* [eventHandler] handler for events.
429429
* [contextResolver] internal use only.
430430
*
@@ -524,7 +524,7 @@ jsonld.frame = async function(input, frame, options) {
524524
* [base] the base IRI to use.
525525
* [expandContext] a context to expand with.
526526
* [documentLoader(url, options)] the document loader.
527-
* [safe] true to use safe mode.
527+
* [safe] true to use safe mode. (default: false)
528528
* [eventHandler] handler for events.
529529
* [contextResolver] internal use only.
530530
*
@@ -561,7 +561,7 @@ jsonld.link = async function(input, ctx, options) {
561561
* 'application/n-quads' for N-Quads.
562562
* [documentLoader(url, options)] the document loader.
563563
* [useNative] true to use a native canonize algorithm
564-
* [safe] true to use safe mode.
564+
* [safe] true to use safe mode. (default: false)
565565
* [eventHandler] handler for events.
566566
* [contextResolver] internal use only.
567567
*
@@ -619,7 +619,7 @@ jsonld.normalize = jsonld.canonize = async function(input, options) {
619619
* (boolean, integer, double), false not to (default: false).
620620
* [rdfDirection] 'i18n-datatype' to support RDF transformation of
621621
* @direction (default: null).
622-
* [safe] true to use safe mode.
622+
* [safe] true to use safe mode. (default: false)
623623
* [eventHandler] handler for events.
624624
*
625625
* @return a Promise that resolves to the JSON-LD document.
@@ -670,7 +670,7 @@ jsonld.fromRDF = async function(dataset, options) {
670670
* [produceGeneralizedRdf] true to output generalized RDF, false
671671
* to produce only standard RDF (default: false).
672672
* [documentLoader(url, options)] the document loader.
673-
* [safe] true to use safe mode.
673+
* [safe] true to use safe mode. (default: false)
674674
* [eventHandler] handler for events.
675675
* [contextResolver] internal use only.
676676
*
@@ -765,7 +765,7 @@ jsonld.createNodeMap = async function(input, options) {
765765
* new properties where a node is in the `object` position
766766
* (default: true).
767767
* [documentLoader(url, options)] the document loader.
768-
* [safe] true to use safe mode.
768+
* [safe] true to use safe mode. (default: false)
769769
* [eventHandler] handler for events.
770770
* [contextResolver] internal use only.
771771
*
@@ -929,7 +929,7 @@ jsonld.get = async function(url, options) {
929929
* @param localCtx the local context to process.
930930
* @param [options] the options to use:
931931
* [documentLoader(url, options)] the document loader.
932-
* [safe] true to use safe mode.
932+
* [safe] true to use safe mode. (default: false)
933933
* [eventHandler] handler for events.
934934
* [contextResolver] internal use only.
935935
*

0 commit comments

Comments
 (0)