apollo-link-log
Advanced tools
Comparing version 0.1.0 to 1.0.0
@@ -36,3 +36,3 @@ "use strict"; | ||
enabled = true | ||
}) => new _apolloLink.ApolloLink((operation, forward) => forward(operation).map(result => { | ||
} = {}) => new _apolloLink.ApolloLink((operation, forward) => forward(operation).map(result => { | ||
if (!enabled) return result; | ||
@@ -39,0 +39,0 @@ const { |
{ | ||
"name": "apollo-link-log", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "Log side effect for Apollo Link.", | ||
@@ -8,2 +8,3 @@ "author": "Michael Hsu <evenchange4@gmail.com>", | ||
"main": "lib/index.js", | ||
"typings": "./index.d.ts", | ||
"files": ["lib"], | ||
@@ -57,2 +58,3 @@ "scripts": { | ||
"graphql": "0.12.3", | ||
"graphql-tag": "^2.7.0", | ||
"husky": "0.14.3", | ||
@@ -59,0 +61,0 @@ "jest": "22.1.4", |
@@ -20,3 +20,3 @@ # apollo-link-log | ||
```sh | ||
$ yarn add apollo-link-log | ||
$ yarn add apollo-link-log apollo-link graphql | ||
``` | ||
@@ -32,3 +32,3 @@ | ||
// Custom | ||
// With options | ||
ApolloLink.concat(createLogLink({ | ||
@@ -40,2 +40,6 @@ enabled: process.env.NODE_ENV !== 'production', | ||
## Snapshot | ||
![](./docs/snapshot.png) | ||
## Options | ||
@@ -42,0 +46,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13670
7
107
0
115
30