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

leoric

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leoric - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

11

History.md

@@ -0,1 +1,12 @@

2.0.3 / 2021-02-11
==================
## What's Changed
* fix: default updatedAt to new date if model has no createdAt by @LB4027221 in https://github.com/cyjake/leoric/pull/268
## New Contributors
* @LB4027221 made their first contribution in https://github.com/cyjake/leoric/pull/268
**Full Changelog**: https://github.com/cyjake/leoric/compare/v2.0.2...v2.0.3
2.0.2 / 2021-02-10

@@ -2,0 +13,0 @@ ==================

2

package.json
{
"name": "leoric",
"version": "2.0.2",
"version": "2.0.3",
"description": "JavaScript Object-relational mapping alchemy",

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

@@ -714,3 +714,3 @@ 'use strict';

if (attributes[updatedAt] && !this[updatedAt]) {
this[updatedAt] = this[createdAt];
this[updatedAt] = this[createdAt] || new Date();
}

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