Compare commits
2 Commits
b9fec71e45
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
605a293052
|
|||
|
4d26396a8d
|
@@ -6,6 +6,5 @@
|
|||||||
.yarnrc.yml
|
.yarnrc.yml
|
||||||
babel.config.*
|
babel.config.*
|
||||||
jest.config.*
|
jest.config.*
|
||||||
src
|
|
||||||
tsconfig*.json
|
tsconfig*.json
|
||||||
tslint.json
|
tslint.json
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mifi/ui-common",
|
"name": "@mifi/ui-common",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"author": "mifi (Mike Fitzpatrick)",
|
"author": "mifi (Mike Fitzpatrick)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"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,
|
"noImplicitReturns": true,
|
||||||
"noImplicitThis": true,
|
"noImplicitThis": true,
|
||||||
"outDir": "lib/",
|
"outDir": "lib/",
|
||||||
"removeComments": true,
|
"removeComments": false,
|
||||||
"rootDirs": ["./", "src/"],
|
"rootDirs": ["./", "src/"],
|
||||||
"sourceMap": false,
|
"sourceMap": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"target": "es2017"
|
"target": "es2017"
|
||||||
|
|||||||
Reference in New Issue
Block a user