Merge branch 'master' into beta

This commit is contained in:
Ammar Ahmed
2026-01-16 14:26:17 +05:00
4 changed files with 9 additions and 7 deletions

View File

@@ -162,6 +162,7 @@ export const useEditorEvents = (
"importCsvToTable",
"exportTableAsCsv"
]);
const deviceMode = useSettingStore((state) => state.deviceMode);
const fullscreen = useSettingStore((state) => state.fullscreen);
const corsProxy = useSettingStore((state) => state.settings.corsProxy);
@@ -258,7 +259,8 @@ export const useEditorEvents = (
fontScale,
markdownShortcuts,
loggedIn,
defaultLineHeight
defaultLineHeight,
features
]);
const onBackPress = useCallback(async () => {

View File

@@ -1,12 +1,12 @@
{
"name": "@notesnook/themes-server",
"version": "1.0.3",
"version": "1.0.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@notesnook/themes-server",
"version": "1.0.3",
"version": "1.0.4",
"license": "ISC",
"dependencies": {
"@notesnook/theme": "file:../../packages/theme",

View File

@@ -1,6 +1,6 @@
{
"name": "@notesnook/themes-server",
"version": "1.0.3",
"version": "1.0.4",
"description": "A simple rest api for notesnook themes",
"private": "true",
"main": "src/index.ts",

View File

@@ -28,7 +28,7 @@ type WorkersKVRESTConfig = {
export class KVCounter {
private readonly client: Cloudflare;
private readonly mutex: Mutex;
private installs: Record<string, string[]> = {};
private installs: Record<string, string[] | null> = {};
constructor(private readonly config: WorkersKVRESTConfig) {
this.mutex = new Mutex();
this.client = new Cloudflare({
@@ -50,7 +50,7 @@ export class KVCounter {
const result: Record<string, number> = {};
const installs = await readMulti(this.client, this.config, keys);
for (const [key, value] of Object.entries(installs)) {
result[key] = value.length;
result[key] = value?.length ?? 0;
}
this.installs = installs;
return result;
@@ -61,7 +61,7 @@ async function readMulti(
client: Cloudflare,
config: WorkersKVRESTConfig,
keys: string[]
): Promise<Record<string, string[]>> {
): Promise<Record<string, string[] | null>> {
try {
const response = await client.kv.namespaces.bulkGet(config.namespaceId, {
account_id: config.cfAccountId,