@better-giving/endowment 6.1.0 → 6.1.1

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.d.mts CHANGED
@@ -43,7 +43,7 @@ export declare class NpoDb extends Db {
43
43
  npo_media(npo: number, opts: IMediaSearchObj): Promise<IMediaPage>;
44
44
  npo_referred_by(id: string): Promise<INpoReferredBy[]>;
45
45
  npo_with_rid(id: string): Promise<INpoWithRid | undefined>;
46
- npo_with_keyword(keyword: string, env?: import("@better-giving/types/list").Environment): Promise<INpoWithKeyword | undefined>;
46
+ npo_with_keyword(keyword: string): Promise<INpoWithKeyword | undefined>;
47
47
  npo_with_regnum(regnum: string, country?: string): Promise<INpoWithRegNum | undefined>;
48
48
  npo_record(data: INpo): {
49
49
  gsi2PK?: string | undefined;
package/dist/db.mjs CHANGED
@@ -131,7 +131,7 @@ export class NpoDb extends Db {
131
131
  const i = Items[0];
132
132
  return i && this.sans_keys(i);
133
133
  }
134
- async npo_with_keyword(keyword, env = this.env) {
134
+ async npo_with_keyword(keyword) {
135
135
  const cmd = new QueryCommand({
136
136
  TableName: NpoDb.table,
137
137
  IndexName: NpoDb.keyword_env_gsi,
@@ -142,7 +142,7 @@ export class NpoDb extends Db {
142
142
  },
143
143
  ExpressionAttributeValues: {
144
144
  ":kw": keyword,
145
- ":env": env,
145
+ ":env": this.env,
146
146
  },
147
147
  Limit: 1,
148
148
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/endowment",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "dependencies": {
5
5
  "ksuid": "3.0.0"
6
6
  },
package/src/db.mts CHANGED
@@ -189,8 +189,7 @@ export class NpoDb extends Db {
189
189
  return i && this.sans_keys(i);
190
190
  }
191
191
  async npo_with_keyword(
192
- keyword: string,
193
- env = this.env
192
+ keyword: string
194
193
  ): Promise<INpoWithKeyword | undefined> {
195
194
  const cmd = new QueryCommand({
196
195
  TableName: NpoDb.table,
@@ -202,7 +201,7 @@ export class NpoDb extends Db {
202
201
  },
203
202
  ExpressionAttributeValues: {
204
203
  ":kw": keyword,
205
- ":env": env,
204
+ ":env": this.env,
206
205
  },
207
206
  Limit: 1,
208
207
  });