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

lambdaorm-base

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambdaorm-base - npm Package Compare versions

Comparing version 1.7.4 to 1.7.5

2

package.json
{
"name": "lambdaorm-base",
"version": "1.7.4",
"version": "1.7.5",
"description": "ORM",

@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>",

@@ -50,11 +50,11 @@ "use strict";

const _format = format.toLowerCase();
const iso = new Date(value).toISOString();
const utc = new Date(value).toISOString();
if (_format === 'utc') {
return iso;
return utc;
}
else if (_format === 'iso') {
return LUXON.DateTime.fromISO(iso).toISO();
return LUXON.DateTime.fromISO(utc, { zone: 'utc' }).toISO();
}
else {
return LUXON.DateTime.fromISO(iso).toFormat(format);
return LUXON.DateTime.fromISO(utc, { zone: 'utc' }).toFormat(format);
}

@@ -61,0 +61,0 @@ }

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