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

geo-util

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geo-util - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

6

dist/index.js

@@ -39,9 +39,9 @@ 'use strict';

isPoints: function isPoints(collection) {
return isLegal(collection) && collection.type === 'point';
return isLegal(collection) && collection.type === 'Point';
},
isLines: function isLines(collection) {
return isLegal(collection) && collection.type === 'line';
return isLegal(collection) && collection.type === 'Line';
},
isPolygons: function isPolygons(collection) {
return isLegal(collection) && collection.type === 'polygon';
return isLegal(collection) && collection.type === 'Polygon';
},

@@ -48,0 +48,0 @@ toGeoJSON: function toGeoJSON(collection) {

@@ -23,9 +23,9 @@ import _ from 'lodash'

isPoints(collection) {
return isLegal(collection) && collection.type === 'point'
return isLegal(collection) && collection.type === 'Point'
},
isLines(collection) {
return isLegal(collection) && collection.type === 'line'
return isLegal(collection) && collection.type === 'Line'
},
isPolygons(collection) {
return isLegal(collection) && collection.type === 'polygon'
return isLegal(collection) && collection.type === 'Polygon'
},

@@ -32,0 +32,0 @@ toGeoJSON(collection){

{
"name": "geo-util",
"version": "0.0.12",
"version": "0.0.13",
"description": "geo-util for eye",

@@ -5,0 +5,0 @@ "author": "xiagan <huikang.whk@alibaba-inc.com>",

@@ -8,3 +8,3 @@ import e from 'expect.js'

const points = {
type: 'point',
type: 'Point',
geometries: [

@@ -25,3 +25,3 @@ {

const points = {
type: 'point',
type: 'Point',
}

@@ -34,3 +34,3 @@ e(util.isPoints(points)).to.be(false)

const lines = {
type: 'line',
type: 'Line',
geometries: [

@@ -51,3 +51,3 @@ {

const lines = {
type: 'line',
type: 'Line',
}

@@ -60,3 +60,3 @@ e(util.isLines(lines)).to.be(false)

const polygons = {
type: 'polygon',
type: 'Polygon',
geometries: [

@@ -77,3 +77,3 @@ {

const polygons = {
type: 'polygon',
type: 'Polygon',
}

@@ -86,3 +86,3 @@ e(util.isPolygons(polygons)).to.be(false)

const collection = {
type:'point',
type:'Point',
geometries:[{lnt:1,lng:2,count:3}]

@@ -89,0 +89,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