buzzcasting-storage 3.21.8 → 3.22.2
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/LICENSE +0 -0
- package/README.md +2 -1
- package/dist/buzzcasting-storage.d.ts +1 -0
- package/dist/buzzcasting-storage.esm.js +33 -2
- package/package.json +11 -6
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ Currently supported are: Local Storage, Session Storage, IDB Keyval, Dexie, Wind
|
|
|
14
14
|
- [documentation/storage-backends.md](documentation/storage-backends.md) — the five interchangeable storage backends, the Dexie schema, and the staleness/expiry model (there isn't much of one).
|
|
15
15
|
- [documentation/known-issues.md](documentation/known-issues.md) — confirmed bugs and inconsistencies in the current codebase (e.g. `ApiClient.loadDashboards` actually fetching the widgets endpoint, not a dashboards one) worth knowing about before you hit them yourself.
|
|
16
16
|
- [documentation/moderation.md](documentation/moderation.md) — `hideMessage`/`hideLabels`: a soft `visible` flag in Dexie plus a remote call for messages, a remote-only call with no local implementation at all for cloud labels, and the separate, deployment-time `MODERATION` enum that gates which messages are ever fetched in the first place.
|
|
17
|
+
- [documentation/release-process.md](documentation/release-process.md) — `npm run release` bumps/tags/pushes locally, but the actual `npm publish` now happens in CI on that tag push (via npm Trusted Publishing/OIDC, no stored token) - what to do if a release run fails.
|
|
17
18
|
|
|
18
19
|
## Features
|
|
19
20
|
|
|
@@ -84,7 +85,7 @@ The project contains the following scripts:
|
|
|
84
85
|
|
|
85
86
|
- `dev` - Start the development server
|
|
86
87
|
- `build` - Build for production
|
|
87
|
-
- `release` - Generate changelog and npm publish
|
|
88
|
+
- `release` - Generate changelog, bump the version, tag, and push - the pushed tag triggers CI to actually run `npm publish` (see [documentation/release-process.md](documentation/release-process.md))
|
|
88
89
|
- `lint` - Checks your code for any linting errors
|
|
89
90
|
- `test` - Run all tests
|
|
90
91
|
- `test:watch` - Run all tests with watch mode
|
|
@@ -36,6 +36,7 @@ export declare class BuzzcastingStorageManager {
|
|
|
36
36
|
setSlide: (query: IQuery) => Promise<IResponse | undefined>;
|
|
37
37
|
loadSlide: (query: IQuery) => Promise<number>;
|
|
38
38
|
storeSlide: (query: IQuery) => Promise<IResponse | number>;
|
|
39
|
+
createSlide: (query: IQuery) => Promise<IResponse | number>;
|
|
39
40
|
deleteSlide: (query: IQuery) => Promise<IResponse | number | undefined>;
|
|
40
41
|
deleteSlides: () => Promise<IResponse | number | undefined>;
|
|
41
42
|
getPresentation: (query: IQuery) => Promise<IResponse | undefined>;
|
|
@@ -159,7 +159,7 @@ function D(e, t) {
|
|
|
159
159
|
}({});
|
|
160
160
|
//#endregion
|
|
161
161
|
//#region package.json
|
|
162
|
-
var te = "3.
|
|
162
|
+
var te = "3.22.2", ne = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
163
163
|
(function(n, r) {
|
|
164
164
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.readNDJSONStream = r());
|
|
165
165
|
})(e, (function() {
|
|
@@ -336,6 +336,36 @@ var te = "3.21.7", ne = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
336
336
|
data: null
|
|
337
337
|
}));
|
|
338
338
|
}
|
|
339
|
+
async createSlide(e) {
|
|
340
|
+
let { version: t } = this.options, n = this.formHeaders();
|
|
341
|
+
delete e.update, delete e.type, delete e.id;
|
|
342
|
+
let r = JSON.stringify(e);
|
|
343
|
+
return w(3, [
|
|
344
|
+
"%cpost%c %capi%c %ccreate slide",
|
|
345
|
+
u.OK,
|
|
346
|
+
u.NONE,
|
|
347
|
+
u.API,
|
|
348
|
+
u.NONE,
|
|
349
|
+
u.SLIDE,
|
|
350
|
+
e
|
|
351
|
+
]), await fetch([
|
|
352
|
+
this.url,
|
|
353
|
+
"api",
|
|
354
|
+
t,
|
|
355
|
+
"slides"
|
|
356
|
+
].join("/"), {
|
|
357
|
+
...n,
|
|
358
|
+
body: r,
|
|
359
|
+
method: "post"
|
|
360
|
+
}).then((e) => {
|
|
361
|
+
if (!e.ok) throw Error(e.statusText);
|
|
362
|
+
return e;
|
|
363
|
+
}).then((e) => e.json()).catch((e) => ({
|
|
364
|
+
succes: !1,
|
|
365
|
+
message: e,
|
|
366
|
+
data: []
|
|
367
|
+
}));
|
|
368
|
+
}
|
|
339
369
|
async storeSlide(e) {
|
|
340
370
|
let { version: t } = this.options, n = this.formHeaders();
|
|
341
371
|
delete e.update, delete e.type;
|
|
@@ -5106,7 +5136,7 @@ var { liveQuery: A, mergeRanges: ae, rangesOverlap: j, RangeSet: oe, cmp: se, En
|
|
|
5106
5136
|
}));
|
|
5107
5137
|
};
|
|
5108
5138
|
//#endregion
|
|
5109
|
-
//#region node_modules/idb-keyval/dist/index.js
|
|
5139
|
+
//#region node_modules/.pnpm/idb-keyval@6.2.2/node_modules/idb-keyval/dist/index.js
|
|
5110
5140
|
function N(e) {
|
|
5111
5141
|
return new Promise((t, n) => {
|
|
5112
5142
|
e.oncomplete = e.onsuccess = () => t(e.result), e.onabort = e.onerror = () => n(e.error);
|
|
@@ -6513,6 +6543,7 @@ var ge = class {
|
|
|
6513
6543
|
setSlide = async (e) => await this.sm?.setSlide(e);
|
|
6514
6544
|
loadSlide = async (e) => await this.api.loadSlide(e);
|
|
6515
6545
|
storeSlide = async (e) => await this.api.storeSlide(e);
|
|
6546
|
+
createSlide = async (e) => await this.api.createSlide(e);
|
|
6516
6547
|
deleteSlide = async (e) => await this.sm?.deleteSlide(e);
|
|
6517
6548
|
deleteSlides = async () => await this.sm?.deleteSlides();
|
|
6518
6549
|
getPresentation = async (e) => await this.sm?.getPresentation(e);
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buzzcasting-storage",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.22.2",
|
|
5
|
+
"packageManager": "pnpm@11.5.2",
|
|
5
6
|
"private": false,
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/TouchFlows/buzzcasting-storage.git"
|
|
10
|
+
},
|
|
6
11
|
"author": {
|
|
7
12
|
"name": "Mark Tamis, TouchFlows SAS",
|
|
8
13
|
"email": "mark.tamis@touchflows.com"
|
|
@@ -25,13 +30,14 @@
|
|
|
25
30
|
"docs": "typedoc",
|
|
26
31
|
"build": "tsc && vite build",
|
|
27
32
|
"changelog": "changelogen --release",
|
|
28
|
-
"release": "
|
|
33
|
+
"release": "pnpm test && pnpm run build && changelogen --release && git push --follow-tags",
|
|
29
34
|
"lint": "eslint . --fix",
|
|
30
35
|
"test": "vitest --run",
|
|
31
36
|
"test:watch": "vitest",
|
|
32
37
|
"test:coverage": "vitest --coverage"
|
|
33
38
|
},
|
|
34
39
|
"dependencies": {
|
|
40
|
+
"buzzcasting-utils": "^1.13.9",
|
|
35
41
|
"dexie": "^4.3.0",
|
|
36
42
|
"idb-keyval": "^6.2.2",
|
|
37
43
|
"ndjson-readablestream": "^1.4.0"
|
|
@@ -43,8 +49,7 @@
|
|
|
43
49
|
"@types/node": "^24.13.3",
|
|
44
50
|
"@typescript-eslint/eslint-plugin": "^8.66.0",
|
|
45
51
|
"@typescript-eslint/parser": "^8.66.0",
|
|
46
|
-
"@vitest/coverage-v8": "^4.1.
|
|
47
|
-
"buzzcasting-utils": "^1.13.9",
|
|
52
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
48
53
|
"camelcase": "^9.0.0",
|
|
49
54
|
"changelogen": "^0.6.2",
|
|
50
55
|
"eslint": "^9.39.5",
|
|
@@ -54,9 +59,9 @@
|
|
|
54
59
|
"typescript": "^5.9.3",
|
|
55
60
|
"vite": "^8.2.0",
|
|
56
61
|
"vite-plugin-dts": "^4.5.4",
|
|
57
|
-
"vitest": "^4.1.
|
|
62
|
+
"vitest": "^4.1.11"
|
|
58
63
|
},
|
|
59
64
|
"lint-staged": {
|
|
60
65
|
"*.ts": "npm run lint"
|
|
61
66
|
}
|
|
62
|
-
}
|
|
67
|
+
}
|