web-launch-kit 0.0.4 → 0.0.5
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/README.ko.md +19 -0
- package/README.md +19 -0
- package/dist/index.d.ts +2 -0
- package/dist/launch-kit.cjs +12 -13
- package/dist/launch-kit.cjs.map +1 -1
- package/dist/launch-kit.min.cjs +1 -1
- package/dist/launch-kit.min.cjs.map +1 -1
- package/dist/launch-kit.min.mjs +1 -1
- package/dist/launch-kit.min.mjs.map +1 -1
- package/dist/launch-kit.mjs +12 -13
- package/dist/launch-kit.mjs.map +1 -1
- package/dist/launch-kit.umd.js +12 -13
- package/dist/launch-kit.umd.js.map +1 -1
- package/dist/launch-kit.umd.min.js +1 -1
- package/dist/launch-kit.umd.min.js.map +1 -1
- package/package.json +2 -2
package/dist/launch-kit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version$3 = "0.0.
|
|
1
|
+
var version$3 = "0.0.5";
|
|
2
2
|
var packageJSON$3 = {
|
|
3
3
|
version: version$3};
|
|
4
4
|
|
|
@@ -258,7 +258,7 @@ function parseWebview() {
|
|
|
258
258
|
return true;
|
|
259
259
|
if (/\belectron\//i.test(currentUserAgent))
|
|
260
260
|
return true;
|
|
261
|
-
if (/
|
|
261
|
+
if (/iphone|ipad|ipod/i.test(currentUserAgent) && /applewebkit/i.test(currentUserAgent) && /safari/i.test(currentUserAgent) === false)
|
|
262
262
|
return true;
|
|
263
263
|
return parseInAppBrowser() !== null;
|
|
264
264
|
}
|
|
@@ -488,7 +488,7 @@ function getGlobal$2() {
|
|
|
488
488
|
return {};
|
|
489
489
|
}
|
|
490
490
|
|
|
491
|
-
var version$1 = "0.0.
|
|
491
|
+
var version$1 = "0.0.3";
|
|
492
492
|
var packageJSON$1 = {
|
|
493
493
|
version: version$1};
|
|
494
494
|
|
|
@@ -938,8 +938,6 @@ var GLOBAL$4 = getGlobal$2();
|
|
|
938
938
|
var LISTENER_STORE = [];
|
|
939
939
|
var NOOP = function () {
|
|
940
940
|
};
|
|
941
|
-
// Records live on the target itself, so they are collected with it and lookups only scan
|
|
942
|
-
// that target's own listeners. Targets that reject the expando fall back to LISTENER_STORE.
|
|
943
941
|
var STORE_KEY = '__webEventKitListeners__';
|
|
944
942
|
function resolveBucket(target, create) {
|
|
945
943
|
var holder = target;
|
|
@@ -997,9 +995,6 @@ function invokeCallback(callback, target, event) {
|
|
|
997
995
|
if (typeof callback === 'object' && callback !== null && typeof callback.handleEvent === 'function')
|
|
998
996
|
return callback.handleEvent(event);
|
|
999
997
|
}
|
|
1000
|
-
// The same Event object is handed to every listener, so any property this kit overrides has
|
|
1001
|
-
// to be put back before the next one runs — otherwise a `pointerdown` listener would observe
|
|
1002
|
-
// the `touchstart` type and synthetic touches written by a listener registered before it.
|
|
1003
998
|
function patchEventProperty(event, property, value, patches) {
|
|
1004
999
|
var holder = event;
|
|
1005
1000
|
var had = false;
|
|
@@ -1165,8 +1160,6 @@ var EventKit = {
|
|
|
1165
1160
|
return NOOP;
|
|
1166
1161
|
var normalized = normalizeListenerOptions(options);
|
|
1167
1162
|
var existing = findListenerRecord(target, type, callback, normalized.capture);
|
|
1168
|
-
// Native `addEventListener` ignores a duplicate registration, so hand back a releaser
|
|
1169
|
-
// that does nothing rather than one that would detach the first caller's listener.
|
|
1170
1163
|
if (typeof existing !== 'undefined')
|
|
1171
1164
|
return NOOP;
|
|
1172
1165
|
if (typeof normalized.signal !== 'undefined' && normalized.signal.aborted)
|
|
@@ -1196,8 +1189,6 @@ var EventKit = {
|
|
|
1196
1189
|
record.onAbort = function () {
|
|
1197
1190
|
releaseListenerRecord(record);
|
|
1198
1191
|
};
|
|
1199
|
-
// Engines without listener-options coerce `{once: true}` to capture, which would then
|
|
1200
|
-
// fail to match on removal; releaseListenerRecord detaches this anyway.
|
|
1201
1192
|
record.signal.addEventListener('abort', record.onAbort, false);
|
|
1202
1193
|
}
|
|
1203
1194
|
return function () {
|
|
@@ -1902,6 +1893,7 @@ var DEFAULT_TIMEOUT = 750;
|
|
|
1902
1893
|
var GLOBAL = getGlobal$1();
|
|
1903
1894
|
var NAVIGATOR = GLOBAL.navigator;
|
|
1904
1895
|
var CLEANUP_INPUT_ELEMENT = null;
|
|
1896
|
+
var DEBUG = false;
|
|
1905
1897
|
function createTypeGuard(tag) {
|
|
1906
1898
|
return function (value) {
|
|
1907
1899
|
return Object.prototype.toString.call(value) === '[object ' + tag + ']';
|
|
@@ -2175,7 +2167,8 @@ function openURL(tried, url, timeout) {
|
|
|
2175
2167
|
}
|
|
2176
2168
|
}
|
|
2177
2169
|
return new Promise(function (resolve, reject) {
|
|
2178
|
-
|
|
2170
|
+
if (DEBUG)
|
|
2171
|
+
debugger;
|
|
2179
2172
|
var timeoutId;
|
|
2180
2173
|
var resolved = false;
|
|
2181
2174
|
function cleanup() {
|
|
@@ -2799,6 +2792,12 @@ function walk(directory, basePath) {
|
|
|
2799
2792
|
var LaunchKit = {
|
|
2800
2793
|
SettingType: SettingType,
|
|
2801
2794
|
version: packageJSON$3.version,
|
|
2795
|
+
get debug() {
|
|
2796
|
+
return DEBUG;
|
|
2797
|
+
},
|
|
2798
|
+
set debug(value) {
|
|
2799
|
+
DEBUG = value === true;
|
|
2800
|
+
},
|
|
2802
2801
|
utils: {
|
|
2803
2802
|
get canOpenIntent() {
|
|
2804
2803
|
return canOpenIntent();
|