@constructor-io/constructorio-client-javascript 2.51.0 → 2.51.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 Constructor.io
3
+ Copyright (c) 2019 Constructor.io Corporation
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -164,7 +164,8 @@ var ConstructorIO = /*#__PURE__*/function () {
164
164
  var apiKey = options.apiKey,
165
165
  segments = options.segments,
166
166
  testCells = options.testCells,
167
- userId = options.userId;
167
+ _options$userId = options.userId,
168
+ userId = _options$userId === void 0 ? '' : _options$userId;
168
169
  if (apiKey) {
169
170
  this.options.apiKey = apiKey;
170
171
  }
@@ -174,9 +175,7 @@ var ConstructorIO = /*#__PURE__*/function () {
174
175
  if (testCells) {
175
176
  this.options.testCells = testCells;
176
177
  }
177
- if (userId) {
178
- this.options.userId = userId;
179
- }
178
+ this.options.userId = userId;
180
179
  }
181
180
  }
182
181
  }]);
package/lib/version.js CHANGED
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
- var _default = '2.51.0';
7
+ var _default = '2.51.2';
8
8
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-client-javascript",
3
- "version": "2.51.0",
3
+ "version": "2.51.2",
4
4
  "description": "Constructor.io JavaScript client",
5
5
  "main": "lib/constructorio.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "type": "git",
33
33
  "url": "git+https://github.com/Constructor-io/constructorio-client-javascript.git"
34
34
  },
35
- "author": "constructor.io",
35
+ "author": "Constructor.io Corporation",
36
36
  "license": "MIT",
37
37
  "bugs": {
38
38
  "url": "https://github.com/Constructor-io/constructorio-client-javascript/issues"