@axium/calendar 0.4.4 → 0.4.5

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,4 +1,4 @@
1
- import type { AttendeeInit, Calendar, Event, EventData, EventFilter } from './common.js';
1
+ import type { AttendeeInit, Calendar, Event, EventData, EventFilter } from '../common.js';
2
2
  export declare function getEvents(calendars: Calendar[], filter: EventFilter): Promise<Event[]>;
3
3
  export interface EventInitFormData extends Record<Exclude<keyof EventData, 'attendees' | 'recurrenceExcludes'>, string> {
4
4
  }
@@ -1,5 +1,5 @@
1
- import en from '../locales/en.json';
2
- import './common.js';
1
+ import en from '../../locales/en.json';
2
+ import '../common.js';
3
3
  type en = typeof en;
4
4
  declare module '@axium/client/locales' {
5
5
  interface Locale extends en {
@@ -0,0 +1,4 @@
1
+ import { extendLocale } from '@axium/client';
2
+ import en from '../../locales/en.json' with { type: 'json' };
3
+ import '../common.js';
4
+ extendLocale('en', en);
@@ -1,3 +1,3 @@
1
- import './common.js';
2
- import './server.js';
1
+ import '../common.js';
2
+ import './index.js';
3
3
  export declare function statusText(): Promise<string>;
@@ -1,6 +1,6 @@
1
1
  import { count } from '@axium/server/database';
2
- import './common.js';
3
- import './server.js';
2
+ import '../common.js';
3
+ import './index.js';
4
4
  export async function statusText() {
5
5
  const { calendars, events } = await count('calendars', 'events');
6
6
  return `${calendars} calendars containing ${events} events`;
@@ -1,4 +1,4 @@
1
- import type schema from '../db.json';
1
+ import type schema from '../../db.json';
2
2
  import type { FromFile as FromSchemaFile } from '@axium/server/db/schema';
3
3
  declare module '@axium/server/database' {
4
4
  interface Schema extends FromSchemaFile<typeof schema> {
@@ -6,7 +6,7 @@ import { addRoute } from '@axium/server/routes';
6
6
  import { sql } from 'kysely';
7
7
  import { jsonArrayFrom, jsonObjectFrom } from 'kysely/helpers/postgres';
8
8
  import * as z from 'zod';
9
- import { Attendee, CalendarInit, EventFilter, EventInit } from './common.js';
9
+ import { Attendee, CalendarInit, EventFilter, EventInit } from '../common.js';
10
10
  function withEncoded(value) {
11
11
  return (value.color === undefined || value.color === null
12
12
  ? value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/calendar",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "author": "James Prevett <axium@jamespre.dev>",
5
5
  "description": "Calendar for Axium",
6
6
  "funding": {
@@ -21,6 +21,8 @@
21
21
  "types": "dist/index.d.ts",
22
22
  "exports": {
23
23
  ".": "./dist/index.js",
24
+ "./server": "./dist/server/index.js",
25
+ "./client": "./dist/client/index.js",
24
26
  "./*": "./dist/*.js",
25
27
  "./components": "./lib/index.js",
26
28
  "./components/*": "./lib/*.svelte"
@@ -50,9 +52,9 @@
50
52
  "axium": {
51
53
  "server": {
52
54
  "routes": "routes",
53
- "hooks": "./dist/hooks.js",
55
+ "hooks": "./dist/server/hooks.js",
54
56
  "db": "./db.json",
55
- "web_client_hooks": "./dist/web_hook.js"
57
+ "web_client_hooks": "./dist/client/web_hook.js"
56
58
  },
57
59
  "apps": [
58
60
  {
package/dist/web_hook.js DELETED
@@ -1,4 +0,0 @@
1
- import { extendLocale } from '@axium/client';
2
- import en from '../locales/en.json' with { type: 'json' };
3
- import './common.js';
4
- extendLocale('en', en);
File without changes