Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@liff/close-window

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liff/close-window - npm Package Compare versions

Comparing version 2.21.4 to 2.22.0

2

lib/index.cjs.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@liff/util"),i=require("@liff/get-os"),o=require("@liff/get-line-version"),s=require("@liff/native-bridge");exports.closeWindow=function(){var l=o.getLineVersion();null!==l&&("ios"===i.getOS()&&e.compareVersion(l,"9.19")>=0||"android"===i.getOS()&&e.compareVersion(l,"11.6.0")>=0)?location.href="liff://close":window._liff&&window._liff.postMessage?null!==l&&e.compareVersion(l,"10.15.0")>=0?"ios"===i.getOS()?window._liff.postMessage("closeWindow",""):window._liff.postMessage("closeWindow","","",""):s.call("closeWindow"):window.close()};
"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;

@@ -0,1 +1,8 @@

import { LiffModule } from '@liff/use';
export declare function closeWindow(): void;
type Api = () => void;
export declare class CloseWindowModule extends LiffModule<Api, never, {}> {
get name(): string;
install(): () => void;
}
export {};

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

import{compareVersion as o}from"@liff/util";import{getOS as i}from"@liff/get-os";import{getLineVersion as f}from"@liff/get-line-version";import{call as l}from"@liff/native-bridge";function e(){var e=f();null!==e&&("ios"===i()&&o(e,"9.19")>=0||"android"===i()&&o(e,"11.6.0")>=0)?location.href="liff://close":window._liff&&window._liff.postMessage?null!==e&&o(e,"10.15.0")>=0?"ios"===i()?window._liff.postMessage("closeWindow",""):window._liff.postMessage("closeWindow","","",""):l("closeWindow"):window.close()}export{e as closeWindow};
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};
{
"name": "@liff/close-window",
"version": "2.21.4",
"version": "2.22.0",
"description": "@liff/close-window",

@@ -34,8 +34,9 @@ "license": "SEE LICENSE IN README.md",

"dependencies": {
"@liff/get-line-version": "2.21.4",
"@liff/get-os": "2.21.4",
"@liff/native-bridge": "2.21.4",
"@liff/util": "2.21.4"
},
"gitHead": "af2b35a241fa715f3aa1ce484f011c9da9524e12"
"@liff/get-line-version": "2.22.0",
"@liff/get-os": "2.22.0",
"@liff/native-bridge": "2.22.0",
"@liff/types": "2.22.0",
"@liff/use": "2.22.0",
"@liff/util": "2.22.0"
}
}
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