@graffiti-garden/api 0.1.6 → 0.1.7
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/tests/src/crud.d.ts +2 -2
- package/dist/tests/src/crud.d.ts.map +1 -1
- package/dist/tests/src/discover.d.ts +2 -2
- package/dist/tests/src/discover.d.ts.map +1 -1
- package/dist/tests/src/location.d.ts +2 -2
- package/dist/tests/src/location.d.ts.map +1 -1
- package/package.json +1 -1
- package/tests/src/crud.ts +6 -4
- package/tests/src/discover.ts +2 -2
- package/tests/src/location.ts +5 -5
- /package/dist/tests/{src → tests}/src/crud.d.ts +0 -0
- /package/dist/tests/{src → tests}/src/crud.d.ts.map +0 -0
- /package/dist/tests/{src → tests}/src/discover.d.ts +0 -0
- /package/dist/tests/{src → tests}/src/discover.d.ts.map +0 -0
- /package/dist/tests/{src → tests}/src/index.d.ts +0 -0
- /package/dist/tests/{src → tests}/src/index.d.ts.map +0 -0
- /package/dist/tests/{src → tests}/src/location.d.ts +0 -0
- /package/dist/tests/{src → tests}/src/location.d.ts.map +0 -0
- /package/dist/tests/{src → tests}/src/synchronize.d.ts +0 -0
- /package/dist/tests/{src → tests}/src/synchronize.d.ts.map +0 -0
- /package/dist/tests/{src → tests}/src/utils.d.ts +0 -0
- /package/dist/tests/{src → tests}/src/utils.d.ts.map +0 -0
package/dist/tests/src/crud.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const graffitiCRUDTests: (useGraffiti:
|
|
1
|
+
import type { Graffiti, GraffitiSession } from "@graffiti-garden/api";
|
|
2
|
+
export declare const graffitiCRUDTests: (useGraffiti: () => Pick<Graffiti, "put" | "get" | "delete" | "patch">, useSession1: () => GraffitiSession, useSession2: () => GraffitiSession) => void;
|
|
3
3
|
//# sourceMappingURL=crud.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crud.d.ts","sourceRoot":"","sources":["../../../tests/src/crud.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"crud.d.ts","sourceRoot":"","sources":["../../../tests/src/crud.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAW9B,eAAO,MAAM,iBAAiB,gBACf,MAAM,IAAI,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC,eACxD,MAAM,eAAe,eACrB,MAAM,eAAe,SAucnC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const graffitiDiscoverTests: (useGraffiti:
|
|
1
|
+
import type { Graffiti, GraffitiSession } from "@graffiti-garden/api";
|
|
2
|
+
export declare const graffitiDiscoverTests: (useGraffiti: () => Pick<Graffiti, "discover" | "put" | "delete" | "patch">, useSession1: () => GraffitiSession, useSession2: () => GraffitiSession) => void;
|
|
3
3
|
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../../tests/src/discover.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../../tests/src/discover.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAG9B,eAAO,MAAM,qBAAqB,gBACnB,MAAM,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC,eAC7D,MAAM,eAAe,eACrB,MAAM,eAAe,SA0kBnC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const graffitiLocationTests: (useGraffiti:
|
|
1
|
+
import type { Graffiti } from "@graffiti-garden/api";
|
|
2
|
+
export declare const graffitiLocationTests: (useGraffiti: () => Pick<Graffiti, "locationToUri" | "uriToLocation">) => void;
|
|
3
3
|
//# sourceMappingURL=location.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../tests/src/location.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../tests/src/location.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIrD,eAAO,MAAM,qBAAqB,gBACnB,MAAM,IAAI,CAAC,QAAQ,EAAE,eAAe,GAAG,eAAe,CAAC,SAmCrE,CAAC"}
|
package/package.json
CHANGED
package/tests/src/crud.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { it, expect, describe } from "vitest";
|
|
2
|
+
import type {
|
|
3
|
+
Graffiti,
|
|
4
|
+
GraffitiSession,
|
|
5
|
+
GraffitiPatch,
|
|
6
|
+
} from "@graffiti-garden/api";
|
|
2
7
|
import {
|
|
3
|
-
type GraffitiFactory,
|
|
4
|
-
type GraffitiSession,
|
|
5
|
-
type GraffitiPatch,
|
|
6
8
|
GraffitiErrorNotFound,
|
|
7
9
|
GraffitiErrorSchemaMismatch,
|
|
8
10
|
GraffitiErrorInvalidSchema,
|
|
@@ -13,7 +15,7 @@ import {
|
|
|
13
15
|
import { randomPutObject, randomString } from "./utils";
|
|
14
16
|
|
|
15
17
|
export const graffitiCRUDTests = (
|
|
16
|
-
useGraffiti:
|
|
18
|
+
useGraffiti: () => Pick<Graffiti, "put" | "get" | "delete" | "patch">,
|
|
17
19
|
useSession1: () => GraffitiSession,
|
|
18
20
|
useSession2: () => GraffitiSession,
|
|
19
21
|
) => {
|
package/tests/src/discover.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { it, expect, describe, assert } from "vitest";
|
|
2
2
|
import type {
|
|
3
|
-
|
|
3
|
+
Graffiti,
|
|
4
4
|
GraffitiSession,
|
|
5
5
|
JSONSchema4,
|
|
6
6
|
} from "@graffiti-garden/api";
|
|
7
7
|
import { randomString, nextStreamValue, randomPutObject } from "./utils";
|
|
8
8
|
|
|
9
9
|
export const graffitiDiscoverTests = (
|
|
10
|
-
useGraffiti:
|
|
10
|
+
useGraffiti: () => Pick<Graffiti, "discover" | "put" | "delete" | "patch">,
|
|
11
11
|
useSession1: () => GraffitiSession,
|
|
12
12
|
useSession2: () => GraffitiSession,
|
|
13
13
|
) => {
|
package/tests/src/location.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { it, expect, describe } from "vitest";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
type GraffitiFactory,
|
|
5
|
-
} from "@graffiti-garden/api";
|
|
2
|
+
import type { Graffiti } from "@graffiti-garden/api";
|
|
3
|
+
import { GraffitiErrorInvalidUri } from "@graffiti-garden/api";
|
|
6
4
|
import { randomString } from "./utils";
|
|
7
5
|
|
|
8
|
-
export const graffitiLocationTests = (
|
|
6
|
+
export const graffitiLocationTests = (
|
|
7
|
+
useGraffiti: () => Pick<Graffiti, "locationToUri" | "uriToLocation">,
|
|
8
|
+
) => {
|
|
9
9
|
describe("URI and location conversion", () => {
|
|
10
10
|
it("location to uri and back", async () => {
|
|
11
11
|
const graffiti = useGraffiti();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|