@liff/close-window 2.21.3 → 2.22.0
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/lib/index.cjs.js +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.es.js +1 -1
- package/package.json +8 -7
package/lib/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@liff/util"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("@liff/util"),o=require("@liff/get-os"),n=require("@liff/get-line-version"),r=require("@liff/native-bridge");function t(){var e=n.getLineVersion();null!==e&&("ios"===o.getOS()&&i.compareVersion(e,"9.19")>=0||"android"===o.getOS()&&i.compareVersion(e,"11.6.0")>=0)?location.href="liff://close":window._liff&&window._liff.postMessage?null!==e&&i.compareVersion(e,"10.15.0")>=0?"ios"===o.getOS()?window._liff.postMessage("closeWindow",""):window._liff.postMessage("closeWindow","","",""):r.call("closeWindow"):window.close()}var l=function(i){function o(){return null!==i&&i.apply(this,arguments)||this}return e.__extends(o,i),Object.defineProperty(o.prototype,"name",{get:function(){return"closeWindow"},enumerable:!1,configurable:!0}),o.prototype.install=function(){return function(){return t()}},o}(require("@liff/use").LiffModule);exports.CloseWindowModule=l,exports.closeWindow=t;
|
package/lib/index.d.ts
CHANGED
package/lib/index.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__extends as o}from"tslib";import{compareVersion as i}from"@liff/util";import{getOS as n}from"@liff/get-os";import{getLineVersion as e}from"@liff/get-line-version";import{call as t}from"@liff/native-bridge";import{LiffModule as f}from"@liff/use";function r(){var o=e();null!==o&&("ios"===n()&&i(o,"9.19")>=0||"android"===n()&&i(o,"11.6.0")>=0)?location.href="liff://close":window._liff&&window._liff.postMessage?null!==o&&i(o,"10.15.0")>=0?"ios"===n()?window._liff.postMessage("closeWindow",""):window._liff.postMessage("closeWindow","","",""):t("closeWindow"):window.close()}var l=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return o(n,i),Object.defineProperty(n.prototype,"name",{get:function(){return"closeWindow"},enumerable:!1,configurable:!0}),n.prototype.install=function(){return function(){return r()}},n}(f);export{l as CloseWindowModule,r as closeWindow};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liff/close-window",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "@liff/close-window",
|
|
5
5
|
"license": "SEE LICENSE IN README.md",
|
|
6
6
|
"main": "lib/index.cjs.js",
|
|
@@ -31,10 +31,11 @@
|
|
|
31
31
|
"tslib": "^2.3.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@liff/get-line-version": "2.
|
|
35
|
-
"@liff/get-os": "2.
|
|
36
|
-
"@liff/native-bridge": "2.
|
|
37
|
-
"@liff/
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
"@liff/get-line-version": "2.22.0",
|
|
35
|
+
"@liff/get-os": "2.22.0",
|
|
36
|
+
"@liff/native-bridge": "2.22.0",
|
|
37
|
+
"@liff/types": "2.22.0",
|
|
38
|
+
"@liff/use": "2.22.0",
|
|
39
|
+
"@liff/util": "2.22.0"
|
|
40
|
+
}
|
|
40
41
|
}
|