Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@acpaas-ui/js-date-utils

Package Overview
Dependencies
Maintainers
8
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@acpaas-ui/js-date-utils - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

.babelrc

53

package.json
{
"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"
}
}

2

README.md

@@ -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

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