Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 28a7d74

Browse files
shimming flatmap
1 parent a6f74a6 commit 28a7d74

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"main": "src/index.tsx",
1414
"private": false,
1515
"devDependencies": {
16+
"@types/array.prototype.flatmap": "^1.2.0",
1617
"@types/classnames": "^2.2.6",
1718
"@types/history": "^4.7.2",
1819
"@types/json-schema": "^7.0.1",
@@ -37,6 +38,7 @@
3738
"dependencies": {
3839
"@material-ui/core": "3.2.1",
3940
"@material-ui/icons": "3.0.1",
41+
"array.prototype.flatmap": "1.2.1",
4042
"classnames": "2.2.6",
4143
"history": "4.7.2",
4244
"inflector-js": "1.0.1",

src/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import flatMap from 'array.prototype.flatmap';
12
import React from 'react';
23
import ReactDOM from 'react-dom';
34
import SqlStreamStoreBrowser from './SqlStreamStoreBrowser';
@@ -10,6 +11,8 @@ declare global {
1011
}
1112
}
1213

14+
flatMap.shim();
15+
1316
window.SqlStreamStoreBrowser = SqlStreamStoreBrowser;
1417
window.ReactDOM = ReactDOM;
1518
window.React = React;

yarn.lock

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
"@babel/runtime" "7.0.0"
6767
recompose "^0.29.0"
6868

69+
"@types/array.prototype.flatmap@^1.2.0":
70+
version "1.2.0"
71+
resolved "https://registry.yarnpkg.com/@types/array.prototype.flatmap/-/array.prototype.flatmap-1.2.0.tgz#e11283ae3bf9b432173756764064f2d8a7a377b1"
72+
6973
"@types/classnames@^2.2.6":
7074
version "2.2.6"
7175
resolved "https://registry.yarnpkg.com/@types/classnames/-/classnames-2.2.6.tgz#dbe8a666156d556ed018e15a4c65f08937c3f628"
@@ -382,6 +386,14 @@ array-unique@^0.3.2:
382386
version "0.3.2"
383387
resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428"
384388

389+
array.prototype.flatmap@1.2.1:
390+
version "1.2.1"
391+
resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.1.tgz#3103cd4826ef90019c9b0a4839b2535fa6faf4e9"
392+
dependencies:
393+
define-properties "^1.1.2"
394+
es-abstract "^1.10.0"
395+
function-bind "^1.1.1"
396+
385397
arrify@^1.0.0, arrify@^1.0.1:
386398
version "1.0.1"
387399
resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d"
@@ -2445,7 +2457,7 @@ error-ex@^1.2.0:
24452457
dependencies:
24462458
is-arrayish "^0.2.1"
24472459

2448-
es-abstract@^1.7.0:
2460+
es-abstract@^1.10.0, es-abstract@^1.7.0:
24492461
version "1.12.0"
24502462
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165"
24512463
dependencies:

0 commit comments

Comments
 (0)