Socket
Socket
Sign inDemoInstall

mwn

Package Overview
Dependencies
34
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.2 to 0.10.3

6

build/bot.d.ts

@@ -159,3 +159,3 @@ /**

*
* @param {Object} [customOptions] - Custom options
* @param [customOptions] - Custom options
*/

@@ -200,5 +200,5 @@ };

*
* @param {Object} [customOptions] - Custom options
* @param [customOptions] - Custom options
*/
constructor(customOptions?: MwnOptions);
constructor(customOptions?: MwnOptions | string);
/**

@@ -205,0 +205,0 @@ * Initialize a bot object. Login to the wiki and fetch editing tokens. If OAuth

@@ -66,3 +66,3 @@ "use strict";

*
* @param {Object} [customOptions] - Custom options
* @param [customOptions] - Custom options
*/

@@ -196,7 +196,6 @@ constructor(customOptions) {

this.sleep = utils_1.sleep;
if (process.version) {
let majorVersionMatch = process.version.match(/v(\d+)/);
let majorVersion = majorVersionMatch && majorVersionMatch[1] && parseInt(majorVersionMatch[1]);
if (process.versions.node) {
let majorVersion = parseInt(process.versions.node);
if (majorVersion < 10) {
log_1.log(`[W] Detected node version ${process.version}, but mwn is only supported on node v10.x`);
log_1.log(`[W] Detected node version v${process.versions.node}, but mwn is supported only on node v10.x and above`);
}

@@ -203,0 +202,0 @@ }

{
"name": "mwn",
"version": "0.10.2",
"version": "0.10.3",
"description": "JavaScript & TypeScript MediaWiki bot framework for Node.js",

@@ -5,0 +5,0 @@ "main": "./build/bot.js",

@@ -171,6 +171,8 @@ # mwn

// if the wiki has Extension:OAuth enabled
oauth_consumer_token: "16_DIGIT_ALPHANUMERIC_KEY",
oauth_consumer_secret: "20_DIGIT_ALPHANUMERIC_KEY",
oauth_access_token: "16_DIGIT_ALPHANUMERIC_KEY",
oauth_access_secret: "20_DIGIT_ALPHANUMERIC_KEY",
OAuthCredentials: {
consumerToken: "16_DIGIT_ALPHANUMERIC_KEY",
consumerSecret: "20_DIGIT_ALPHANUMERIC_KEY",
accessToken: "16_DIGIT_ALPHANUMERIC_KEY",
accessSecret: "20_DIGIT_ALPHANUMERIC_KEY"
},

@@ -177,0 +179,0 @@ // Set your user agent (required for WMF wikis, see https://meta.wikimedia.org/wiki/User-Agent_policy):

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc