@mparticle/web-localytics-kit 3.5.0 → 3.6.0
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.
|
@@ -11,16 +11,6 @@ function isObject(val) {
|
|
|
11
11
|
return val != null && typeof val === 'object' && Array.isArray(val) === false;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
var isobject = /*#__PURE__*/Object.freeze({
|
|
15
|
-
'default': isObject
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
function getCjsExportFromNamespace (n) {
|
|
19
|
-
return n && n['default'] || n;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
var isobject$1 = getCjsExportFromNamespace(isobject);
|
|
23
|
-
|
|
24
14
|
// Copyright 2015 mParticle, Inc.
|
|
25
15
|
//
|
|
26
16
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -389,14 +379,14 @@ function register(config) {
|
|
|
389
379
|
return;
|
|
390
380
|
}
|
|
391
381
|
|
|
392
|
-
if (!
|
|
382
|
+
if (!isObject(config)) {
|
|
393
383
|
console.log(
|
|
394
384
|
"'config' must be an object. You passed in a " + typeof config
|
|
395
385
|
);
|
|
396
386
|
return;
|
|
397
387
|
}
|
|
398
388
|
|
|
399
|
-
if (
|
|
389
|
+
if (isObject(config.kits)) {
|
|
400
390
|
config.kits[name] = {
|
|
401
391
|
constructor: constructor,
|
|
402
392
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mparticle/web-localytics-kit",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"author": "mParticle Developers <developers@mparticle.com> (https://www.mparticle.com)",
|
|
5
5
|
"description": "mParticle integration sdk for Localytics",
|
|
6
6
|
"main": "dist/LocalyticsEventForwarder.common.js",
|