Comparing version 1.0.4 to 1.0.5
@@ -5,2 +5,6 @@ # Changelog | ||
## [1.0.5][] - 2023-02-20 | ||
- Package maintenance and update dependencies | ||
## [1.0.4][] - 2022-11-16 | ||
@@ -39,3 +43,4 @@ | ||
[unreleased]: https://github.com/metarhia/concolor/compare/v1.0.4...HEAD | ||
[unreleased]: https://github.com/metarhia/concolor/compare/v1.0.5...HEAD | ||
[1.0.5]: https://github.com/metarhia/concolor/compare/v1.0.4...v1.0.5 | ||
[1.0.4]: https://github.com/metarhia/concolor/compare/v1.0.3...v1.0.4 | ||
@@ -42,0 +47,0 @@ [1.0.3]: https://github.com/metarhia/concolor/compare/v1.0.2...v1.0.3 |
@@ -28,5 +28,2 @@ 'use strict'; | ||
// Create escape sequence from concolor style definition | ||
// styles:string - comma separated styles | ||
// s:string - value to stylize | ||
const stylize = (styles, s) => { | ||
@@ -52,6 +49,2 @@ const list = styles.split(','); | ||
// Create tag function | ||
// styles:string - wrap tag into styles | ||
// strings:array - array of string or string | ||
// values:array - array of string | ||
const tag = | ||
@@ -72,4 +65,2 @@ (styles) => | ||
// Create theme tag | ||
// tags:string - theme tags | ||
const theme = (tags) => { | ||
@@ -97,5 +88,2 @@ const styles = (strings, ...values) => { | ||
// Concolor main function | ||
// strings:array - array of string or string | ||
// values:array - array of string | ||
const concolor = (strings, ...values) => { | ||
@@ -102,0 +90,0 @@ if (typeof strings === 'string') { |
{ | ||
"name": "concolor", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"author": "Vladyslav Dukhin <vladyslav.dukhin@gmail.com>", | ||
@@ -36,5 +36,3 @@ "description": "Console colors for strings templates in node.js", | ||
"types": "concolor.d.ts", | ||
"files": [ | ||
"concolor.d.ts" | ||
], | ||
"files": ["concolor.d.ts"], | ||
"scripts": { | ||
@@ -51,11 +49,11 @@ "test": "npm run lint && npm run types && node ./test.js", | ||
"devDependencies": { | ||
"@types/node": "^18.11.9", | ||
"eslint": "^8.27.0", | ||
"@types/node": "^18.14.0", | ||
"eslint": "^8.34.0", | ||
"eslint-config-metarhia": "^8.1.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"prettier": "^2.7.1", | ||
"typescript": "^4.9.3" | ||
"prettier": "^2.8.4", | ||
"typescript": "^4.9.5" | ||
} | ||
} |
@@ -117,4 +117,4 @@ # Concolor | ||
Copyright (c) 2017-2022 [Metarhia contributors](https://github.com/metarhia/concolor/graphs/contributors). | ||
Copyright (c) 2017-2023 [Metarhia contributors](https://github.com/metarhia/concolor/graphs/contributors). | ||
Concolor is [MIT licensed](./LICENSE).\ | ||
Concolor is a part of [Metarhia](https://github.com/metarhia) technology stack. |
Sorry, the diff of this file is not supported yet
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
10804
138