@candlerip/shared 0.0.83 → 0.0.84

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.
Files changed (42) hide show
  1. package/cache/common/cache-key/cache-key/configs.js +4 -0
  2. package/cache/common/cache-key/cache-key/domains.d.ts +4 -0
  3. package/cache/common/cache-key/cache-key/index.d.ts +3 -0
  4. package/cache/common/cache-key/cache-key/index.js +3 -0
  5. package/cache/common/cache-key/{type-guards.d.ts → cache-key/type-guards.d.ts} +1 -1
  6. package/cache/common/cache-key/{type-guards.js → cache-key/type-guards.js} +1 -1
  7. package/cache/common/cache-key/{configs/country-dictionary-cache-keys.d.ts → country-dictionary-cache-key/configs.d.ts} +1 -1
  8. package/cache/common/cache-key/country-dictionary-cache-key/index.d.ts +2 -0
  9. package/cache/common/cache-key/country-dictionary-cache-key/index.js +2 -0
  10. package/cache/common/cache-key/index.d.ts +4 -3
  11. package/cache/common/cache-key/index.js +4 -3
  12. package/cache/common/cache-key/page-dictionary-cache-key/index.d.ts +2 -0
  13. package/cache/common/cache-key/page-dictionary-cache-key/index.js +2 -0
  14. package/cache/common/cache-key/page-server-data-cache-key/domains.d.ts +3 -0
  15. package/cache/common/cache-key/page-server-data-cache-key/index.d.ts +3 -0
  16. package/cache/common/cache-key/page-server-data-cache-key/index.js +3 -0
  17. package/cache/common/cache-key/page-server-data-cache-key/page-server-data-cache-key-page/configs.d.ts +1 -0
  18. package/cache/common/cache-key/page-server-data-cache-key/page-server-data-cache-key-page/configs.js +3 -0
  19. package/cache/common/cache-key/page-server-data-cache-key/page-server-data-cache-key-page/domains.d.ts +2 -0
  20. package/cache/common/cache-key/page-server-data-cache-key/page-server-data-cache-key-page/domains.js +1 -0
  21. package/cache/common/cache-key/page-server-data-cache-key/page-server-data-cache-key-page/index.d.ts +2 -0
  22. package/cache/common/cache-key/page-server-data-cache-key/page-server-data-cache-key-page/index.js +2 -0
  23. package/package.json +1 -1
  24. package/cache/common/cache-key/configs/cache-keys.js +0 -4
  25. package/cache/common/cache-key/configs/index.d.ts +0 -4
  26. package/cache/common/cache-key/configs/index.js +0 -4
  27. package/cache/common/cache-key/domains/cache-key.d.ts +0 -4
  28. package/cache/common/cache-key/domains/index.d.ts +0 -4
  29. package/cache/common/cache-key/domains/index.js +0 -4
  30. package/cache/common/cache-key/domains/page-server-data-cache-key.d.ts +0 -2
  31. /package/cache/common/cache-key/{configs/cache-keys.d.ts → cache-key/configs.d.ts} +0 -0
  32. /package/cache/common/cache-key/{domains/cache-key.js → cache-key/domains.js} +0 -0
  33. /package/cache/common/cache-key/{configs/country-dictionary-cache-keys.js → country-dictionary-cache-key/configs.js} +0 -0
  34. /package/cache/common/cache-key/{domains/country-dictionary-cache-key.d.ts → country-dictionary-cache-key/domains.d.ts} +0 -0
  35. /package/cache/common/cache-key/{domains/country-dictionary-cache-key.js → country-dictionary-cache-key/domains.js} +0 -0
  36. /package/cache/common/cache-key/{configs/page-dictionary-cache-keys.d.ts → page-dictionary-cache-key/configs.d.ts} +0 -0
  37. /package/cache/common/cache-key/{configs/page-dictionary-cache-keys.js → page-dictionary-cache-key/configs.js} +0 -0
  38. /package/cache/common/cache-key/{domains/page-dictionary-cache-key.d.ts → page-dictionary-cache-key/domains.d.ts} +0 -0
  39. /package/cache/common/cache-key/{domains/page-dictionary-cache-key.js → page-dictionary-cache-key/domains.js} +0 -0
  40. /package/cache/common/cache-key/{configs/page-server-data-cache-keys.d.ts → page-server-data-cache-key/configs.d.ts} +0 -0
  41. /package/cache/common/cache-key/{configs/page-server-data-cache-keys.js → page-server-data-cache-key/configs.js} +0 -0
  42. /package/cache/common/cache-key/{domains/page-server-data-cache-key.js → page-server-data-cache-key/domains.js} +0 -0
@@ -0,0 +1,4 @@
1
+ import { COUNTRY_DICTIONARY_CACHE_KEYS } from '../country-dictionary-cache-key/configs.js';
2
+ import { PAGE_DICTIONARY_CACHE_KEYS } from '../page-dictionary-cache-key/configs.js';
3
+ import { PAGE_SERVER_DATA_CACHE_KEYS } from '../page-server-data-cache-key/configs.js';
4
+ export const CACHE_KEYS = [...COUNTRY_DICTIONARY_CACHE_KEYS, ...PAGE_DICTIONARY_CACHE_KEYS, ...PAGE_SERVER_DATA_CACHE_KEYS];
@@ -0,0 +1,4 @@
1
+ import { CountryDictionaryCacheKey } from '../country-dictionary-cache-key/domains.js';
2
+ import { PageDictionaryCacheKey } from '../page-dictionary-cache-key/domains.js';
3
+ import { PageServerDataCacheKey } from '../page-server-data-cache-key/domains.js';
4
+ export type CacheKey = CountryDictionaryCacheKey | PageDictionaryCacheKey | PageServerDataCacheKey;
@@ -0,0 +1,3 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
@@ -0,0 +1,3 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
3
+ export * from './type-guards.js';
@@ -1,2 +1,2 @@
1
- import { CacheKey } from './domains/index.js';
1
+ import { CacheKey } from './domains.js';
2
2
  export declare const isCacheKey: (data?: unknown) => data is CacheKey;
