@usermaven/nextjs 1.2.7 → 1.2.8

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.
Files changed (2) hide show
  1. package/lib/index.es.js +3 -3
  2. package/package.json +1 -1
package/lib/index.es.js CHANGED
@@ -1399,8 +1399,8 @@ _safewrap_instance_methods(autocapture);
1399
1399
 
1400
1400
  var VERSION_INFO = {
1401
1401
  env: 'production',
1402
- date: '2023-12-21T09:27:52.618Z',
1403
- version: '1.2.7'
1402
+ date: '2024-01-30T10:00:56.526Z',
1403
+ version: '1.2.8'
1404
1404
  };
1405
1405
  var USERMAVEN_VERSION = VERSION_INFO.version + "/" + VERSION_INFO.env + "@" + VERSION_INFO.date;
1406
1406
  var MAX_AGE_TEN_YEARS = 31622400 * 10;
@@ -2267,7 +2267,7 @@ var UsermavenClientImpl = /** @class */ (function () {
2267
2267
  */
2268
2268
  UsermavenClientImpl.prototype.manageAutoCapture = function (options) {
2269
2269
  getLogger().debug("Auto Capture Status: ", this.config['autocapture']);
2270
- this.__autocapture_enabled = this.config['autocapture'];
2270
+ this.__autocapture_enabled = this.config['autocapture'] && isWindowAvailable();
2271
2271
  if (!this.__autocapture_enabled) {
2272
2272
  return;
2273
2273
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usermaven/nextjs",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Usermaven JavaScript SDK for NextJS",
5
5
  "author": "Usermaven <hello@usermaven.com>",
6
6
  "license": "MIT",