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

@liff/is-in-client

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/is-in-client - npm Package Compare versions

Comparing version 2.21.1 to 2.21.2

2

lib/index.cjs.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@liff/consts"),s=require("@liff/util"),t=null;exports._cleanupCachedIsInClient=function(){t=null},exports.isInClient=function(){return null===t&&(t=s.isLIFFBrowser()||s.isLINEBrowser()&&/[#|&]access_token=/.test(location.hash)||"1"===sessionStorage.getItem(e.STORE_KEY+":"+e.STORE_SUBKEY_IS_IN_CLIENT),sessionStorage.setItem(e.STORE_KEY+":"+e.STORE_SUBKEY_IS_IN_CLIENT,t?"1":"0")),!!t};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@liff/consts"),t=require("@liff/util"),s=null;exports._cleanupCachedIsInClient=function(){s=null},exports.isInClient=function(){return null===s&&(s=t.isLIFFBrowser()||t.isLINEBrowser()&&/[#|&]access_token=/.test(location.hash)||"1"===sessionStorage.getItem("".concat(e.STORE_KEY,":").concat(e.STORE_SUBKEY_IS_IN_CLIENT)),sessionStorage.setItem("".concat(e.STORE_KEY,":").concat(e.STORE_SUBKEY_IS_IN_CLIENT),s?"1":"0")),!!s};

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

import{STORE_KEY as t,STORE_SUBKEY_IS_IN_CLIENT as o}from"@liff/consts";import{isLIFFBrowser as e,isLINEBrowser as n}from"@liff/util";var s=null;function i(){return null===s&&(s=e()||n()&&/[#|&]access_token=/.test(location.hash)||"1"===sessionStorage.getItem(t+":"+o),sessionStorage.setItem(t+":"+o,s?"1":"0")),!!s}function l(){s=null}export{l as _cleanupCachedIsInClient,i as isInClient};
import{STORE_KEY as t,STORE_SUBKEY_IS_IN_CLIENT as o}from"@liff/consts";import{isLIFFBrowser as n,isLINEBrowser as c}from"@liff/util";var e=null;function s(){return null===e&&(e=n()||c()&&/[#|&]access_token=/.test(location.hash)||"1"===sessionStorage.getItem("".concat(t,":").concat(o)),sessionStorage.setItem("".concat(t,":").concat(o),e?"1":"0")),!!e}function a(){e=null}export{a as _cleanupCachedIsInClient,s as isInClient};
{
"name": "@liff/is-in-client",
"version": "2.21.1",
"version": "2.21.2",
"description": "@liff/is-in-client",

@@ -24,5 +24,5 @@ "license": "SEE LICENSE IN README.md",

"build:npm": "rollup -c rollup.config.js",
"build:watch": "yarn build:npm -w --watch.include './src/**'",
"dev-server": "yarn build:watch",
"dev-server:https": "yarn build:watch",
"build:watch": "npm run build:npm -- --watch",
"dev-server": "npm run build:watch",
"dev-server:https": "npm run build:watch",
"build:prerelease": "rollup -c rollup.config.prerelease.js",

@@ -32,4 +32,4 @@ "clean": "rm -rf ./lib ./tsconfig.tsbuildinfo"

"dependencies": {
"@liff/consts": "2.21.1",
"@liff/util": "2.21.1"
"@liff/consts": "2.21.2",
"@liff/util": "2.21.2"
},

@@ -39,3 +39,3 @@ "peerDependencies": {

},
"gitHead": "9af2e0816a5cd5547b99e8cadba3ee274b270a9a"
"gitHead": "b43eee22bc2c90b85e9919820c557cc15fb9712c"
}
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