@liff/is-in-client
Advanced tools
Comparing version 2.21.1 to 2.21.2
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2365
+ Added@liff/consts@2.21.2(transitive)
+ Added@liff/logger@2.21.2(transitive)
+ Added@liff/util@2.21.2(transitive)
- Removed@liff/consts@2.21.1(transitive)
- Removed@liff/logger@2.21.1(transitive)
- Removed@liff/util@2.21.1(transitive)
Updated@liff/consts@2.21.2
Updated@liff/util@2.21.2