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

@twec/ip-parser

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twec/ip-parser - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

17

lib/transform/index.js

@@ -41,6 +41,11 @@ const {

to: data => {
return parse(data, 'YYYYMMDDHHmm', { timeZone });
if (Number(data) === 0) {
return null;
}
return parse(data, `YYYYMMDDHHmm`, { timeZone });
},
from: data => {
return format(data, 'YYYYMMDDHHmm', { timeZone });
return data !== null
? format(data, 'YYYYMMDDHHmm', { timeZone })
: '000000000000';
},

@@ -80,5 +85,5 @@ },

? transformer.to(data, options)
: `${data || ''}`;
: data || '';
}
return `${data || ''}`;
return data || '';
},

@@ -90,6 +95,6 @@ from: (data, type, options) => {

? transformer.from(data, options)
: `${data || ''}`;
: data || '';
}
return `${data || ''}`;
return data || '';
},
};
{
"name": "@twec/ip-parser",
"version": "2.0.0",
"version": "2.0.1",
"description": "Parser for Island Pacific orders",

@@ -5,0 +5,0 @@ "keywords": [

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