wikiploy 1.3.3 → 1.3.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/assets/test.css +1 -1
- package/assets/test.js +1 -1
- package/package.json +2 -2
- package/src/WikiOps.js +2 -2
- package/src/Wiki_bot_test.js +10 -10
package/assets/test.css
CHANGED
package/assets/test.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wikiploy",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "User scripts and gadgets deployment for MediaWiki (Wikipedia).",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/Eccenux/Wikiploy#readme",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"puppeteer": "20.
|
|
28
|
+
"puppeteer": "20.8.x"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"chai": "4.x",
|
package/src/WikiOps.js
CHANGED
|
@@ -38,7 +38,7 @@ export default class WikiOps {
|
|
|
38
38
|
await this.initViewport(page);
|
|
39
39
|
await this.cache.enable(page);
|
|
40
40
|
await this.disarmUnloadWarning(page);
|
|
41
|
-
const timeout =
|
|
41
|
+
const timeout = 7000;
|
|
42
42
|
page.setDefaultTimeout(timeout);
|
|
43
43
|
return page;
|
|
44
44
|
}
|
|
@@ -124,7 +124,7 @@ export default class WikiOps {
|
|
|
124
124
|
|
|
125
125
|
/** Change intput's value. */
|
|
126
126
|
async fillEdit(page, value) {
|
|
127
|
-
const timeout =
|
|
127
|
+
const timeout = 14000;
|
|
128
128
|
await waitForSelector('#editform', page, {
|
|
129
129
|
timeout,
|
|
130
130
|
});
|
package/src/Wiki_bot_test.js
CHANGED
|
@@ -16,16 +16,16 @@ const ployBot = new Wikiploy();
|
|
|
16
16
|
src: 'assets/test.css',
|
|
17
17
|
dst: '~/test-jsbot--test.css',
|
|
18
18
|
}));
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
configs.push(new DeployConfig({
|
|
20
|
+
src: 'assets/test.js',
|
|
21
|
+
dst: '~/test-jsbot--test.js',
|
|
22
|
+
site: 'en.wikipedia.org',
|
|
23
|
+
}));
|
|
24
|
+
configs.push(new DeployConfig({
|
|
25
|
+
src: 'assets/test.css',
|
|
26
|
+
dst: '~/test-jsbot--test.css',
|
|
27
|
+
site: 'en.wikipedia.org',
|
|
28
|
+
}));
|
|
29
29
|
await ployBot.deploy(configs);
|
|
30
30
|
})().catch(err => {
|
|
31
31
|
console.error(err);
|