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

typeodm

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typeodm - npm Package Compare versions

Comparing version 0.0.19 to 0.0.20

5

annotation/Field.js

@@ -27,5 +27,6 @@ "use strict";

if (typeFunction && !_metadataBuilderFieldTypes.FieldTypes.validateTypeInFunction(typeFunction)) throw new _exceptionWrongFieldTypeException.WrongFieldTypeException(typeFunction, object.constructor.name, propertyName);
// temporary fix for date type. need better implementation
var type = Reflect.getMetadata('design:type', object, propertyName);
if (type && type.name && !typeFunction) typeFunction = function () {
return type;
if (!typeFunction && type && type.name && type.name.toLowerCase() === 'date') typeFunction = function () {
return 'date';
};

@@ -32,0 +33,0 @@ // if type is not given then try to guess it using metadata

2

package.json
{
"name": "typeodm",
"version": "0.0.19",
"version": "0.0.20",
"description": "ODM for MongoDB used Typescript",

@@ -5,0 +5,0 @@ "license": "Apache-2.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