astro-accelerator 0.3.16 → 0.3.17

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.16",
2
+ "version": "0.3.17",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -31,10 +31,10 @@
31
31
  "dts": "tsc ./tests/locate-content.js ./tests/locate-navigation.js ./tests/locate-search.js --allowJs --declaration --emitDeclarationOnly"
32
32
  },
33
33
  "dependencies": {
34
- "@astrojs/mdx": "^1.1.1",
35
- "astro": "^3.2.4",
34
+ "@astrojs/mdx": "^1.1.3",
35
+ "astro": "^3.4.3",
36
36
  "astro-accelerator-utils": "^0.3.2",
37
- "cspell": "^7.3.7",
37
+ "cspell": "^7.3.8",
38
38
  "csv": "^6.3.5",
39
39
  "hast-util-from-selector": "^3.0.0",
40
40
  "html-to-text": "^9.0.5",
@@ -43,7 +43,7 @@
43
43
  "sharp": "^0.32.6"
44
44
  },
45
45
  "devDependencies": {
46
- "@playwright/test": "^1.38.1"
46
+ "@playwright/test": "^1.39.0"
47
47
  },
48
48
  "files": [
49
49
  ".npmrc",
@@ -229,6 +229,10 @@ var scrolled = false;
229
229
 
230
230
  var _synonyms = null;
231
231
 
232
+ /**
233
+ * Gets the list of synonyms if they exist
234
+ * @returns { [ix: string]: string }
235
+ */
232
236
  async function getSynonyms() {
233
237
  if (_synonyms != null) {
234
238
  return _synonyms;
@@ -254,7 +258,7 @@ function replaceSynonyms(queryTerms) {
254
258
  for (let i = 0; i < queryTerms.length; i++) {
255
259
  const term = queryTerms[i];
256
260
  if (synonyms[term] != null) {
257
- queryTerms[i] = synonyms[term];
261
+ queryTerms.push(synonyms[term]);
258
262
  }
259
263
  }
260
264