@pikku/kysely 0.13.37 → 0.13.39

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.
Files changed (24) hide show
  1. package/dist/bin/pikku-kysely-pure.js +0 -0
  2. package/dist/src/kysely-incoming-webhook-service.d.ts +1 -0
  3. package/dist/src/kysely-incoming-webhook-service.js +8 -0
  4. package/package.json +15 -9
  5. package/CHANGELOG.md +0 -2347
  6. package/knowledge/decisions/a-console-role-cannot-take-a-system-roles-name.md +0 -25
  7. package/knowledge/decisions/a-credential-with-no-user-is-one-row-per-name.md +0 -22
  8. package/knowledge/decisions/a-lease-is-taken-by-one-guarded-update.md +0 -30
  9. package/knowledge/decisions/a-virtual-users-schedule-starts-disabled.md +0 -23
  10. package/knowledge/decisions/classification-driven-encryption-happens-in-a-plugin.md +0 -71
  11. package/knowledge/decisions/grants-reference-declared-scopes-and-users-by-foreign-key.md +0 -29
  12. package/knowledge/decisions/index.md +0 -21
  13. package/knowledge/decisions/keks-are-scoped-by-purpose-as-well-as-version.md +0 -45
  14. package/knowledge/decisions/leases-are-judged-by-the-database-clock.md +0 -42
  15. package/knowledge/decisions/the-plugin-is-given-a-resolver-never-a-key.md +0 -45
  16. package/knowledge/decisions/the-secrets-audit-table-is-declared-even-when-auditing-is-off.md +0 -22
  17. package/knowledge/decisions/workflows-own-the-lease-table-too.md +0 -22
  18. package/knowledge/index.md +0 -19
  19. package/knowledge/questions/do-the-kysely-stores-check-who-calls-them.md +0 -27
  20. package/knowledge/questions/does-a-trigger-source-row-hold-only-provider-identifiers.md +0 -26
  21. package/knowledge/questions/index.md +0 -17
  22. package/knowledge/questions/should-pikku-user-sessions-expire-on-their-own.md +0 -21
  23. package/knowledge/questions/should-secret-and-credential-reads-be-audited-by-default.md +0 -32
  24. package/run-tests.sh +0 -61
File without changes
@@ -26,4 +26,5 @@ export declare class KyselyIncomingWebhookService extends IncomingWebhookService
26
26
  source?: string;
27
27
  limit?: number;
28
28
  }): Promise<IncomingWebhookReceiptRecord[]>;
29
+ getReceipt(receiptId: string): Promise<IncomingWebhookReceiptRecord | null>;
29
30
  }
@@ -91,4 +91,12 @@ export class KyselyIncomingWebhookService extends IncomingWebhookService {
91
91
  }
92
92
  return query.execute();
93
93
  }
94
+ async getReceipt(receiptId) {
95
+ const receipt = await this.db
96
+ .selectFrom('webhookReceipt')
97
+ .selectAll()
98
+ .where('receiptId', '=', receiptId)
99
+ .executeTakeFirst();
100
+ return receipt ?? null;
101
+ }
94
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/kysely",
3
- "version": "0.13.37",
3
+ "version": "0.13.39",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/pikkujs/pikku.git",
@@ -19,28 +19,34 @@
19
19
  "scripts": {
20
20
  "tsc": "tsc",
21
21
  "ncu": "npx npm-check-updates",
22
- "build": "tsc -b",
22
+ "build": "bun run clean && tsc -b",
23
23
  "test": "bash run-tests.sh",
24
24
  "test:watch": "bash run-tests.sh --watch",
25
25
  "test:coverage": "bash run-tests.sh --coverage",
26
26
  "release": "npm run build && npm test",
27
- "prepublishOnly": "bun run build"
27
+ "prepublishOnly": "bun run build",
28
+ "clean": "rm -rf dist tsconfig.tsbuildinfo"
28
29
  },
29
30
  "peerDependencies": {
30
- "@pikku/core": "^0.12.142"
31
+ "@pikku/core": "^0.12.144"
31
32
  },
32
33
  "dependencies": {
33
- "kysely": "^0.29.5"
34
+ "kysely": "^0.29.6"
34
35
  },
35
36
  "devDependencies": {
36
- "@electric-sql/pglite": "^0.5.5",
37
+ "@electric-sql/pglite": "^0.5.10",
37
38
  "@types/better-sqlite3": "^9.6.0",
38
39
  "better-sqlite3": "^13.0.3",
39
40
  "kysely-codegen": "^0.20.0",
40
- "kysely-postgres-js": "^3.0.0",
41
+ "kysely-postgres-js": "^5.0.1",
41
42
  "postgres": "^3.4.9"
42
43
  },
43
44
  "exports": {
44
- ".": "./dist/src/index.js"
45
- }
45
+ ".": "./dist/src/index.js",
46
+ "./package.json": "./package.json"
47
+ },
48
+ "files": [
49
+ "dist",
50
+ "!dist/**/*.tsbuildinfo"
51
+ ]
46
52
  }