vue-timeago3
Advanced tools
Comparing version 2.1.2 to 2.2.0
{ | ||
"name": "vue-timeago3", | ||
"version": "2.1.2", | ||
"version": "2.2.0", | ||
"files": [ | ||
@@ -48,3 +48,3 @@ "dist" | ||
"dependencies": { | ||
"date-fns": "^2.27.0" | ||
"date-fns": "^2.28.0" | ||
}, | ||
@@ -55,24 +55,24 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@release-it/conventional-changelog": "^3.3.0", | ||
"@types/jest": "^27.0.3", | ||
"@types/node": "^16.11.11", | ||
"@typescript-eslint/eslint-plugin": "^5.5.0", | ||
"@typescript-eslint/parser": "^5.5.0", | ||
"@vitejs/plugin-vue": "^1.10.1", | ||
"@vue/compiler-sfc": "^3.2.23", | ||
"@vue/test-utils": "^2.0.0-rc.17", | ||
"eslint": "^8.3.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-vue": "^8.1.1", | ||
"jest": "^27.4.2", | ||
"prettier": "2.5.0", | ||
"release-it": "^14.11.8", | ||
"ts-jest": "^27.0.7", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4.5.2", | ||
"vite": "^2.6.14", | ||
"vitepress": "^0.20.1", | ||
"vue-eslint-parser": "^8.0.1", | ||
"vue-tsc": "^0.29.8" | ||
"@release-it/conventional-changelog": "^4.3.0", | ||
"@types/jest": "^27.4.1", | ||
"@types/node": "^17.0.30", | ||
"@typescript-eslint/eslint-plugin": "^5.21.0", | ||
"@typescript-eslint/parser": "^5.21.0", | ||
"@vitejs/plugin-vue": "^2.3.1", | ||
"@vue/compiler-sfc": "^3.2.33", | ||
"@vue/test-utils": "^2.0.0-rc.21", | ||
"eslint": "^8.14.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-vue": "^8.7.1", | ||
"jest": "^27.5.1", | ||
"prettier": "2.6.2", | ||
"release-it": "^14.14.2", | ||
"ts-jest": "^27.1.4", | ||
"ts-node": "^10.7.0", | ||
"typescript": "^4.6.4", | ||
"vite": "^2.9.6", | ||
"vitepress": "^0.22.3", | ||
"vue-eslint-parser": "^8.3.0", | ||
"vue-tsc": "^0.34.11" | ||
} | ||
} |
@@ -94,8 +94,8 @@ # ⏳ vue-timeago3 | ||
| option | type | description | | ||
| -------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| **name** | `string` | Register the component with a custom name. Default is: `timeago` | | ||
| **locale** | `Locale` (see [date-fns/Locale](https://date-fns.org/v2.26.0/docs/Locale)) | The `locale` specifies the language which is used to render the date. All available `date-fns` locales are supported by default. | | ||
| **converter** | `(date, converterOptions) => string` | A **converter** that formats regular dates in `x Seconds ago`, or in `xxx` style. Check out the [default converter](ahttps://github.com/MrDeerly/vue-timeago3/blob/master/src/defaultConverter.js) which uses [date-fns formatDistanceToNow](https://date-fns.org/v2.24.0/docs/formatDistanceToNow) | | ||
| **converterOptions** | `Object` | Pass some extra settings to the default converter mentioned above. It supports the main options of `date-fns`, namingly: <br/><br/> `includeSeconds` - `boolean` - distances less than a minute are more detailed </br> `addSuffix` - `boolean` - results specifies if now is earlier or later than the date passed | | ||
| option | type | description | | ||
| -------------------- | -------------------------------------------------------------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| **name** | `string` | Register the component with a custom name. Default is: `timeago` | | ||
| **locale** | `Locale` (see [date-fns/Locale](https://date-fns.org/v2.26.0/docs/Locale)) | The `locale` specifies the language which is used to render the date. All available `date-fns` locales are supported by default. | | ||
| **converter** | `(date, converterOptions) => string` | A **converter** that formats regular dates in `x Seconds ago`, or in `xxx` style. Check out the [default converter](ahttps://github.com/MrDeerly/vue-timeago3/blob/master/src/defaultConverter.js) which uses [date-fns formatDistanceToNow](https://date-fns.org/v2.24.0/docs/formatDistanceToNow) | | ||
| **converterOptions** | `Object` | Pass some extra settings to the default converter mentioned above. It supports the main options of `date-fns`, namingly: <br/><br/> `includeSeconds` - `boolean` - distances less than a minute are more detailed </br> `addSuffix` - `boolean` - results specifies if now is earlier or later than the date passed <br/> `useStrict` - `boolean` - use strict units, does not use helpers like 'almost', 'over', 'less than' and the like | | ||
@@ -102,0 +102,0 @@ ### Component |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
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
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
0
11014
3
0
2
Updateddate-fns@^2.28.0