@docusaurus/lqip-loader 4.0.0-canary-6870 → 4.0.0-canary-6873

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.
Files changed (2) hide show
  1. package/lib/lqip.js +2 -2
  2. package/package.json +3 -3
package/lib/lqip.js CHANGED
@@ -8,7 +8,7 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.base64 = base64;
10
10
  const tslib_1 = require("tslib");
11
- const path_1 = tslib_1.__importDefault(require("path"));
11
+ const node_path_1 = tslib_1.__importDefault(require("node:path"));
12
12
  const logger_1 = tslib_1.__importDefault(require("@docusaurus/logger"));
13
13
  const sharp_1 = tslib_1.__importDefault(require("sharp"));
14
14
  // eslint-disable-next-line @typescript-eslint/no-require-imports
@@ -25,7 +25,7 @@ const SUPPORTED_MIMES = {
25
25
  */
26
26
  const toBase64 = (extMimeType, data) => `data:${extMimeType};base64,${data.toString('base64')}`;
27
27
  async function base64(file) {
28
- let extension = path_1.default.extname(file);
28
+ let extension = node_path_1.default.extname(file);
29
29
  extension = extension.split('.').pop();
30
30
  const mime = SUPPORTED_MIMES[extension];
31
31
  if (!mime) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/lqip-loader",
3
- "version": "4.0.0-canary-6870",
3
+ "version": "4.0.0-canary-6873",
4
4
  "description": "Low Quality Image Placeholders (LQIP) loader for webpack.",
5
5
  "main": "lib/index.js",
6
6
  "publishConfig": {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@docusaurus/logger": "4.0.0-canary-6870",
20
+ "@docusaurus/logger": "4.0.0-canary-6873",
21
21
  "file-loader": "^6.2.0",
22
22
  "sharp": "^0.35.1",
23
23
  "tslib": "^2.8.1"
@@ -29,5 +29,5 @@
29
29
  "@types/file-loader": "^5.0.4",
30
30
  "webpack": "^5.111.0"
31
31
  },
32
- "gitHead": "ea3b6292c97af2e26f559f112cf9ea75a58a09c8"
32
+ "gitHead": "fdb1d5ba64c31fc9185a221a2e3f510e56b2c654"
33
33
  }