saasco-sdk 0.1.21 → 0.1.22

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/index.cjs.js CHANGED
@@ -6,7 +6,7 @@ var tslib = require('tslib');
6
6
  var uuid = require('@lukeed/uuid');
7
7
  var zod = require('zod');
8
8
 
9
- var version = "0.1.21";
9
+ var version = "0.1.22";
10
10
 
11
11
  const timezones = {
12
12
  'Asia/Barnaul': 'RU',
@@ -623,6 +623,7 @@ class Saasco {
623
623
  payload: JSON.stringify(Object.assign(Object.assign({}, browserContext || {}), {
624
624
  properties: properties || {}
625
625
  })),
626
+ source: isBrowser ? 'client' : 'server',
626
627
  context: JSON.stringify(context || {})
627
628
  };
628
629
  return this.doRequest('events', data);
package/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import { __awaiter } from 'tslib';
2
2
  import { v4 } from '@lukeed/uuid';
3
3
  import { z } from 'zod';
4
4
 
5
- var version = "0.1.21";
5
+ var version = "0.1.22";
6
6
 
7
7
  const timezones = {
8
8
  'Asia/Barnaul': 'RU',
@@ -619,6 +619,7 @@ class Saasco {
619
619
  payload: JSON.stringify(Object.assign(Object.assign({}, browserContext || {}), {
620
620
  properties: properties || {}
621
621
  })),
622
+ source: isBrowser ? 'client' : 'server',
622
623
  context: JSON.stringify(context || {})
623
624
  };
624
625
  return this.doRequest('events', data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saasco-sdk",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0",
6
6
  "@lukeed/uuid": "^2.0.1",