native-fn 1.0.23 → 1.0.24

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/dist/native.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.0.23";
3
+ var version = "1.0.24";
4
4
  var packageJSON = {
5
5
  version: version};
6
6
 
@@ -156,8 +156,8 @@ var RENDERER = (function () {
156
156
  return "";
157
157
  }
158
158
  })();
159
- var IS_MOBILE = OS_NAME === OS.iOS || OS_NAME === OS.Android;
160
- var IS_DESKTOP = !IS_MOBILE;
159
+ var IS_MOBILE = DEVICE_NAME === Devices.Mobile;
160
+ var IS_DESKTOP = DEVICE_NAME === Devices.Desktop;
161
161
  var IS_STANDALONE = (function () {
162
162
  if (OS_NAME === OS.iOS)
163
163
  return navigator.standalone;
package/dist/native.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var version = "1.0.23";
1
+ var version = "1.0.24";
2
2
  var packageJSON = {
3
3
  version: version};
4
4
 
@@ -154,8 +154,8 @@ var RENDERER = (function () {
154
154
  return "";
155
155
  }
156
156
  })();
157
- var IS_MOBILE = OS_NAME === OS.iOS || OS_NAME === OS.Android;
158
- var IS_DESKTOP = !IS_MOBILE;
157
+ var IS_MOBILE = DEVICE_NAME === Devices.Mobile;
158
+ var IS_DESKTOP = DEVICE_NAME === Devices.Desktop;
159
159
  var IS_STANDALONE = (function () {
160
160
  if (OS_NAME === OS.iOS)
161
161
  return navigator.standalone;
@@ -4,7 +4,7 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Native = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
- var version = "1.0.23";
7
+ var version = "1.0.24";
8
8
  var packageJSON = {
9
9
  version: version};
10
10
 
@@ -160,8 +160,8 @@
160
160
  return "";
161
161
  }
162
162
  })();
163
- var IS_MOBILE = OS_NAME === OS.iOS || OS_NAME === OS.Android;
164
- var IS_DESKTOP = !IS_MOBILE;
163
+ var IS_MOBILE = DEVICE_NAME === Devices.Mobile;
164
+ var IS_DESKTOP = DEVICE_NAME === Devices.Desktop;
165
165
  var IS_STANDALONE = (function () {
166
166
  if (OS_NAME === OS.iOS)
167
167
  return navigator.standalone;
@@ -28,7 +28,7 @@ export declare interface AppOpenOptions {
28
28
  [OS.MacOS]?: MacOSAppInfo;
29
29
  }
30
30
  export declare type Stringifiable = string | number | boolean | HTMLElement | null | undefined;
31
- export declare type StringifiableList = Stringifiable[] | NodeList | NodeListOf<Node> | HTMLCollection;
31
+ export declare type StringifiableList = Stringifiable[] | NodeList | NodeListOf<Node> | HTMLCollectionBase;
32
32
  export declare type MessengerOpenOptions = {
33
33
  to?: Stringifiable | StringifiableList;
34
34
  cc?: Stringifiable | StringifiableList;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-fn",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": " ",
5
5
  "scripts": {
6
6
  "build": "rollup -c"