moment-parseplus
Advanced tools
Comparing version 2.0.0 to 2.0.1
## Change Log | ||
### v2.0.1 on 2022-11-21 | ||
- Export as ESModule | ||
### v2.0.0 on 2022-09-30 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "moment-parseplus", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Date parsing plugin for momentjs", | ||
"main": "parseplus.js", | ||
"type": "module", | ||
"exports": { | ||
"import": "./parseplus.mjs", | ||
"require": "./parseplus.cjs" | ||
}, | ||
"directories": { | ||
@@ -37,5 +41,23 @@ "test": "test" | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.20.2", | ||
"jest": "29.1.2", | ||
"prettier": "2.7.1" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.mjs$": "babel-jest" | ||
}, | ||
"testMatch": [ | ||
"**/*.spec.mjs" | ||
] | ||
}, | ||
"babel": { | ||
"env": { | ||
"test": { | ||
"presets": [ | ||
"@babel/preset-env" | ||
] | ||
} | ||
} | ||
} | ||
} |
# moment-parseplus | ||
[![NPM Link](https://img.shields.io/npm/v/moment-parseplus?v=2.0.0)](https://npm.com/package/moment-parseplus) | ||
[![Build Status](https://ci.appveyor.com/api/projects/status/github/kensnyder/moment-parseplus?branch=master&svg=true&v=2.0.0)](https://ci.appveyor.com/project/kensnyder/moment-parseplus) | ||
[![Code Coverage](https://codecov.io/gh/kensnyder/moment-parseplus/branch/master/graph/badge.svg?v=2.0.0)](https://codecov.io/gh/kensnyder/moment-parseplus) | ||
[![ISC License](https://img.shields.io/npm/l/moment-parseplus.svg?v=2.0.0)](https://opensource.org/licenses/ISC) | ||
[![NPM Link](https://img.shields.io/npm/v/moment-parseplus?v=2.0.1)](https://npm.com/package/moment-parseplus) | ||
[![Build Status](https://ci.appveyor.com/api/projects/status/github/kensnyder/moment-parseplus?branch=master&svg=true&v=2.0.1)](https://ci.appveyor.com/project/kensnyder/moment-parseplus) | ||
[![Code Coverage](https://codecov.io/gh/kensnyder/moment-parseplus/branch/master/graph/badge.svg?v=2.0.1)](https://codecov.io/gh/kensnyder/moment-parseplus) | ||
[![ISC License](https://img.shields.io/npm/l/moment-parseplus.svg?v=2.0.1)](https://opensource.org/licenses/ISC) | ||
@@ -45,4 +45,3 @@ A comprehensive and extensible date parsing plugin for | ||
```js | ||
const moment = require('moment'); | ||
require('moment-parseplus'); | ||
import { moment } from 'moment-parseplus'; | ||
@@ -54,6 +53,7 @@ const date1 = moment('March 5th, 2016 at 7:05pm'); | ||
Or, for convenience, you can just import `moment` from `moment-parseplus`: | ||
Or you can explicitly import `moment` separately from `moment-parseplus`: | ||
```js | ||
import { moment } from 'moment-parseplus'; | ||
import moment from 'moment'; | ||
import 'moment-parseplus'; | ||
@@ -60,0 +60,0 @@ const date1 = moment('March 5th, 2016 at 7:05pm'); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23129
13
279
Yes
3