Comparing version 1.11.0 to 1.11.1
{ | ||
"name": "wikiapi", | ||
"title": "JavaScript MediaWiki API for node.js", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "A simple way to access MediaWiki API via JavaScript with simple wikitext parser.", | ||
@@ -6,0 +6,0 @@ "keywords": [ "MediaWiki", "MediaWiki API", "wikitext", "ECMAScript 2017", "wikidata", "wdq", "sparql" ], |
@@ -112,5 +112,5 @@ [![npm version](https://badge.fury.io/js/wikiapi.svg)](https://www.npmjs.com/package/wikiapi) | ||
// Upload a local file directly: | ||
await result = wiki.upload_file({ file_path: '/local/file/path', comment: '', text: '' }); | ||
let result = await wiki.upload_file({ file_path: '/local/file/path', comment: '', text: '' }); | ||
// Upload file from URL: | ||
await result = wiki.upload_file({ media_url: 'https://media.url/name.jpg', comment: '', text: '' }); | ||
result = await wiki.upload_file({ media_url: 'https://media.url/name.jpg', comment: '', text: '' }); | ||
})(); | ||
@@ -117,0 +117,0 @@ |
@@ -532,5 +532,5 @@ 'use strict'; | ||
// Upload a local file directly: | ||
//await result = wiki_session.upload_file({ file_path: '/local/file/path', comment: '', }); | ||
//let result = await wiki_session.upload_file({ file_path: '/local/file/path', comment: '', }); | ||
// Upload file from URL: | ||
//await result = wiki_session.upload_file({ media_url: 'https://media.url/name.jpg', comment: '', }); | ||
//let result = await wiki_session.upload_file({ media_url: 'https://media.url/name.jpg', comment: '', }); | ||
// Other file_data options: @see https://github.com/kanasimi/CeJS/blob/master/application/net/wiki/edit.js#L912 /options.text/ | ||
@@ -537,0 +537,0 @@ // filename:'Will set via .file_path or .media_url if not settled.', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48745