@miso.ai/client-sdk-core 1.8.1 → 1.8.2-beta.2

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.
@@ -4,14 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.NAME = exports.GROUP = void 0;
7
- const GROUP = Object.freeze({
7
+ const GROUP = exports.GROUP = Object.freeze({
8
8
  ASK: 'ask',
9
9
  SEARCH: 'search',
10
10
  RECOMMENDATION: 'recommendation',
11
11
  INTERACTIONS: 'interactions'
12
12
  });
13
- exports.GROUP = GROUP;
14
- const NAME = Object.freeze({
13
+ const NAME = exports.NAME = Object.freeze({
15
14
  QUESTIONS: 'questions',
16
15
  RELATED_QUESTIONS: 'related_questions',
17
16
  SEARCH: 'search',
@@ -24,5 +23,4 @@ const NAME = Object.freeze({
24
23
  USER_TO_HISTORY: 'user_to_history',
25
24
  PRODUCT_TO_PRODUCTS: 'product_to_products',
26
25
  UPLOAD: 'upload'
27
- });
28
- exports.NAME = NAME;
26
+ });
@@ -9,10 +9,9 @@ var _context = _interopRequireDefault(require("./context.js"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
10
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
- var _default = {
12
+ var _default = exports.default = {
13
13
  api,
14
14
  context: {
15
15
  Context: _context.default
16
16
  }
17
- };
18
- exports.default = _default;
17
+ };
@@ -68,5 +68,4 @@ MisoClient.helpers = helpers;
68
68
  (0, _commons.defineValues)(MisoClient, {
69
69
  uuid: (0, _commons.uuidv4)()
70
70
  });
71
- var _default = (0, _root.init)(MisoClient);
72
- exports.default = _default;
71
+ var _default = exports.default = (0, _root.init)(MisoClient);
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.API = void 0;
7
- const API = Object.freeze({
7
+ const API = exports.API = Object.freeze({
8
8
  DATA_ENDPOINT: 'https://api-edge.askmiso.com/v1',
9
9
  EVENT_ENDPOINT: 'https://api.askmiso.com/v1'
10
- });
11
- exports.API = API;
10
+ });
package/dist/cjs/root.js CHANGED
@@ -33,8 +33,7 @@ class Root extends _commons.Component {
33
33
  return this._clients[0] || this._any || (this._any = (await this._events.once('create')).data);
34
34
  }
35
35
  }
36
- const root = new Root();
37
- exports.root = root;
36
+ const root = exports.root = new Root();
38
37
  function init(MisoClient) {
39
38
  const pluginRoot = root._pluginRoot;
40
39
  root.MisoClient = pluginRoot.MisoClient = MisoClient;
@@ -4,5 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = '1.8.1';
8
- exports.default = _default;
7
+ var _default = exports.default = '1.8.2-beta.2';
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  "url": "https://github.com/MisoAI/miso-client-js-sdk/issues"
30
30
  },
31
31
  "dependencies": {
32
- "@miso.ai/commons": "1.8.1"
32
+ "@miso.ai/commons": "1.8.2-beta.2"
33
33
  },
34
- "version": "1.8.1"
34
+ "version": "1.8.2-beta.2"
35
35
  }
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.8.1';
1
+ export default '1.8.2-beta.2';