@engage_so/core 2.0.6 → 2.0.7

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/index.js CHANGED
@@ -26,10 +26,10 @@ if (typeof btoa === 'undefined') {
26
26
  // [key: string]: string | number | Date | boolean
27
27
  // }
28
28
  // type UserAttrParams = Omit<UserIdentifyParams, 'id'>
29
- const rootURL = 'https://api.engage.so/v1';
29
+ // const rootURL = 'https://api.engage.so/v1'
30
30
  let auth = '';
31
31
  const notMeta = ['created_at', 'is_account', 'number', 'device_token', 'device_platform', 'email', 'first_name', 'last_name', 'tz', 'app_version', 'app_build', 'app_last_active'];
32
- const apiRoot = 'https://api.engage.so/';
32
+ const apiRoot = 'https://api.engage.so/v1';
33
33
  function _request(url, params, method) {
34
34
  return __awaiter(this, void 0, void 0, function* () {
35
35
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engage_so/core",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Engage JS core.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -26,5 +26,5 @@
26
26
  "buffer": "^6.0.3",
27
27
  "cross-fetch": "^4.0.0"
28
28
  },
29
- "gitHead": "593c32622eb6e5259967cdbbd3c60792e31d4cdf"
29
+ "gitHead": "1f767f0903dac2f454f29da5edc3d184cf29597e"
30
30
  }
package/src/index.ts CHANGED
@@ -38,10 +38,10 @@ type Methods = 'POST' | 'PUT' | 'DELETE'
38
38
  // }
39
39
  // type UserAttrParams = Omit<UserIdentifyParams, 'id'>
40
40
 
41
- const rootURL = 'https://api.engage.so/v1'
41
+ // const rootURL = 'https://api.engage.so/v1'
42
42
  let auth: string = ''
43
43
  const notMeta = ['created_at', 'is_account', 'number', 'device_token', 'device_platform', 'email', 'first_name', 'last_name', 'tz', 'app_version', 'app_build', 'app_last_active']
44
- const apiRoot = 'https://api.engage.so/'
44
+ const apiRoot = 'https://api.engage.so/v1'
45
45
 
46
46
  async function _request (url: string, params: Record<string, any> | null, method: Methods) {
47
47
  try {