From 6c87db1a6f6d9d093e0f91d01a061b35577c7b5f Mon Sep 17 00:00:00 2001 From: Akshay Ram Date: Fri, 5 Jun 2020 10:37:17 +0700 Subject: [PATCH 1/2] Fix typos --- src/docs/MultiplePageDemo/index.jsx | 18 +++++++++--------- src/docs/Report/index.jsx | 20 +++++++++----------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/src/docs/MultiplePageDemo/index.jsx b/src/docs/MultiplePageDemo/index.jsx index 54eee2b..ca53f2e 100644 --- a/src/docs/MultiplePageDemo/index.jsx +++ b/src/docs/MultiplePageDemo/index.jsx @@ -13,15 +13,15 @@ const { Content } = Layout; const { TabPane } = Tabs; const { Text } = Typography; -const initalReportProps = { +const initialReportProps = { tokenType: 'Embed', }; const ReportDemo = () => { const [reportProps, setReportProps] = React.useState( - initalReportProps + initialReportProps ); - const [isVaildConfig, setIsValidConfig] = React.useState(false); + const [isValidConfig, setIsValidConfig] = React.useState(false); const [activeTab, setActiveTab] = React.useState('form'); const onTabClick = (key, event) => setActiveTab(key); @@ -76,7 +76,7 @@ const ReportDemo = () => { const onReset = React.useCallback(() => { setIsValidConfig(false); - }, [isVaildConfig]); + }, [isValidConfig]); const extraSettings = { filterPaneEnabled: false, @@ -118,7 +118,7 @@ const ReportDemo = () => { key="form" >
@@ -151,9 +151,9 @@ const ReportDemo = () => { + Report @@ -212,7 +212,7 @@ const ReportDemo = () => {
- {isVaildConfig && ( + {isValidConfig && ( { }} /> )} - {isVaildConfig && ( + {isValidConfig && ( { const [reportProps, setReportProps] = React.useState( - initalReportProps + initialReportProps ); - const [isVaildConfig, setIsValidConfig] = React.useState(false); + const [isValidConfig, setIsValidConfig] = React.useState(false); const [activeTab, setActiveTab] = React.useState('form'); const onTabClick = (key, event) => setActiveTab(key); @@ -30,7 +30,7 @@ const ReportDemo = () => { const onReset = React.useCallback(() => { setIsValidConfig(false); - }, [isVaildConfig]); + }, [isValidConfig]); const extraSettings = { filterPaneEnabled: false, @@ -50,15 +50,15 @@ const ReportDemo = () => { key="form" > + Report @@ -67,7 +67,7 @@ const ReportDemo = () => { } key="report" > - {isVaildConfig && ( + {isValidConfig && ( { }} {...reportProps} extraSettings={extraSettings} - onLoad={(report) => { - console.log('Report Loaded!'); - }} + onLoad={onLoadAndSetTokenListener} onRender={(report) => { console.log('Report Rendered'); }} From b6b7cd6d5468b21caa5012d06bc074f920aecf33 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 5 Jun 2020 19:13:55 +0000 Subject: [PATCH 2/2] [Security] Bump websocket-extensions from 0.1.3 to 0.1.4 Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4. **This update includes a security fix.** - [Release notes](https://github.com/faye/websocket-extensions-node/releases) - [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md) - [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4) Signed-off-by: dependabot-preview[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ae9f981..ffb27c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10134,9 +10134,9 @@ } }, "websocket-extensions": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz", - "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", "dev": true }, "which": {