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

wikibase-sdk

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wikibase-sdk - npm Package Compare versions

Comparing version 9.0.1 to 9.0.2

dist/helpers/special_sites.d.ts

8

dist/helpers/sitelinks.d.ts

@@ -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[];

9

dist/helpers/sitelinks.js
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'

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