Skip to content

Commit 57c4057

Browse files
TommertomTommertom
Tommertom
authored and
Tommertom
committed
0.5.71 fixes
1 parent 017c9f1 commit 57c4057

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Change Log Ionic-Svelte-NPM
22
All notable changes to this project will be documented in this file.
33

4+
## 0.5.71
5+
- Added platforms back
6+
47
## 0.5.70
58
- Ionic core 6.6.0 and create scripts locked to latest of 6 (arrival of 7)
69

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ionic-svelte",
3-
"version": "0.5.70",
3+
"version": "0.5.71",
44
"private": false,
55
"homepage": "https://ionicsvelte.firebaseapp.com",
66
"repository": {

scripts/generator.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,28 @@ export {
8888
toastController
8989
} from "@ionic/core";
9090
91+
// platforms
92+
declare const PLATFORMS_MAP: {
93+
[key: string]: boolean;
94+
};
95+
96+
declare type Platforms = keyof typeof PLATFORMS_MAP;
97+
98+
export function getPlatforms(win?: any): string[];
99+
export function setupPlatforms(win: any);
100+
101+
interface IsPlatformSignature {
102+
(plt: Platforms): boolean;
103+
(win: Window, plt: Platforms): boolean;
104+
}
105+
export function isPlatform(
106+
winOrPlatform: Window | Platforms | undefined,
107+
platform?: Platforms
108+
): IsPlatformSignature;
109+
110+
export function testUserAgent(win: Window, expr: RegExp);
111+
112+
91113
// not exported by @ionic/core
92114
export type NavigationHookResult = boolean | NavigationHookOptions;
93115
export interface NavigationHookOptions {

0 commit comments

Comments
 (0)