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

cot-lib

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cot-lib - npm Package Compare versions

Comparing version 2.3.2 to 2.3.4

9

dist/util.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// declare var geohash: any;
var _geohash = require('ngeohash');
const ngeohash = require("ngeohash");
/**

@@ -99,3 +98,3 @@ * Util class with utility methods. This class is to be used as a static class

prec = Math.min(prec, 9);
return _geohash.encode(lat, lng, prec);
return ngeohash.encode(lat, lng, prec);
}

@@ -107,6 +106,6 @@ /**

static decodeFromGoehash(geohash) {
return _geohash.decode(geohash);
return ngeohash.decode(geohash);
}
}
exports.Util = Util;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiJDOi9Vc2Vycy90ZHVwb250L1dvcmtzcGFjZXMvY290LWxpYi9saWIvIiwic291cmNlcyI6WyJ1dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBR0EsNEJBQTRCO0FBQzVCLElBQUksUUFBUSxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQztBQUVuQzs7R0FFRztBQUNIO0lBRUk7Ozs7Ozs7OztPQVNHO0lBQ0gsTUFBTSxDQUFDLFdBQVcsQ0FBQyxJQUFZLEVBQUUsS0FBYSxFQUFFLEdBQVksRUFBRSxLQUFjLEVBQUUsT0FBZ0IsRUFBRSxPQUFnQixFQUFFLFlBQXFCO1FBQ25JLE1BQU0sQ0FBQyxJQUFJLElBQUksQ0FBQyxJQUFJLEVBQUUsS0FBSyxHQUFHLENBQUMsRUFBRSxHQUFHLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQUUsWUFBWSxDQUFDLENBQUMsT0FBTyxFQ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DQUFDO0lBQzNDLENBQUM7SUFFRDs7O09BR0c7SUFDSCxNQUFNLENBQUMsaUJBQWlCLENBQUMsT0FBZTtRQUNwQyxNQUFNLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUNwQyxDQUFDO0NBRUo7QUFuSEQsb0JBbUhDIn0=
{
"name": "cot-lib",
"version": "2.3.2",
"version": "2.3.4",
"description": "Easily consume the City of Things platform data",

@@ -34,2 +34,3 @@ "main": "dist/index.js",

"@types/mocha": "^2.2.40",
"@types/ngeohash": "^0.6.1",
"@types/node": "^7.0.12",

@@ -36,0 +37,0 @@ "codecov": "^2.1.0",

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