New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

string2js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string2js - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+2
-2
index.js

@@ -0,1 +1,2 @@

const isostring = require('isostring')
const {duration} = require('moment')

@@ -50,4 +51,3 @@

// Date
const date = new Date(value)
if(date.toString() !== 'Invalid Date') return date
if(isostring(value)) return new Date(value)

@@ -54,0 +54,0 @@ // JSON

{
"name": "string2js",
"version": "0.1.0",
"version": "0.1.1",
"description": "Create Javascript objects and primitives from their string representation",

@@ -26,4 +26,5 @@ "main": "index.js",

"dependencies": {
"moment": "^2.22.0"
"isostring": "0.0.1",
"moment": "^2.22.1"
}
}