Skip to content

Commit

Permalink
chore(hail mary): Update package-lock.json via npm-audit-fix (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas authored and sfirke committed Mar 22, 2024
1 parent 4625908 commit 9b8f36e
Show file tree
Hide file tree
Showing 9 changed files with 10,790 additions and 5,808 deletions.
16,557 changes: 10,764 additions & 5,793 deletions superset-frontend/package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions superset-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@
"@visx/axis": "^3.8.0",
"@visx/grid": "^3.5.0",
"@visx/responsive": "^3.0.0",
"@visx/scale": "^3.0.0",
"@visx/xychart": "^3.0.0",
"@visx/scale": "^3.5.0",
"@visx/tooltip": "^3.0.0",
"@visx/xychart": "^3.5.1",
"abortcontroller-polyfill": "^1.1.9",
"ace-builds": "^1.4.14",
"antd": "4.10.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export default function createLoadableRenderer<
Props,
Exports extends { [key: string]: any },
>(options: Loadable.OptionsWithMap<Props, Exports>): LoadableRenderer<Props> {
const LoadableRenderer = Loadable.Map(options) as LoadableRenderer<Props>;
const LoadableRenderer = Loadable.Map<Props, Exports>(
options,
) as LoadableRenderer<Props>;

// Extends the behavior of LoadableComponent to provide post-render listeners
class CustomLoadableRenderer extends LoadableRenderer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ interface ChartPluginConfig<
* Loaders of the form `() => import('foo')` may return esmodules
* which require the value to be extracted as `module.default`
* */
function sanitizeLoader<T>(
function sanitizeLoader<T extends object>(
loader: PromiseOrValueLoader<ValueOrModuleWithValue<T>>,
): PromiseOrValueLoader<T> {
return () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,18 @@ export default function makeApi<
...requestOptions,
method,
endpoint,
searchParams: undefined as URLSearchParams | undefined,
postPayload: undefined as FormData | undefined,
jsonPayload: undefined as JsonObject | undefined,
};
if (requestType === 'search') {
requestConfig.searchParams = payload as SupersetPayload;
requestConfig.searchParams = payload as URLSearchParams;
} else if (requestType === 'rison') {
requestConfig.endpoint = `${endpoint}?q=${rison.encode(payload)}`;
} else if (requestType === 'form') {
requestConfig.postPayload = payload as SupersetPayload;
requestConfig.postPayload = payload as FormData;
} else {
requestConfig.jsonPayload = payload as SupersetPayload;
requestConfig.jsonPayload = payload as JsonObject;
}

let result: JsonValue | Response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class Switchboard {
/**
* Defines a method that can be "called" from the other side by sending an event.
*/
defineMethod<A extends {} = any, R = any>(
defineMethod<A extends {}, R = any>(
methodName: string,
executor: Method<A, R>,
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,7 @@ function useInstance<D extends object>(instance: TableInstance<D>) {
);

const useStickyWrap = (renderer: TableRenderer) => {
// @ts-ignore
const { width, height } =
const { width, height }: { width?: number; height?: number } =
useMountedMemo(getTableSize, [getTableSize]) || sticky;
// only change of data should trigger re-render
// eslint-disable-next-line react-hooks/exhaustive-deps
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ class WordCloud extends React.PureComponent<
},
});

createEncoder = this.wordCloudEncoderFactory.createSelector();
createEncoder = (encoding?: Partial<WordCloudEncoding>) => {
const selector = this.wordCloudEncoderFactory.createSelector();

// @ts-ignore
return selector(encoding as any);
};

constructor(props: FullWordCloudProps) {
super(props);
Expand Down Expand Up @@ -158,8 +163,8 @@ class WordCloud extends React.PureComponent<
update() {
const { data, encoding } = this.props;

// @ts-ignore
const encoder = this.createEncoder(encoding);
const encoder: Encoder<WordCloudEncodingConfig> =
this.createEncoder(encoding);
encoder.setDomainFromDataset(data);

const sortedData = [...data].sort(
Expand Down
5 changes: 3 additions & 2 deletions superset-frontend/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,9 @@ const CustomModal = ({
if (React.isValidElement(footer)) {
// If a footer component is provided inject a closeModal function
// so the footer can provide a "close" button if desired
// @ts-ignore
FooterComponent = React.cloneElement(footer, { closeModal: onHide });
FooterComponent = React.cloneElement(footer, {
closeModal: onHide,
} as Partial<unknown>);
}
const modalFooter = isNil(FooterComponent)
? [
Expand Down

0 comments on commit 9b8f36e

Please sign in to comment.