emarsys-integration-client
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -19,3 +19,3 @@ 'use strict'; | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(AlertApi).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, (AlertApi.__proto__ || Object.getPrototypeOf(AlertApi)).apply(this, arguments)); | ||
} | ||
@@ -22,0 +22,0 @@ |
@@ -11,3 +11,3 @@ 'use strict'; | ||
var Q = require('q'); | ||
var defer = require('../defer'); | ||
@@ -29,3 +29,3 @@ var BaseApi = require('./base_api'); | ||
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(DialogApi).call(this, transmitter)); | ||
var _this = _possibleConstructorReturn(this, (DialogApi.__proto__ || Object.getPrototypeOf(DialogApi)).call(this, transmitter)); | ||
@@ -66,3 +66,3 @@ _this.deferreds = {}; | ||
options.dialogId = this.getRandomId(); | ||
this.deferreds[options.dialogId] = Q.defer(); | ||
this.deferreds[options.dialogId] = defer(); | ||
@@ -69,0 +69,0 @@ this.transmitter.messageToEmarsys(dialogType, options); |
@@ -19,3 +19,3 @@ 'use strict'; | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(IntercomApi).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, (IntercomApi.__proto__ || Object.getPrototypeOf(IntercomApi)).apply(this, arguments)); | ||
} | ||
@@ -22,0 +22,0 @@ |
@@ -12,3 +12,3 @@ 'use strict'; | ||
var BaseApi = require('./base_api'); | ||
var Q = require('q'); | ||
var defer = require('../defer'); | ||
@@ -21,3 +21,3 @@ var MiscApi = function (_BaseApi) { | ||
var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(MiscApi).call(this, transmitter)); | ||
var _this = _possibleConstructorReturn(this, (MiscApi.__proto__ || Object.getPrototypeOf(MiscApi)).call(this, transmitter)); | ||
@@ -75,3 +75,3 @@ _this.deferreds = {}; | ||
var eventId = this.getRandomId(); | ||
this.deferreds[eventId] = Q.defer(); | ||
this.deferreds[eventId] = defer(); | ||
this.transmitter.messageToEmarsys('navigate', Object.assign({}, options, { eventId: eventId })); | ||
@@ -78,0 +78,0 @@ return this.deferreds[eventId].promise; |
@@ -19,3 +19,3 @@ 'use strict'; | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(UnloadApi).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, (UnloadApi.__proto__ || Object.getPrototypeOf(UnloadApi)).apply(this, arguments)); | ||
} | ||
@@ -22,0 +22,0 @@ |
@@ -19,3 +19,3 @@ 'use strict'; | ||
return _possibleConstructorReturn(this, Object.getPrototypeOf(UpdateHashApi).apply(this, arguments)); | ||
return _possibleConstructorReturn(this, (UpdateHashApi.__proto__ || Object.getPrototypeOf(UpdateHashApi)).apply(this, arguments)); | ||
} | ||
@@ -22,0 +22,0 @@ |
'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -5,0 +5,0 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); |
@@ -10,16 +10,11 @@ { | ||
"prebuild": "npm run clean", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post", | ||
"test": "NODE_ENV=test mocha $(find . -name \"*.spec.js\" -not -path \"./node_modules/*\" -not -path \"./dist/*\") --compilers js:babel-register", | ||
"semantic-release": "semantic-release", | ||
"test": "NODE_ENV=test mocha $(find . -name \"*.spec.js\" -not -path \"./node_modules/*\" -not -path \"./dist/*\") --require babel-register", | ||
"validate-commit-msg": "validate-commit-msg", | ||
"watch": "npm run build -- --watch" | ||
}, | ||
"release": { | ||
"verifyConditions": { | ||
"path": "./node_modules/semantic-release/dist/lib/plugin-noop.js" | ||
} | ||
}, | ||
"author": "Emarsys", | ||
"license": "MIT", | ||
"dependencies": { | ||
"q": "1.4.1" | ||
"es6-promise": "4.2.6" | ||
}, | ||
@@ -31,18 +26,19 @@ "pre-commit": [ | ||
"devDependencies": { | ||
"babel-cli": "6.8.0", | ||
"babel-preset-es2015": "6.6.0", | ||
"babel-register": "6.8.0", | ||
"chai": "3.5.0", | ||
"eslint": "2.9.0", | ||
"eslint-config-emarsys": "4.0.0", | ||
"babel-cli": "6.26.0", | ||
"babel-preset-es2015": "6.24.1", | ||
"babel-register": "6.26.0", | ||
"chai": "4.2.0", | ||
"eslint": "5.14.0", | ||
"eslint-config-emarsys": "5.1.0", | ||
"jquery": "3.3.1", | ||
"mocha": "2.4.5", | ||
"pre-commit": "1.1.2", | ||
"semantic-release": "4.3.5", | ||
"sinon": "1.17.4", | ||
"sinon-chai": "2.8.0", | ||
"mocha": "5.2.0", | ||
"pre-commit": "1.2.2", | ||
"semantic-release": "15.13.3", | ||
"sinon": "7.2.3", | ||
"sinon-chai": "3.3.0", | ||
"validate-commit-message": "3.0.1" | ||
}, | ||
"engines": { | ||
"node": "6.10.3" | ||
"node": "10.15.1", | ||
"npm": "6.8.0" | ||
}, | ||
@@ -57,3 +53,3 @@ "repository": { | ||
"homepage": "https://github.com/emartech/emarsys-integration-client-js#readme", | ||
"version": "2.0.1" | ||
} | ||
"version": "2.1.0" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
33339
17
527
+ Addedes6-promise@4.2.6
+ Addedes6-promise@4.2.6(transitive)
- Removedq@1.4.1
- Removedq@1.4.1(transitive)