wikibase-sdk
Advanced tools
Comparing version 9.0.1 to 9.0.2
@@ -16,10 +16,2 @@ import type { Url, WmLanguageCode } from '../types/options.js'; | ||
export declare function getSitelinkData(site: Site | Url): SitelinkData; | ||
export declare const specialSites: { | ||
commonswiki: string; | ||
mediawikiwiki: string; | ||
metawiki: string; | ||
specieswiki: string; | ||
wikidatawiki: string; | ||
wikimaniawiki: string; | ||
}; | ||
export declare const isSitelinkKey: (site: string) => boolean; | ||
@@ -26,0 +18,0 @@ declare const projectsNames: string[]; |
import { fixedEncodeURIComponent, replaceSpaceByUnderscores, rejectObsoleteInterface } from '../utils/utils.js'; | ||
import { languages } from './sitelinks_languages.js'; | ||
import { specialSites } from './special_sites.js'; | ||
const wikidataBase = 'https://www.wikidata.org/wiki/'; | ||
@@ -87,10 +88,2 @@ export function getSitelinkUrl({ site, title }) { | ||
} | ||
export const specialSites = { | ||
commonswiki: 'commons', | ||
mediawikiwiki: 'mediawiki', | ||
metawiki: 'meta', | ||
specieswiki: 'specieswiki', | ||
wikidatawiki: 'wikidata', | ||
wikimaniawiki: 'wikimania', | ||
}; | ||
export const isSitelinkKey = (site) => { | ||
@@ -97,0 +90,0 @@ try { |
@@ -1,2 +0,2 @@ | ||
import { specialSites } from '../helpers/sitelinks.js'; | ||
import { specialSites } from '../helpers/special_sites.js'; | ||
const multilangSitesNames = Object.values(specialSites); |
{ | ||
"name": "wikibase-sdk", | ||
"version": "9.0.1", | ||
"version": "9.0.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "utils functions to query a Wikibase instance and simplify its results", |
import { fixedEncodeURIComponent, replaceSpaceByUnderscores, rejectObsoleteInterface } from '../utils/utils.js' | ||
import { languages } from './sitelinks_languages.js' | ||
import { specialSites } from './special_sites.js' | ||
import type { Url, WmLanguageCode } from '../types/options.js' | ||
@@ -109,11 +110,2 @@ import type { Site } from '../types/sitelinks.js' | ||
export const specialSites = { | ||
commonswiki: 'commons', | ||
mediawikiwiki: 'mediawiki', | ||
metawiki: 'meta', | ||
specieswiki: 'specieswiki', | ||
wikidatawiki: 'wikidata', | ||
wikimaniawiki: 'wikimania', | ||
} | ||
export const isSitelinkKey = (site: string): boolean => { | ||
@@ -120,0 +112,0 @@ try { |
@@ -1,2 +0,2 @@ | ||
import { specialSites } from '../helpers/sitelinks.js' | ||
import { specialSites } from '../helpers/special_sites.js' | ||
import type { ItemId } from './entity.js' | ||
@@ -3,0 +3,0 @@ import type { TypedKeyDictionnary } from './helper.js' |
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
214167
116
6161