@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
1
  {
2
2
  "license": "UNLICENSED",
3
3
  "name": "@alfalab/bridge-to-native",
4
- "version": "0.0.13-beta-024d5c2",
4
+ "version": "0.0.13-beta-769ebcc",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/core-ds/bridge-to-native.git"
@@ -1,7 +1,7 @@
1
- import { WebViewParams, RequestHeaderType } from "./types";
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) => WebViewParams | null;
7
+ export declare const extractNativeParams: (request: RequestHeaderType) => WebviewParams | null;
@@ -1 +1,2 @@
1
- export declare const setNativeParamsCookie: (params: Record<string, string>, setCookie: (name: string, value: string) => void) => void;
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 EmptyWebViewParams = {
3
+ export declare type EmptyWebviewParams = {
4
4
  isWebview: false;
5
5
  };
6
- export declare type WebViewParams = NativeParamsType & {
6
+ export declare type WebviewParams = NativeParamsType & {
7
7
  isWebview: true;
8
8
  withoutLayout: boolean;
9
9
  };