@acpaas-ui/js-date-utils
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@acpaas-ui/js-date-utils", | ||
"version": "1.0.1", | ||
"$rollup": { | ||
"fileName": "acpaas-ui-js-date-utils", | ||
"moduleName": "JsDateUtils" | ||
}, | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -10,4 +14,47 @@ "main": "acpaas-ui-js-date-utils.umd.js", | ||
"typings": "acpaas-ui-js-date-utils.d.ts", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"rollup": "./node_modules/.bin/rollup -c --extend", | ||
"********************** TEST **********************": "", | ||
"lint": "./node_modules/.bin/eslint .", | ||
"test": "cross-env NODE_ENV=test mocha --require babel-register -t 2000 --recursive", | ||
"test:watch": "npm run test -- -w", | ||
"test:coverage": "nyc --reporter=lcov --reporter=text-summary npm test", | ||
"coverage:serve": "lite-server", | ||
"********************** DEPLOY **********************": "", | ||
"copy": "npm run copy:types && npm run copy:packageJson && npm run copy:readme", | ||
"copy:types": "copy \"src/*.d.ts\" dist/", | ||
"copy:packageJson": "node ../../scripts/package.js date-utils", | ||
"copy:readme": "copy \"README.md\" dist/", | ||
"clean": "rimraf dist", | ||
"build": "npm run clean && npm run rollup && npm run copy", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@studiohyperdrive/eslint-config": "^3.0.2", | ||
"babel-core": "^6.26.3", | ||
"babel-istanbul": "^0.12.2", | ||
"babel-plugin-rewire": "^1.1.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-register": "^6.26.0", | ||
"chai": "^4.1.2", | ||
"chai-shallow-deep-equal": "^1.4.6", | ||
"copy": "^0.3.2", | ||
"cross-env": "^5.1.5", | ||
"eslint": "^4.19.1", | ||
"eslint-plugin-chai-friendly": "^0.4.1", | ||
"mocha": "^5.1.1", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^0.58.2", | ||
"sinon": "^5.0.7", | ||
"sinon-chai": "^3.0.0" | ||
}, | ||
"dependencies": { | ||
"moment": "^2.24.0" | ||
} | ||
} |
@@ -48,3 +48,3 @@ # ACPaaS UI JS Date Utils | ||
### Available methods and properties | ||
* `parseDate(...args)`: parse the input to a date object, returns `null` for an invalid date | ||
* `parseDate(...args, format?)`: parse the input to a date object, returns `null` for an invalid date. Format is an optional strict formatting parameter, using momentjs formats. | ||
* `getWeekday(date, startOfWeek)`: return the weekday for the provided date, offset by the (optionally) provided startOfWeek param, returns `-1` for an invalid date | ||
@@ -51,0 +51,0 @@ * `getMonthLength(date)`: return the length of the month for the provided date, returns `-1` for an invalid date |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
153555
15
212
1
18
4
2
+ Addedmoment@^2.24.0
+ Addedmoment@2.30.1(transitive)