Compare commits
2 Commits
b9fec71e45
...
605a293052
| Author | SHA1 | Date | |
|---|---|---|---|
|
605a293052
|
|||
|
4d26396a8d
|
@@ -6,6 +6,5 @@
|
||||
.yarnrc.yml
|
||||
babel.config.*
|
||||
jest.config.*
|
||||
src
|
||||
tsconfig*.json
|
||||
tslint.json
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mifi/ui-common",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"author": "mifi (Mike Fitzpatrick)",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
||||
@@ -1 +1 @@
|
||||
export const responseJson = (response: Response) => response.json();
|
||||
export const responseJson = (response: Response | undefined) => (response && response.json()) || {};
|
||||
|
||||
1
src/utils/responseRedirect.ts
Normal file
1
src/utils/responseRedirect.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const responseRedirect = ({ location }: { location: string }) => (window.location.href = location);
|
||||
@@ -13,9 +13,9 @@
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitThis": true,
|
||||
"outDir": "lib/",
|
||||
"removeComments": true,
|
||||
"removeComments": false,
|
||||
"rootDirs": ["./", "src/"],
|
||||
"sourceMap": false,
|
||||
"sourceMap": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"target": "es2017"
|
||||
|
||||
Reference in New Issue
Block a user