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 7.0.11 to 7.0.12

15

lib/helpers/parse_claim.js

@@ -27,9 +27,10 @@ const { wikibaseTimeToISOString, wikibaseTimeToEpochTime, wikibaseTimeToSimpleDay } = require('./helpers')

if (options.keepRichValues) {
const amount = parseFloat(value.amount)
// ex: http://www.wikidata.org/entity/
const unit = value.unit.replace(/^https?:\/\/.*\/entity\//, '')
var upperBound, lowerBound
if (value.upperBound != null) upperBound = parseFloat(value.upperBound)
if (value.lowerBound != null) lowerBound = parseFloat(value.lowerBound)
return { amount, unit, upperBound, lowerBound }
const richValue = {
amount: parseFloat(value.amount),
// ex: http://www.wikidata.org/entity/
unit: value.unit.replace(/^https?:\/\/.*\/entity\//, '')
}
if (value.upperBound != null) richValue.upperBound = parseFloat(value.upperBound)
if (value.lowerBound != null) richValue.lowerBound = parseFloat(value.lowerBound)
return richValue
} else {

@@ -36,0 +37,0 @@ return amount

{
"name": "wikibase-sdk",
"version": "7.0.11",
"version": "7.0.12",
"description": "A javascript tool-suite to query wikibase and simplify its results",

@@ -5,0 +5,0 @@ "main": "lib/wikibase-sdk.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