Skip to content

Commit

Permalink
updating other kibana files
Browse files Browse the repository at this point in the history
  • Loading branch information
brittanyjoiner15 committed Aug 10, 2020
1 parent 6f8250c commit 57b963e
Show file tree
Hide file tree
Showing 1,161 changed files with 6,605 additions and 5,972 deletions.
2 changes: 1 addition & 1 deletion examples/alerting_example/public/alert_types/astros.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
EuiTextColor,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { flatten } from 'lodash';
import flatten from 'lodash/flatten';
import { ALERTING_EXAMPLE_APP_ID, Craft, Operator } from '../../common/constants';
import { SanitizedAlert } from '../../../../x-pack/plugins/alerts/common';
import { PluginSetupContract as AlertingSetup } from '../../../../x-pack/plugins/alerts/public';
Expand Down
2 changes: 1 addition & 1 deletion examples/alerting_example/public/components/view_alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
} from '@elastic/eui';
import { withRouter, RouteComponentProps } from 'react-router-dom';
import { CoreStart } from 'kibana/public';
import { isEmpty } from 'lodash';
import isEmpty from 'lodash/isEmpty';
import {
Alert,
AlertTaskState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
} from '@elastic/eui';
import { withRouter, RouteComponentProps } from 'react-router-dom';
import { CoreStart } from 'kibana/public';
import { isEmpty } from 'lodash';
import isEmpty from 'lodash/isEmpty';
import {
Alert,
AlertTaskState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import uuid from 'uuid';
import { range } from 'lodash';
import range from 'lodash/range';
import { AlertType } from '../../../../x-pack/plugins/alerts/server';
import { DEFAULT_INSTANCES_TO_GENERATE, ALERTING_EXAMPLE_APP_ID } from '../../common/constants';

Expand Down
64 changes: 32 additions & 32 deletions packages/kbn-analytics/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// We can't use common Kibana presets here because of babel versions incompatibility
module.exports = {
plugins: ['@babel/plugin-proposal-class-properties'],
env: {
web: {
presets: ['@kbn/babel-preset/webpack_preset'],
},
node: {
presets: ['@kbn/babel-preset/node_preset'],
},
},
ignore: ['**/*.test.ts', '**/*.test.tsx'],
};
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

// We can't use common Kibana presets here because of babel versions incompatibility
module.exports = {
plugins: ['@babel/plugin-proposal-class-properties'],
env: {
web: {
presets: ['@kbn/babel-preset/webpack_preset'],
},
node: {
presets: ['@kbn/babel-preset/node_preset'],
},
},
ignore: ['**/*.test.ts', '**/*.test.tsx'],
};
2 changes: 1 addition & 1 deletion packages/kbn-config-schema/src/internals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
ValidationErrorItem,
ValidationOptions,
} from 'joi';
import { isPlainObject } from 'lodash';
import isPlainObject from 'lodash/isPlainObject';
import { isDuration } from 'moment';
import { Stream } from 'stream';
import { ByteSizeValue, ensureByteSizeValue } from '../byte_size_value';
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-es-archiver/src/lib/__tests__/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { uniq } from 'lodash';
import uniq from 'lodash/uniq';
import sinon from 'sinon';
import expect from '@kbn/expect';
import { ToolingLog } from '@kbn/dev-utils';
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-es-archiver/src/lib/docs/__tests__/stubs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import { Client } from 'elasticsearch';
import sinon from 'sinon';
import Chance from 'chance';
import { times } from 'lodash';
import times from 'lodash/times';

import { Stats } from '../../stats';

Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-es-archiver/src/lib/indices/delete_index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { get } from 'lodash';
import get from 'lodash/get';
import { Client } from 'elasticsearch';
import { ToolingLog } from '@kbn/dev-utils';
import { Stats } from '../stats';
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-es-archiver/src/lib/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { ToolingLog } from '@kbn/dev-utils';
import { cloneDeep } from 'lodash';
import cloneDeep from 'lodash/cloneDeep';

export interface IndexStats {
skipped: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-interpreter/src/common/lib/arg.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { includes } from 'lodash';
import includes from 'lodash/includes';

export function Arg(config) {
if (config.name === '_') throw Error('Arg names must not be _. Use it in aliases instead.');
Expand Down
3 changes: 2 additions & 1 deletion packages/kbn-interpreter/src/common/lib/fn.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
* under the License.
*/

import { mapValues, includes } from 'lodash';
import mapValues from 'lodash/mapValues';
import includes from 'lodash/includes';
import { Arg } from './arg';

export function Fn(config) {
Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-interpreter/src/common/lib/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { clone } from 'lodash';
import clone from 'lodash/clone';

export class Registry {
constructor(prop = 'name') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { resolve } from 'path';
import { promisify } from 'util';

import del from 'del';
import { snakeCase } from 'lodash';
import snakeCase from 'lodash/snakeCase';

const statAsync = promisify(Fs.stat);
const ROOT_DIR = resolve(__dirname, '../../../');
Expand Down
Loading

0 comments on commit 57b963e

Please sign in to comment.