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

@synatic/type-magic

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@synatic/type-magic - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

12

lib/index.js

@@ -1,4 +0,5 @@

const $check = require('check-types');
const $moment = require('moment');
const $numeral = require('numeral');
const $check = require('check-types');
$moment.suppressDeprecationWarnings = true;

@@ -350,2 +351,5 @@ const _conversionMatrix = {

}
if ($moment.isMoment(val)) {
return 'date';
}
if ($check.boolean(val)) {

@@ -393,2 +397,8 @@ return 'boolean';

}
} else if ($moment.isMoment(val)) {
if (format) {
return $moment(val).format(format);
} else {
return val.toISOString();
}
} else if ($check.integer(val)) {

@@ -395,0 +405,0 @@ if (format) {

2

package.json
{
"name": "@synatic/type-magic",
"version": "0.1.1",
"version": "0.1.2",
"description": "Utilities for checking and converting javascript types",

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

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