@mparticle/web-criteo-kit 2.0.1 → 2.0.2
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/dist/CriteoEventForwarder.common.js +19 -22
- package/package.json +17 -8
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
|
|
3
|
-
/*!
|
|
4
|
-
* isobject <https://github.com/jonschlinkert/isobject>
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
7
|
-
* Released under the MIT License.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
function isObject(val) {
|
|
11
|
-
return val != null && typeof val === 'object' && Array.isArray(val) === false;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
3
|
/* eslint-disable no-undef */
|
|
15
4
|
|
|
16
5
|
//
|
|
@@ -27,8 +16,6 @@ function isObject(val) {
|
|
|
27
16
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
28
17
|
// See the License for the specific language governing permissions and
|
|
29
18
|
// limitations under the License.
|
|
30
|
-
|
|
31
|
-
|
|
32
19
|
var name = 'Criteo',
|
|
33
20
|
moduleId = 1010,
|
|
34
21
|
MessageType = {
|
|
@@ -281,14 +268,22 @@ function isObject(val) {
|
|
|
281
268
|
return moduleId;
|
|
282
269
|
}
|
|
283
270
|
|
|
271
|
+
function isObject(val) {
|
|
272
|
+
return (
|
|
273
|
+
val != null &&
|
|
274
|
+
typeof val === 'object' &&
|
|
275
|
+
Array.isArray(val) === false
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
|
|
284
279
|
function register(config) {
|
|
285
280
|
if (!config) {
|
|
286
|
-
|
|
281
|
+
console.log('You must pass a config object to register the kit ' + name);
|
|
287
282
|
return;
|
|
288
283
|
}
|
|
289
284
|
|
|
290
285
|
if (!isObject(config)) {
|
|
291
|
-
|
|
286
|
+
console.log('\'config\' must be an object. You passed in a ' + typeof config);
|
|
292
287
|
return;
|
|
293
288
|
}
|
|
294
289
|
|
|
@@ -302,15 +297,17 @@ function isObject(val) {
|
|
|
302
297
|
constructor: constructor
|
|
303
298
|
};
|
|
304
299
|
}
|
|
305
|
-
|
|
300
|
+
console.log('Successfully registered ' + name + ' to your mParticle configuration');
|
|
306
301
|
}
|
|
307
302
|
|
|
308
|
-
if (
|
|
309
|
-
window.mParticle.addForwarder
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
303
|
+
if (typeof window !== 'undefined') {
|
|
304
|
+
if (window && window.mParticle && window.mParticle.addForwarder) {
|
|
305
|
+
window.mParticle.addForwarder({
|
|
306
|
+
name: name,
|
|
307
|
+
constructor: constructor,
|
|
308
|
+
getId: getId
|
|
309
|
+
});
|
|
310
|
+
}
|
|
314
311
|
}
|
|
315
312
|
|
|
316
313
|
var CriteoEventForwarder = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mparticle/web-criteo-kit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"author": "mParticle Developers <developers@mparticle.com> (https://www.mparticle.com)",
|
|
5
5
|
"description": "mParticle integration sdk for Criteo",
|
|
6
6
|
"browser": "dist/CriteoEventForwarder.common.js",
|
|
@@ -11,18 +11,27 @@
|
|
|
11
11
|
"repository": "https://github.com/mparticle-integrations/mparticle-javascript-integration-criteo",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rollup --config rollup.config.js",
|
|
14
|
-
"watch": "rollup --config rollup.config.js -w"
|
|
14
|
+
"watch": "rollup --config rollup.config.js -w",
|
|
15
|
+
"build:test": "rollup --config rollup.test.config.js",
|
|
16
|
+
"test": "npm run build && npm run build:test && DEBUG=false karma start test/karma.config.js",
|
|
17
|
+
"test:debug": "npm run build && npm run build:test && DEBUG=true karma start test/karma.config.js"
|
|
15
18
|
},
|
|
16
19
|
"devDependencies": {
|
|
17
|
-
"
|
|
20
|
+
"@mparticle/web-sdk": "^2.23.6",
|
|
21
|
+
"@semantic-release/changelog": "^5.0.1",
|
|
22
|
+
"@semantic-release/exec": "^5.0.0",
|
|
23
|
+
"@semantic-release/git": "^9.0.0",
|
|
24
|
+
"chai": "^4.2.0",
|
|
25
|
+
"karma": "^5.1.0",
|
|
26
|
+
"karma-chai": "^0.1.0",
|
|
27
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
28
|
+
"karma-firefox-launcher": "^1.3.0",
|
|
29
|
+
"karma-mocha": "^2.0.1",
|
|
18
30
|
"mocha": "^2.3.2",
|
|
19
31
|
"rollup": "^1.13.1",
|
|
20
32
|
"rollup-plugin-commonjs": "^10.0.0",
|
|
21
|
-
"rollup-plugin-node-resolve": "^5.0.1"
|
|
22
|
-
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"isobject": "^4.0.0",
|
|
25
|
-
"@mparticle/web-sdk": "^2.11.1"
|
|
33
|
+
"rollup-plugin-node-resolve": "^5.0.1",
|
|
34
|
+
"should": "^7.1.0"
|
|
26
35
|
},
|
|
27
36
|
"license": "Apache-2.0"
|
|
28
37
|
}
|