-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into table-vis-fix
- Loading branch information
Showing
574 changed files
with
22,565 additions
and
1,763 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
"author": "opensearch-project", | ||
"scripts": { | ||
"preinstall": "scripts/use_node ./preinstall_check", | ||
"postinstall": "scripts/use_node scripts/postinstall", | ||
"osd": "scripts/use_node scripts/osd", | ||
"opensearch": "scripts/use_node scripts/opensearch", | ||
"test": "grunt test", | ||
|
@@ -122,7 +123,7 @@ | |
"dependencies": { | ||
"@aws-crypto/client-node": "^3.1.1", | ||
"@elastic/datemath": "5.0.3", | ||
"@elastic/eui": "npm:@opensearch-project/[email protected]-alpha.2", | ||
"@elastic/eui": "npm:@opensearch-project/[email protected]", | ||
"@elastic/good": "^9.0.1-kibana3", | ||
"@elastic/numeral": "^2.5.0", | ||
"@elastic/request-crypto": "2.0.0", | ||
|
@@ -138,7 +139,7 @@ | |
"@hapi/podium": "^4.1.3", | ||
"@hapi/vision": "^6.1.0", | ||
"@hapi/wreck": "^17.1.0", | ||
"@opensearch-project/opensearch": "^2.2.0", | ||
"@opensearch-project/opensearch": "^2.3.1", | ||
"@osd/ace": "1.0.0", | ||
"@osd/analytics": "1.0.0", | ||
"@osd/apm-config-loader": "1.0.0", | ||
|
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,3 +1,73 @@ | ||
# `@osd/std` — OpenSearch Dashboards standard library | ||
|
||
This package is a set of utilities that can be used both on server-side and client-side. | ||
This package is a set of utilities that can be used both on server-side and client-side. | ||
|
||
## API | ||
|
||
#### `assertNever` | ||
|
||
Can be used in switch statements to ensure we perform exhaustive checks. | ||
|
||
#### `deepFreeze` | ||
|
||
Apply `Object.freeze` to a value recursively and convert the return type to `Readonly` variant recursively. | ||
|
||
#### `get` | ||
|
||
Retrieve the value for the specified path of an object. | ||
|
||
#### `getFlattenedObject` | ||
|
||
Flatten a deeply nested object to a map of dot-separated paths, pointing to all of its primitive values and arrays. | ||
|
||
#### `stringify` and `parse` | ||
|
||
Drop-in replacement for `JSON.stringify` and `JSON.parse`, capable of handling long numerals and `BigInt` values. | ||
|
||
#### `mapToObject` | ||
|
||
Convert a map to an object. | ||
|
||
#### `mapValuesOfMap` | ||
|
||
Create a new `Map` populated with the results of calling a provided function on every element in the input `Map`. | ||
|
||
#### `groupIntoMap` | ||
|
||
Group elements of an `Array` into a `Map` based on a provided function. | ||
|
||
#### `merge` | ||
|
||
Deeply merge two objects, omitting undefined values, and not deeply merging arrays. | ||
|
||
#### `pick` | ||
|
||
Create a new `Object` of specified keys and their values from an input `Object`. | ||
|
||
#### `withTimeout` | ||
|
||
Apply a `timeout` duration to a `Promise` before throwing an `Error` with the provided message. | ||
|
||
#### `firstValueFrom` and `lastValueFrom` | ||
|
||
Get a `Promise` that resolves as soon as the first or last value arrives from an observable. | ||
|
||
#### `unset` | ||
|
||
Unset a (potentially nested) key from given object. | ||
|
||
#### `modifyUrl` | ||
|
||
Get an `Object` resulting from applying a provided function to the meaningful parts of a URL. | ||
|
||
#### `isRelativeUrl` | ||
|
||
Determine if a url is relative. | ||
|
||
#### `getUrlOrigin` | ||
|
||
Get the origin URL of a provided URL. | ||
|
||
#### `validateObject` | ||
|
||
Deeply validate that an `Object` does not contain any `__proto__` or `constructor.prototype` keys, or circular references. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.