zubbl-sdk 1.0.5 → 1.0.6

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.
@@ -2,8 +2,6 @@
2
2
 
3
3
  var axios = require('axios');
4
4
 
5
- // src/index.js
6
-
7
5
  let config = {
8
6
  apiKey: null,
9
7
  tenantId: null,
@@ -23,7 +21,7 @@ async function identifyUser({ email, name }) {
23
21
  }
24
22
  if (!email) throw new Error("email is required");
25
23
 
26
- const response = await axios.post("https://api.zubbl.com/user/identify", { email, name }, {
24
+ const response = await axios.post("https://api.zubbl.com/sdk/identify", { email, name }, {
27
25
  headers: {
28
26
  "x-api-key": config.apiKey,
29
27
  "x-tenant-id": config.tenantId,
@@ -1,7 +1,5 @@
1
1
  import axios from 'axios';
2
2
 
3
- // src/index.js
4
-
5
3
  let config = {
6
4
  apiKey: null,
7
5
  tenantId: null,
@@ -21,7 +19,7 @@ async function identifyUser({ email, name }) {
21
19
  }
22
20
  if (!email) throw new Error("email is required");
23
21
 
24
- const response = await axios.post("https://api.zubbl.com/user/identify", { email, name }, {
22
+ const response = await axios.post("https://api.zubbl.com/sdk/identify", { email, name }, {
25
23
  headers: {
26
24
  "x-api-key": config.apiKey,
27
25
  "x-tenant-id": config.tenantId,
@@ -4,8 +4,6 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ZubblSdk = {}, global.axios));
5
5
  })(this, (function (exports, axios) { 'use strict';
6
6
 
7
- // src/index.js
8
-
9
7
  let config = {
10
8
  apiKey: null,
11
9
  tenantId: null,
@@ -25,7 +23,7 @@
25
23
  }
26
24
  if (!email) throw new Error("email is required");
27
25
 
28
- const response = await axios.post("https://api.zubbl.com/user/identify", { email, name }, {
26
+ const response = await axios.post("https://api.zubbl.com/sdk/identify", { email, name }, {
29
27
  headers: {
30
28
  "x-api-key": config.apiKey,
31
29
  "x-tenant-id": config.tenantId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zubbl-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Zubbl SDK for secure policy enforcement (browser, Node, universal)",
5
5
  "main": "dist/zubbl-sdk.cjs.js",
6
6
  "module": "dist/zubbl-sdk.esm.js",