New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tef-novum/webview-bridge

Package Overview
Dependencies
Maintainers
7
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tef-novum/webview-bridge - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

dist/webview-bridge-cjs.js.flow

3

dist/index.d.ts

@@ -5,6 +5,7 @@ export { isWebViewBridgeAvailable, onNativeEvent, NativeEventHandler, } from './src/post-message';

export { attachToEmail, share, setWebViewTitle, updateNavigationBar, notifyPageLoaded, isABTestingAvailable, reportStatus, fetch, checkPermissionStatus, getAppMetadata, setActionBehavior, } from './src/utils';
export type { ShareOptions } from './src/utils';
export { createCalendarEvent } from './src/calendar';
export { requestContact, fetchContactsByPhone } from './src/contacts';
export { logEvent, logTiming, setScreenName, setUserProperty, CD_WEBAPP_INSTALLED, CD_NOVUM_UID, CD_EVENT_VALUE, setCustomerHash, getCustomerHash, setTrackingProperty, } from './src/analytics';
export type { TrackingEvent } from './src/analytics';
export type { TrackingEvent, CustomDimensionIdx } from './src/analytics';
export { renewSession, onSessionRenewed } from './src/sessions';

@@ -1,2 +0,2 @@

declare type CustomDimensionIdx = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26;
export declare type CustomDimensionIdx = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26;
export declare const CD_WEBAPP_INSTALLED: CustomDimensionIdx;

@@ -29,26 +29,28 @@ export declare const CD_NOVUM_UID: CustomDimensionIdx;

}>) => Promise<void>;
export declare const setScreenName: (screenName: string, fieldsObject?: {} | undefined) => Promise<void>;
export declare const setScreenName: (screenName: string, fieldsObject?: {
[key: string]: any;
} | undefined) => Promise<void>;
declare const USER_PROPERTY_TO_CUSTOM_DIMENSION: {
obIds: 1;
paymentModels: 2;
serviceWorkerStatus: 3;
isAdmin: 5;
hasIpComms: 6;
af_source: 9;
af_campaign: 10;
novum_uid_session: 11;
user_logged: 12;
currentSubscriptionId: 13;
currentSubscriptionType: 14;
currentPaymentModel: 15;
webviewBrowserVersion: 16;
activatedRoles: 17;
appInstanceId: 18;
experimentflag: 20;
friendsApps: 24;
accountLineSelector: 25;
OneClickDisplayed: 26;
readonly obIds: 1;
readonly paymentModels: 2;
readonly serviceWorkerStatus: 3;
readonly isAdmin: 5;
readonly hasIpComms: 6;
readonly af_source: 9;
readonly af_campaign: 10;
readonly novum_uid_session: 11;
readonly user_logged: 12;
readonly currentSubscriptionId: 13;
readonly currentSubscriptionType: 14;
readonly currentPaymentModel: 15;
readonly webviewBrowserVersion: 16;
readonly activatedRoles: 17;
readonly appInstanceId: 18;
readonly experimentflag: 20;
readonly friendsApps: 24;
readonly accountLineSelector: 25;
readonly OneClickDisplayed: 26;
};
declare type UserPropertyName = keyof typeof USER_PROPERTY_TO_CUSTOM_DIMENSION;
export declare const setUserProperty: (name: UserPropertyName, value: string) => Promise<void>;
export declare const setUserProperty: (name: UserPropertyName | string, value: string) => Promise<void>;
export declare const setCustomerHash: (hash: string) => Promise<void>;

@@ -55,0 +57,0 @@ export declare const getCustomerHash: () => Promise<{

@@ -9,3 +9,3 @@ import { NativeAppResponsePayload } from './post-message';

}) => Promise<void>;
declare type ShareOptions = {
export declare type ShareOptions = {
text: string;

@@ -12,0 +12,0 @@ } | {

{
"name": "@tef-novum/webview-bridge",
"version": "3.2.0",
"version": "3.2.1",
"description": "JavaScript library to access to native functionality. Requires a webview with a postMessage bridge.",

@@ -13,3 +13,3 @@ "main": "./dist/webview-bridge-cjs.js",

"build": "rimraf dist && rollup -c && uglifyjs --compress --mangle -o dist/webview-bridge-umd.min.js dist/webview-bridge-umd.js && uglifyjs --compress --mangle -o dist/webview-bridge-iife.min.js dist/webview-bridge-iife.js && yarn generate-flow-types",
"generate-flow-types": "ts-to-flow dist flow-defs",
"generate-flow-types": "ts-to-flow dist flow-defs && mv dist/index.js.flow dist/webview-bridge-cjs.js.flow",
"test": "jest --coverage",

@@ -35,3 +35,3 @@ "prettier-check": "prettier --check .",

"devDependencies": {
"@telefonica/ts-to-flow": "^1.1.2",
"@telefonica/ts-to-flow": "1.1.6",
"@types/google.analytics": "0.0.42",

@@ -38,0 +38,0 @@ "@types/jest": "^27.0.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc