@alfalab/bridge-to-native 0.0.13-beta-024d5c2 → 0.0.13-beta-769ebcc
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WebviewParams, RequestHeaderType } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* Вытаскивает из query и headers все детали для вебвью.
|
|
4
4
|
*
|
|
5
5
|
* @returns Примечание по `appVersion`: В вебвью окружении версия всегда имеет формат `x.x.x`.
|
|
6
6
|
*/
|
|
7
|
-
export declare const extractNativeParams: (request: RequestHeaderType) =>
|
|
7
|
+
export declare const extractNativeParams: (request: RequestHeaderType) => WebviewParams | null;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { WebviewParams } from "./types";
|
|
2
|
+
export declare const setNativeParamsCookie: (params: WebviewParams, setCookie: (name: string, value: string) => void) => void;
|
package/server/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { NativeParamsType } from '../shared/types';
|
|
2
2
|
export declare type RequestHeaderType = Record<string, any>;
|
|
3
|
-
export declare type
|
|
3
|
+
export declare type EmptyWebviewParams = {
|
|
4
4
|
isWebview: false;
|
|
5
5
|
};
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type WebviewParams = NativeParamsType & {
|
|
7
7
|
isWebview: true;
|
|
8
8
|
withoutLayout: boolean;
|
|
9
9
|
};
|