@google-cloud/precise-date
Advanced tools
Comparing version 1.0.3 to 2.0.0
@@ -90,2 +90,3 @@ "use strict"; | ||
} | ||
// eslint-disable-next-line prefer-rest-params | ||
const args = Array.from(arguments); | ||
@@ -255,3 +256,3 @@ const dateFields = args.slice(0, 7); | ||
const sign = Math.sign(Number(time)); | ||
time = time.replace(/^\-/, ''); | ||
time = time.replace(/^-/, ''); | ||
const seconds = Number(time.substr(0, time.length - 9)) * sign; | ||
@@ -258,0 +259,0 @@ const nanos = Number(time.substr(-9)) * sign; |
@@ -7,2 +7,15 @@ # Changelog | ||
## [2.0.0](https://www.github.com/googleapis/nodejs-precise-date/compare/v1.0.3...v2.0.0) (2020-03-26) | ||
### ⚠ BREAKING CHANGES | ||
* **dep:** upgrade typescript/gts (#97) | ||
* **dep:** deprecate Node 8 to 10 (#92) | ||
### Miscellaneous Chores | ||
* **dep:** deprecate Node 8 to 10 ([#92](https://www.github.com/googleapis/nodejs-precise-date/issues/92)) ([75ca209](https://www.github.com/googleapis/nodejs-precise-date/commit/75ca209b49abcba8efcbc401b270ac1346874647)) | ||
* **dep:** upgrade typescript/gts ([#97](https://www.github.com/googleapis/nodejs-precise-date/issues/97)) ([59ca2de](https://www.github.com/googleapis/nodejs-precise-date/commit/59ca2de8f6da249808dddebdba3961e59140d06d)) | ||
### [1.0.3](https://www.github.com/googleapis/nodejs-precise-date/compare/v1.0.2...v1.0.3) (2019-12-05) | ||
@@ -9,0 +22,0 @@ |
{ | ||
"name": "@google-cloud/precise-date", | ||
"version": "1.0.3", | ||
"version": "2.0.0", | ||
"description": "A simple utility for precise-dateing functions and classes.", | ||
@@ -9,3 +9,3 @@ "main": "build/src/index.js", | ||
"scripts": { | ||
"test": "nyc mocha build/test", | ||
"test": "c8 mocha build/test", | ||
"lint": "gts check", | ||
@@ -17,3 +17,2 @@ "clean": "gts clean", | ||
"pretest": "npm run compile", | ||
"posttest": "npm run lint", | ||
"docs": "echo no docs 👻", | ||
@@ -23,3 +22,4 @@ "docs-test": "echo no docs 👻", | ||
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../", | ||
"system-test": "mocha build/system-test" | ||
"system-test": "mocha build/system-test", | ||
"prelint": "cd samples; npm link ../; npm i" | ||
}, | ||
@@ -39,17 +39,15 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/mocha": "^5.2.4", | ||
"@types/mocha": "^7.0.0", | ||
"@types/node": "^10.5.2", | ||
"@types/sinon": "^7.0.5", | ||
"c8": "^7.0.0", | ||
"codecov": "^3.0.4", | ||
"gts": "^1.0.0", | ||
"intelli-espower-loader": "^1.0.1", | ||
"mocha": "^6.0.0", | ||
"nyc": "^14.0.0", | ||
"sinon": "^7.2.3", | ||
"source-map-support": "^0.5.6", | ||
"typescript": "3.6.4" | ||
"gts": "next", | ||
"mocha": "^7.0.0", | ||
"sinon": "^9.0.0", | ||
"typescript": "^3.8.3" | ||
}, | ||
"engines": { | ||
"node": ">=8.10.0" | ||
"node": ">=10.4.0" | ||
} | ||
} |
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
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
52271
9
921