@functionalcms/svelte-components 5.5.1 → 5.5.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/dist/index-server.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { machineAuthenticationHandle } from './server-side/auth/machine_authenti
|
|
|
5
5
|
export { userAuthenticationProvider } from './server-side/auth/userAuthenticationProvider.js';
|
|
6
6
|
export { hookSequence } from './server-side/functionalSequence.js';
|
|
7
7
|
export { sessionStorageHandler } from './server-side/handlers/sessionStorageHandler.js';
|
|
8
|
-
export { getCommunicationService, getDataService, getTemplateService, getWebsiteService,
|
|
8
|
+
export { getCommunicationService, getDataService, getTemplateService, getWebsiteService, getFileService, getUsersService } from './server-side/getServices.js';
|
|
9
9
|
export type { RedirectResponse } from './server-side/auth/RedirectResponse.js';
|
|
10
10
|
export { isHuman } from './components/form/AntiBot.js';
|
|
11
11
|
export { paraglideHandler } from './server-side/handlers/paraglideHandler.js';
|
package/dist/index-server.js
CHANGED
|
@@ -5,7 +5,7 @@ export { machineAuthenticationHandle } from './server-side/auth/machine_authenti
|
|
|
5
5
|
export { userAuthenticationProvider } from './server-side/auth/userAuthenticationProvider.js';
|
|
6
6
|
export { hookSequence } from './server-side/functionalSequence.js';
|
|
7
7
|
export { sessionStorageHandler } from './server-side/handlers/sessionStorageHandler.js';
|
|
8
|
-
export { getCommunicationService, getDataService, getTemplateService, getWebsiteService,
|
|
8
|
+
export { getCommunicationService, getDataService, getTemplateService, getWebsiteService, getFileService, getUsersService } from './server-side/getServices.js';
|
|
9
9
|
export { isHuman } from './components/form/AntiBot.js';
|
|
10
10
|
export { paraglideHandler } from './server-side/handlers/paraglideHandler.js';
|
|
11
11
|
export { redirectPipelineHandler } from './server-side/handlers/redirectPipelineHandler.js';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { CommunicationService, DataService, TemplateService, WebsitesService,
|
|
1
|
+
import { CommunicationService, DataService, TemplateService, WebsitesService, FilesService, UsersService } from "@functionalcms/services";
|
|
2
2
|
import type { Locals } from "./types.js";
|
|
3
3
|
export declare const getDataService: (locals: Locals, endpoint: string) => DataService;
|
|
4
4
|
export declare const getCommunicationService: (locals: Locals, endpoint: string) => CommunicationService;
|
|
5
5
|
export declare const getWebsiteService: (locals: Locals, endpoint: string) => WebsitesService;
|
|
6
6
|
export declare const getTemplateService: (locals: Locals, endpoint: string) => TemplateService;
|
|
7
|
-
export declare const getAuthService: (locals: Locals, endpoint: string) => AuthService;
|
|
8
7
|
export declare const getFileService: (locals: Locals, endpoint: string) => FilesService;
|
|
9
8
|
export declare const getUsersService: (locals: Locals, endpoint: string) => UsersService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommunicationService, DataService, TemplateService, WebsitesService,
|
|
1
|
+
import { CommunicationService, DataService, TemplateService, WebsitesService, FilesService, UsersService, } from "@functionalcms/services";
|
|
2
2
|
const getAccessToken = (locals) => locals.token;
|
|
3
3
|
export const getDataService = (locals, endpoint) => {
|
|
4
4
|
const accessToken = getAccessToken(locals);
|
|
@@ -20,11 +20,6 @@ export const getTemplateService = (locals, endpoint) => {
|
|
|
20
20
|
const service = new TemplateService(accessToken, endpoint);
|
|
21
21
|
return service;
|
|
22
22
|
};
|
|
23
|
-
export const getAuthService = (locals, endpoint) => {
|
|
24
|
-
const accessToken = getAccessToken(locals);
|
|
25
|
-
const service = new AuthService(accessToken, endpoint);
|
|
26
|
-
return service;
|
|
27
|
-
};
|
|
28
23
|
export const getFileService = (locals, endpoint) => {
|
|
29
24
|
const accessToken = getAccessToken(locals);
|
|
30
25
|
const service = new FilesService(accessToken, endpoint);
|