@rspress/plugin-medium-zoom 1.39.3 → 1.39.4

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/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { RsbuildPlugin } from '@rsbuild/core';
4
4
  import type { ZoomOptions } from 'medium-zoom';
5
5
 
6
6
  /**
7
- * There are two ways to define what addtion routes represent.
7
+ * There are two ways to define what addition routes represent.
8
8
  * 1. Define filepath, then the content will be read from the file.
9
9
  * 2. Define content, then then content will be written to temp file and read from it.
10
10
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/plugin-medium-zoom",
3
- "version": "1.39.3",
3
+ "version": "1.39.4",
4
4
  "description": "A plugin for rspress to zoom images in docs.",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -9,50 +9,50 @@
9
9
  "directory": "packages/plugin-medium-zoom"
10
10
  },
11
11
  "license": "MIT",
12
+ "sideEffects": [
13
+ "*.css",
14
+ "*.less",
15
+ "*.sass",
16
+ "*.scss"
17
+ ],
12
18
  "type": "module",
13
- "jsnext:source": "./src/index.ts",
14
- "types": "./dist/index.d.ts",
15
19
  "main": "./dist/index.js",
16
20
  "module": "./dist/node/index.js",
17
- "engines": {
18
- "node": ">=14.17.6"
21
+ "types": "./dist/index.d.ts",
22
+ "files": [
23
+ "dist",
24
+ "src"
25
+ ],
26
+ "dependencies": {
27
+ "medium-zoom": "1.1.0"
19
28
  },
20
29
  "devDependencies": {
21
30
  "@microsoft/api-extractor": "^7.48.1",
22
- "@modern-js/tsconfig": "2.63.3",
23
- "@rslib/core": "0.1.5",
31
+ "@modern-js/tsconfig": "2.63.5",
32
+ "@rslib/core": "0.2.2",
24
33
  "@types/node": "^18.11.17",
25
34
  "@types/react": "^18.3.18",
26
35
  "@types/react-dom": "^18.3.5",
27
36
  "react": "^18.3.1",
28
37
  "typescript": "^5.5.3",
29
38
  "vitest": "2.1.8",
30
- "@rspress/shared": "1.39.3"
39
+ "@rspress/shared": "1.39.4"
31
40
  },
32
41
  "peerDependencies": {
33
- "@rspress/runtime": "^1.39.3"
42
+ "@rspress/runtime": "^1.39.4"
43
+ },
44
+ "engines": {
45
+ "node": ">=14.17.6"
34
46
  },
35
- "sideEffects": [
36
- "*.css",
37
- "*.less",
38
- "*.sass",
39
- "*.scss"
40
- ],
41
- "files": [
42
- "dist",
43
- "src"
44
- ],
45
47
  "publishConfig": {
46
48
  "access": "public",
47
49
  "provenance": true,
48
50
  "registry": "https://registry.npmjs.org/"
49
51
  },
50
- "dependencies": {
51
- "medium-zoom": "1.1.0"
52
- },
52
+ "jsnext:source": "./src/index.ts",
53
53
  "scripts": {
54
- "dev": "rslib build -w",
55
54
  "build": "rslib build",
55
+ "dev": "rslib build -w",
56
56
  "reset": "rimraf ./**/node_modules",
57
57
  "test": "vitest run --passWithNoTests"
58
58
  }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import path from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
- import { normalizePosixPath, type RspressPlugin } from '@rspress/shared';
3
+ import { type RspressPlugin, normalizePosixPath } from '@rspress/shared';
4
4
  import type { ZoomOptions } from 'medium-zoom';
5
5
 
6
6
  interface Options {