@karinjs/plugin-puppeteer 1.1.0 → 1.1.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.
|
@@ -6,7 +6,7 @@ import { basePath } from 'node-karin/root';
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@karinjs/plugin-puppeteer",
|
|
9
|
-
version: "1.1.
|
|
9
|
+
version: "1.1.2",
|
|
10
10
|
description: "karin\u7684 puppeteer\u622A\u56FE\u3001\u6E32\u67D3\u63D2\u4EF6",
|
|
11
11
|
keywords: [
|
|
12
12
|
"karin",
|
|
@@ -33,7 +33,7 @@ var package_default = {
|
|
|
33
33
|
sync: 'curl -X PUT "https://registry-direct.npmmirror.com/-/package/@karinjs/plugin-puppeteer/syncs"'
|
|
34
34
|
},
|
|
35
35
|
dependencies: {
|
|
36
|
-
"@snapka/puppeteer": "0.1.
|
|
36
|
+
"@snapka/puppeteer": "0.1.5"
|
|
37
37
|
},
|
|
38
38
|
devDependencies: {
|
|
39
39
|
"node-karin": "^1.13.0"
|
|
@@ -59,7 +59,6 @@ var defaultConfig = {
|
|
|
59
59
|
maxOpenPages: 10,
|
|
60
60
|
pageMode: "reuse",
|
|
61
61
|
pageIdleTimeout: 6e4,
|
|
62
|
-
retries: 2,
|
|
63
62
|
defaultViewport: {
|
|
64
63
|
width: 800,
|
|
65
64
|
height: 600
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getConfig, HMR_KEY, pluginVersion, pluginName } from './chunk-
|
|
1
|
+
import { getConfig, HMR_KEY, pluginVersion, pluginName } from './chunk-PIY2AHNK.js';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import { snapka } from '@snapka/puppeteer';
|
|
4
4
|
export * from '@snapka/puppeteer';
|
package/dist/web.config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { package_default, saveConfig, getConfig } from './chunk-
|
|
1
|
+
import { package_default, saveConfig, getConfig } from './chunk-PIY2AHNK.js';
|
|
2
2
|
import { components } from 'node-karin';
|
|
3
3
|
|
|
4
4
|
var webConfig = {
|
|
@@ -129,13 +129,6 @@ var webConfig = {
|
|
|
129
129
|
defaultSelected: config.findBrowser !== false,
|
|
130
130
|
color: "success"
|
|
131
131
|
}),
|
|
132
|
-
// hmr
|
|
133
|
-
components.switch.create("hmr", {
|
|
134
|
-
label: "\u70ED\u66F4\u65B0",
|
|
135
|
-
description: "\u662F\u5426\u5F00\u542F\u70ED\u66F4\u65B0\uFF0C\u5F00\u542F\u540E\uFF0C\u524D\u7AEF\u70B9\u51FB\u4FDD\u5B58\u540E\u4F1A\u5F3A\u5236\u5173\u95ED\u6240\u6709\u6B63\u5728\u8FDB\u884C\u7684\u622A\u56FE\u4EFB\u52A1\u5E76\u91CD\u8F7D\u914D\u7F6E",
|
|
136
|
-
defaultSelected: config.hmr,
|
|
137
|
-
color: "success"
|
|
138
|
-
}),
|
|
139
132
|
// pipe
|
|
140
133
|
components.switch.create("pipe", {
|
|
141
134
|
label: "\u7BA1\u9053\u6A21\u5F0F",
|
|
@@ -205,20 +198,6 @@ var webConfig = {
|
|
|
205
198
|
}
|
|
206
199
|
]
|
|
207
200
|
}),
|
|
208
|
-
// retries
|
|
209
|
-
components.input.number("retries", {
|
|
210
|
-
label: "\u91CD\u8BD5\u6B21\u6570",
|
|
211
|
-
description: "\u64CD\u4F5C\u5931\u8D25\u65F6\u7684\u6700\u5927\u91CD\u8BD5\u6B21\u6570",
|
|
212
|
-
defaultValue: (config.retries || 2) + "",
|
|
213
|
-
className: "inline-block p-2",
|
|
214
|
-
rules: [
|
|
215
|
-
{
|
|
216
|
-
min: 0,
|
|
217
|
-
max: 10,
|
|
218
|
-
error: "\u91CD\u8BD5\u6B21\u6570\u5FC5\u987B\u57280-10\u4E4B\u95F4"
|
|
219
|
-
}
|
|
220
|
-
]
|
|
221
|
-
}),
|
|
222
201
|
// executablePath
|
|
223
202
|
components.input.string("executablePath", {
|
|
224
203
|
label: "\u6D4F\u89C8\u5668\u53EF\u6267\u884C\u8DEF\u5F84",
|
|
@@ -313,7 +292,6 @@ var webConfig = {
|
|
|
313
292
|
...config,
|
|
314
293
|
maxOpenPages: Number(config.maxOpenPages),
|
|
315
294
|
pageIdleTimeout: Number(config.pageIdleTimeout),
|
|
316
|
-
retries: Number(config.retries),
|
|
317
295
|
slowMo: Number(config.slowMo || 0)
|
|
318
296
|
};
|
|
319
297
|
saveConfig(config);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karinjs/plugin-puppeteer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "karin的 puppeteer截图、渲染插件",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"karin",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@snapka/puppeteer": "0.1.
|
|
22
|
+
"@snapka/puppeteer": "0.1.5"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"node-karin": "^1.13.0"
|