Socket
Socket
Sign inDemoInstall

date-diff

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-diff - npm Package Compare versions

Comparing version 0.2.2 to 1.0.0

.github/workflows/publish.yml

43

package.json
{
"name": "date-diff",
"main": "date-diff.js",
"source": "src/date-diff.ts",
"main": "dist/date-diff.js",
"types": "dist/date-diff.d.ts",
"module": "dist/date-diff.module.js",
"description": "DateDiff is a minimalized Javascript date arithmetic extension.",
"version": "0.2.2",
"version": "1.0.0",
"keywords": [

@@ -21,23 +24,23 @@ "DateDiff",

"devDependencies": {
"coffeescript": "^2.2.3",
"easy-date": "^1.0.0",
"grunt": "^1.1.0",
"grunt-bump": "^0.8.0",
"grunt-contrib-coffee": "^2.0.0",
"grunt-contrib-jasmine": "^2.2.0",
"grunt-contrib-uglify": "^3.3.0",
"grunt-contrib-watch": "^1.1.0",
"grunt-exec": "^3.0.0",
"grunt-karma": "^3.0.0",
"jasmine": "^3.1.0",
"jasmine-core": "^3.1.0",
"karma": "^3.0.0",
"karma-jasmine": "^1.1.1",
"karma-phantomjs-launcher": "^1.0.4"
"@parcel/packager-ts": "^2.0.0-rc.0",
"@parcel/transformer-typescript-types": "^2.0.0-rc.0",
"@types/jest": "^27.0.2",
"jest": "^27.2.2",
"parcel": "^2.0.0-rc.0",
"ts-jest": "^27.0.5",
"typescript": "^4.4.3"
},
"scripts": {
"test": "./node_modules/karma/bin/karma start --single-run --browsers PhantomJS",
"compile": "coffee --compile --output . src/",
"build": "npm run compile && grunt"
"test": "jest"
},
"jest": {
"preset": "ts-jest",
"moduleFileExtensions": [
"ts",
"js"
],
"testMatch": [
"<rootDir>/src/**/*.(test|spec).(ts|tsx|js)"
]
}
}

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

[![Build Status](https://travis-ci.org/melvinsembrano/date-diff.svg)](https://travis-ci.org/melvinsembrano/date-diff)
[![Build Status](https://github.com/melvinsembrano/date-diff/actions/workflows/test.yml/badge.svg)](https://travis-ci.org/melvinsembrano/date-diff)
[![npm version](https://badge.fury.io/js/date-diff.svg)](https://badge.fury.io/js/date-diff)

@@ -40,7 +41,2 @@ # DateDiff

```
it also add a date helper method:
```
Date.diff(date1, date2).years();
Date.diff(date1, date2).months();
```

@@ -47,0 +43,0 @@ #### Contributing to DateDiff

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