@@ -1,2 +1,2 @@
1
- import { CACHE_KEYS } from './configs/index.js';
1
+ import { CACHE_KEYS } from './configs.js';
2
2
  export const isCacheKey = (data) => CACHE_KEYS.some((it) => data === it);
@@ -1,2 +1,2 @@
1
- import { CountryDictionaryCacheKey } from '../domains/index.js';
1
+ import { CountryDictionaryCacheKey } from './domains.js';
2
2
  export declare const COUNTRY_DICTIONARY_CACHE_KEYS: CountryDictionaryCacheKey[];
@@ -0,0 +1,2 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
@@ -0,0 +1,2 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
@@ -1,3 +1,4 @@
1
- export * from './configs/index.js';
2
- export * from './domains/index.js';
3
- export * from './type-guards.js';
1
+ export * from './cache-key/index.js';
2
+ export * from './country-dictionary-cache-key/index.js';
3
+ export * from './page-dictionary-cache-key/index.js';
4
+ export * from './page-server-data-cache-key/index.js';
@@ -1,3 +1,4 @@
1
- export * from './configs/index.js';
2
- export * from './domains/index.js';
3
- export * from './type-guards.js';
1
+ export * from './cache-key/index.js';
2
+ export * from './country-dictionary-cache-key/index.js';
3
+ export * from './page-dictionary-cache-key/index.js';
4
+ export * from './page-server-data-cache-key/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
@@ -0,0 +1,2 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
@@ -0,0 +1,3 @@
1
+ import { Language } from '../../../../common/index.js';
2
+ import { PageServerDataCacheKeyPage } from './page-server-data-cache-key-page/index.js';
3
+ export type PageServerDataCacheKey = `${PageServerDataCacheKeyPage}-server-data-${Language}`;
@@ -0,0 +1,3 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
3
+ export * from './page-server-data-cache-key-page/index.js';
@@ -0,0 +1,3 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
3
+ export * from './page-server-data-cache-key-page/index.js';
@@ -0,0 +1 @@
1
+ export declare const PAGE_SERVER_DATA_CACHE_KEY_PAGES: readonly ["candles-page", "home-page", "persons-page", "persons-map-page"];
@@ -0,0 +1,3 @@
1
+ export const PAGE_SERVER_DATA_CACHE_KEY_PAGES = ['candles-page', 'home-page', 'persons-page', 'persons-map-page'];
2
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
3
+ const CHECK = PAGE_SERVER_DATA_CACHE_KEY_PAGES;
@@ -0,0 +1,2 @@
1
+ import { PAGE_SERVER_DATA_CACHE_KEY_PAGES } from './configs.js';
2
+ export type PageServerDataCacheKeyPage = (typeof PAGE_SERVER_DATA_CACHE_KEY_PAGES)[number];
@@ -0,0 +1,2 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
@@ -0,0 +1,2 @@
1
+ export * from './configs.js';
2
+ export * from './domains.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "=22.19.0"
@@ -1,4 +0,0 @@
1
- import { COUNTRY_DICTIONARY_CACHE_KEYS } from './country-dictionary-cache-keys.js';
2
- import { PAGE_DICTIONARY_CACHE_KEYS } from './page-dictionary-cache-keys.js';
3
- import { PAGE_SERVER_DATA_CACHE_KEYS } from './page-server-data-cache-keys.js';
4
- export const CACHE_KEYS = [...COUNTRY_DICTIONARY_CACHE_KEYS, ...PAGE_DICTIONARY_CACHE_KEYS, ...PAGE_SERVER_DATA_CACHE_KEYS];
@@ -1,4 +0,0 @@
1
- export * from './cache-keys.js';
2
- export * from './country-dictionary-cache-keys.js';
3
- export * from './page-dictionary-cache-keys.js';
4
- export * from './page-server-data-cache-keys.js';
@@ -1,4 +0,0 @@
1
- export * from './cache-keys.js';
2
- export * from './country-dictionary-cache-keys.js';
3
- export * from './page-dictionary-cache-keys.js';
4
- export * from './page-server-data-cache-keys.js';
@@ -1,4 +0,0 @@
1
- import { CountryDictionaryCacheKey } from './country-dictionary-cache-key.js';
2
- import { PageDictionaryCacheKey } from './page-dictionary-cache-key.js';
3
- import { PageServerDataCacheKey } from './page-server-data-cache-key.js';
4
- export type CacheKey = CountryDictionaryCacheKey | PageDictionaryCacheKey | PageServerDataCacheKey;
@@ -1,4 +0,0 @@
1
- export * from './cache-key.js';
2
- export * from './country-dictionary-cache-key.js';
3
- export * from './page-dictionary-cache-key.js';
4
- export * from './page-server-data-cache-key.js';
@@ -1,4 +0,0 @@
1
- export * from './cache-key.js';
2
- export * from './country-dictionary-cache-key.js';
3
- export * from './page-dictionary-cache-key.js';
4
- export * from './page-server-data-cache-key.js';
@@ -1,2 +0,0 @@
1
- import { Language } from '../../../../common/index.js';
2
- export type PageServerDataCacheKey = `${'candles-page' | 'home-page' | 'persons-page' | 'persons-map-page'}-server-data-${Language}`;