@spooky-sync/client-solid2 0.0.1-canary.280 → 0.0.1-canary.281
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/index.cjs +15 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +31 -0
package/dist/index.cjs
CHANGED
|
@@ -1311,6 +1311,15 @@ var SyncedDb = class {
|
|
|
1311
1311
|
if (!this.sp00ky) throw new Error("SyncedDb not initialized");
|
|
1312
1312
|
return this.sp00ky.subscribeToStorageHealth(cb);
|
|
1313
1313
|
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Web Push for this browser: `support()`, `subscribe()` (from a click),
|
|
1316
|
+
* `devices()`, `notify()` / `test()` (push to yourself), `bridge()` for the
|
|
1317
|
+
* service worker. See the push-notifications docs page.
|
|
1318
|
+
*/
|
|
1319
|
+
get webPush() {
|
|
1320
|
+
if (!this.sp00ky) throw new Error("SyncedDb not initialized");
|
|
1321
|
+
return this.sp00ky.webPush;
|
|
1322
|
+
}
|
|
1314
1323
|
bucket(name) {
|
|
1315
1324
|
if (!this.sp00ky) throw new Error("SyncedDb not initialized");
|
|
1316
1325
|
return this.sp00ky.bucket(name);
|
|
@@ -1327,6 +1336,12 @@ exports.RecordId = surrealdb.RecordId;
|
|
|
1327
1336
|
exports.Sp00kyProvider = Sp00kyProvider;
|
|
1328
1337
|
exports.SyncedDb = SyncedDb;
|
|
1329
1338
|
exports.Uuid = surrealdb.Uuid;
|
|
1339
|
+
Object.defineProperty(exports, 'WebPushError', {
|
|
1340
|
+
enumerable: true,
|
|
1341
|
+
get: function () {
|
|
1342
|
+
return _spooky_sync_core.WebPushError;
|
|
1343
|
+
}
|
|
1344
|
+
});
|
|
1330
1345
|
exports.conflate = conflate;
|
|
1331
1346
|
exports.createPreload = createPreload;
|
|
1332
1347
|
exports.createQuery = createQuery;
|