Socket
Socket
Sign inDemoInstall

jsprim

Package Overview
Dependencies
3
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

4

CHANGES.md

@@ -7,2 +7,6 @@ # Changelog

## v1.2.1 (2015-10-14)
* #8 odd date parsing behaviour
## v1.2.0 (2015-10-13)

@@ -9,0 +13,0 @@

@@ -267,3 +267,8 @@ /*

*/
return (new Date(+str || str));
var numeric = +str;
if (!isNaN(numeric)) {
return (new Date(numeric));
} else {
return (new Date(str));
}
}

@@ -270,0 +275,0 @@

2

package.json
{
"name": "jsprim",
"version": "1.2.0",
"version": "1.2.1",
"description": "utilities for primitive JavaScript types",

@@ -5,0 +5,0 @@ "main": "./lib/jsprim.js",

@@ -271,2 +271,9 @@ /*

mod_assert.equal('1970-01-01T00:00:02.000Z',
jsprim.iso8601(jsprim.parseDateTime('2000')));
mod_assert.equal('1970-01-01T00:00:00.001Z',
jsprim.iso8601(jsprim.parseDateTime('1')));
mod_assert.equal('1970-01-01T00:00:00.000Z',
jsprim.iso8601(jsprim.parseDateTime('0')));
console.log('basic tests okay');
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc