chat-pane 2.4.26-beta → 2.4.26-beta4

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/main.js CHANGED
@@ -31643,7 +31643,7 @@ var Fetcher = /*#__PURE__*/function () {
31643
31643
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
31644
31644
  var request = _step.value;
31645
31645
  var _response = kb.any(request, this.ns.link('response'), null, meta);
31646
- if (_response !== undefined) {
31646
+ if (_response != undefined) {
31647
31647
  // ts
31648
31648
  var quad = kb.statementsMatching(_response, this.ns.link('outOfDate'), true, meta);
31649
31649
  kb.remove(quad);
@@ -41799,7 +41799,7 @@ var IndexedFormula = /*#__PURE__*/function (_Formula) {
41799
41799
  }
41800
41800
 
41801
41801
  /**
41802
- * Removes all statements in a doc, along with the related metadata including request/response
41802
+ * Removes all statements in a doc, along with the related metadata including request/response/status
41803
41803
  * @param doc - The document / graph
41804
41804
  */
41805
41805
  }, {
@@ -41811,6 +41811,7 @@ var IndexedFormula = /*#__PURE__*/function (_Formula) {
41811
41811
  for (var i = 0; i < sts.length; i++) {
41812
41812
  this.removeStatement(sts[i]);
41813
41813
  }
41814
+ this.removeMatches(doc, null, null);
41814
41815
  return this;
41815
41816
  }
41816
41817
  }, {
@@ -41818,24 +41819,22 @@ var IndexedFormula = /*#__PURE__*/function (_Formula) {
41818
41819
  value: function removeMetadata(doc) {
41819
41820
  var meta = this.sym('chrome://TheCurrentSession'); // or this.rdfFactory.namedNode('chrome://TheCurrentSession')
41820
41821
  var linkNamespaceURI = 'http://www.w3.org/2007/ont/link#'; // alain
41821
- // remove request/response and metadata
41822
+ // remove status/response/request metadata
41822
41823
  var requests = this.statementsMatching(undefined, this.sym("".concat(linkNamespaceURI, "requestedURI")), this.rdfFactory.literal(doc.value), meta).map(function (st) {
41823
41824
  return st.subject;
41824
41825
  });
41825
41826
  for (var r = 0; r < requests.length; r++) {
41826
41827
  var request = requests[r];
41827
41828
  if (request != undefined) {
41829
+ var status = this.any(request, this.sym("".concat(linkNamespaceURI, "status")), null, meta);
41830
+ if (status != undefined) {
41831
+ this.removeMatches(status, this.sym("".concat(linkNamespaceURI, "status")), null, meta);
41832
+ }
41828
41833
  var response = this.any(request, this.sym("".concat(linkNamespaceURI, "response")), null, meta);
41829
41834
  if (response != undefined) {
41830
41835
  // ts
41831
41836
  this.removeMatches(response, null, null, meta);
41832
41837
  }
41833
- // may be not needed
41834
- var status = this.any(request, this.sym("".concat(linkNamespaceURI, "status")), null, meta);
41835
- if (status != undefined) {
41836
- // ts
41837
- this.removeMatches(status, null, null, meta);
41838
- }
41839
41838
  this.removeMatches(request, null, null, meta);
41840
41839
  }
41841
41840
  }
@@ -61610,10 +61609,10 @@ Object.defineProperty(exports, "__esModule", ({
61610
61609
  }));
61611
61610
  exports.versionInfo = void 0;
61612
61611
  var versionInfo = exports.versionInfo = {
61613
- buildTime: '2024-03-24T21:41:25Z',
61614
- commit: '449dd33e9f399ea67f30532cf7e2fe453826741f',
61612
+ buildTime: '2024-03-28T17:08:41Z',
61613
+ commit: '4497ebdbab0526ae785adcc2a3db5a765048ec93',
61615
61614
  npmInfo: {
61616
- 'solid-ui': '2.4.33-beta',
61615
+ 'solid-ui': '2.4.33-beta4',
61617
61616
  npm: '8.19.4',
61618
61617
  node: '18.19.0',
61619
61618
  acorn: '8.10.0',