@histoire/plugin-screenshot 0.17.17 → 1.0.0-alpha.2
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/README.md +1 -1
- package/dist/index.js +2 -2
- package/package.json +9 -9
- package/src/index.ts +3 -3
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@ pnpm add -D @histoire/plugin-screenshot
|
|
|
7
7
|
Add the plugin in histoire config:
|
|
8
8
|
|
|
9
9
|
```js
|
|
10
|
-
import { defineConfig } from 'histoire'
|
|
11
10
|
import { HstScreenshot } from '@histoire/plugin-screenshot'
|
|
11
|
+
import { defineConfig } from 'histoire'
|
|
12
12
|
|
|
13
13
|
export default defineConfig({
|
|
14
14
|
plugins: [
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@histoire/plugin-screenshot",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0-alpha.2",
|
|
5
5
|
"description": "Histoire plugin to take screenshots for visual regression testing",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Guillaume Chau"
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
"module": "./dist/index.js",
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"histoire": "^0.
|
|
26
|
+
"histoire": "^1.0.0-alpha.2"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"capture-website": "^2.
|
|
30
|
-
"defu": "^6.1.
|
|
31
|
-
"fs-extra": "^
|
|
32
|
-
"pathe": "^1.1.
|
|
29
|
+
"capture-website": "^4.2.0",
|
|
30
|
+
"defu": "^6.1.4",
|
|
31
|
+
"fs-extra": "^11.2.0",
|
|
32
|
+
"pathe": "^1.1.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@types/node": "^
|
|
36
|
-
"typescript": "
|
|
37
|
-
"histoire": "0.
|
|
35
|
+
"@types/node": "^22.10.1",
|
|
36
|
+
"typescript": "5.6.3",
|
|
37
|
+
"histoire": "1.0.0-alpha.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "rimraf dist && tsc -d",
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import fs from 'fs-extra'
|
|
1
|
+
import type { FileOptions } from 'capture-website'
|
|
3
2
|
import type { Plugin } from 'histoire'
|
|
4
3
|
import { defu } from 'defu'
|
|
5
|
-
import
|
|
4
|
+
import fs from 'fs-extra'
|
|
5
|
+
import path from 'pathe'
|
|
6
6
|
|
|
7
7
|
interface ScreenshotPresets {
|
|
8
8
|
/**
|