diff --git a/packages/kbn-std/README.md b/packages/osd-std/README.md similarity index 61% rename from packages/kbn-std/README.md rename to packages/osd-std/README.md index dfd98287ada4..3730735cb5a4 100644 --- a/packages/kbn-std/README.md +++ b/packages/osd-std/README.md @@ -1,3 +1,3 @@ -# `@kbn/std` — Kibana standard library +# `@osd/std` — OpenSearch Dashboards standard library This package is a set of utilities that can be used both on server-side and client-side. \ No newline at end of file diff --git a/packages/kbn-std/package.json b/packages/osd-std/package.json similarity index 76% rename from packages/kbn-std/package.json rename to packages/osd-std/package.json index 8a5e885c456c..b8c938f02a94 100644 --- a/packages/kbn-std/package.json +++ b/packages/osd-std/package.json @@ -1,5 +1,5 @@ { - "name": "@kbn/std", + "name": "@osd/std", "main": "./target/index.js", "types": "./target/index.d.ts", "version": "1.0.0", @@ -7,13 +7,13 @@ "private": true, "scripts": { "build": "tsc", - "kbn:bootstrap": "yarn build" + "osd:bootstrap": "yarn build" }, "dependencies": { "lodash": "^4.17.20" }, "devDependencies": { - "@kbn/utility-types": "1.0.0", + "@osd/utility-types": "1.0.0", "typescript": "4.0.2", "tsd": "^0.13.1" } diff --git a/packages/kbn-std/src/__snapshots__/get.test.ts.snap b/packages/osd-std/src/__snapshots__/get.test.ts.snap similarity index 100% rename from packages/kbn-std/src/__snapshots__/get.test.ts.snap rename to packages/osd-std/src/__snapshots__/get.test.ts.snap diff --git a/packages/kbn-std/src/assert_never.ts b/packages/osd-std/src/assert_never.ts similarity index 100% rename from packages/kbn-std/src/assert_never.ts rename to packages/osd-std/src/assert_never.ts diff --git a/packages/kbn-std/src/deep_freeze.test.ts b/packages/osd-std/src/deep_freeze.test.ts similarity index 100% rename from packages/kbn-std/src/deep_freeze.test.ts rename to packages/osd-std/src/deep_freeze.test.ts diff --git a/packages/kbn-std/src/deep_freeze.ts b/packages/osd-std/src/deep_freeze.ts similarity index 96% rename from packages/kbn-std/src/deep_freeze.ts rename to packages/osd-std/src/deep_freeze.ts index fbc35acb45b0..827e6e7aad31 100644 --- a/packages/kbn-std/src/deep_freeze.ts +++ b/packages/osd-std/src/deep_freeze.ts @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -import { RecursiveReadonly } from '@kbn/utility-types'; +import { RecursiveReadonly } from '@osd/utility-types'; /** @public */ export type Freezable = { [k: string]: any } | any[]; diff --git a/packages/kbn-std/src/get.test.ts b/packages/osd-std/src/get.test.ts similarity index 100% rename from packages/kbn-std/src/get.test.ts rename to packages/osd-std/src/get.test.ts diff --git a/packages/kbn-std/src/get.ts b/packages/osd-std/src/get.ts similarity index 100% rename from packages/kbn-std/src/get.ts rename to packages/osd-std/src/get.ts diff --git a/packages/kbn-std/src/get_flattened_object.test.ts b/packages/osd-std/src/get_flattened_object.test.ts similarity index 100% rename from packages/kbn-std/src/get_flattened_object.test.ts rename to packages/osd-std/src/get_flattened_object.test.ts diff --git a/packages/kbn-std/src/get_flattened_object.ts b/packages/osd-std/src/get_flattened_object.ts similarity index 100% rename from packages/kbn-std/src/get_flattened_object.ts rename to packages/osd-std/src/get_flattened_object.ts diff --git a/packages/kbn-std/src/index.ts b/packages/osd-std/src/index.ts similarity index 100% rename from packages/kbn-std/src/index.ts rename to packages/osd-std/src/index.ts diff --git a/packages/kbn-std/src/map_to_object.ts b/packages/osd-std/src/map_to_object.ts similarity index 100% rename from packages/kbn-std/src/map_to_object.ts rename to packages/osd-std/src/map_to_object.ts diff --git a/packages/kbn-std/src/map_utils.test.ts b/packages/osd-std/src/map_utils.test.ts similarity index 100% rename from packages/kbn-std/src/map_utils.test.ts rename to packages/osd-std/src/map_utils.test.ts diff --git a/packages/kbn-std/src/map_utils.ts b/packages/osd-std/src/map_utils.ts similarity index 100% rename from packages/kbn-std/src/map_utils.ts rename to packages/osd-std/src/map_utils.ts diff --git a/packages/kbn-std/src/merge.test.ts b/packages/osd-std/src/merge.test.ts similarity index 100% rename from packages/kbn-std/src/merge.test.ts rename to packages/osd-std/src/merge.test.ts diff --git a/packages/kbn-std/src/merge.ts b/packages/osd-std/src/merge.ts similarity index 100% rename from packages/kbn-std/src/merge.ts rename to packages/osd-std/src/merge.ts diff --git a/packages/kbn-std/src/pick.ts b/packages/osd-std/src/pick.ts similarity index 100% rename from packages/kbn-std/src/pick.ts rename to packages/osd-std/src/pick.ts diff --git a/packages/kbn-std/src/promise.test.ts b/packages/osd-std/src/promise.test.ts similarity index 100% rename from packages/kbn-std/src/promise.test.ts rename to packages/osd-std/src/promise.test.ts diff --git a/packages/kbn-std/src/promise.ts b/packages/osd-std/src/promise.ts similarity index 100% rename from packages/kbn-std/src/promise.ts rename to packages/osd-std/src/promise.ts diff --git a/packages/kbn-std/src/rxjs_7.test.ts b/packages/osd-std/src/rxjs_7.test.ts similarity index 100% rename from packages/kbn-std/src/rxjs_7.test.ts rename to packages/osd-std/src/rxjs_7.test.ts diff --git a/packages/kbn-std/src/rxjs_7.ts b/packages/osd-std/src/rxjs_7.ts similarity index 100% rename from packages/kbn-std/src/rxjs_7.ts rename to packages/osd-std/src/rxjs_7.ts diff --git a/packages/kbn-std/src/unset.test.ts b/packages/osd-std/src/unset.test.ts similarity index 100% rename from packages/kbn-std/src/unset.test.ts rename to packages/osd-std/src/unset.test.ts diff --git a/packages/kbn-std/src/unset.ts b/packages/osd-std/src/unset.ts similarity index 100% rename from packages/kbn-std/src/unset.ts rename to packages/osd-std/src/unset.ts diff --git a/packages/kbn-std/src/url.test.ts b/packages/osd-std/src/url.test.ts similarity index 100% rename from packages/kbn-std/src/url.test.ts rename to packages/osd-std/src/url.test.ts diff --git a/packages/kbn-std/src/url.ts b/packages/osd-std/src/url.ts similarity index 99% rename from packages/kbn-std/src/url.ts rename to packages/osd-std/src/url.ts index 745ed05751b1..f908a5718603 100644 --- a/packages/kbn-std/src/url.ts +++ b/packages/osd-std/src/url.ts @@ -112,7 +112,7 @@ export function modifyUrl( */ export function isRelativeUrl(candidatePath: string) { // validate that `candidatePath` is not attempting a redirect to somewhere - // outside of this Kibana install + // outside of this OpenSearch Dashboards install const all = parseUrl(candidatePath, false /* parseQueryString */, true /* slashesDenoteHost */); const { protocol, hostname, port } = all; // We should explicitly compare `protocol`, `port` and `hostname` to null to make sure these are not diff --git a/packages/kbn-std/tsconfig.json b/packages/osd-std/tsconfig.json similarity index 100% rename from packages/kbn-std/tsconfig.json rename to packages/osd-std/tsconfig.json diff --git a/packages/kbn-std/yarn.lock b/packages/osd-std/yarn.lock similarity index 100% rename from packages/kbn-std/yarn.lock rename to packages/osd-std/yarn.lock