Remove hash.js dependency and re-enable noUnusedLocals

This commit is contained in:
Martijn Walraven 2018-09-05 14:25:32 +02:00 committed by Jesse Rosenberger
parent 49248329ca
commit 7fbf35cc1c
No known key found for this signature in database
GPG key ID: C0CCCF81AA6C08D8
4 changed files with 4 additions and 6 deletions

5
package-lock.json generated
View file

@ -2181,7 +2181,6 @@
"graphql-subscriptions": "^0.5.8", "graphql-subscriptions": "^0.5.8",
"graphql-tag": "^2.9.2", "graphql-tag": "^2.9.2",
"graphql-tools": "^3.0.4", "graphql-tools": "^3.0.4",
"hash.js": "^1.1.3",
"lodash": "^4.17.10", "lodash": "^4.17.10",
"subscriptions-transport-ws": "^0.9.11", "subscriptions-transport-ws": "^0.9.11",
"ws": "^5.2.0" "ws": "^5.2.0"
@ -6430,6 +6429,7 @@
"version": "1.1.5", "version": "1.1.5",
"resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.5.tgz", "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.5.tgz",
"integrity": "sha512-eWI5HG9Np+eHV1KQhisXWwM+4EPPYe5dFX1UZZH7k/E3JzDEazVH+VGlZi6R94ZqImq+A3D1mCEtrFIfg/E7sA==", "integrity": "sha512-eWI5HG9Np+eHV1KQhisXWwM+4EPPYe5dFX1UZZH7k/E3JzDEazVH+VGlZi6R94ZqImq+A3D1mCEtrFIfg/E7sA==",
"dev": true,
"requires": { "requires": {
"inherits": "^2.0.3", "inherits": "^2.0.3",
"minimalistic-assert": "^1.0.1" "minimalistic-assert": "^1.0.1"
@ -9243,7 +9243,8 @@
"minimalistic-assert": { "minimalistic-assert": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz",
"integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==",
"dev": true
}, },
"minimatch": { "minimatch": {
"version": "3.0.4", "version": "3.0.4",

View file

@ -42,7 +42,6 @@
"graphql-subscriptions": "^0.5.8", "graphql-subscriptions": "^0.5.8",
"graphql-tag": "^2.9.2", "graphql-tag": "^2.9.2",
"graphql-tools": "^3.0.4", "graphql-tools": "^3.0.4",
"hash.js": "^1.1.3",
"lodash": "^4.17.10", "lodash": "^4.17.10",
"subscriptions-transport-ws": "^0.9.11", "subscriptions-transport-ws": "^0.9.11",
"ws": "^5.2.0" "ws": "^5.2.0"

View file

@ -1,5 +1,4 @@
import { ExecutionResult } from 'graphql'; import { ExecutionResult } from 'graphql';
const sha256 = require('hash.js/lib/hash/sha/256');
import { CacheControlExtensionOptions } from 'apollo-cache-control'; import { CacheControlExtensionOptions } from 'apollo-cache-control';

View file

@ -2,8 +2,7 @@
"extends": "../../tsconfig", "extends": "../../tsconfig",
"compilerOptions": { "compilerOptions": {
"rootDir": "./src", "rootDir": "./src",
"outDir": "./dist", "outDir": "./dist"
"noUnusedLocals": false,
}, },
"include": ["src/**/*"], "include": ["src/**/*"],
"exclude": ["**/__tests__", "**/__mocks__"] "exclude": ["**/__tests__", "**/__mocks__"]