-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 73221-remove-success
- Loading branch information
Showing
348 changed files
with
6,537 additions
and
3,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ins/data/public/kibana-plugin-plugins-data-public.action_global_apply_filter.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [ACTION\_GLOBAL\_APPLY\_FILTER](./kibana-plugin-plugins-data-public.action_global_apply_filter.md) | ||
|
||
## ACTION\_GLOBAL\_APPLY\_FILTER variable | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
ACTION_GLOBAL_APPLY_FILTER = "ACTION_GLOBAL_APPLY_FILTER" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...gins/data/public/kibana-plugin-plugins-data-public.indexpattern.intervalname.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPattern](./kibana-plugin-plugins-data-public.indexpattern.md) > [intervalName](./kibana-plugin-plugins-data-public.indexpattern.intervalname.md) | ||
|
||
## IndexPattern.intervalName property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
intervalName: string | undefined; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...ins/data/public/kibana-plugin-plugins-data-public.indexpattern.sourcefilters.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPattern](./kibana-plugin-plugins-data-public.indexpattern.md) > [sourceFilters](./kibana-plugin-plugins-data-public.indexpattern.sourcefilters.md) | ||
|
||
## IndexPattern.sourceFilters property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
sourceFilters?: SourceFilter[]; | ||
``` |
11 changes: 11 additions & 0 deletions
11
...ment/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.type.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-plugins-data-public](./kibana-plugin-plugins-data-public.md) > [IndexPattern](./kibana-plugin-plugins-data-public.indexpattern.md) > [type](./kibana-plugin-plugins-data-public.indexpattern.type.md) | ||
|
||
## IndexPattern.type property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
type: string | undefined; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
{ | ||
"name": "@kbn/dev-utils", | ||
"main": "./target/index.js", | ||
"version": "1.0.0", | ||
"license": "Apache-2.0", | ||
"private": true, | ||
"license": "Apache-2.0", | ||
"main": "./target/index.js", | ||
"scripts": { | ||
"build": "tsc", | ||
"kbn:bootstrap": "yarn build", | ||
"kbn:watch": "yarn build --watch" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "^7.11.1", | ||
"axios": "^0.19.0", | ||
"chalk": "^4.1.0", | ||
"cheerio": "0.22.0", | ||
"dedent": "^0.7.0", | ||
"execa": "^4.0.2", | ||
"exit-hook": "^2.2.0", | ||
"getopts": "^2.2.5", | ||
"globby": "^8.0.1", | ||
"load-json-file": "^6.2.0", | ||
"normalize-path": "^3.0.0", | ||
"markdown-it": "^10.0.0", | ||
"moment": "^2.24.0", | ||
"normalize-path": "^3.0.0", | ||
"rxjs": "^6.5.5", | ||
"strip-ansi": "^6.0.0", | ||
"tree-kill": "^1.2.2", | ||
"tslib": "^2.0.0" | ||
"vinyl": "^2.2.0" | ||
}, | ||
"devDependencies": { | ||
"typescript": "4.0.2", | ||
"@kbn/babel-preset": "1.0.0", | ||
"@kbn/expect": "1.0.0", | ||
"chance": "1.0.18" | ||
"@types/vinyl": "^2.0.4", | ||
"chance": "1.0.18", | ||
"typescript": "4.0.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import File from 'vinyl'; | ||
import * as Babel from '@babel/core'; | ||
|
||
const transformedFiles = new WeakSet<File>(); | ||
|
||
/** | ||
* Returns a promise that resolves when the file has been | ||
* mutated so the contents of the file are tranformed with | ||
* babel, include inline sourcemaps, and the filename has | ||
* been updated to use .js. | ||
* | ||
* If the file was previously transformed with this function | ||
* the promise will just resolve immediately. | ||
*/ | ||
export async function transformFileWithBabel(file: File) { | ||
if (!(file.contents instanceof Buffer)) { | ||
throw new Error('file must be buffered'); | ||
} | ||
|
||
if (transformedFiles.has(file)) { | ||
return; | ||
} | ||
|
||
const source = file.contents.toString('utf8'); | ||
const result = await Babel.transformAsync(source, { | ||
babelrc: false, | ||
configFile: false, | ||
sourceMaps: 'inline', | ||
filename: file.path, | ||
presets: [require.resolve('@kbn/babel-preset/node_preset')], | ||
}); | ||
|
||
if (!result || typeof result.code !== 'string') { | ||
throw new Error('babel transformation failed without an error...'); | ||
} | ||
|
||
file.contents = Buffer.from(result.code); | ||
file.extname = '.js'; | ||
transformedFiles.add(file); | ||
} |
Oops, something went wrong.