Skip to content

Commit 7da1ac2

Browse files
Merge pull request #2210 from igor-karpukhin/LOG-1315/kibana6-nodejs-parser
LOG-1315. Updated kibana dependencies
2 parents adf1062 + 1a409b1 commit 7da1ac2

File tree

234 files changed

+20215
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+20215
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ _output/
1414
venv
1515

1616
**/.vendor
17+
*.swo
18+
*.swp

kibana/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ COPY ${upstream_code}/vendored_tar_src/kibana-oss-6.8.1 ${HOME}/
2929
COPY ${upstream_code}/vendored_tar_src/opendistro_security_kibana_plugin-0.10.0.4/ ${HOME}/plugins/opendistro_security_kibana_plugin-0.10.0.4/
3030
COPY ${upstream_code}/vendored_tar_src/handlebars/ ${HOME}/node_modules/handlebars/
3131
COPY ${upstream_code}/vendored_tar_src/minimist/ ${HOME}/node_modules/minimist/
32+
COPY ${upstream_code}/vendored_tar_src/ua-parser-js-1.0.2/ ${HOME}/node_modules/ua-parser/
33+
COPY ${upstream_code}/vendored_tar_src/fbjs-0.8.18/ ${HOME}/node_modules/fbjs/
3234

3335
RUN chmod -R og+w ${HOME}/
3436
COPY ${upstream_code}/probe/ /usr/share/kibana/probe/

kibana/Dockerfile.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ COPY --from=builder ${upstream_code}/vendored_tar_src/kibana-oss-6.8.1 ${HOME}/
4848
COPY --from=builder ${upstream_code}/vendored_tar_src/opendistro_security_kibana_plugin-0.10.0.4/ ${HOME}/plugins/opendistro_security_kibana_plugin-0.10.0.4/
4949
COPY --from=builder ${upstream_code}/vendored_tar_src/handlebars/ ${HOME}/node_modules/handlebars/
5050
COPY --from=builder ${upstream_code}/vendored_tar_src/minimist/ ${HOME}/node_modules/minimist/
51+
COPY --from=builder ${upstream_code}/vendored_tar_src/ua-parser-js-1.0.2/ ${HOME}/node_modules/ua-parser/
52+
COPY --from=builder ${upstream_code}/vendored_tar_src/fbjs-0.8.18/ ${HOME}/node_modules/fbjs/
5153

