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

@balena/sbvr-types

Package Overview
Dependencies
Maintainers
3
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/sbvr-types - npm Package Compare versions

Comparing version

to
3.4.6-avoid-unneccessary-objects-07eb756eca00a506b618dc197b67dcc7a9ea3733

5

CHANGELOG.md

@@ -7,2 +7,7 @@ # Change Log

# v3.4.6
## (2021-09-21)
* Avoid creating a new Date object when we already have one [Pagan Gazzard]
# v3.4.5

@@ -9,0 +14,0 @@ ## (2021-09-07)

6

out/types/date-time.js

@@ -14,6 +14,6 @@ "use strict";

const fetchProcessing = (data) => {
if (data != null) {
return new Date(data);
if (data == null || data instanceof Date) {
return data;
}
return data;
return new Date(data);
};

@@ -20,0 +20,0 @@ exports.fetchProcessing = fetchProcessing;

@@ -14,6 +14,6 @@ "use strict";

const fetchProcessing = (data) => {
if (data != null) {
return new Date(data);
if (data == null || data instanceof Date) {
return data;
}
return data;
return new Date(data);
};

@@ -20,0 +20,0 @@ exports.fetchProcessing = fetchProcessing;

{
"name": "@balena/sbvr-types",
"version": "3.4.5",
"version": "3.4.6-avoid-unneccessary-objects-07eb756eca00a506b618dc197b67dcc7a9ea3733",
"description": "SBVR type definitions.",

@@ -66,4 +66,4 @@ "main": "out",

"versionist": {
"publishedAt": "2021-09-07T16:49:19.957Z"
"publishedAt": "2021-09-21T14:01:00.652Z"
}
}

@@ -13,6 +13,6 @@ import * as TypeUtils from '../type-utils';

export const fetchProcessing = (data: any) => {
if (data != null) {
return new Date(data);
if (data == null || data instanceof Date) {
return data;
}
return data;
return new Date(data);
};

@@ -19,0 +19,0 @@

@@ -13,6 +13,6 @@ import * as TypeUtils from '../type-utils';

export const fetchProcessing = (data: any) => {
if (data != null) {
return new Date(data);
if (data == null || data instanceof Date) {
return data;
}
return data;
return new Date(data);
};

@@ -19,0 +19,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet