apollo-link-logger
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -9,12 +9,9 @@ 'use strict'; | ||
'color: ' + (operationType === 'query' ? '#03A9F4' : 'red') + ';', // operationType | ||
'color: inherit;', // operationName | ||
'color: gray; font-weight: lighter;']; | ||
'color: inherit;']; | ||
var parts = ['%c apollo']; | ||
var parts = ['%c apollo', '%c' + operationType, '%c' + operation.operationName]; | ||
parts.push('%c' + operationType); | ||
parts.push('%c' + operation.operationName); | ||
if (operationType !== 'subscription') { | ||
parts.push('%c(in ' + ellapsed + ' ms)'); | ||
headerCss.push('color: gray; font-weight: lighter;'); // time | ||
} | ||
@@ -21,0 +18,0 @@ |
@@ -7,12 +7,9 @@ 'use strict'; | ||
'color: ' + (operationType === 'query' ? '#03A9F4' : 'red') + ';', // operationType | ||
'color: inherit;', // operationName | ||
'color: gray; font-weight: lighter;']; | ||
'color: inherit;']; | ||
var parts = ['%c apollo']; | ||
var parts = ['%c apollo', '%c' + operationType, '%c' + operation.operationName]; | ||
parts.push('%c' + operationType); | ||
parts.push('%c' + operation.operationName); | ||
if (operationType !== 'subscription') { | ||
parts.push('%c(in ' + ellapsed + ' ms)'); | ||
headerCss.push('color: gray; font-weight: lighter;'); // time | ||
} | ||
@@ -19,0 +16,0 @@ |
{ | ||
"name": "apollo-link-logger", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Logger for Apollo Link that uses a similar format to redux-logger. Includes performance information.", | ||
@@ -24,3 +24,2 @@ "author": "Adrian Perez adrian@adrianperez.org", | ||
"clean": "rimraf es/* src/* dist/* coverage/*", | ||
"flow": "flow", | ||
"lint": "eslint src", | ||
@@ -33,3 +32,3 @@ "add-contributor": "all-contributors add", | ||
"test": "jest", | ||
"prettier:js": "prettier --write --trailing-comma all --tab-width 2 --single-quote --parser flow --print-width 80 \"src/**/*.js\" \"!**/dist/**\"", | ||
"prettier:js": "prettier --write --trailing-comma all --tab-width 2 --single-quote --print-width 80 \"src/**/*.js\" \"!**/dist/**\"", | ||
"prepare": "npm run build", | ||
@@ -41,3 +40,3 @@ "semantic-release": "semantic-release", | ||
"*.js": [ | ||
"prettier --write --trailing-comma all --tab-width 2 --single-quote --parser flow --print-width 80", | ||
"prettier --write --trailing-comma all --tab-width 2 --single-quote --print-width 80", | ||
"git add", | ||
@@ -72,11 +71,9 @@ "jest --bail --findRelatedTests" | ||
"babel-eslint": "^8.2.3", | ||
"babel-jest": "23.0.1", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-jest": "22.4.3", | ||
"commitizen": "^2.9.6", | ||
"cross-env": "^5.1.4", | ||
"rimraf": "~2.6.2", | ||
"eslint": "^4.6.1", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-config-prettier": "^2.4.0", | ||
"eslint-plugin-flowtype": "^2.35.1", | ||
"eslint-plugin-fp": "^2.3.0", | ||
@@ -86,3 +83,2 @@ "eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-prettier": "^2.2.0", | ||
"flow-bin": "^0.70.0", | ||
"husky": "^0.14.3", | ||
@@ -92,4 +88,5 @@ "jest": "^22.4.3", | ||
"prettier": "^1.8.1", | ||
"semantic-release": "^15.1.7", | ||
"travis-deploy-once": "^4.4.1" | ||
"rimraf": "~2.6.2", | ||
"semantic-release": "^15.9.3", | ||
"travis-deploy-once": "^5.0.1" | ||
}, | ||
@@ -96,0 +93,0 @@ "peerDependencies": { |
@@ -14,3 +14,3 @@ # apollo-link-logger | ||
[![MIT License][license-badge]][LICENSE] | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-5-orange.svg?style=flat-square)](#contributors) | ||
[![PRs Welcome][prs-badge]][prs] | ||
@@ -119,4 +119,4 @@ [![Commitizen friendly][commitizen-badge]][commitizen] | ||
<!-- prettier-ignore --> | ||
| [<img src="https://avatars3.githubusercontent.com/u/133308?v=4" width="100px;"/><br /><sub><b>Adrian Perez</b></sub>](https://adrianperez.codes)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Code") [📖](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Documentation") [🚇](#infra-blackxored "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Tests") | [<img src="https://avatars3.githubusercontent.com/u/294597?s=460&v=4" width="100px;"/><br /><sub><b>Adam Savitzky</b></sub>](https://github.com/adambom)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=adambom "Code") | [<img src="https://avatars3.githubusercontent.com/u/3065138?v=4" width="100px;"/><br /><sub><b>Ifeanyi Oraelosi</b></sub>](https://github.com/gnerkus)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=gnerkus "Code") | [<img src="https://avatars0.githubusercontent.com/u/7076981?v=4" width="100px;"/><br /><sub><b>Romario</b></sub>](https://github.com/romarioraffington)<br />[🐛](https://github.com/blackxored/apollo-link-logger/issues?q=author%3Aromarioraffington "Bug reports") [🤔](#ideas-romarioraffington "Ideas, Planning, & Feedback") | | ||
| :---: | :---: | :---: | :---: | | ||
| [<img src="https://avatars3.githubusercontent.com/u/133308?v=4" width="100px;"/><br /><sub><b>Adrian Perez</b></sub>](https://adrianperez.codes)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Code") [📖](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Documentation") [🚇](#infra-blackxored "Infrastructure (Hosting, Build-Tools, etc)") [⚠️](https://github.com/blackxored/apollo-link-logger/commits?author=blackxored "Tests") | [<img src="https://avatars3.githubusercontent.com/u/294597?s=460&v=4" width="100px;"/><br /><sub><b>Adam Savitzky</b></sub>](https://github.com/adambom)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=adambom "Code") | [<img src="https://avatars3.githubusercontent.com/u/3065138?v=4" width="100px;"/><br /><sub><b>Ifeanyi Oraelosi</b></sub>](https://github.com/gnerkus)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=gnerkus "Code") | [<img src="https://avatars0.githubusercontent.com/u/7076981?v=4" width="100px;"/><br /><sub><b>Romario</b></sub>](https://github.com/romarioraffington)<br />[🐛](https://github.com/blackxored/apollo-link-logger/issues?q=author%3Aromarioraffington "Bug reports") [🤔](#ideas-romarioraffington "Ideas, Planning, & Feedback") | [<img src="https://avatars0.githubusercontent.com/u/6183943?v=4" width="100px;"/><br /><sub><b>Yuriy Kornienko</b></sub>](http://www.dinamchiki.ru)<br />[💻](https://github.com/blackxored/apollo-link-logger/commits?author=Horoshiy "Code") | | ||
| :---: | :---: | :---: | :---: | :---: | | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
@@ -123,0 +123,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
21199
24
198