@graffiti-garden/api 0.0.2 → 0.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graffiti-garden/api",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "The heart of Graffiti",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -29,6 +29,7 @@
29
29
  "homepage": "https://api.graffiti.garden/classes/Graffiti.html",
30
30
  "devDependencies": {
31
31
  "@types/json-schema": "^7.0.15",
32
+ "@types/node": "^22.10.5",
32
33
  "ajv": "^8.17.1",
33
34
  "fast-json-patch": "^3.1.1",
34
35
  "tslib": "^2.8.1",
package/src/api.ts CHANGED
@@ -345,4 +345,4 @@ export abstract class Graffiti {
345
345
  * abstract, factory functions provide an easy way to
346
346
  * swap out different implementations.
347
347
  */
348
- export type UseGraffiti = () => Graffiti;
348
+ export type GraffitiFactory = () => Graffiti;
package/tests/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./location";
@@ -1,7 +1,7 @@
1
1
  import { it, expect } from "vitest";
2
- import type { UseGraffiti } from "../src/index";
2
+ import type { GraffitiFactory } from "../src/index";
3
3
 
4
- export const locationTests = (useGraffiti: UseGraffiti) => {
4
+ export const graffitiLocationTests = (useGraffiti: GraffitiFactory) => {
5
5
  it("url and location", async () => {
6
6
  const graffiti = useGraffiti();
7
7
  const location = {