@docusaurus/theme-search-algolia 4.0.0-canary-6870 → 4.0.0-canary-6872

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/lib/opensearch.js CHANGED
@@ -10,7 +10,7 @@ exports.shouldCreateOpenSearchFile = shouldCreateOpenSearchFile;
10
10
  exports.createOpenSearchFile = createOpenSearchFile;
11
11
  exports.createOpenSearchHeadTags = createOpenSearchHeadTags;
12
12
  const tslib_1 = require("tslib");
13
- const path_1 = tslib_1.__importDefault(require("path"));
13
+ const node_path_1 = tslib_1.__importDefault(require("node:path"));
14
14
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
15
15
  const lodash_1 = tslib_1.__importDefault(require("lodash"));
16
16
  const eta_1 = require("eta");
@@ -46,7 +46,7 @@ async function createOpenSearchFile({ context, }) {
46
46
  }
47
47
  const fileContent = createOpenSearchFileContent({ context, searchPagePath });
48
48
  try {
49
- await fs_extra_1.default.writeFile(path_1.default.join(outDir, OPEN_SEARCH_FILENAME), fileContent);
49
+ await fs_extra_1.default.writeFile(node_path_1.default.join(outDir, OPEN_SEARCH_FILENAME), fileContent);
50
50
  }
51
51
  catch (err) {
52
52
  throw new Error('Generating OpenSearch file failed.', { cause: err });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-search-algolia",
3
- "version": "4.0.0-canary-6870",
3
+ "version": "4.0.0-canary-6872",
4
4
  "description": "Algolia search component for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": [
@@ -35,13 +35,13 @@
35
35
  "dependencies": {
36
36
  "@algolia/autocomplete-core": "^1.19.10",
37
37
  "@docsearch/react": "^4.7.0",
38
- "@docusaurus/core": "4.0.0-canary-6870",
39
- "@docusaurus/plugin-content-docs": "4.0.0-canary-6870",
40
- "@docusaurus/theme-classic": "4.0.0-canary-6870",
41
- "@docusaurus/theme-common": "4.0.0-canary-6870",
42
- "@docusaurus/theme-translations": "4.0.0-canary-6870",
43
- "@docusaurus/utils": "4.0.0-canary-6870",
44
- "@docusaurus/utils-validation": "4.0.0-canary-6870",
38
+ "@docusaurus/core": "4.0.0-canary-6872",
39
+ "@docusaurus/plugin-content-docs": "4.0.0-canary-6872",
40
+ "@docusaurus/theme-classic": "4.0.0-canary-6872",
41
+ "@docusaurus/theme-common": "4.0.0-canary-6872",
42
+ "@docusaurus/theme-translations": "4.0.0-canary-6872",
43
+ "@docusaurus/utils": "4.0.0-canary-6872",
44
+ "@docusaurus/utils-validation": "4.0.0-canary-6872",
45
45
  "algoliasearch": "^5.57.0",
46
46
  "algoliasearch-helper": "^3.29.3",
47
47
  "clsx": "^2.1.1",
@@ -52,8 +52,8 @@
52
52
  "utility-types": "^3.11.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@docusaurus/module-type-aliases": "4.0.0-canary-6870",
56
- "@docusaurus/types": "4.0.0-canary-6870"
55
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6872",
56
+ "@docusaurus/types": "4.0.0-canary-6872"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": "^19.3.0",
@@ -62,5 +62,5 @@
62
62
  "engines": {
63
63
  "node": ">=24.21"
64
64
  },
65
- "gitHead": "ea3b6292c97af2e26f559f112cf9ea75a58a09c8"
65
+ "gitHead": "97ddb0451f086d8a1c20967f0d324d667dc58ebf"
66
66
  }
package/src/opensearch.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import path from 'path';
8
+ import path from 'node:path';
9
9
  import fs from 'fs-extra';
10
10
  import _ from 'lodash';
11
11
  import {Eta} from 'eta';