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

concolor

Package Overview
Dependencies
Maintainers
5
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concolor - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

concolor.d.ts

8

CHANGELOG.md

@@ -5,2 +5,7 @@ # Changelog

## [1.0.2][] - 2021-07-17
- Move types to package root
- Package maintenance and update dependencies
## [1.0.1][] - 2021-04-13

@@ -24,5 +29,6 @@

[unreleased]: https://github.com/metarhia/concolor/compare/v1.0.1...HEAD
[unreleased]: https://github.com/metarhia/concolor/compare/v1.0.2...HEAD
[1.0.2]: https://github.com/metarhia/concolor/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/metarhia/concolor/compare/v1.0.0...v1.0.1
[1.0.0]: https://github.com/metarhia/concolor/compare/v0.1.16...v1.0.0
[0.1.16]: https://github.com/metarhia/concolor/releases/tag/v0.1.16

26

concolor.js

@@ -58,15 +58,17 @@ 'use strict';

// values:array - array of string
const tag = (styles) => (strings, ...values) => {
if (typeof strings === 'string') {
return stylize(styles, strings);
}
const tag =
(styles) =>
(strings, ...values) => {
if (typeof strings === 'string') {
return stylize(styles, strings);
}
const result = [strings[0]];
let i = 1;
for (const val of values) {
const str = strings[i++];
result.push(val, str);
}
return stylize(styles, result.join(''));
};
const result = [strings[0]];
let i = 1;
for (const val of values) {
const str = strings[i++];
result.push(val, str);
}
return stylize(styles, result.join(''));
};

@@ -73,0 +75,0 @@ // Create theme tag

{
"name": "concolor",
"version": "1.0.1",
"version": "1.0.2",
"author": "Vladyslav Dukhin <vladyslav.dukhin@gmail.com>",

@@ -35,9 +35,9 @@ "description": "Console colors for strings templates in node.js",

"main": "concolor.js",
"types": "types/concolor.d.ts",
"types": "concolor.d.ts",
"files": [
"types/"
"concolor.d.ts"
],
"scripts": {
"test": "npm run lint && npm run types && node ./test.js",
"types": "tsc -p types/tsconfig.json",
"types": "tsc -p tsconfig.json",
"lint": "eslint . && prettier -c \"**/*.js\" \"**/*.json\" \"**/*.md\" \".*rc\"",

@@ -47,15 +47,15 @@ "fmt": "prettier --write \"**/*.js\" \"**/*.json\" \"**/*.md\" \".*rc\""

"engines": {
"node": "^12.9 || 14 || 15"
"node": "^12.9 || 14 || 16"
},
"readmeFilename": "README.md",
"devDependencies": {
"@types/node": "^14.14.37",
"eslint": "^7.24.0",
"@types/node": "^16.3.3",
"eslint": "^7.30.0",
"eslint-config-metarhia": "^7.0.1",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.3.1",
"prettier": "^2.2.1",
"typescript": "^4.2.3"
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"prettier": "^2.3.2",
"typescript": "^4.3.5"
}
}

@@ -116,4 +116,6 @@ # Concolor

## Contributors
## License & Contributors
Copyright (c) 2017-2020 [concolor contributors](https://github.com/metarhia/concolor/graphs/contributors)
Copyright (c) 2017-2021 [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.
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