@digipair/skill-client-sse 0.119.3 → 0.119.5

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.cjs.js CHANGED
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var engine = require('@digipair/engine');
4
+ var nodeFetchEventSource = require('@ai-zen/node-fetch-event-source');
4
5
  var fetchEventSource$1 = require('@microsoft/fetch-event-source');
5
6
 
6
- const fetchEventSource = typeof window === 'undefined' ? fetchEventSource$1.fetchEventSource : fetchEventSource$1.fetchEventSource;
7
+ const fetchEventSource = typeof window === 'undefined' ? nodeFetchEventSource.fetchEventSource : fetchEventSource$1.fetchEventSource;
7
8
  let ClientSSEService = class ClientSSEService {
8
9
  async connect(params, _pinsSettingsList, context) {
9
10
  const { url = '', event = 'message', message = [], open = [], close = [], error = [], options = {} } = params;
package/dist/index.esm.js CHANGED
@@ -1,3 +1,5 @@
1
+ import { fetchEventSource as fetchEventSource$2 } from '@ai-zen/node-fetch-event-source';
2
+
1
3
  function _mergeNamespaces(n, m) {
2
4
  m.forEach(function(e) {
3
5
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
@@ -22838,14 +22840,14 @@ function indent(str, spaces) {
22838
22840
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22839
22841
  // match is required
22840
22842
  if (!match) {
22841
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22843
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
22842
22844
  v: nextMatch1
22843
22845
  };
22844
22846
  }
22845
22847
  var token = match.token, offset = match.offset;
22846
22848
  i1 += offset;
22847
22849
  if (token === ' ') {
22848
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22850
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22849
22851
  }
22850
22852
  tokens1 = _to_consumable_array$4(tokens1).concat([
22851
22853
  token
@@ -22864,7 +22866,7 @@ function indent(str, spaces) {
22864
22866
  if (contextKeys.some(function(el) {
22865
22867
  return el.startsWith(name);
22866
22868
  })) {
22867
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22869
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22868
22870
  }
22869
22871
  if (dateTimeIdentifiers.some(function(el) {
22870
22872
  return el === name;
@@ -22883,9 +22885,9 @@ function indent(str, spaces) {
22883
22885
  if (dateTimeIdentifiers.some(function(el) {
22884
22886
  return el.startsWith(name);
22885
22887
  })) {
22886
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
22888
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22887
22889
  }
22888
- return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
22890
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
22889
22891
  v: nextMatch1
22890
22892
  };
22891
22893
  };
@@ -45090,7 +45092,7 @@ function defaultOnOpen(response) {
45090
45092
  }
45091
45093
  }
45092
45094
 
45093
- const fetchEventSource = typeof window === 'undefined' ? fetchEventSource$1 : fetchEventSource$1;
45095
+ const fetchEventSource = typeof window === 'undefined' ? fetchEventSource$2 : fetchEventSource$1;
45094
45096
  let ClientSSEService = class ClientSSEService {
45095
45097
  async connect(params, _pinsSettingsList, context) {
45096
45098
  const { url = '', event = 'message', message = [], open = [], close = [], error = [], options = {} } = params;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-client-sse",
3
- "version": "0.119.3",
3
+ "version": "0.119.5",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -31,6 +31,7 @@
31
31
  "name": "skill-client-sse"
32
32
  },
33
33
  "dependencies": {
34
+ "@microsoft/fetch-event-source": "^2.0.1",
34
35
  "@ai-zen/node-fetch-event-source": "2.1.4"
35
36
  }
36
37
  }