@digipair/skill-vespa 0.84.6 → 0.84.11

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
@@ -48903,7 +48903,7 @@ let VespaService = class VespaService {
48903
48903
  const results = [];
48904
48904
  for (const document of documents){
48905
48905
  // eslint-disable-next-line no-control-regex
48906
- const content = document.content.replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F]/g, '');
48906
+ const content = document.content.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, '');
48907
48907
  const content_embedding = await modelEmbeddings.embedQuery(content);
48908
48908
  const response = await fetch(`${baseUrl}/document/v1/${namespace}/${collection}/docid/${document.uuid}`, {
48909
48909
  signal,
package/index.esm.js CHANGED
@@ -76634,13 +76634,7 @@ const applyTemplate = (value, context)=>{
76634
76634
  if (typeof value === 'string') {
76635
76635
  if (result.startsWith('NOEVAL:')) {
76636
76636
  result = value.substring(7);
76637
- } else {
76638
- const template = handlebars_min.exports.compile(value, {
76639
- noEscape: true
76640
- });
76641
- result = template(context);
76642
- }
76643
- if (result.startsWith('EVALUATE:')) {
76637
+ } else if (result.startsWith('EVALUATE:')) {
76644
76638
  const path = result.replace(/^EVALUATE:/, '');
76645
76639
  result = evaluate(path, _extends({}, context, {
76646
76640
  getTime: (time)=>new Date(time).getTime(),
@@ -76651,6 +76645,11 @@ const applyTemplate = (value, context)=>{
76651
76645
  decodeURIComponent: (value)=>decodeURIComponent(value),
76652
76646
  JSONparse: (value)=>JSON.parse(value)
76653
76647
  }));
76648
+ } else {
76649
+ const template = handlebars_min.exports.compile(value, {
76650
+ noEscape: true
76651
+ });
76652
+ result = template(context);
76654
76653
  }
76655
76654
  } else if (typeof value === 'object' && Array.isArray(value)) {
76656
76655
  result = value.map((item)=>isPinsSettings(item) ? item : applyTemplate(item, context));
@@ -76868,7 +76867,7 @@ let VespaService = class VespaService {
76868
76867
  const results = [];
76869
76868
  for (const document of documents){
76870
76869
  // eslint-disable-next-line no-control-regex
76871
- const content = document.content.replace(/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F]/g, '');
76870
+ const content = document.content.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, '');
76872
76871
  const content_embedding = await modelEmbeddings.embedQuery(content);
76873
76872
  const response = await fetch(`${baseUrl}/document/v1/${namespace}/${collection}/docid/${document.uuid}`, {
76874
76873
  signal,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-vespa",
3
- "version": "0.84.6",
3
+ "version": "0.84.11",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
File without changes