From 4da8131d11482fcae32df1373c125ea06b9420f5 Mon Sep 17 00:00:00 2001 From: Florian BOUILLON Date: Mon, 31 May 2021 15:59:26 +0200 Subject: [PATCH] Removed full import on package.json Signed-off-by: Florian BOUILLON --- Request.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Request.ts b/Request.ts index 7c1b98c..74574f3 100644 --- a/Request.ts +++ b/Request.ts @@ -1,5 +1,5 @@ import fetch from 'isomorphic-unfetch' -import pkg from './package.json' +import { version, name } from './package.json' export default class RequestWrapper { private static cache: Array> = [] @@ -38,7 +38,7 @@ export class Request { // Fetch Response const resp = await fetch(this.url, { headers: { - 'user-agent': `${pkg.name}/${pkg.version}` + 'user-agent': `${name}/${version}` } }) if (resp.status !== 200) {