@digipair/skill-client-sse 0.38.6 → 0.39.1

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/index.cjs.js CHANGED
@@ -535,7 +535,7 @@ function defaultOnOpen(response) {
535
535
  }
536
536
  }
537
537
 
538
- let WebSSEService = class WebSSEService {
538
+ let ClientSSEService = class ClientSSEService {
539
539
  async connect(params, _pinsSettingsList, context) {
540
540
  const { url = '', event = 'message', message = [], open = [], close = [], error = [], options = {} } = params;
541
541
  await fetchEventSource(url, _extends({
@@ -568,7 +568,6 @@ let WebSSEService = class WebSSEService {
568
568
  }, options));
569
569
  }
570
570
  };
571
- const service = new WebSSEService();
572
- const connect = (params, pinsSettingsList, context)=>service.connect(params, pinsSettingsList, context);
571
+ const connect = (params, pinsSettingsList, context)=>new ClientSSEService().connect(params, pinsSettingsList, context);
573
572
 
574
573
  exports.connect = connect;
package/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './libs/skill-vespa/src/index';
1
+ export * from './libs/skill-client-sse/src/index';
package/index.esm.js CHANGED
@@ -23489,14 +23489,14 @@ function indent(str, spaces) {
23489
23489
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
23490
23490
  // match is required
23491
23491
  if (!match) {
23492
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23492
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23493
23493
  v: nextMatch1
23494
23494
  };
23495
23495
  }
23496
23496
  var token = match.token, offset = match.offset;
23497
23497
  i1 += offset;
23498
23498
  if (token === " ") {
23499
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23499
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23500
23500
  }
23501
23501
  tokens1 = _to_consumable_array$1(tokens1).concat([
23502
23502
  token
@@ -23515,7 +23515,7 @@ function indent(str, spaces) {
23515
23515
  if (contextKeys.some(function(el) {
23516
23516
  return el.startsWith(name);
23517
23517
  })) {
23518
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23518
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23519
23519
  }
23520
23520
  if (dateTimeIdentifiers.some(function(el) {
23521
23521
  return el === name;
@@ -23534,9 +23534,9 @@ function indent(str, spaces) {
23534
23534
  if (dateTimeIdentifiers.some(function(el) {
23535
23535
  return el.startsWith(name);
23536
23536
  })) {
23537
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
23537
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
23538
23538
  }
23539
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
23539
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
23540
23540
  v: nextMatch1
23541
23541
  };
23542
23542
  };
@@ -27982,7 +27982,7 @@ function defaultOnOpen(response) {
27982
27982
  }
27983
27983
  }
27984
27984
 
27985
- let WebSSEService = class WebSSEService {
27985
+ let ClientSSEService = class ClientSSEService {
27986
27986
  async connect(params, _pinsSettingsList, context) {
27987
27987
  const { url = '', event = 'message', message = [], open = [], close = [], error = [], options = {} } = params;
27988
27988
  await fetchEventSource(url, _extends({
@@ -28015,7 +28015,6 @@ let WebSSEService = class WebSSEService {
28015
28015
  }, options));
28016
28016
  }
28017
28017
  };
28018
- const service = new WebSSEService();
28019
- const connect = (params, pinsSettingsList, context)=>service.connect(params, pinsSettingsList, context);
28018
+ const connect = (params, pinsSettingsList, context)=>new ClientSSEService().connect(params, pinsSettingsList, context);
28020
28019
 
28021
28020
  export { connect };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-client-sse",
3
- "version": "0.38.6",
3
+ "version": "0.39.1",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"