@better-giving/fundraiser 3.0.26 → 3.0.28
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/db.mjs +2 -0
- package/dist/interfaces.d.mts +1 -1
- package/package.json +2 -2
- package/src/db.mts +1 -0
- package/src/interfaces.mts +1 -1
package/dist/db.mjs
CHANGED
|
@@ -50,6 +50,8 @@ export class FundDb extends Db {
|
|
|
50
50
|
return item && this.sans_keys(item);
|
|
51
51
|
}
|
|
52
52
|
async funds_get(ids) {
|
|
53
|
+
if (ids.length === 0)
|
|
54
|
+
return [];
|
|
53
55
|
const cmd = new BatchGetCommand({
|
|
54
56
|
RequestItems: {
|
|
55
57
|
[FundDb.table]: { Keys: ids.map((id) => this.key_fund(id)) },
|
package/dist/interfaces.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DonateMethodId, Environment } from "@better-giving/schemas";
|
|
2
|
-
import type { IFundNew } from "./schema.mjs";
|
|
3
2
|
import type { IPageNumbered } from "@better-giving/types/api";
|
|
3
|
+
import type { IFundNew } from "./schema.mjs";
|
|
4
4
|
export interface IFundSettings {
|
|
5
5
|
hide_bg_tip: boolean;
|
|
6
6
|
donateMethods?: DonateMethodId[];
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-giving/fundraiser",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.28",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"valibot": "0.42.0",
|
|
6
|
-
"@better-giving/schemas": "2.0.
|
|
6
|
+
"@better-giving/schemas": "2.0.2",
|
|
7
7
|
"@better-giving/types": "1.1.8",
|
|
8
8
|
"@better-giving/db": "2.0.6",
|
|
9
9
|
"@aws-sdk/lib-dynamodb": "3.485.0"
|
package/src/db.mts
CHANGED
package/src/interfaces.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DonateMethodId, Environment } from "@better-giving/schemas";
|
|
2
|
-
import type { IFundNew } from "./schema.mjs";
|
|
3
2
|
import type { IPageNumbered } from "@better-giving/types/api";
|
|
3
|
+
import type { IFundNew } from "./schema.mjs";
|
|
4
4
|
|
|
5
5
|
export interface IFundSettings {
|
|
6
6
|
hide_bg_tip: boolean;
|