rdflib 2.2.10-cdfd1f0a → 2.2.12-dd3667fc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rdflib.min.js +6 -6
- package/dist/rdflib.min.js.map +1 -1
- package/esm/fetcher.js +3 -2
- package/esm/n3parser.js +1330 -1286
- package/esm/rdfxmlparser.js +429 -412
- package/esm/serialize.js +1 -1
- package/esm/serializer.js +849 -821
- package/esm/xsd.js +9 -14
- package/lib/convert.d.ts +2 -0
- package/lib/fetcher.d.ts +2 -0
- package/lib/fetcher.js +3 -2
- package/lib/jsonldparser.d.ts +13 -0
- package/lib/jsonparser.d.ts +4 -0
- package/lib/log.d.ts +15 -0
- package/lib/n3parser.d.ts +62 -0
- package/lib/n3parser.js +1334 -1289
- package/lib/patch-parser.d.ts +3 -0
- package/lib/query-to-sparql.d.ts +1 -0
- package/lib/query.d.ts +27 -0
- package/lib/rdfaparser.d.ts +78 -0
- package/lib/rdfxmlparser.d.ts +60 -0
- package/lib/rdfxmlparser.js +430 -413
- package/lib/serialize.d.ts +1 -1
- package/lib/serialize.js +1 -1
- package/lib/serializer.d.ts +54 -0
- package/lib/serializer.js +851 -824
- package/lib/sparql-to-query.d.ts +6 -0
- package/lib/updates-via.d.ts +26 -0
- package/lib/utils-js.d.ts +50 -0
- package/lib/xsd-internal.d.ts +11 -0
- package/lib/xsd.d.ts +19 -0
- package/lib/xsd.js +8 -14
- package/package.json +2 -2
- package/src/fetcher.ts +6 -3
- package/src/n3parser.js +1114 -1110
- package/src/rdfxmlparser.js +22 -21
- package/src/serialize.ts +3 -3
- package/src/serializer.js +74 -62
- package/src/xsd.js +16 -14
package/esm/fetcher.js
CHANGED
|
@@ -692,8 +692,9 @@ var Fetcher = /*#__PURE__*/function () {
|
|
|
692
692
|
|
|
693
693
|
this.store = store || new IndexedFormula();
|
|
694
694
|
this.ns = getNS(this.store.rdfFactory);
|
|
695
|
-
this.timeout = options.timeout || 30000;
|
|
696
|
-
|
|
695
|
+
this.timeout = options.timeout || 30000; // solidFetcher is deprecated
|
|
696
|
+
|
|
697
|
+
this._fetch = options.fetch || typeof global !== 'undefined' && (global.solidFetcher || global.solidFetch) || typeof window !== 'undefined' && (window.solidFetcher || window.solidFetch) || crossFetch;
|
|
697
698
|
|
|
698
699
|
if (!this._fetch) {
|
|
699
700
|
throw new Error('No _fetch function available for Fetcher');
|