rdflib 2.2.23 → 2.2.24-4e18cd59

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/lib/formula.d.ts CHANGED
@@ -270,7 +270,7 @@ export default class Formula extends Node {
270
270
  * @param provenance - The provenance URI
271
271
  * @param options - options to pass to the serializer, as defined in serialize method
272
272
  */
273
- serialize(base: any, contentType: any, provenance: any, options?: any): string | Promise<string> | undefined;
273
+ serialize(base: any, contentType: any, provenance: any, options?: any): string | undefined;
274
274
  /**
275
275
  * Creates a new formula with the substituting bindings applied
276
276
  * @param bindings - The bindings to substitute
@@ -23,4 +23,4 @@ contentType?: string | ContentType, callback?: (err: Error | undefined | null, r
23
23
  * A set of [prefix, uri] pairs that define namespace prefixes
24
24
  */
25
25
  namespaces?: Record<string, string>;
26
- }): string | undefined | Promise<string>;
26
+ }): string | undefined;
package/lib/store.d.ts CHANGED
@@ -299,5 +299,5 @@ export default class IndexedFormula extends Formula {
299
299
  * @param term
300
300
  */
301
301
  uris(term: Quad_Subject): string[];
302
- serialize(base: any, contentType: any, provenance: any, options?: any): string | Promise<string> | undefined;
302
+ serialize(base: any, contentType: any, provenance: any, options?: any): string | undefined;
303
303
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rdflib",
3
3
  "description": "an RDF library for node.js. Suitable for client and server side.",
4
- "version": "2.2.23",
4
+ "version": "2.2.24-4e18cd59",
5
5
  "private": false,
6
6
  "browserslist": [
7
7
  "> 0.5%"
package/src/serialize.ts CHANGED
@@ -41,7 +41,7 @@ export default function serialize (
41
41
  */
42
42
  namespaces?: Record<string, string>
43
43
  }
44
- ): string | undefined | Promise<string> {
44
+ ): string | undefined {
45
45
  base = base || target?.value
46
46
  const opts = options || {}
47
47
  contentType = contentType || TurtleContentType // text/n3 if complex?