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

@andrewscwei/mongodb-odm

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@andrewscwei/mongodb-odm - npm Package Compare versions

Comparing version 0.14.0 to 0.15.0

14

build/types/index.d.ts

@@ -426,2 +426,16 @@ import { CollectionAggregationOptions, CollectionInsertManyOptions, CollectionInsertOneOptions, CommonOptions, FilterQuery, FindOneAndReplaceOption, IndexOptions, ObjectID, ReplaceOneOptions, UpdateQuery } from 'mongodb';

export declare function typeIsGeoCoordinate(value: any): value is GeoCoordinate;
/**
* Makes a geo coordinate based on the provided params.
*
* @param longitude - Longitude.
* @param latitude - Latitude.
*
* @returns The geo coordinate.
*
* @throws {Error} Params are invalid.
*/
export declare function GeoCoordinateMake({ longitude, latitude }: {
longitude: string | number;
latitude: string | number;
}): GeoCoordinate;
export {};

@@ -89,2 +89,19 @@ "use strict";

exports.typeIsGeoCoordinate = typeIsGeoCoordinate;
/**
* Makes a geo coordinate based on the provided params.
*
* @param longitude - Longitude.
* @param latitude - Latitude.
*
* @returns The geo coordinate.
*
* @throws {Error} Params are invalid.
*/
function GeoCoordinateMake({ longitude, latitude }) {
const coord = [Number(longitude), Number(latitude)];
if (!typeIsGeoCoordinate(coord))
throw new Error('Invalid parameters provided');
return coord;
}
exports.GeoCoordinateMake = GeoCoordinateMake;
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "@andrewscwei/mongodb-odm",
"version": "0.14.0",
"version": "0.15.0",
"description": "ODM for MongoDB",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is not supported yet

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