@graffiti-garden/api 0.0.6 → 0.0.8

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.
Files changed (2) hide show
  1. package/package.json +6 -5
  2. package/src/1-api.ts +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graffiti-garden/api",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "The heart of Graffiti",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -29,12 +29,13 @@
29
29
  },
30
30
  "homepage": "https://api.graffiti.garden/classes/Graffiti.html",
31
31
  "devDependencies": {
32
- "@types/json-schema": "^7.0.15",
33
- "@types/node": "^22.10.5",
34
- "ajv": "^8.17.1",
35
- "fast-json-patch": "^3.1.1",
36
32
  "tslib": "^2.8.1",
37
33
  "typedoc": "^0.26.11",
38
34
  "vitest": "^2.1.8"
35
+ },
36
+ "dependencies": {
37
+ "@types/json-schema": "^7.0.15",
38
+ "ajv": "^8.17.1",
39
+ "fast-json-patch": "^3.1.1"
39
40
  }
40
41
  }
package/src/1-api.ts CHANGED
@@ -333,7 +333,7 @@ export abstract class Graffiti {
333
333
  ): GraffitiStream<{
334
334
  channel: string;
335
335
  source: string;
336
- lastModified: Date;
336
+ lastModified: string;
337
337
  count: number;
338
338
  }>;
339
339
 
@@ -358,10 +358,15 @@ export abstract class Graffiti {
358
358
  abstract listOrphans(session: GraffitiSession): GraffitiStream<{
359
359
  name: string;
360
360
  source: string;
361
- lastModified: Date;
361
+ lastModified: string;
362
362
  tombstone: boolean;
363
363
  }>;
364
364
 
365
+ /**
366
+ * The age at which a query for a session will be considered expired.
367
+ */
368
+ // abstract readonly maxAge: number;
369
+
365
370
  /**
366
371
  * Begins the login process. Depending on the implementation, this may
367
372
  * involve redirecting the user to a login page or opening a popup,