wikibase-sdk
Advanced tools
Comparing version 7.15.0 to 8.0.0
@@ -106,2 +106,3 @@ // Generated by 'npm run update-sitelinks-languages' | ||
'gu', | ||
'guw', | ||
'gv', | ||
@@ -108,0 +109,0 @@ 'hak', |
const isBrowser = typeof location !== 'undefined' && typeof document !== 'undefined' | ||
let stringifyQuery | ||
if (isBrowser) { | ||
stringifyQuery = queryObj => new URLSearchParams(queryObj).toString() | ||
} else { | ||
// TODO: use URLSearchParams in NodeJS too, but that would mean dropping support for NodeJS < v10 | ||
stringifyQuery = require('querystring').stringify | ||
} | ||
const stringifyQuery = queryObj => new URLSearchParams(queryObj).toString() | ||
@@ -11,0 +5,0 @@ module.exports = instanceApiEndpoint => queryObj => { |
{ | ||
"name": "wikibase-sdk", | ||
"version": "7.15.0", | ||
"version": "8.0.0", | ||
"description": "utils functions to query a Wikibase instance and simplify its results", | ||
@@ -68,4 +68,4 @@ "main": "lib/wikibase-sdk.js", | ||
"engines": { | ||
"node": ">= 6.4" | ||
"node": ">= 10.0.0" | ||
} | ||
} |
62541
1564