Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "median-js-bridge",
"version": "2.13.4",
"version": "2.13.5",
"description": "Median bridge and utilities for JS web frameworks",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ namespace Median {
export const deviceShake = createListenerProp('_median_device_shake');
export const iapInfoReady = createListenerProp<InAppPurchaseInfoReadyData>('_median_info_ready');
export const iapPurchases = createListenerProp<any>('_median_iap_purchases');
export const jsNavigation = {
url: createListenerProp<{ url: string }>('_median_url_changed'),
};
export const oneSignalPushOpened = createListenerProp<any>('_median_onesignal_push_opened');
export const shareToApp = createListenerProp<ShareToAppData>('_median_share_to_app');
}
Expand Down
1 change: 1 addition & 0 deletions test/bundle.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const tests = [
// Events
{ name: 'Median.appResumed exists', check: () => typeof Median.appResumed === 'object' },
{ name: 'Median.appResumed.addListener is function', check: () => typeof Median.appResumed?.addListener === 'function' },
{ name: 'Median.jsNavigation exists', check: () => typeof Median.jsNavigation === 'object' },
];

let passed = 0;
Expand Down