5254
RUN chmod -R og+w ${HOME}/
5355
COPY --from=builder ${upstream_code}/probe/ /usr/share/kibana/probe/
Lines changed: 227 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,227 @@
1+
## [Unreleased]
2+
3+
4+
## [0.8.18] - 2021-10-23
5+
6+
### Fixed
7+
- Upgraded `ua-parser-js` dependency
8+
9+
10+
11+
## [0.8.17] - 2018-06-11
12+
13+
### Fixed
14+
- Upgraded `ua-parser-js` dependency to address ReDoS vulnerability.
15+
16+
17+
## [0.8.16] - 2017-09-25
18+
19+
### Changed
20+
- Relicense to MIT as part of React relicense.
21+
22+
23+
## [0.8.15] - 2017-09-07
24+
25+
### Fixed
26+
- `getDocumentScrollElement` now correctly returns the `<html>` element in Chrome 61 instead of `<body>`.
27+
28+
29+
## [0.8.14] - 2017-07-25
30+
31+
### Removed
32+
- Flow annotations for `keyMirror` module. The annotation generates a syntax error after being re-printed by Babel.
33+
34+
35+
## [0.8.13] - 2017-07-25
36+
37+
### Added
38+
- Flow annotations for `keyMirror` module.
39+
40+
### Fixed
41+
- Fixed strict argument arity issues with `Deferred` module.
42+
- Corrected License header in `EventListener`.
43+
44+
45+
## [0.8.12] - 2017-03-29
46+
47+
### Fixed
48+
- Fix use of `global` working inconsistently.
49+
50+
51+
## [0.8.11] - 2017-03-21
52+
53+
### Fixed
54+
- Fixed a regression resulting from making DOM utilities work in nested browsing contexts.
55+
56+
57+
## [0.8.10] - 2017-03-20
58+
59+
### Changed
60+
- Made DOM utilities work in nested browsing contexts.
61+
62+
63+
## [0.8.9] - 2017-01-31
64+
65+
### Fixed
66+
- Updated `partitionObjectByKey` Flow annotations for Flow 0.38.
67+
68+
69+
## [0.8.8] - 2016-12-20
70+
71+
### Changed
72+
- `invariant`: Moved `process.env.NODE_ENV` check to module scope, eliminating check on each call.
73+
74+
75+
## [0.8.7] - 2016-12-19
76+
77+
### Added
78+
- New module: `setImmediate`.
79+
80+
81+
## [0.8.6] - 2016-11-09
82+
83+
### Removed
84+
- Removed runtime dependency on immutable, reducing package size.
85+
86+
87+
## [0.8.5] - 2016-09-27
88+
89+
### Fixed
90+
- Fixed all remaining issues resulting in Flow errors when `fbjs` is a dependency of a dependency.
91+
92+
### Removed
93+
- Removed now extraneous `flow/lib/Promise.js`.
94+
95+
## [0.8.4] - 2016-08-19
96+
97+
### Changed
98+
- Moved `try/catch` in `warning` module to helper function to prevent deopts.
99+
100+
101+
## [0.8.3] - 2016-05-25
102+
103+
### Added
104+
- `Deferred`: added `Deferred.prototype.catch` to avoid having to call this directly on the Promise.
105+
- `UnicodeUtilsExtra`: added several methods for escaping strings.
106+
107+
### Changed
108+
- More Flow annotations: `containsNode`, `emptyFunction`, `memoizeStringOnly`
109+
- Added explicit `<any>` type arguments to in anticipation of a future Flow change requiring them.
110+
- `Object.assign` calls now replaced with usage of `object-assign` module.
111+
112+
### Fixed
113+
- Type imports in .js.flow files are now properly using relative paths.
114+
- `DataTransfer`: handle Firefox better
115+
116+
117+
## [0.8.2] - 2016-05-05
118+
119+
### Removed
120+
- Removed extraneous production dependency
121+
122+
123+
## [0.8.1] - 2016-04-18
124+
125+
### Added
126+
- We now include a `Promise` class definition in `flow/lib` to account for the changes in Flow v0.23 which removed non-spec methods. This will allow our code to continue typechecking while using these methods.
127+
128+
129+
## [0.8.0] - 2016-04-04
130+
131+
### Added
132+
- Several additional modules. Notably, a collection of Unicode utilities and many new `functional` helpers.
133+
- `CSSCore`: added `matchesSelector` method
134+
135+
### Changed
136+
- Copyright headers updated to reflect current boilerplate
137+
- `@providesModule` headers removed from generated source code
138+
- Flow files now contain relative requires, improving compatibility with Haste and CommonJS module systems
139+
140+
### Fixed
141+
- `isEmpty`: Protect from breaking in environments without `Symbol` defined
142+
143+
144+
## [0.7.2] - 2016-02-05
145+
146+
### Fixed
147+
- `URI`: correctly store reference to value in constructor and return it when stringifying
148+
149+
### Removed
150+
- Backed out rejection tracking for React Native `Promise` implementation. That code now lives in React Native.
151+
152+
153+
## [0.7.1] - 2016-02-02
154+
155+
### Fixed
156+
157+
- Corrected require path issue for native `Promise` module
158+
159+
160+
## [0.7.0] - 2016-01-27
161+
162+
### Added
163+
- `Promise` for React Native with rejection tracking in `__DEV__` and a `finally` method
164+
- `_shouldPolyfillES6Collection`: check if ES6 Collections need to be polyfilled.
165+
166+
### Removed
167+
- `toArray`: removed in favor of using `Array.from` directly.
168+
169+
### Changed
170+
- `ErrorUtils`: Re-uses any global instance that already exists
171+
- `fetch`: Switched to `isomorphic-fetch` when a global implementation is missing
172+
- `shallowEqual`: handles `NaN` values appropriately (as equal), now using `Object.is` semantics
173+
174+
175+
## [0.6.1] - 2016-01-06
176+
177+
### Changed
178+
- `getActiveElement`: no longer throws in non-browser environment (again)
179+
180+
181+
## [0.6.0] - 2015-12-29
182+
183+
### Changed
184+
- Flow: Original source files in `fbjs/flow/include` have been removed in favor of placing original files alongside compiled files in lib with a `.flow` suffix. This requires Flow version 0.19 or greater and a change to `.flowconfig` files to remove the include path.
185+
186+
187+
## [0.5.1] - 2015-12-13
188+
189+
### Added
190+
- `base62` module
191+
192+
193+
## [0.5.0] - 2015-12-04
194+
195+
### Changed
196+
197+
- `getActiveElement`: No longer handles a non-existent `document`
198+
199+
200+
## [0.4.0] - 2015-10-16
201+
202+
### Changed
203+
204+
- `invariant`: Message is no longer prefixed with "Invariant Violation: ".
205+
206+
207+
## [0.3.2] - 2015-10-12
208+
209+
### Added
210+
- Apply appropriate transform (`loose-envify`) when bundling with `browserify`
211+
212+
213+
## [0.3.1] - 2015-10-01
214+
215+
### Fixed
216+
- Ensure the build completes correctly before packaging
217+
218+
219+
## [0.3.0] - 2015-10-01
220+
221+
### Added
222+
- More modules: `memoizeStringOnly`, `joinClasses`
223+
- `UserAgent`: Query information about current user agent
224+
225+
### Changed
226+
- `fetchWithRetries`: Reject failure with an Error, not the response
227+
- `getActiveElement`: no longer throws in non-browser environment
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
MIT License
2+
3+
Copyright (c) 2013-present, Facebook, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# FBJS
2+
3+
## Purpose
4+
5+
To make it easier for Facebook to share and consume our own JavaScript. Primarily this will allow us to ship code without worrying too much about where it lives, keeping with the spirit of `@providesModule` but working in the broader JavaScript ecosystem.
6+
7+
**Note:** If you are consuming the code here and you are not also a Facebook project, be prepared for a bad time. APIs may appear or disappear and we may not follow semver strictly, though we will do our best to. This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. In order for us to move fast and ship projects like React and Relay, we've made the decision to not support everybody. We probably won't take your feature requests unless they align with our needs. There will be overlap in functionality here and in other open source projects.
8+
9+
## Usage
10+
11+
Any `@providesModule` modules that are used by your project should be added to `src/`. They will be built and added to `module-map.json`. This file will contain a map from `@providesModule` name to what will be published as `fbjs`. The `module-map.json` file can then be consumed in your own project, along with the [rewrite-modules](https://github.com/facebook/fbjs/blob/master/babel-preset/plugins/rewrite-modules.js) Babel plugin (which we'll publish with this), to rewrite requires in your own project. Then, just make sure `fbjs` is a dependency in your `package.json` and your package will consume the shared code.
12+
13+
```js
14+
// Before transform
15+
const emptyFunction = require('emptyFunction');
16+
// After transform
17+
const emptyFunction = require('fbjs/lib/emptyFunction');
18+
```
19+
20+
See React for an example of this. *Coming soon!*
21+
22+
## Building
23+
24+
It's as easy as just running gulp. This assumes you've also done `npm install -g gulp`.
25+
26+
```sh
27+
gulp
28+
```
29+
30+
Alternatively `npm run build` will also work.
31+
32+
### Layout
33+
34+
Right now these packages represent a subset of packages that we use internally at Facebook. Mostly these are support libraries used when shipping larger libraries, like React and Relay, or products. Each of these packages is in its own directory under `src/`.
35+
36+
### Process
37+
38+
Since we use `@providesModule`, we need to rewrite requires to be relative. Thanks to `@providesModule` requiring global uniqueness, we can do this easily. Eventually we'll try to make this part of the process go away by making more projects use CommonJS.
39+
40+
41+
## TODO
42+
43+
- Flow: Ideally we'd ship our original files with type annotations, however that's not doable right now. We have a couple options:
44+
- Make sure our transpilation step converts inline type annotations to the comment format.
45+
- Make our build process also build Flow interface files which we can ship to npm.
46+
- Split into multiple packages. This will be better for more concise versioning, otherwise we'll likely just be shipping lots of major versions.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* Copyright (c) 2013-present, Facebook, Inc.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
declare var __DEV__: boolean;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* Copyright (c) 2013-present, Facebook, Inc.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
'use strict';
9+
10+
throw new Error('The fbjs package should not be required without a full path.');

0 commit comments

Comments
 (0)