@better-giving/fundraiser 3.0.5 → 3.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/schema.d.mts CHANGED
@@ -1,7 +1,8 @@
1
- import type { DonateMethodId } from "@better-giving/schemas";
1
+ import { type DonateMethodId } from "@better-giving/schemas";
2
2
  import type { Environment } from "@better-giving/types/list";
3
- export type { Environment } from "@better-giving/types/list";
4
3
  import { type InferOutput } from "valibot";
4
+ export { type DonateMethodId, slug } from "@better-giving/schemas";
5
+ export type { Environment } from "@better-giving/types/list";
5
6
  export declare const fundId: import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").UuidAction<string, undefined>]>;
6
7
  /**
7
8
  * when fundraiser is created in the context of an NPO, all members of that NPO can edit the fundraiser
package/dist/schema.mjs CHANGED
@@ -1,5 +1,6 @@
1
- import { slug } from "@better-giving/endowment/schema";
1
+ import { slug } from "@better-giving/schemas";
2
2
  import { url, array, boolean, integer, isoTimestamp, literal, maxLength, minValue, nonEmpty, number, object, optional, partial, pick, pipe, string, transform, trim, union, uuid, } from "valibot";
3
+ export { slug } from "@better-giving/schemas";
3
4
  const str = pipe(string(), trim());
4
5
  export const fundId = pipe(str, uuid());
5
6
  /**
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@better-giving/fundraiser",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "peerDependencies": {
5
5
  "valibot": "0.42.0",
6
- "@better-giving/endowment": "4.0.5",
7
6
  "@better-giving/schemas": "2.0.0",
8
7
  "@better-giving/types": "1.1.8"
9
8
  },
package/src/schema.mts CHANGED
@@ -1,7 +1,5 @@
1
- import { slug } from "@better-giving/endowment/schema";
2
- import type { DonateMethodId } from "@better-giving/schemas";
1
+ import { type DonateMethodId, slug } from "@better-giving/schemas";
3
2
  import type { Environment } from "@better-giving/types/list";
4
- export type { Environment } from "@better-giving/types/list";
5
3
  import {
6
4
  url,
7
5
  type InferOutput,
@@ -26,6 +24,9 @@ import {
26
24
  uuid,
27
25
  } from "valibot";
28
26
 
27
+ export { type DonateMethodId, slug } from "@better-giving/schemas";
28
+ export type { Environment } from "@better-giving/types/list";
29
+
29
30
  const str = pipe(string(), trim());
30
31
 
31
32
  export const fundId = pipe(str, uuid());