[6.8] Upgrade some hapi related packages to their hapi-namespace counterparts (#98753)

This commit is contained in:
Thomas Watson 2021-05-06 18:50:12 +02:00 committed by GitHub
parent f93cd522f9
commit 84fa5add86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
184 changed files with 318 additions and 231 deletions

View file

@ -133,7 +133,13 @@
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.3.2",
"@elastic/ui-ace": "0.2.3",
"@hapi/boom": "^7.4.11",
"@hapi/good-squeeze": "^6.0.0",
"@hapi/hoek": "^6.2.4",
"@hapi/inert": "^5.2.2",
"@hapi/oppsy": "^2.1.2",
"@hapi/podium": "^3.4.3",
"@hapi/vision": "^5.5.4",
"@kbn/babel-code-parser": "1.0.0",
"@kbn/babel-preset": "1.0.0",
"@kbn/config-schema": "1.0.0",
@ -159,7 +165,6 @@
"babel-polyfill": "6.26.0",
"babel-register": "6.26.0",
"bluebird": "3.5.3",
"boom": "^7.3.0",
"brace": "0.11.1",
"cache-loader": "1.2.2",
"chalk": "^2.4.1",
@ -187,10 +192,8 @@
"handlebars": "4.7.7",
"hapi": "^17.8.5",
"hjson": "3.1.0",
"hoek": "^6.1.3",
"http-proxy-agent": "^2.1.0",
"https-proxy-agent": "^5.0.0",
"inert": "^5.1.3",
"joi": "^13.5.2",
"jquery": "^3.5.0",
"js-yaml": "3.13.1",
@ -217,9 +220,7 @@
"no-ui-slider": "1.2.0",
"node-fetch": "1.3.2",
"opn": "^5.4.0",
"oppsy": "^2.0.1",
"pegjs": "0.9.0",
"podium": "^3.2.0",
"postcss-loader": "3.0.0",
"prop-types": "^15.7.2",
"proxy-from-env": "1.0.0",
@ -275,7 +276,6 @@
"vega-lite": "^2.4.0",
"vega-schema-url-parser": "1.0.0",
"vega-tooltip": "^0.9.14",
"vision": "^5.4.4",
"webpack": "4.26.1",
"webpack-merge": "4.1.4",
"whatwg-fetch": "^3.0.0",
@ -298,7 +298,6 @@
"@types/angular-mocks": "^1.7.0",
"@types/babel-core": "^6.25.5",
"@types/bluebird": "^3.1.1",
"@types/boom": "^7.2.0",
"@types/chance": "^1.0.0",
"@types/classnames": "^2.2.3",
"@types/d3": "^3.5.41",
@ -315,8 +314,10 @@
"@types/globby": "^8.0.0",
"@types/graphql": "^0.13.1",
"@types/hapi": "^17.0.18",
"@types/hapi__boom": "^7.4.1",
"@types/hapi__hoek": "^6.2.0",
"@types/hapi__podium": "^3.4.1",
"@types/has-ansi": "^3.0.0",
"@types/hoek": "^4.1.3",
"@types/humps": "^1.1.2",
"@types/jest": "^23.3.1",
"@types/joi": "^13.4.2",
@ -330,7 +331,6 @@
"@types/mustache": "^0.8.31",
"@types/node": "^10.12.27",
"@types/opn": "^5.1.0",
"@types/podium": "^1.0.0",
"@types/prop-types": "^15.7.3",
"@types/puppeteer-core": "^1.9.0",
"@types/react": "16.3.14",

View file

@ -17,9 +17,9 @@
* under the License.
*/
import Hoek from '@hapi/hoek';
import { readFileSync } from 'fs';
import { Lifecycle, Request, ResponseToolkit, Server, ServerOptions, Util } from 'hapi';
import Hoek from 'hoek';
import { ServerOptions as TLSOptions } from 'https';
import { ValidationError } from 'joi';
import { HttpConfig } from './http_config';

View file

@ -17,8 +17,8 @@
* under the License.
*/
import Podium from '@hapi/podium';
import { ServerExtType } from 'hapi';
import Podium from 'podium';
// @ts-ignore: implicit any for JS file
import { Config, transformDeprecations } from '../../../../server/config';
// @ts-ignore: implicit any for JS file

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { resolve, join, sep } from 'path';
import url from 'url';
import { has, isEmpty, head } from 'lodash';

View file

@ -18,7 +18,7 @@
*/
import Joi from 'joi';
import Boom from 'boom';
import Boom from '@hapi/boom';
import Wreck from 'wreck';
import { trimLeft, trimRight } from 'lodash';

View file

@ -20,7 +20,7 @@
import elasticsearch from 'elasticsearch';
import { get, set, isEmpty, cloneDeep, pick } from 'lodash';
import toPath from 'lodash/internal/toPath';
import Boom from 'boom';
import Boom from '@hapi/boom';
import filterHeaders from './filter_headers';
import { parseConfig } from './parse_config';

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { serializeProvider } from '@kbn/interpreter/common';
import { API_ROUTE } from '../../common/constants';
import { createHandlers } from '../lib/create_handlers';

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import _ from 'lodash';
import { errors as esErrors } from 'elasticsearch';

View file

@ -18,7 +18,7 @@
*/
import { exportDashboards } from '../../../lib/export/export_dashboards';
import Boom from 'boom';
import Boom from '@hapi/boom';
import Joi from 'joi';
import moment from 'moment';
export function exportApi(server) {

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import Joi from 'joi';
import { importDashboards } from '../../../lib/import/import_dashboards';

View file

@ -18,7 +18,7 @@
*/
import Joi from 'joi';
import Boom from 'boom';
import Boom from '@hapi/boom';
export function registerKqlTelemetryApi(server) {
server.route({

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import Joi from 'joi';
import { findRelationships } from '../../../../lib/management/saved_objects/relationships';
import { isNotFoundError } from '../../../../../../../../server/saved_objects/service/lib/errors';

View file

@ -18,7 +18,7 @@
*/
import getVisData from '../lib/get_vis_data';
import Boom from 'boom';
import Boom from '@hapi/boom';
export default (server) => {
server.route({

View file

@ -19,7 +19,7 @@
import { writeFile } from 'fs';
import os from 'os';
import Boom from 'boom';
import Boom from '@hapi/boom';
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import TerserPlugin from 'terser-webpack-plugin';
import webpack from 'webpack';

View file

@ -24,7 +24,7 @@ import crypto from 'crypto';
import Chance from 'chance';
import expect from 'expect.js';
import Hapi from 'hapi';
import Inert from 'inert';
import Inert from '@hapi/inert';
import sinon from 'sinon';
import { createBundlesRoute } from '../bundles_route';

View file

@ -20,7 +20,7 @@
import { resolve } from 'path';
import { open, fstat, createReadStream, close } from 'fs';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { fromNode as fcb } from 'bluebird';
import { getFileHash } from './file_hash';

View file

@ -20,7 +20,7 @@
import { format } from 'url';
import { resolve } from 'path';
import _ from 'lodash';
import Boom from 'boom';
import Boom from '@hapi/boom';
import Hapi from 'hapi';
import { setupVersionCheck } from './version_check';
import { registerHapiPlugins } from './register_hapi_plugins';

View file

@ -17,8 +17,8 @@
* under the License.
*/
import HapiTemplates from 'vision';
import HapiStaticFiles from 'inert';
import HapiTemplates from '@hapi/vision';
import HapiStaticFiles from '@hapi/inert';
import HapiProxy from 'h2o2';
const plugins = [HapiTemplates, HapiStaticFiles, HapiProxy];

View file

@ -17,7 +17,7 @@
* under the License.
*/
import { badRequest } from 'boom';
import { badRequest } from '@hapi/boom';
export function setupVersionCheck(server, config) {
const versionHeader = 'kbn-version';

View file

@ -17,7 +17,7 @@
* under the License.
*/
import { badRequest } from 'boom';
import { badRequest } from '@hapi/boom';
export function setupXsrf(server, config) {
const disabled = config.get('server.xsrf.disableProtection');

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { get } from 'lodash';
const ERR_ES_INDEX_NOT_FOUND = 'index_not_found_exception';

View file

@ -18,7 +18,7 @@
*/
import _ from 'lodash';
import Boom from 'boom';
import Boom from '@hapi/boom';
import Promise from 'bluebird';
import { unlinkSync as unlink } from 'fs';
const writeFile = Promise.promisify(require('fs').writeFile);

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import Joi from 'joi';
import { loadData } from './lib/load_data';

View file

@ -60,7 +60,7 @@
* given an empty migrationVersion property {} if no such property exists.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import _ from 'lodash';
import Semver from 'semver';
import { MigrationVersion, SavedObjectDoc } from '../../serialization';

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
const code = Symbol('SavedObjectsClientErrorCode');

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import {
decorateBadRequestError,

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { getQueryParams } from './query_params';
import { getSortingParams } from './sorting_params';

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { getProperty } from '../../../../mappings';

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { decodeVersion } from './decode_version';

View file

@ -21,7 +21,7 @@ import ServerStatus from './server_status';
import { Metrics } from './lib/metrics';
import { registerStatusPage, registerStatusApi, registerStatsApi } from './routes';
import { getOpsStatsCollector } from './collectors';
import Oppsy from 'oppsy';
import Oppsy from '@hapi/oppsy';
import { cloneDeep } from 'lodash';
import { getOSInfo } from './lib/get_os_info';

View file

@ -18,7 +18,7 @@
*/
import Joi from 'joi';
import boom from 'boom';
import boom from '@hapi/boom';
import { i18n } from '@kbn/i18n';
import { wrapAuthConfig } from '../../wrap_auth_config';
import { KIBANA_STATS_TYPE } from '../../constants';

View file

@ -19,7 +19,7 @@
import { parse } from 'url';
import { trim } from 'lodash';
import Boom from 'boom';
import Boom from '@hapi/boom';
export function shortUrlAssertValid(url) {
const { protocol, hostname, pathname } = parse(url);

View file

@ -17,7 +17,7 @@
* under the License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
export function handleShortUrlError(error) {
return Boom.boomify(error, {

View file

@ -19,7 +19,7 @@
import { createHash } from 'crypto';
import { props, reduce as reduceAsync } from 'bluebird';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { resolve } from 'path';
import { i18n } from '@kbn/i18n';
import { AppBootstrap } from './bootstrap';

View file

@ -18,7 +18,7 @@
*/
import { defaultsDeep } from 'lodash';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { createOrUpgradeSavedConfig } from './create_or_upgrade_saved_config';

View file

@ -19,7 +19,7 @@
import expect from 'expect.js';
import { errors as esErrors } from 'elasticsearch';
import Boom from 'boom';
import Boom from '@hapi/boom';
import {
isEsIndexNotFoundError,

View file

@ -15,6 +15,8 @@
"jsx": "react",
// Enables all strict type checking options.
"strict": true,
// Do not check d.ts files by default
"skipLibCheck": true,
// enables "core language features"
"lib": [
// ESNext auto includes previous versions all the way back to es5

View file

@ -120,6 +120,8 @@
"@elastic/node-crypto": "0.1.2",
"@elastic/node-phantom-simple": "2.2.4",
"@elastic/numeral": "2.3.2",
"@hapi/boom": "^7.4.11",
"@hapi/oppsy": "^2.1.2",
"@kbn/babel-preset": "1.0.0",
"@kbn/es-query": "1.0.0",
"@kbn/i18n": "1.0.0",
@ -149,7 +151,6 @@
"babel-runtime": "^6.26.0",
"base64-js": "^1.2.1",
"bluebird": "3.5.3",
"boom": "^7.3.0",
"brace": "0.11.1",
"chroma-js": "^1.3.6",
"classnames": "2.2.5",
@ -211,7 +212,6 @@
"node-fetch": "^2.6.1",
"nodemailer": "^6.4.16",
"object-path-immutable": "^0.5.3",
"oppsy": "^2.0.1",
"papaparse": "^5.2.0",
"pdfmake": "^0.1.65",
"pluralize": "3.1.0",

View file

@ -5,7 +5,7 @@
*/
import Joi from 'joi';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { getDistribution } from '../lib/errors/distribution/get_distribution';
import { getErrorGroups } from '../lib/errors/get_error_groups';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { Server } from 'hapi';
import { withDefaultValidators } from '../lib/helpers/input_validation';
import { setupRequest } from '../lib/helpers/setup_request';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { Server } from 'hapi';
import {
AgentName,

View file

@ -5,7 +5,7 @@
*/
import Joi from 'joi';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { getServerStatus } from '../lib/status_check/server_check';
import { getAgentStatus } from '../lib/status_check/agent_check';
import { setupRequest } from '../lib/helpers/setup_request';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { Server } from 'hapi';
import { withDefaultValidators } from '../lib/helpers/input_validation';
import { setupRequest } from '../lib/helpers/setup_request';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { Server } from 'hapi';
import Joi from 'joi';
import { withDefaultValidators } from '../lib/helpers/input_validation';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { Server } from 'hapi';
import Joi from 'joi';
import { withDefaultValidators } from '../lib/helpers/input_validation';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { difference } from 'lodash';
import {
BackendFrameworkAdapter,

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { badRequest } from 'boom';
import { badRequest } from '@hapi/boom';
import { readFile } from 'fs';
// @ts-ignore
import Hapi from 'hapi';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import Joi from 'joi';
import { get } from 'lodash';
import { REQUIRED_LICENSES } from '../../../common/constants/security';

View file

@ -5,7 +5,7 @@
*/
// @ts-ignore
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps ES errors into a Boom error response and returns it

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import boom from 'boom';
import boom from '@hapi/boom';
import {
CANVAS_TYPE,
API_ROUTE_WORKPAD,

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps a custom error into a Boom error response and returns it

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
function extractCausedByChain(causedBy = {}, accumulator = []) {
const { reason, caused_by } = causedBy; // eslint-disable-line camelcase

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps an unknown error into a Boom error response and returns it

View file

@ -3,7 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { callWithRequestFactory } from '../../lib/call_with_request_factory';
import { isEsErrorFactory } from '../../lib/is_es_error_factory';
import { wrapEsError, wrapUnknownError } from '../../lib/error_wrappers';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { callWithRequestFactory } from '../../lib/call_with_request_factory';
import { isEsErrorFactory } from '../../lib/is_es_error_factory';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { callWithRequestFactory } from '../../lib/call_with_request_factory';
import { isEsErrorFactory } from '../../lib/is_es_error_factory';
import { wrapEsError, wrapUnknownError } from '../../lib/error_wrappers';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import {
AUTH_SCOPE_DASHBORD_ONLY_MODE

View file

@ -5,7 +5,7 @@
*/
import { resolve } from 'path';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { initServer } from './server';
import mappings from './mappings.json';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { mirrorPluginStatus } from '../../../server/lib/mirror_plugin_status';
import { checkLicense } from './lib';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { get } from 'lodash';
export async function callEsGraphExploreApi({ callCluster, index, query }) {

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
export async function callEsSearchApi({ callCluster, index, body, queryParams }) {
try {

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
export function verifyApiAccessPre(request, h) {
const xpackInfo = request.server.plugins.xpack_main.info;

View file

@ -5,7 +5,7 @@
*/
import Joi from 'joi';
import Boom from 'boom';
import Boom from '@hapi/boom';
import {
verifyApiAccessPre,

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps ES errors into a Boom error response and returns it

View file

@ -5,7 +5,7 @@
*/
import expect from 'expect.js';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { licensePreRoutingFactory } from '../license_pre_routing_factory';
describe('license_pre_routing_factory', () => {

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { PLUGIN } from '../../../common/constants';
export const licensePreRoutingFactory = (server) => {

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps a custom error into a Boom error response and returns it

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps an error thrown by the ES JS client into a Boom error response and returns it

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps an unknown error into a Boom error response and returns it

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps a custom error into a Boom error response and returns it

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps an error thrown by the ES JS client into a Boom error response and returns it

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps an unknown error into a Boom error response and returns it

View file

@ -8,12 +8,12 @@
"build-graphql-types": "node scripts/generate_types_from_graphql.js"
},
"devDependencies": {
"@types/boom": "7.2.0",
"@types/hapi__boom": "^7.4.1",
"@types/lodash": "^4.14.110"
},
"dependencies": {
"@hapi/boom": "^7.4.11",
"@types/color": "^3.0.0",
"boom": "^7.3.0",
"lodash": "^4.17.21"
}
}

View file

@ -4,8 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from '@hapi/boom';
import * as GraphiQL from 'apollo-server-module-graphiql';
import Boom from 'boom';
import { Plugin, Request, ResponseToolkit, RouteOptions, Server } from 'hapi';
import { GraphQLOptions, runHttpQuery } from 'apollo-server-core';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import * as Boom from 'boom';
import * as Boom from '@hapi/boom';
import { SearchParams } from 'elasticsearch';
import * as Joi from 'joi';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import * as Boom from 'boom';
import * as Boom from '@hapi/boom';
import { SearchParams } from 'elasticsearch';
import * as Joi from 'joi';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import * as Boom from 'boom';
import * as Boom from '@hapi/boom';
import { SearchParams } from 'elasticsearch';
import * as Joi from 'joi';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps ES errors into a Boom error response and returns it

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps a custom error into a Boom error response and returns it

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { i18n } from '@kbn/i18n';
/**

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
/**
* Wraps an unknown error into a Boom error response and returns it

View file

@ -5,7 +5,7 @@
*/
import moment from 'moment';
import { badRequest } from 'boom';
import { badRequest } from '@hapi/boom';
import { get } from 'lodash';
import { i18n } from '@kbn/i18n';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { callWithRequestFactory } from '../../../lib/call_with_request_factory';
import { Cluster } from '../../../models/cluster';
import { licensePreRoutingFactory } from'../../../lib/license_pre_routing_factory';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import { INDEX_NAMES, TYPE_NAMES } from '../../../../common/constants';
import { callWithRequestFactory } from '../../../lib/call_with_request_factory';
import { Pipeline } from '../../../models/pipeline';

View file

@ -7,7 +7,7 @@
import { resolve } from 'path';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { checkLicense } from './server/lib/check_license';
import { FEATURE_ANNOTATIONS_ENABLED } from './common/constants/feature_flags';

View file

@ -6,7 +6,7 @@
import { boomify } from 'boom';
import { boomify } from '@hapi/boom';
export function wrapError(error) {
return boomify(error, { statusCode: error.status });

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import _ from 'lodash';
import { ANNOTATION_DOC_TYPE, ANNOTATION_TYPE } from '../../../common/constants/annotations';

View file

@ -7,7 +7,7 @@
import _ from 'lodash';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { EventManager } from './event_manager';
export class CalendarManager {

View file

@ -6,7 +6,7 @@
import Boom from 'boom';
import Boom from '@hapi/boom';
export class EventManager {

View file

@ -7,7 +7,7 @@
import fs from 'fs';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { prefixDatafeedId } from '../../../common/util/job_utils';
import { mlLog } from '../../client/log';

View file

@ -5,7 +5,7 @@
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import fs from 'fs';
import os from 'os';
const util = require('util');

View file

@ -5,7 +5,7 @@
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
export class FilterManager {

View file

@ -7,7 +7,7 @@
import { i18n } from '@kbn/i18n';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { fieldsServiceProvider } from '../fields_service';
import { renderTemplate } from '../../../common/util/string_utils';

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import Boom from 'boom';
import Boom from '@hapi/boom';
import _ from 'lodash';
import { i18n } from '@kbn/i18n';

View file

@ -6,7 +6,7 @@
import Boom from 'boom';
import Boom from '@hapi/boom';
import { callWithRequestFactory } from '../client/call_with_request_factory';
import { wrapError } from '../client/errors';

View file

@ -11,7 +11,7 @@ import { callWithInternalUserFactory } from '../client/call_with_internal_user_f
import { mlLog } from '../client/log';
import { wrapError } from '../client/errors';
import Boom from 'boom';
import Boom from '@hapi/boom';
import { isSecurityDisabled } from '../lib/security_utils';

View file

@ -5,7 +5,7 @@
*/
import React from 'react';
import { boomify, forbidden } from 'boom';
import { boomify, forbidden } from '@hapi/boom';
import { renderWithIntl } from '../../../../../../test_utils/enzyme_helpers';
import { CheckerErrors } from '../checker_errors';

View file

@ -6,7 +6,7 @@
import { Enabler } from '../';
import sinon from 'sinon';
import { forbidden } from 'boom';
import { forbidden } from '@hapi/boom';
const updateModel = properties => properties;
const updateModelSpy = sinon.spy(updateModel);

View file

@ -10,7 +10,7 @@ import {
KIBANA_STATS_TYPE_MONITORING,
} from '../../../common/constants';
import { opsBuffer } from './ops_buffer';
import Oppsy from 'oppsy';
import Oppsy from '@hapi/oppsy';
import { cloneDeep } from 'lodash';
let bufferHadEvents = false;

View file

@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { badRequest, notFound } from 'boom';
import { badRequest, notFound } from '@hapi/boom';
import { getClustersStats } from './get_clusters_stats';
import { i18n } from '@kbn/i18n';

Some files were not shown because too many files have changed in this diff Show more