@better-giving/endowment 4.0.10 → 4.0.11
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 +1 -1
- package/dist/interfaces.d.mts +1 -1
- package/package.json +2 -4
- package/src/db.mts +1 -1
- package/src/interfaces.mts +1 -1
package/dist/db.mjs
CHANGED
|
@@ -187,7 +187,7 @@ export class NpoDb extends Db {
|
|
|
187
187
|
return i && to_imedia(i);
|
|
188
188
|
}
|
|
189
189
|
async npo_med_update(npo, prev, update) {
|
|
190
|
-
const new_sk = med_sk(prev.id, prev.type, (update.featured ?? prev.featured) ? "
|
|
190
|
+
const new_sk = med_sk(prev.id, prev.type, (update.featured ?? prev.featured) ? "1" : "0");
|
|
191
191
|
const cmd = new UpdateCommand({
|
|
192
192
|
TableName: NpoDb.name,
|
|
193
193
|
Key: this.key_npo_med(prev.id, npo),
|
package/dist/interfaces.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IPageKeyed } from "@better-giving/types/api";
|
|
2
2
|
import type { Ensure } from "@better-giving/types/utils";
|
|
3
|
-
import type { IMediaUpdate, INpo, TMediaType } from "./schema.mjs";
|
|
4
3
|
import type { CloudsearchEndow } from "./cloudsearch.mjs";
|
|
4
|
+
import type { IMediaUpdate, INpo, TMediaType } from "./schema.mjs";
|
|
5
5
|
export type { IAllocation, INpo, INpoFields, INposSearch, INpoUpdate, IIncrement, IMediaSearch, IMediaSearchObj, TMediaType, IMediaUpdate, IMilestone, IMilestoneUpdate, IMilestoneNew, IProgram, IProgramDb, IProgramNew, IProgramUpdate, ISocialMediaURLs, } from "./schema.mjs";
|
|
6
6
|
export { type OrgDesignation as EndowDesignation, type Environment, type UnSdgNum, type DonateMethodId, https_url, } from "@better-giving/schemas";
|
|
7
7
|
export interface INpoDb extends INpo {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-giving/endowment",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.11",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"ksuid": "3.0.0"
|
|
6
6
|
},
|
|
@@ -20,9 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"exports": {
|
|
22
22
|
".": "./dist/index.mjs",
|
|
23
|
-
"
|
|
24
|
-
"./db": "./dist/db.mjs",
|
|
25
|
-
"./cloudsearch": "./dist/cloudsearch.mjs"
|
|
23
|
+
"./*": "./dist/*.mjs"
|
|
26
24
|
},
|
|
27
25
|
"scripts": {
|
|
28
26
|
"build": "tsc --outDir dist"
|
package/src/db.mts
CHANGED
package/src/interfaces.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IPageKeyed } from "@better-giving/types/api";
|
|
2
2
|
import type { Ensure } from "@better-giving/types/utils";
|
|
3
|
-
import type { IMediaUpdate, INpo, TMediaType } from "./schema.mjs";
|
|
4
3
|
import type { CloudsearchEndow } from "./cloudsearch.mjs";
|
|
4
|
+
import type { IMediaUpdate, INpo, TMediaType } from "./schema.mjs";
|
|
5
5
|
export type {
|
|
6
6
|
IAllocation,
|
|
7
7
|
INpo,
|