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.umd.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.LaunchKit = {}));
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
-
var version$3 = "0.0.
|
|
7
|
+
var version$3 = "0.0.5";
|
|
8
8
|
var packageJSON$3 = {
|
|
9
9
|
version: version$3};
|
|
10
10
|
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
return true;
|
|
265
265
|
if (/\belectron\//i.test(currentUserAgent))
|
|
266
266
|
return true;
|
|
267
|
-
if (/
|
|
267
|
+
if (/iphone|ipad|ipod/i.test(currentUserAgent) && /applewebkit/i.test(currentUserAgent) && /safari/i.test(currentUserAgent) === false)
|
|
268
268
|
return true;
|
|
269
269
|
return parseInAppBrowser() !== null;
|
|
270
270
|
}
|
|
@@ -494,7 +494,7 @@
|
|
|
494
494
|
return {};
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
var version$1 = "0.0.
|
|
497
|
+
var version$1 = "0.0.3";
|
|
498
498
|
var packageJSON$1 = {
|
|
499
499
|
version: version$1};
|
|
500
500
|
|
|
@@ -944,8 +944,6 @@
|
|
|
944
944
|
var LISTENER_STORE = [];
|
|
945
945
|
var NOOP = function () {
|
|
946
946
|
};
|
|
947
|
-
// Records live on the target itself, so they are collected with it and lookups only scan
|
|
948
|
-
// that target's own listeners. Targets that reject the expando fall back to LISTENER_STORE.
|
|
949
947
|
var STORE_KEY = '__webEventKitListeners__';
|
|
950
948
|
function resolveBucket(target, create) {
|
|
951
949
|
var holder = target;
|
|
@@ -1003,9 +1001,6 @@
|
|
|
1003
1001
|
if (typeof callback === 'object' && callback !== null && typeof callback.handleEvent === 'function')
|
|
1004
1002
|
return callback.handleEvent(event);
|
|
1005
1003
|
}
|
|
1006
|
-
// The same Event object is handed to every listener, so any property this kit overrides has
|
|
1007
|
-
// to be put back before the next one runs — otherwise a `pointerdown` listener would observe
|
|
1008
|
-
// the `touchstart` type and synthetic touches written by a listener registered before it.
|
|
1009
1004
|
function patchEventProperty(event, property, value, patches) {
|
|
1010
1005
|
var holder = event;
|
|
1011
1006
|
var had = false;
|
|
@@ -1171,8 +1166,6 @@
|
|
|
1171
1166
|
return NOOP;
|
|
1172
1167
|
var normalized = normalizeListenerOptions(options);
|
|
1173
1168
|
var existing = findListenerRecord(target, type, callback, normalized.capture);
|
|
1174
|
-
// Native `addEventListener` ignores a duplicate registration, so hand back a releaser
|
|
1175
|
-
// that does nothing rather than one that would detach the first caller's listener.
|
|
1176
1169
|
if (typeof existing !== 'undefined')
|
|
1177
1170
|
return NOOP;
|
|
1178
1171
|
if (typeof normalized.signal !== 'undefined' && normalized.signal.aborted)
|
|
@@ -1202,8 +1195,6 @@
|
|
|
1202
1195
|
record.onAbort = function () {
|
|
1203
1196
|
releaseListenerRecord(record);
|
|
1204
1197
|
};
|
|
1205
|
-
// Engines without listener-options coerce `{once: true}` to capture, which would then
|
|
1206
|
-
// fail to match on removal; releaseListenerRecord detaches this anyway.
|
|
1207
1198
|
record.signal.addEventListener('abort', record.onAbort, false);
|
|
1208
1199
|
}
|
|
1209
1200
|
return function () {
|
|
@@ -1908,6 +1899,7 @@
|
|
|
1908
1899
|
var GLOBAL = getGlobal$1();
|
|
1909
1900
|
var NAVIGATOR = GLOBAL.navigator;
|
|
1910
1901
|
var CLEANUP_INPUT_ELEMENT = null;
|
|
1902
|
+
var DEBUG = false;
|
|
1911
1903
|
function createTypeGuard(tag) {
|
|
1912
1904
|
return function (value) {
|
|
1913
1905
|
return Object.prototype.toString.call(value) === '[object ' + tag + ']';
|
|
@@ -2181,7 +2173,8 @@
|
|
|
2181
2173
|
}
|
|
2182
2174
|
}
|
|
2183
2175
|
return new Promise(function (resolve, reject) {
|
|
2184
|
-
|
|
2176
|
+
if (DEBUG)
|
|
2177
|
+
debugger;
|
|
2185
2178
|
var timeoutId;
|
|
2186
2179
|
var resolved = false;
|
|
2187
2180
|
function cleanup() {
|
|
@@ -2805,6 +2798,12 @@
|
|
|
2805
2798
|
var LaunchKit = {
|
|
2806
2799
|
SettingType: exports.SettingType,
|
|
2807
2800
|
version: packageJSON$3.version,
|
|
2801
|
+
get debug() {
|
|
2802
|
+
return DEBUG;
|
|
2803
|
+
},
|
|
2804
|
+
set debug(value) {
|
|
2805
|
+
DEBUG = value === true;
|
|
2806
|
+
},
|
|
2808
2807
|
utils: {
|
|
2809
2808
|
get canOpenIntent() {
|
|
2810
2809
|
return canOpenIntent();
|