New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@giscience/ohsome2x

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giscience/ohsome2x - npm Package Compare versions

Comparing version

to
2.3.1

7

dist/GeoJsonFeatureType.js

@@ -123,2 +123,3 @@ "use strict";

static fromOhsome(ohsomeGroupByBoundaryResponse, ohsome2XConfig, sourceIdType, horizontal, sourceFeatureCollection, transformToWebmercator) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
let ohsomeResults = ohsomeGroupByBoundaryResponse;

@@ -144,6 +145,6 @@ const isCSV = (typeof ohsomeResults == 'string');

else {
const hasFromTimestamps = ohsomeResults.groupByResult[0].result[0].fromTimestamp !== undefined;
const hasToTimestamps = ohsomeResults.groupByResult[0].result[0].toTimestamp !== undefined;
const hasFromTimestamps = ((_d = (_c = (_b = (_a = ohsomeResults.groupByResult) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.fromTimestamp) !== undefined;
const hasToTimestamps = ((_h = (_g = (_f = (_e = ohsomeResults.groupByResult) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.result) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.toTimestamp) !== undefined;
isContributionView = hasFromTimestamps && hasToTimestamps;
isRatio = ohsomeResults.groupByResult[0].result[0].ratio !== undefined;
isRatio = ((_m = (_l = (_k = (_j = ohsomeResults.groupByResult) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.result) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.ratio) !== undefined;
}

@@ -150,0 +151,0 @@ let ohsomeGroupByBoundaryCSV;

@@ -388,2 +388,3 @@ "use strict";

checkResponseFormat(ohsomeGroupByBoundaryResponse) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
const isCSV = (typeof ohsomeGroupByBoundaryResponse == 'string');

@@ -404,6 +405,6 @@ let isContributionView;

else {
const hasFromTimestamps = ohsomeGroupByBoundaryResponse.groupByResult[0].result[0].fromTimestamp !== undefined;
const hasToTimestamps = ohsomeGroupByBoundaryResponse.groupByResult[0].result[0].toTimestamp !== undefined;
const hasFromTimestamps = ((_d = (_c = (_b = (_a = ohsomeGroupByBoundaryResponse.groupByResult) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.fromTimestamp) !== undefined;
const hasToTimestamps = ((_h = (_g = (_f = (_e = ohsomeGroupByBoundaryResponse.groupByResult) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.result) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.toTimestamp) !== undefined;
isContributionView = hasFromTimestamps && hasToTimestamps;
isRatio = ohsomeGroupByBoundaryResponse.groupByResult[0].result[0].ratio !== undefined;
isRatio = ((_m = (_l = (_k = (_j = ohsomeGroupByBoundaryResponse.groupByResult) === null || _j === void 0 ? void 0 : _j[0]) === null || _k === void 0 ? void 0 : _k.result) === null || _l === void 0 ? void 0 : _l[0]) === null || _m === void 0 ? void 0 : _m.ratio) !== undefined;
}

@@ -410,0 +411,0 @@ return {

{
"name": "@giscience/ohsome2x",
"version": "2.3.0",
"version": "2.3.1",
"description": "convenience library to query ohsome-api using nodejs",

@@ -5,0 +5,0 @@ "main": "dist/Ohsome2X.js",