easy-ping 0.10.2 → 0.10.3
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/README.md +8 -3
- package/dist/adapters/drizzle.cjs +0 -2
- package/dist/adapters/drizzle.js +3 -5
- package/dist/adapters/mongodb.cjs +0 -2
- package/dist/adapters/mongodb.js +4 -6
- package/dist/adapters/mysql.cjs +0 -2
- package/dist/adapters/mysql.js +6 -8
- package/dist/adapters/postgres.cjs +0 -2
- package/dist/adapters/postgres.js +8 -10
- package/dist/adapters/sqlite.cjs +0 -2
- package/dist/adapters/sqlite.js +6 -8
- package/dist/browser.cjs +0 -2
- package/dist/browser.js +0 -2
- package/dist/{chunk-JKTMUMQK.js → chunk-2UOEAG6H.js} +1 -3
- package/dist/{chunk-R3BE67L7.js → chunk-74KSKP6B.js} +0 -2
- package/dist/{chunk-O2PBBL5X.js → chunk-7C4K5WKW.js} +1 -3
- package/dist/{chunk-CK5UPVYP.js → chunk-CRSGL5SG.js} +0 -2
- package/dist/{chunk-PTGHMCCG.js → chunk-D3UX3WWD.js} +0 -2
- package/dist/{chunk-CMWOIYVQ.js → chunk-EN3NMHSI.js} +4 -6
- package/dist/{chunk-ORZKH224.js → chunk-G32BYQAT.js} +0 -2
- package/dist/{chunk-A4HX5YTG.js → chunk-IXXPJMYS.js} +3 -5
- package/dist/{chunk-CFLVAF2R.js → chunk-JDR3U7X4.js} +2 -4
- package/dist/{chunk-AEYYTE5I.js → chunk-JRZ2U4IT.js} +0 -2
- package/dist/{chunk-UM2L26PV.js → chunk-KOS3YZMZ.js} +1 -3
- package/dist/{chunk-HSB5T3LD.js → chunk-OKIQ5BEV.js} +1 -3
- package/dist/{chunk-JN3UCQBP.js → chunk-SZWEW3WN.js} +0 -2
- package/dist/{chunk-SSHVZHSJ.js → chunk-VA4W4UFI.js} +0 -2
- package/dist/client.cjs +0 -2
- package/dist/client.js +0 -2
- package/dist/index.cjs +0 -2
- package/dist/index.js +12 -14
- package/dist/node.cjs +0 -2
- package/dist/node.js +3 -5
- package/dist/plugins/digests.cjs +0 -2
- package/dist/plugins/digests.js +1 -3
- package/dist/plugins/mobile-push.cjs +0 -2
- package/dist/plugins/mobile-push.js +3 -5
- package/dist/plugins/preferences-client.cjs +0 -2
- package/dist/plugins/preferences-client.js +1 -3
- package/dist/plugins/preferences-react.cjs +0 -1
- package/dist/plugins/preferences-react.js +0 -1
- package/dist/plugins/preferences.cjs +0 -2
- package/dist/plugins/preferences.js +3 -5
- package/dist/plugins/push.cjs +0 -2
- package/dist/plugins/push.js +4 -6
- package/dist/plugins/telegram.cjs +0 -2
- package/dist/plugins/telegram.js +5 -7
- package/dist/providers/expo-push.cjs +0 -2
- package/dist/providers/expo-push.js +0 -2
- package/dist/providers/resend.cjs +0 -2
- package/dist/providers/resend.js +0 -2
- package/dist/providers/telegram.cjs +0 -2
- package/dist/providers/telegram.js +1 -3
- package/dist/providers/web-push.cjs +0 -2
- package/dist/providers/web-push.js +1 -3
- package/dist/react-native.cjs +0 -1
- package/dist/react-native.js +0 -1
- package/dist/react.cjs +0 -1
- package/dist/react.js +0 -1
- package/dist/schema.cjs +0 -2
- package/dist/schema.js +4 -6
- package/dist/sw.cjs +0 -2
- package/dist/sw.js +0 -2
- package/dist/testing.cjs +0 -2
- package/dist/testing.js +0 -2
- package/package.json +3 -3
- package/dist/adapters/drizzle.cjs.map +0 -1
- package/dist/adapters/drizzle.js.map +0 -1
- package/dist/adapters/mongodb.cjs.map +0 -1
- package/dist/adapters/mongodb.js.map +0 -1
- package/dist/adapters/mysql.cjs.map +0 -1
- package/dist/adapters/mysql.js.map +0 -1
- package/dist/adapters/postgres.cjs.map +0 -1
- package/dist/adapters/postgres.js.map +0 -1
- package/dist/adapters/sqlite.cjs.map +0 -1
- package/dist/adapters/sqlite.js.map +0 -1
- package/dist/browser.cjs.map +0 -1
- package/dist/browser.js.map +0 -1
- package/dist/chunk-A4HX5YTG.js.map +0 -1
- package/dist/chunk-AEYYTE5I.js.map +0 -1
- package/dist/chunk-CFLVAF2R.js.map +0 -1
- package/dist/chunk-CK5UPVYP.js.map +0 -1
- package/dist/chunk-CMWOIYVQ.js.map +0 -1
- package/dist/chunk-HSB5T3LD.js.map +0 -1
- package/dist/chunk-JKTMUMQK.js.map +0 -1
- package/dist/chunk-JN3UCQBP.js.map +0 -1
- package/dist/chunk-O2PBBL5X.js.map +0 -1
- package/dist/chunk-ORZKH224.js.map +0 -1
- package/dist/chunk-PTGHMCCG.js.map +0 -1
- package/dist/chunk-R3BE67L7.js.map +0 -1
- package/dist/chunk-SSHVZHSJ.js.map +0 -1
- package/dist/chunk-UM2L26PV.js.map +0 -1
- package/dist/client.cjs.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/node.cjs.map +0 -1
- package/dist/node.js.map +0 -1
- package/dist/plugins/digests.cjs.map +0 -1
- package/dist/plugins/digests.js.map +0 -1
- package/dist/plugins/mobile-push.cjs.map +0 -1
- package/dist/plugins/mobile-push.js.map +0 -1
- package/dist/plugins/preferences-client.cjs.map +0 -1
- package/dist/plugins/preferences-client.js.map +0 -1
- package/dist/plugins/preferences-react.cjs.map +0 -1
- package/dist/plugins/preferences-react.js.map +0 -1
- package/dist/plugins/preferences.cjs.map +0 -1
- package/dist/plugins/preferences.js.map +0 -1
- package/dist/plugins/push.cjs.map +0 -1
- package/dist/plugins/push.js.map +0 -1
- package/dist/plugins/telegram.cjs.map +0 -1
- package/dist/plugins/telegram.js.map +0 -1
- package/dist/providers/expo-push.cjs.map +0 -1
- package/dist/providers/expo-push.js.map +0 -1
- package/dist/providers/resend.cjs.map +0 -1
- package/dist/providers/resend.js.map +0 -1
- package/dist/providers/telegram.cjs.map +0 -1
- package/dist/providers/telegram.js.map +0 -1
- package/dist/providers/web-push.cjs.map +0 -1
- package/dist/providers/web-push.js.map +0 -1
- package/dist/react-native.cjs.map +0 -1
- package/dist/react-native.js.map +0 -1
- package/dist/react.cjs.map +0 -1
- package/dist/react.js.map +0 -1
- package/dist/schema.cjs.map +0 -1
- package/dist/schema.js.map +0 -1
- package/dist/sw.cjs.map +0 -1
- package/dist/sw.js.map +0 -1
- package/dist/testing.cjs.map +0 -1
- package/dist/testing.js.map +0 -1
package/README.md
CHANGED
|
@@ -7,11 +7,14 @@ In-app inbox, transactional email, web push and Telegram — running inside your
|
|
|
7
7
|
database, with no per-notification bill.
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/easy-ping)
|
|
10
|
-
[](https://www.npmjs.com/package/easy-ping)
|
|
11
11
|
[](https://www.npmjs.com/package/easy-ping)
|
|
12
12
|
[](./LICENSE)
|
|
13
|
+
[](https://discord.gg/bJ5wGFD3H)
|
|
13
14
|
|
|
14
|
-
[Documentation](https://easy-pings.com) · [Quickstart](https://easy-pings.com/docs/quickstart) · [Changelog](https://easy-pings.com/docs/changelog) · [AI context](https://easy-pings.com/docs/ai-assistant)
|
|
15
|
+
[Documentation](https://easy-pings.com) · [Quickstart](https://easy-pings.com/docs/quickstart) · [Changelog](https://easy-pings.com/docs/changelog) · [AI context](https://easy-pings.com/docs/ai-assistant) · [Examples](https://github.com/teklumt/easy-ping/tree/main/examples)
|
|
16
|
+
|
|
17
|
+
**Community:** questions and help on [Discord](https://discord.gg/bJ5wGFD3H) · bugs and feature requests on [GitHub issues](https://github.com/teklumt/easy-ping/issues)
|
|
15
18
|
|
|
16
19
|
</div>
|
|
17
20
|
|
|
@@ -317,7 +320,7 @@ import { handlePush } from "easy-ping/sw";
|
|
|
317
320
|
self.addEventListener("push", (event) => event.waitUntil(handlePush(event)));
|
|
318
321
|
```
|
|
319
322
|
|
|
320
|
-
**React Native (beta, under testing).** The same client ships as `easy-ping/react-native`: `useNotifications` wired to `AppState`, a live stream when you pass `fetch` from `expo/fetch`, polling otherwise, and `registerMobilePushDevice` for native push.
|
|
323
|
+
**React Native (beta, under testing).** The same client ships as `easy-ping/react-native`: `useNotifications` wired to `AppState`, a live stream when you pass `fetch` from `expo/fetch`, polling otherwise, and `registerMobilePushDevice` for native push.
|
|
321
324
|
|
|
322
325
|
### 7. Wire the cron
|
|
323
326
|
|
|
@@ -463,6 +466,8 @@ Defaults to the last 24 hours, capped at 1000 rows. Wire it to an admin page or
|
|
|
463
466
|
|
|
464
467
|
## Security notes
|
|
465
468
|
|
|
469
|
+
Found a vulnerability? Report it privately; see [SECURITY.md](https://github.com/teklumt/easy-ping/blob/main/SECURITY.md).
|
|
470
|
+
|
|
466
471
|
- **`session.getUserId` is mandatory.** There is no default and no dev bypass — an insecure default ships, a startup crash doesn't. Returning `null` yields 401; *throwing* yields 500, because a broken session store and an absent session are different bugs.
|
|
467
472
|
- **Every query is scoped server-side.** No route accepts a user id from the client. Marking someone else's notification read returns 404, not 403 — a 403 confirms the row exists.
|
|
468
473
|
- **`cron.secret` is required** for modes that rely on the sweep. Unauthenticated, that endpoint is a free flush-everything trigger against your email provider. Compared in constant time. Plugin machine routes (`/push/prune`, `/digests/cron`) accept it too unless you set `machineSecret`, which keeps the scheduler's credential to `/cron` alone. One call drains at most `cron.maxSweeps` sweeps (default 50).
|
package/dist/adapters/drizzle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isOperator } from '../chunk-
|
|
2
|
-
import { toSnakeCase } from '../chunk-
|
|
3
|
-
import { decodeBase64Url, encodeBase64Url } from '../chunk-
|
|
1
|
+
import { isOperator } from '../chunk-7C4K5WKW.js';
|
|
2
|
+
import { toSnakeCase } from '../chunk-JRZ2U4IT.js';
|
|
3
|
+
import { decodeBase64Url, encodeBase64Url } from '../chunk-D3UX3WWD.js';
|
|
4
4
|
import { sql } from 'drizzle-orm';
|
|
5
5
|
import { pgTable, timestamp, text, jsonb, index, uniqueIndex, integer, boolean, primaryKey } from 'drizzle-orm/pg-core';
|
|
6
6
|
|
|
@@ -411,5 +411,3 @@ function createSchema(prefix = "") {
|
|
|
411
411
|
var schema = createSchema();
|
|
412
412
|
|
|
413
413
|
export { createSchema, drizzleAdapter, schema };
|
|
414
|
-
//# sourceMappingURL=drizzle.js.map
|
|
415
|
-
//# sourceMappingURL=drizzle.js.map
|
|
@@ -598,5 +598,3 @@ exports.createMongoIndexes = createMongoIndexes;
|
|
|
598
598
|
exports.createPluginIndexes = createPluginIndexes;
|
|
599
599
|
exports.mongoAdapter = mongoAdapter;
|
|
600
600
|
exports.mongoSignals = mongoSignals;
|
|
601
|
-
//# sourceMappingURL=mongodb.cjs.map
|
|
602
|
-
//# sourceMappingURL=mongodb.cjs.map
|
package/dist/adapters/mongodb.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createBridgedSignals } from '../chunk-
|
|
2
|
-
import { isOperator } from '../chunk-
|
|
3
|
-
import { coreSchema } from '../chunk-
|
|
4
|
-
import { decodeBase64Url, encodeBase64Url } from '../chunk-
|
|
1
|
+
import { createBridgedSignals } from '../chunk-G32BYQAT.js';
|
|
2
|
+
import { isOperator } from '../chunk-7C4K5WKW.js';
|
|
3
|
+
import { coreSchema } from '../chunk-JRZ2U4IT.js';
|
|
4
|
+
import { decodeBase64Url, encodeBase64Url } from '../chunk-D3UX3WWD.js';
|
|
5
5
|
|
|
6
6
|
// src/adapters/mongodb/adapter.ts
|
|
7
7
|
var str = (value) => String(value);
|
|
@@ -445,5 +445,3 @@ function mongoSignals(db, options = {}) {
|
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
export { createMongoIndexes, createPluginIndexes, mongoAdapter, mongoSignals };
|
|
448
|
-
//# sourceMappingURL=mongodb.js.map
|
|
449
|
-
//# sourceMappingURL=mongodb.js.map
|
package/dist/adapters/mysql.cjs
CHANGED
package/dist/adapters/mysql.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createSqlAdapter, mysqlDialect } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import { renderMysqlDdl } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import { coreSchema } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
import { createSqlAdapter, mysqlDialect } from '../chunk-EN3NMHSI.js';
|
|
2
|
+
import '../chunk-CRSGL5SG.js';
|
|
3
|
+
import { renderMysqlDdl } from '../chunk-KOS3YZMZ.js';
|
|
4
|
+
import '../chunk-7C4K5WKW.js';
|
|
5
|
+
import { coreSchema } from '../chunk-JRZ2U4IT.js';
|
|
6
|
+
import '../chunk-D3UX3WWD.js';
|
|
7
7
|
|
|
8
8
|
// src/adapters/mysql/adapter.ts
|
|
9
9
|
function mysqlAdapter(query, options = {}) {
|
|
@@ -47,5 +47,3 @@ async function createMysqlTables(query, options = {}) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export { createMysqlTables, mysql2Query, mysqlAdapter, mysqlTransaction };
|
|
50
|
-
//# sourceMappingURL=mysql.js.map
|
|
51
|
-
//# sourceMappingURL=mysql.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { quote, Statement } from '../chunk-
|
|
2
|
-
import { renderPostgresDdl } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import { createBridgedSignals } from '../chunk-
|
|
6
|
-
import { isOperator } from '../chunk-
|
|
7
|
-
import { toSnakeCase, coreSchema } from '../chunk-
|
|
8
|
-
import { decodeBase64Url, encodeBase64Url } from '../chunk-
|
|
1
|
+
import { quote, Statement } from '../chunk-CRSGL5SG.js';
|
|
2
|
+
import { renderPostgresDdl } from '../chunk-IXXPJMYS.js';
|
|
3
|
+
import '../chunk-KOS3YZMZ.js';
|
|
4
|
+
import '../chunk-OKIQ5BEV.js';
|
|
5
|
+
import { createBridgedSignals } from '../chunk-G32BYQAT.js';
|
|
6
|
+
import { isOperator } from '../chunk-7C4K5WKW.js';
|
|
7
|
+
import { toSnakeCase, coreSchema } from '../chunk-JRZ2U4IT.js';
|
|
8
|
+
import { decodeBase64Url, encodeBase64Url } from '../chunk-D3UX3WWD.js';
|
|
9
9
|
|
|
10
10
|
// src/adapters/postgres/adapter.ts
|
|
11
11
|
var str = (value) => String(value);
|
|
@@ -396,5 +396,3 @@ function pgListenNotify(client) {
|
|
|
396
396
|
}
|
|
397
397
|
|
|
398
398
|
export { createPostgresTables, pgListenNotify, pgTransaction, postgresAdapter, postgresSignals };
|
|
399
|
-
//# sourceMappingURL=postgres.js.map
|
|
400
|
-
//# sourceMappingURL=postgres.js.map
|
package/dist/adapters/sqlite.cjs
CHANGED
package/dist/adapters/sqlite.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createSqlAdapter, sqliteDialect } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import { renderSqliteDdl } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import { coreSchema } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
import { createSqlAdapter, sqliteDialect } from '../chunk-EN3NMHSI.js';
|
|
2
|
+
import '../chunk-CRSGL5SG.js';
|
|
3
|
+
import { renderSqliteDdl } from '../chunk-OKIQ5BEV.js';
|
|
4
|
+
import '../chunk-7C4K5WKW.js';
|
|
5
|
+
import { coreSchema } from '../chunk-JRZ2U4IT.js';
|
|
6
|
+
import '../chunk-D3UX3WWD.js';
|
|
7
7
|
|
|
8
8
|
// src/adapters/sqlite/adapter.ts
|
|
9
9
|
function sqliteAdapter(query, options = {}) {
|
|
@@ -49,5 +49,3 @@ async function createSqliteTables(query, options = {}) {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export { createSqliteTables, sqliteAdapter, sqliteQuery, sqliteTransaction };
|
|
52
|
-
//# sourceMappingURL=sqlite.js.map
|
|
53
|
-
//# sourceMappingURL=sqlite.js.map
|
package/dist/browser.cjs
CHANGED
package/dist/browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DELIVERIES_CHANNEL } from './chunk-
|
|
1
|
+
import { DELIVERIES_CHANNEL } from './chunk-G32BYQAT.js';
|
|
2
2
|
|
|
3
3
|
// src/core/backoff.ts
|
|
4
4
|
var SCHEDULE_MS = [3e4, 12e4, 48e4, 192e4];
|
|
@@ -247,5 +247,3 @@ function createRunner(deps) {
|
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
export { createRunner, redactErrorMessage };
|
|
250
|
-
//# sourceMappingURL=chunk-JKTMUMQK.js.map
|
|
251
|
-
//# sourceMappingURL=chunk-JKTMUMQK.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toSnakeCase } from './chunk-
|
|
1
|
+
import { toSnakeCase } from './chunk-JRZ2U4IT.js';
|
|
2
2
|
|
|
3
3
|
// src/core/errors.ts
|
|
4
4
|
var EasyPingError = class extends Error {
|
|
@@ -176,5 +176,3 @@ function createPluginStore(pluginId, schema, storage, prefix) {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
export { ConfigError, EasyPingError, ValidationError, consoleLogger, createPluginStore, isOperator };
|
|
179
|
-
//# sourceMappingURL=chunk-O2PBBL5X.js.map
|
|
180
|
-
//# sourceMappingURL=chunk-O2PBBL5X.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { quoteWith, Statement } from './chunk-
|
|
2
|
-
import { isOperator } from './chunk-
|
|
3
|
-
import { toSnakeCase } from './chunk-
|
|
4
|
-
import { decodeBase64Url, encodeBase64Url } from './chunk-
|
|
1
|
+
import { quoteWith, Statement } from './chunk-CRSGL5SG.js';
|
|
2
|
+
import { isOperator } from './chunk-7C4K5WKW.js';
|
|
3
|
+
import { toSnakeCase } from './chunk-JRZ2U4IT.js';
|
|
4
|
+
import { decodeBase64Url, encodeBase64Url } from './chunk-D3UX3WWD.js';
|
|
5
5
|
|
|
6
6
|
// src/adapters/sql/adapter.ts
|
|
7
7
|
var str = (value) => String(value);
|
|
@@ -389,5 +389,3 @@ var sqliteDialect = {
|
|
|
389
389
|
};
|
|
390
390
|
|
|
391
391
|
export { createSqlAdapter, mysqlDialect, sqliteDialect };
|
|
392
|
-
//# sourceMappingURL=chunk-CMWOIYVQ.js.map
|
|
393
|
-
//# sourceMappingURL=chunk-CMWOIYVQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { renderMysqlDdl, mysqlColumnDefinition } from './chunk-
|
|
2
|
-
import { renderSqliteDdl, sqliteColumnDefinition, SQLITE_TYPE } from './chunk-
|
|
3
|
-
import { toSnakeCase } from './chunk-
|
|
1
|
+
import { renderMysqlDdl, mysqlColumnDefinition } from './chunk-KOS3YZMZ.js';
|
|
2
|
+
import { renderSqliteDdl, sqliteColumnDefinition, SQLITE_TYPE } from './chunk-OKIQ5BEV.js';
|
|
3
|
+
import { toSnakeCase } from './chunk-JRZ2U4IT.js';
|
|
4
4
|
|
|
5
5
|
// src/schema/migrate-mysql.ts
|
|
6
6
|
var MYSQL_INTROSPECT_COLUMNS_SQL = `
|
|
@@ -409,5 +409,3 @@ ${body}
|
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
export { INTROSPECT_SQL, MYSQL_INTROSPECT_COLUMNS_SQL, MYSQL_INTROSPECT_INDEXES_SQL, SQLITE_INTROSPECT_SQL, planMysqlMigration, planPostgresMigration, planSqliteMigration, renderDrizzleSchema, renderPostgresDdl };
|
|
412
|
-
//# sourceMappingURL=chunk-A4HX5YTG.js.map
|
|
413
|
-
//# sourceMappingURL=chunk-A4HX5YTG.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inboxChannel } from './chunk-
|
|
2
|
-
import { encodeBase64Url, decodeBase64UrlBytes, decodeBase64Url } from './chunk-
|
|
1
|
+
import { inboxChannel } from './chunk-G32BYQAT.js';
|
|
2
|
+
import { encodeBase64Url, decodeBase64UrlBytes, decodeBase64Url } from './chunk-D3UX3WWD.js';
|
|
3
3
|
|
|
4
4
|
// src/core/tokens.ts
|
|
5
5
|
var encoder = new TextEncoder();
|
|
@@ -461,5 +461,3 @@ function createHandler(deps) {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
export { DEFAULT_TOKEN_TTL_SECONDS, MAX_BODY_BYTES, MAX_TOKEN_TTL_SECONDS, createHandler, createScopedSigner, expiresIn, readJsonBody, signToken, verifyToken };
|
|
464
|
-
//# sourceMappingURL=chunk-CFLVAF2R.js.map
|
|
465
|
-
//# sourceMappingURL=chunk-CFLVAF2R.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toSnakeCase } from './chunk-
|
|
1
|
+
import { toSnakeCase } from './chunk-JRZ2U4IT.js';
|
|
2
2
|
|
|
3
3
|
// src/schema/render-mysql.ts
|
|
4
4
|
var quote = (value) => `\`${value.split("`").join("``")}\``;
|
|
@@ -63,5 +63,3 @@ ${lines.join(",\n")}
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export { mysqlColumnDefinition, renderMysqlDdl };
|
|
66
|
-
//# sourceMappingURL=chunk-UM2L26PV.js.map
|
|
67
|
-
//# sourceMappingURL=chunk-UM2L26PV.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toSnakeCase } from './chunk-
|
|
1
|
+
import { toSnakeCase } from './chunk-JRZ2U4IT.js';
|
|
2
2
|
|
|
3
3
|
// src/schema/render-sqlite.ts
|
|
4
4
|
var SQLITE_TYPE = {
|
|
@@ -51,5 +51,3 @@ ${columns.join(",\n")}
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export { SQLITE_TYPE, renderSqliteDdl, sqliteColumnDefinition };
|
|
54
|
-
//# sourceMappingURL=chunk-HSB5T3LD.js.map
|
|
55
|
-
//# sourceMappingURL=chunk-HSB5T3LD.js.map
|
package/dist/client.cjs
CHANGED
package/dist/client.js
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { createRunner } from './chunk-
|
|
2
|
-
export { createRunner, redactErrorMessage } from './chunk-
|
|
3
|
-
export { escapeHtml } from './chunk-
|
|
4
|
-
export { defineClientPlugin, definePlugin } from './chunk-
|
|
5
|
-
import { createHandler, createScopedSigner } from './chunk-
|
|
6
|
-
export { DEFAULT_TOKEN_TTL_SECONDS, MAX_BODY_BYTES, MAX_TOKEN_TTL_SECONDS, expiresIn, readJsonBody, signToken, verifyToken } from './chunk-
|
|
7
|
-
import { createMemorySignals, inboxChannel, DELIVERIES_CHANNEL } from './chunk-
|
|
8
|
-
export { DELIVERIES_CHANNEL, createBridgedSignals, createMemorySignals, inboxChannel } from './chunk-
|
|
9
|
-
import { consoleLogger, ConfigError, createPluginStore, ValidationError } from './chunk-
|
|
10
|
-
export { ConfigError, EasyPingError, ValidationError, consoleLogger } from './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
export { decodeBase64Url, encodeBase64Url } from './chunk-
|
|
1
|
+
import { createRunner } from './chunk-2UOEAG6H.js';
|
|
2
|
+
export { createRunner, redactErrorMessage } from './chunk-2UOEAG6H.js';
|
|
3
|
+
export { escapeHtml } from './chunk-74KSKP6B.js';
|
|
4
|
+
export { defineClientPlugin, definePlugin } from './chunk-SZWEW3WN.js';
|
|
5
|
+
import { createHandler, createScopedSigner } from './chunk-JDR3U7X4.js';
|
|
6
|
+
export { DEFAULT_TOKEN_TTL_SECONDS, MAX_BODY_BYTES, MAX_TOKEN_TTL_SECONDS, expiresIn, readJsonBody, signToken, verifyToken } from './chunk-JDR3U7X4.js';
|
|
7
|
+
import { createMemorySignals, inboxChannel, DELIVERIES_CHANNEL } from './chunk-G32BYQAT.js';
|
|
8
|
+
export { DELIVERIES_CHANNEL, createBridgedSignals, createMemorySignals, inboxChannel } from './chunk-G32BYQAT.js';
|
|
9
|
+
import { consoleLogger, ConfigError, createPluginStore, ValidationError } from './chunk-7C4K5WKW.js';
|
|
10
|
+
export { ConfigError, EasyPingError, ValidationError, consoleLogger } from './chunk-7C4K5WKW.js';
|
|
11
|
+
import './chunk-JRZ2U4IT.js';
|
|
12
|
+
export { decodeBase64Url, encodeBase64Url } from './chunk-D3UX3WWD.js';
|
|
13
13
|
|
|
14
14
|
// src/core/config.ts
|
|
15
15
|
var INBOX_VERSION_HEADER = "x-easy-ping-inbox";
|
|
@@ -559,5 +559,3 @@ function easyPing(config) {
|
|
|
559
559
|
}
|
|
560
560
|
|
|
561
561
|
export { INBOX_VERSION_HEADER, MIN_SECRET_LENGTH, createRateLimiter, defineNotification, easyPing };
|
|
562
|
-
//# sourceMappingURL=index.js.map
|
|
563
|
-
//# sourceMappingURL=index.js.map
|
package/dist/node.cjs
CHANGED
package/dist/node.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MAX_BODY_BYTES } from './chunk-
|
|
2
|
-
import './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { MAX_BODY_BYTES } from './chunk-JDR3U7X4.js';
|
|
2
|
+
import './chunk-G32BYQAT.js';
|
|
3
|
+
import './chunk-D3UX3WWD.js';
|
|
4
4
|
|
|
5
5
|
// src/node/index.ts
|
|
6
6
|
var BodyTooLargeError = class extends Error {
|
|
@@ -96,5 +96,3 @@ function toNodeHandler(handler, options = {}) {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
export { toNodeHandler, toWebRequest };
|
|
99
|
-
//# sourceMappingURL=node.js.map
|
|
100
|
-
//# sourceMappingURL=node.js.map
|
package/dist/plugins/digests.cjs
CHANGED
package/dist/plugins/digests.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { coreSchema } from '../chunk-
|
|
1
|
+
import { coreSchema } from '../chunk-JRZ2U4IT.js';
|
|
2
2
|
|
|
3
3
|
// src/plugins/digests/schedule.ts
|
|
4
4
|
var WEEKDAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
@@ -187,5 +187,3 @@ function digests(options = {}) {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
export { digests, isDue, localMoment, periodKey };
|
|
190
|
-
//# sourceMappingURL=digests.js.map
|
|
191
|
-
//# sourceMappingURL=digests.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { readJsonBody } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { readJsonBody } from '../chunk-JDR3U7X4.js';
|
|
2
|
+
import '../chunk-G32BYQAT.js';
|
|
3
|
+
import '../chunk-D3UX3WWD.js';
|
|
4
4
|
|
|
5
5
|
// src/plugins/mobile-push/index.ts
|
|
6
6
|
var DEVICE = "notification_mobile_push_device";
|
|
@@ -258,5 +258,3 @@ function mobilePush(options) {
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
export { mobilePush, mobilePushSchema };
|
|
261
|
-
//# sourceMappingURL=mobile-push.js.map
|
|
262
|
-
//# sourceMappingURL=mobile-push.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineClientPlugin } from '../chunk-
|
|
1
|
+
import { defineClientPlugin } from '../chunk-SZWEW3WN.js';
|
|
2
2
|
|
|
3
3
|
// src/plugins/preferences/client.ts
|
|
4
4
|
var preferencesClient = () => defineClientPlugin({
|
|
@@ -14,5 +14,3 @@ var preferencesClient = () => defineClientPlugin({
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
export { preferencesClient };
|
|
17
|
-
//# sourceMappingURL=preferences-client.js.map
|
|
18
|
-
//# sourceMappingURL=preferences-client.js.map
|
|
@@ -235,5 +235,3 @@ function preferences(options = {}) {
|
|
|
235
235
|
exports.UNSUBSCRIBE_PURPOSE = UNSUBSCRIBE_PURPOSE;
|
|
236
236
|
exports.buildUnsubscribeToken = buildUnsubscribeToken;
|
|
237
237
|
exports.preferences = preferences;
|
|
238
|
-
//# sourceMappingURL=preferences.cjs.map
|
|
239
|
-
//# sourceMappingURL=preferences.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DEFAULT_TOKEN_TTL_SECONDS, signToken, expiresIn, readJsonBody } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { DEFAULT_TOKEN_TTL_SECONDS, signToken, expiresIn, readJsonBody } from '../chunk-JDR3U7X4.js';
|
|
2
|
+
import '../chunk-G32BYQAT.js';
|
|
3
|
+
import '../chunk-D3UX3WWD.js';
|
|
4
4
|
|
|
5
5
|
// src/plugins/preferences/index.ts
|
|
6
6
|
var UNSUBSCRIBE_PURPOSE = "unsubscribe";
|
|
@@ -151,5 +151,3 @@ function preferences(options = {}) {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
export { UNSUBSCRIBE_PURPOSE, buildUnsubscribeToken, preferences };
|
|
154
|
-
//# sourceMappingURL=preferences.js.map
|
|
155
|
-
//# sourceMappingURL=preferences.js.map
|
package/dist/plugins/push.cjs
CHANGED
package/dist/plugins/push.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { redactErrorMessage } from '../chunk-
|
|
2
|
-
import { readJsonBody } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import { decodeBase64UrlBytes } from '../chunk-
|
|
1
|
+
import { redactErrorMessage } from '../chunk-2UOEAG6H.js';
|
|
2
|
+
import { readJsonBody } from '../chunk-JDR3U7X4.js';
|
|
3
|
+
import '../chunk-G32BYQAT.js';
|
|
4
|
+
import { decodeBase64UrlBytes } from '../chunk-D3UX3WWD.js';
|
|
5
5
|
|
|
6
6
|
// src/plugins/push/index.ts
|
|
7
7
|
var DEVICE = "notification_push_device";
|
|
@@ -242,5 +242,3 @@ function push(options) {
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
export { push, pushSchema, validateEndpoint, validateSubscriptionKeys };
|
|
245
|
-
//# sourceMappingURL=push.js.map
|
|
246
|
-
//# sourceMappingURL=push.js.map
|
package/dist/plugins/telegram.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { telegramStartLink } from '../chunk-
|
|
2
|
-
import { escapeHtml } from '../chunk-
|
|
3
|
-
import { readJsonBody } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import { encodeBase64Url } from '../chunk-
|
|
1
|
+
import { telegramStartLink } from '../chunk-VA4W4UFI.js';
|
|
2
|
+
import { escapeHtml } from '../chunk-74KSKP6B.js';
|
|
3
|
+
import { readJsonBody } from '../chunk-JDR3U7X4.js';
|
|
4
|
+
import '../chunk-G32BYQAT.js';
|
|
5
|
+
import { encodeBase64Url } from '../chunk-D3UX3WWD.js';
|
|
6
6
|
|
|
7
7
|
// src/plugins/telegram/index.ts
|
|
8
8
|
var CHAT = "notification_telegram_chat";
|
|
@@ -330,5 +330,3 @@ function telegram(options) {
|
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
export { isButtonUrlAllowed, telegram, telegramSchema };
|
|
333
|
-
//# sourceMappingURL=telegram.js.map
|
|
334
|
-
//# sourceMappingURL=telegram.js.map
|
package/dist/providers/resend.js
CHANGED