@graffiti-garden/api 1.0.5 → 1.0.6
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/browser/index.js +1 -1
- package/dist/browser/index.js.map +3 -3
- package/dist/cjs/{1-api.js → 1-api.cjs} +1 -1
- package/dist/cjs/{2-types.js → 2-types.cjs} +1 -1
- package/dist/cjs/{3-errors.js → 3-errors.cjs} +9 -1
- package/dist/cjs/{3-errors.js.map → 3-errors.cjs.map} +2 -2
- package/dist/cjs/{4-utilities.js → 4-utilities.cjs} +2 -2
- package/dist/cjs/{4-utilities.js.map → 4-utilities.cjs.map} +2 -2
- package/dist/cjs/{5-runtime-types.js → 5-runtime-types.cjs} +1 -1
- package/dist/cjs/{index.js → index.cjs} +1 -1
- package/dist/esm/{1-api.js → 1-api.mjs} +1 -1
- package/dist/esm/{2-types.js → 2-types.mjs} +1 -1
- package/dist/esm/{3-errors.js → 3-errors.mjs} +9 -1
- package/dist/esm/{3-errors.js.map → 3-errors.mjs.map} +2 -2
- package/dist/esm/{4-utilities.js → 4-utilities.mjs} +2 -2
- package/dist/esm/{4-utilities.js.map → 4-utilities.mjs.map} +2 -2
- package/dist/esm/{5-runtime-types.js → 5-runtime-types.mjs} +1 -1
- package/dist/esm/{index.js → index.mjs} +1 -1
- package/dist/src/3-errors.d.ts +3 -0
- package/dist/src/3-errors.d.ts.map +1 -1
- package/dist/tests.mjs +8 -8
- package/dist/tests.mjs.map +3 -3
- package/package.json +5 -5
- package/src/3-errors.ts +8 -0
- package/src/4-utilities.ts +1 -1
- package/tests/crud.ts +1 -1
- package/tests/discover.ts +2 -2
- /package/dist/cjs/{1-api.js.map → 1-api.cjs.map} +0 -0
- /package/dist/cjs/{2-types.js.map → 2-types.cjs.map} +0 -0
- /package/dist/cjs/{5-runtime-types.js.map → 5-runtime-types.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/esm/{1-api.js.map → 1-api.mjs.map} +0 -0
- /package/dist/esm/{2-types.js.map → 2-types.mjs.map} +0 -0
- /package/dist/esm/{5-runtime-types.js.map → 5-runtime-types.mjs.map} +0 -0
- /package/dist/esm/{index.js.map → index.mjs.map} +0 -0
package/tests/crud.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
GraffitiErrorInvalidSchema,
|
|
11
11
|
GraffitiErrorForbidden,
|
|
12
12
|
} from "@graffiti-garden/api";
|
|
13
|
-
import {
|
|
13
|
+
import { randomString, randomUrl } from "./utils";
|
|
14
14
|
|
|
15
15
|
export const graffitiCRUDTests = (
|
|
16
16
|
useGraffiti: () => Pick<Graffiti, "post" | "get" | "delete">,
|
package/tests/discover.ts
CHANGED
|
@@ -5,9 +5,9 @@ import type {
|
|
|
5
5
|
JSONSchema,
|
|
6
6
|
} from "@graffiti-garden/api";
|
|
7
7
|
import {
|
|
8
|
+
GraffitiErrorCursorExpired,
|
|
8
9
|
GraffitiErrorForbidden,
|
|
9
10
|
GraffitiErrorInvalidSchema,
|
|
10
|
-
GraffitiErrorNotFound,
|
|
11
11
|
} from "@graffiti-garden/api";
|
|
12
12
|
import {
|
|
13
13
|
randomString,
|
|
@@ -454,7 +454,7 @@ export const graffitiDiscoverTests = (
|
|
|
454
454
|
|
|
455
455
|
it("lookup non-existant cursor", async () => {
|
|
456
456
|
const iterator = graffiti.continueDiscover(randomString());
|
|
457
|
-
await expect(iterator.next()).rejects.toThrow(
|
|
457
|
+
await expect(iterator.next()).rejects.toThrow(GraffitiErrorCursorExpired);
|
|
458
458
|
});
|
|
459
459
|
});
|
|
460
460
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|