roboto-js 1.9.2 → 1.9.3

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.
@@ -110,7 +110,7 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
110
110
  baseUrl: "https://".concat(host),
111
111
  // Use passed host
112
112
  localStorageAdaptor: storageAdaptor,
113
- withCredentials: useCookies && isBrowser // Only use credentials in browser with cookies enabled
113
+ withCredentials: useCookies && isBrowser // Enabled by default in browser (disable with useCookies: false)
114
114
  };
115
115
 
116
116
  // Add apikey and authtoken if provided directly
@@ -46,7 +46,7 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
46
46
  _ref$localStorageAdap = _ref.localStorageAdaptor,
47
47
  localStorageAdaptor = _ref$localStorageAdap === void 0 ? null : _ref$localStorageAdap,
48
48
  _ref$withCredentials = _ref.withCredentials,
49
- withCredentials = _ref$withCredentials === void 0 ? false : _ref$withCredentials;
49
+ withCredentials = _ref$withCredentials === void 0 ? true : _ref$withCredentials;
50
50
  _classCallCheck(this, RbtApi);
51
51
  this.websocketClient = null;
52
52
 
@@ -63,7 +63,7 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
63
63
  headers: {
64
64
  'accesskey': accesskey
65
65
  },
66
- withCredentials: withCredentials // Opt-in: only send cookies when explicitly enabled
66
+ withCredentials: withCredentials // Send cookies by default (can be disabled with useCookies: false)
67
67
  });
68
68
  this.axios.__rbtApiInstance = this;
69
69
  if (localStorageAdaptor) {
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = void 0;
7
7
  // Auto-generated version file
8
8
  // DO NOT EDIT - This file is automatically updated from package.cjson
9
- // Version: 1.9.2
10
- var version = exports.version = '1.9.2';
9
+ // Version: 1.9.3
10
+ var version = exports.version = '1.9.3';
package/dist/esm/index.js CHANGED
@@ -83,7 +83,7 @@ var Roboto = /*#__PURE__*/function () {
83
83
  baseUrl: "https://".concat(host),
84
84
  // Use passed host
85
85
  localStorageAdaptor: storageAdaptor,
86
- withCredentials: useCookies && isBrowser // Only use credentials in browser with cookies enabled
86
+ withCredentials: useCookies && isBrowser // Enabled by default in browser (disable with useCookies: false)
87
87
  };
88
88
 
89
89
  // Add apikey and authtoken if provided directly
@@ -39,7 +39,7 @@ var RbtApi = /*#__PURE__*/function () {
39
39
  _ref$localStorageAdap = _ref.localStorageAdaptor,
40
40
  localStorageAdaptor = _ref$localStorageAdap === void 0 ? null : _ref$localStorageAdap,
41
41
  _ref$withCredentials = _ref.withCredentials,
42
- withCredentials = _ref$withCredentials === void 0 ? false : _ref$withCredentials;
42
+ withCredentials = _ref$withCredentials === void 0 ? true : _ref$withCredentials;
43
43
  _classCallCheck(this, RbtApi);
44
44
  this.websocketClient = null;
45
45
 
@@ -56,7 +56,7 @@ var RbtApi = /*#__PURE__*/function () {
56
56
  headers: {
57
57
  'accesskey': accesskey
58
58
  },
59
- withCredentials: withCredentials // Opt-in: only send cookies when explicitly enabled
59
+ withCredentials: withCredentials // Send cookies by default (can be disabled with useCookies: false)
60
60
  });
61
61
  this.axios.__rbtApiInstance = this;
62
62
  if (localStorageAdaptor) {
@@ -1,4 +1,4 @@
1
1
  // Auto-generated version file
2
2
  // DO NOT EDIT - This file is automatically updated from package.json
3
- // Version: 1.9.2
4
- export var version = '1.9.2';
3
+ // Version: 1.9.3
4
+ export var version = '1.9.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/index.js CHANGED
@@ -78,7 +78,7 @@ export default class Roboto{
78
78
  accesskey: accessKey, // Use passed accessKey
79
79
  baseUrl: `https://${host}`, // Use passed host
80
80
  localStorageAdaptor: storageAdaptor,
81
- withCredentials: useCookies && isBrowser // Only use credentials in browser with cookies enabled
81
+ withCredentials: useCookies && isBrowser // Enabled by default in browser (disable with useCookies: false)
82
82
  };
83
83
 
84
84
  // Add apikey and authtoken if provided directly
package/src/rbt_api.js CHANGED
@@ -8,7 +8,7 @@ import { openDB } from 'idb';
8
8
 
9
9
  export default class RbtApi {
10
10
 
11
- constructor({ baseUrl, accesskey, authtoken=null, apikey=null, localStorageAdaptor=null, withCredentials=false }) {
11
+ constructor({ baseUrl, accesskey, authtoken=null, apikey=null, localStorageAdaptor=null, withCredentials=true }) {
12
12
 
13
13
  console.log('[RbtApi] constructor received:', { baseUrl, accesskey, authtoken, apikey, withCredentials });
14
14
 
@@ -28,7 +28,7 @@ export default class RbtApi {
28
28
  headers: {
29
29
  'accesskey': accesskey
30
30
  },
31
- withCredentials: withCredentials // Opt-in: only send cookies when explicitly enabled
31
+ withCredentials: withCredentials // Send cookies by default (can be disabled with useCookies: false)
32
32
  });
33
33
  this.axios.__rbtApiInstance = this;
34
34
 
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Auto-generated version file
2
2
  // DO NOT EDIT - This file is automatically updated from package.json
3
- // Version: 1.9.2
4
- export const version = '1.9.2';
3
+ // Version: 1.9.3
4
+ export const version = '1.9.3';