@devmonks/notify 0.4.0 → 0.4.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.
@@ -1,2 +1,2 @@
1
- export { notifyTables, type NotifyTables } from './tables';
2
- export { drizzleStore, MAX_DEVICE_FAILURES, type DrizzleStore, type DrizzleStoreOptions, type UserInfo } from './store';
1
+ export { notifyTables, type NotifyTables } from './tables.js';
2
+ export { drizzleStore, MAX_DEVICE_FAILURES, type DrizzleStore, type DrizzleStoreOptions, type UserInfo } from './store.js';
@@ -1,2 +1,2 @@
1
- export { notifyTables } from './tables';
2
- export { drizzleStore, MAX_DEVICE_FAILURES } from './store';
1
+ export { notifyTables } from './tables.js';
2
+ export { drizzleStore, MAX_DEVICE_FAILURES } from './store.js';
@@ -1,6 +1,6 @@
1
1
  import type { PgDatabase } from 'drizzle-orm/pg-core';
2
- import type { Content, Delivery, Recipient, SendResult } from '../types';
3
- import type { NotifyTables } from './tables';
2
+ import type { Content, Delivery, Recipient, SendResult } from '../types.js';
3
+ import type { NotifyTables } from './tables.js';
4
4
  /** Devices are deleted after this many consecutive permanent failures. */
5
5
  export declare const MAX_DEVICE_FAILURES = 3;
6
6
  export interface UserInfo {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devmonks/notify",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Plan-then-send notifications with an FCM HTTP v1 push adapter. No DB, no queue; the core entry has no dependencies. Optional email (Resend + React Email) and Drizzle entries.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -23,15 +23,18 @@
23
23
  "exports": {
24
24
  ".": {
25
25
  "types": "./dist/index.d.ts",
26
- "import": "./dist/index.js"
26
+ "import": "./dist/index.js",
27
+ "default": "./dist/index.js"
27
28
  },
28
29
  "./email": {
29
30
  "types": "./dist/email/index.d.ts",
30
- "import": "./dist/email/index.js"
31
+ "import": "./dist/email/index.js",
32
+ "default": "./dist/email/index.js"
31
33
  },
32
34
  "./drizzle": {
33
35
  "types": "./dist/drizzle/index.d.ts",
34
- "import": "./dist/drizzle/index.js"
36
+ "import": "./dist/drizzle/index.js",
37
+ "default": "./dist/drizzle/index.js"
35
38
  }
36
39
  },
37
40
  "files": [
@@ -46,7 +49,8 @@
46
49
  "build": "rm -rf dist && tsc -p tsconfig.build.json",
47
50
  "typecheck": "tsc --noEmit",
48
51
  "test": "vitest run",
49
- "prepublishOnly": "bun run typecheck && bun run test && bun run build"
52
+ "prepublishOnly": "bun run typecheck && bun run test && bun run build && bun run smoke",
53
+ "smoke": "node scripts/smoke.mjs"
50
54
  },
51
55
  "peerDependencies": {
52
56
  "@react-email/components": ">=1",