Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

types-mediawiki

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

types-mediawiki - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

.github/workflows/lint.yml

1

jquery/index.d.ts

@@ -1,2 +0,1 @@

import './textSelection';

@@ -1,4 +0,2 @@

declare global {
interface JQuery {

@@ -35,5 +33,4 @@ // one overload for each command

}
}
export {}

@@ -1,2 +0,2 @@

import { title } from './index';
type title = string | mw.Title

@@ -30,3 +30,3 @@ interface ApiOptions {

getToken(type: string, additionalParams?: any | string): JQuery.Promise<string>
getToken(type: string, additionalParams?: any): JQuery.Promise<string>

@@ -47,3 +47,3 @@ badToken(type: string): void

content: string
}) => any | string): JQuery.Promise<any>
}) => any): JQuery.Promise<any>

@@ -70,7 +70,7 @@ newSection(title: title, header: string, message: string, additionalParams?: any): JQuery.Promise<any>

watch(pages: title | title[]): JQuery.Promise<{
watch: { title: string, watched: boolean } | { title: string, watched: boolean }[]
watch: { title: string, watched: boolean } | Array<{ title: string, watched: boolean }>
}>
unwatch(pages: title | title[]): JQuery.Promise<{
watch: { title: string, watched: boolean } | { title: string, watched: boolean }[]
watch: { title: string, watched: boolean } | Array<{ title: string, watched: boolean }>
}>

@@ -101,3 +101,3 @@

chunkedUploadToStash(file, data?, chunkSize?, chunkRetries?): JQuery.Promise<any>
chunkedUploadToStash(file: File, data?: any, chunkSize?: number, chunkRetries?: number): JQuery.Promise<any>

@@ -112,5 +112,3 @@ upload(file: File | Blob | HTMLInputElement, data: any): JQuery.Promise<any>

login(username: string, password: string): JQuery.Promise<any>
}
class ForeignApi extends mw.Api {

@@ -123,1 +121,3 @@ constructor(url: string | mw.Uri, options: ForeignApiOptions)

}
export {}

@@ -1,4 +0,3 @@

interface Hook {
add(...handler: ((...args: any[]) => any)[]): Hook
add(...handler: Array<((...args: any[]) => any)>): Hook
fire(data: any): Hook

@@ -5,0 +4,0 @@ remove(handler: ((...args: any[]) => any)): Hook

@@ -13,4 +13,2 @@ import './Api';

type title = string | mw.Title
declare global {

@@ -20,3 +18,2 @@ namespace mw {

namespace html {

@@ -28,8 +25,8 @@ function escape(s: string): string

class log {
static deprecate(obj: any, key: string, val: any, msg?: string, logName?: string): void
namespace log {
function deprecate(obj: any, key: string, val: any, msg?: string, logName?: string): void
static error(...msg: any[]): void
function error(...msg: any[]): void
static warn(...msg: string[]): void
function warn(...msg: string[]): void
}

@@ -49,1 +46,3 @@

}
export {}

@@ -1,2 +0,1 @@

declare global {

@@ -29,3 +28,3 @@ namespace mw {

function setData(langCode: string, dataKey: string, value?): void
function setData(langCode: string, dataKey: string, value?: any): void
}

@@ -32,0 +31,0 @@ }

@@ -14,4 +14,5 @@ declare global {

function register(modules: string | string[], version?: string | number, dependencies?: string[],
group?: string, source?: string, skip?: string): void
function register(modules: string | string[], version?: string | number,
dependencies?: string[], group?: string, source?: string,
skip?: string): void

@@ -18,0 +19,0 @@ function state(states: any): void

@@ -27,3 +27,3 @@ declare global {

function msg(key: string, ...parameters: string[]): string;
function msg(key: string, ...parameters: string[]): string;
}

@@ -30,0 +30,0 @@ }

@@ -11,7 +11,11 @@ declare global {

namespace notification {
function pause()
function pause(): void
function resume()
function resume(): void
function notify()
function notify(message: string, options?: typeof notification.defaults): {
pause: (() => void)
resume: (() => void)
close: (() => void)
};

@@ -18,0 +22,0 @@ let defaults: {

@@ -1,2 +0,2 @@

import { title } from './index';
type title = string | mw.Title

@@ -75,1 +75,3 @@ declare global {

}
export {}

@@ -13,3 +13,12 @@ declare global {

constructor(uri: string | mw.Uri | any, options?: {
constructor(uri?: string | mw.Uri | {
fragment?: string;
host: string;
password?: string;
path: string;
port?: string;
protocol: string;
query?: any;
user?: string;
}, options?: {
strictMode?: boolean

@@ -16,0 +25,0 @@ overrideKeys?: boolean

@@ -23,5 +23,5 @@ declare global {

function getGroups(callback?: Function): JQuery.Promise<string[]>
function getGroups(callback?: ((groups: string[]) => any)): JQuery.Promise<string[]>
function getRights(callback?: Function): JQuery.Promise<string[]>
function getRights(callback?: ((rights: string[]) => any)): JQuery.Promise<string[]>
}

@@ -28,0 +28,0 @@ }

@@ -12,3 +12,3 @@ declare global {

function debounce(delay: number, callback: Function): (...args: any[]) => void;
function debounce(delay: number, callback: ((...args: any[]) => any)): (...args: any[]) => void;

@@ -15,0 +15,0 @@ function wikiUrlencode(str: string): string;

{
"name": "types-mediawiki",
"version": "0.3.0",
"version": "0.4.0",
"description": "TypeScript definitions for MediaWiki JS interface",
"types": "index.d.ts",
"scripts": {
"lint": "npx dtslint --localTs node_modules/typescript/lib ."
},
"repository": {

@@ -16,4 +19,6 @@ "type": "git",

"dependencies": {
"@types/jquery": "^3.5.5"
"@types/jquery": "^3.5.5",
"dtslint": "^4.0.6",
"typescript": "^4.1.3"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc