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.
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/rbt_api.cjs +2 -2
- package/dist/cjs/version.cjs +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/rbt_api.js +2 -2
- package/dist/esm/version.js +2 -2
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/src/rbt_api.js +2 -2
- package/src/version.js +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -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 //
|
|
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
|
package/dist/cjs/rbt_api.cjs
CHANGED
|
@@ -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 ?
|
|
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 //
|
|
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) {
|
package/dist/cjs/version.cjs
CHANGED
|
@@ -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.
|
|
10
|
-
var version = exports.version = '1.9.
|
|
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 //
|
|
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
|
package/dist/esm/rbt_api.js
CHANGED
|
@@ -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 ?
|
|
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 //
|
|
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) {
|
package/dist/esm/version.js
CHANGED
package/package.json
CHANGED
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 //
|
|
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=
|
|
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 //
|
|
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