diff --git a/README.md b/README.md index ec138afbc..fcad17f86 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # packages -Internal packages used by the Botpress team accross multiple repositories. +Internal packages used by the Botpress team across multiple repositories. These packages are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, they were still left intentionally public for an important reason : **We Love Open-Source**. -Therefore, if you wish to install or fork any of these packages feel absolutly free to do it. We strongly recommend that you tag your versions properly. +Therefore, if you wish to install or fork any of these packages feel absolutely free to do it. We strongly recommend that you tag your versions properly. ## Licensing diff --git a/depsynky/readme.md b/depsynky/readme.md index 24bd04ad2..bceccc910 100644 --- a/depsynky/readme.md +++ b/depsynky/readme.md @@ -1,9 +1,9 @@ # DepSynky -CLI to synchronize dependencies accross a pnpm mono-repo +CLI to synchronize dependencies across a pnpm mono-repo ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/entities/README.md b/entities/README.md index ee2803891..9d9850e7c 100644 --- a/entities/README.md +++ b/entities/README.md @@ -39,6 +39,6 @@ console.log(results) // 2 of type fruit and 1 of type company ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/entities/build.ts b/entities/build.ts index de1a85e1f..435c89aa3 100644 --- a/entities/build.ts +++ b/entities/build.ts @@ -140,7 +140,7 @@ const main = async (argv: string[]) => { await buildWeb() return } - throw new Error(`Unsuported target: ${target}`) + throw new Error(`Unsupported target: ${target}`) } void main(process.argv.slice(2)) diff --git a/entities/rssrc/strings.rs b/entities/rssrc/strings.rs index 84edd48fc..32b242f5e 100644 --- a/entities/rssrc/strings.rs +++ b/entities/rssrc/strings.rs @@ -149,10 +149,10 @@ pub fn levenshtein_distance(a: &str, b: &str) -> usize { let bj = b_chars[j - 1]; let ai = a_chars[i - 1]; - let substitition_cost = if bj == ai { 0 } else { 1 }; + let substitution_cost = if bj == ai { 0 } else { 1 }; res = lodash::min(&[ - tmp + substitition_cost, // substitution + tmp + substitution_cost, // substitution res + 1, // insertion row[i] + 1, // deletion ]) diff --git a/entities/src/lists.test.ts b/entities/src/lists.test.ts index 32df5fa38..95c52030e 100644 --- a/entities/src/lists.test.ts +++ b/entities/src/lists.test.ts @@ -95,7 +95,7 @@ describe.each(['wasm', 'javascript'] satisfies ListEntityEngine[])('%s list enti ) }) - test('same occurence in multiple entities extracts multiple entities', () => { + test('same occurrence in multiple entities extracts multiple entities', () => { // arrange const testEntities: ListEntityDef[] = [ ...listEntities, @@ -123,9 +123,9 @@ describe.each(['wasm', 'javascript'] satisfies ListEntityEngine[])('%s list enti describe('fuzzy match', () => { describe('loose fuzzy', () => { - entityTest('[Qebec citty] is a city within [QC], a provice.', { qty: 1, value: 'YQB' }, { qty: 0 }) + entityTest('[Qebec citty] is a city within [QC], a province.', { qty: 1, value: 'YQB' }, { qty: 0 }) entityTest( - 'A quaterback is also called a [QB] and [sn francisco] used to have one', + 'A quarterback is also called a [QB] and [sn francisco] used to have one', { qty: 0 }, { qty: 1, value: 'SFO' } ) diff --git a/entities/src/lists/engines/wasm/index.ts b/entities/src/lists/engines/wasm/index.ts index 210560df7..73c6467dd 100644 --- a/entities/src/lists/engines/wasm/index.ts +++ b/entities/src/lists/engines/wasm/index.ts @@ -21,7 +21,7 @@ const maybeInitialize = () => { * It seems that, someone in the process is responsible for freeing them, but I don't know who. * It is not really clear in the wasm-bindgen documentation, and the generated code is not easy to read. * - * However, outputs of wasm functions must be freed, otherwise there will be memory leaks. + * However, outputs of wasm functions must be freed; otherwise, there will be memory leaks. */ type Model = ListEntityModel diff --git a/es-node/readme.md b/es-node/readme.md index 8e91349f2..15b892d67 100644 --- a/es-node/readme.md +++ b/es-node/readme.md @@ -4,6 +4,6 @@ like ts-node, but uses esbuild. ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/genenv/readme.md b/genenv/readme.md index e12081c7e..3fd5e8fbd 100644 --- a/genenv/readme.md +++ b/genenv/readme.md @@ -23,6 +23,6 @@ export const MY_ENV3 = '$MY_ENV3' // default value ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/jex/readme.md b/jex/readme.md index 0ae2a5b2a..e0a2f9356 100644 --- a/jex/readme.md +++ b/jex/readme.md @@ -45,6 +45,6 @@ console.log(res2) // false ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install this package feel absolutly free to do it. We strongly recomand that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/jex/src/errors.ts b/jex/src/errors.ts index 7a428125a..b6453e8fe 100644 --- a/jex/src/errors.ts +++ b/jex/src/errors.ts @@ -36,7 +36,7 @@ export class JexUnresolvedReferenceError extends JexInvalidJsonSchemaError { } } -export class JexUnsuportedJsonSchemaError extends JexInvalidJsonSchemaError { +export class JexUnsupportedJsonSchemaError extends JexInvalidJsonSchemaError { public constructor(path: PropertyPath, schema: JSONSchema7Definition) { const pathString = pathToString(path) super(path, `Unsupported JSON schema at ${pathString}: ${JSON.stringify(schema)}`) diff --git a/jex/src/jexir/from-json-schema.test.ts b/jex/src/jexir/from-json-schema.test.ts index e6a31ba1f..85f7c1f5c 100644 --- a/jex/src/jexir/from-json-schema.test.ts +++ b/jex/src/jexir/from-json-schema.test.ts @@ -32,7 +32,7 @@ const expectJsonSchema = (jsonSchema: JSONSchema7) => ({ } }) -test('JexIR should should throw an error when the JSON schema is unsuported', () => { +test('JexIR should throw an error when the JSON schema is unsupported', () => { const foo = (schema: JSONSchema7) => $.object({ foo: schema }) const path: PropertyPath = [ { type: 'key', value: 'properties' }, @@ -47,7 +47,7 @@ test('JexIR should should throw an error when the JSON schema is unsuported', () expectJsonSchema(foo({ else: {} })).toFailAt(path) }) -test('JexIR should should throw an error when schema contains unresolved references', () => { +test('JexIR should throw an error when schema contains unresolved references', () => { const path: PropertyPath = [ { type: 'key', value: 'items' }, { type: 'number-index', value: 2 } @@ -187,7 +187,7 @@ test('JexIR should model map types', () => { }) }) -test('JexIR should model a object type with both properties and additionalProperties', () => { +test('JexIR should model an object type with both properties and additionalProperties', () => { expectJsonSchema({ type: 'object', properties: { diff --git a/jex/src/jexir/from-json-schema.ts b/jex/src/jexir/from-json-schema.ts index e922ccf96..9eb6c61fe 100644 --- a/jex/src/jexir/from-json-schema.ts +++ b/jex/src/jexir/from-json-schema.ts @@ -73,7 +73,7 @@ const _toInternalRep = (path: JSONSchemaPropertyPath, schema: JSONSchema7Definit } if (schema.oneOf !== undefined) { - throw new errors.JexUnsuportedJsonSchemaError(path.path, { oneOf: schema.oneOf }) + throw new errors.JexUnsupportedJsonSchemaError(path.path, { oneOf: schema.oneOf }) } if (schema.$ref !== undefined) { @@ -81,23 +81,23 @@ const _toInternalRep = (path: JSONSchemaPropertyPath, schema: JSONSchema7Definit } if (schema.patternProperties !== undefined) { - throw new errors.JexUnsuportedJsonSchemaError(path.path, { patternProperties: schema.patternProperties }) + throw new errors.JexUnsupportedJsonSchemaError(path.path, { patternProperties: schema.patternProperties }) } if (schema.propertyNames !== undefined) { - throw new errors.JexUnsuportedJsonSchemaError(path.path, { propertyNames: schema.propertyNames }) + throw new errors.JexUnsupportedJsonSchemaError(path.path, { propertyNames: schema.propertyNames }) } if (schema.if !== undefined) { - throw new errors.JexUnsuportedJsonSchemaError(path.path, { if: schema.if }) + throw new errors.JexUnsupportedJsonSchemaError(path.path, { if: schema.if }) } if (schema.then !== undefined) { - throw new errors.JexUnsuportedJsonSchemaError(path.path, { then: schema.then }) + throw new errors.JexUnsupportedJsonSchemaError(path.path, { then: schema.then }) } if (schema.else !== undefined) { - throw new errors.JexUnsuportedJsonSchemaError(path.path, { else: schema.else }) + throw new errors.JexUnsupportedJsonSchemaError(path.path, { else: schema.else }) } if (schema.not !== undefined) { @@ -114,7 +114,7 @@ const _toInternalRep = (path: JSONSchemaPropertyPath, schema: JSONSchema7Definit } } - throw new errors.JexUnsuportedJsonSchemaError(path.path, { not: schema.not }) + throw new errors.JexUnsupportedJsonSchemaError(path.path, { not: schema.not }) } if (Array.isArray(schema.type)) { diff --git a/log4bot/readme.md b/log4bot/readme.md index ac0f9ea97..cacdb70d2 100644 --- a/log4bot/readme.md +++ b/log4bot/readme.md @@ -10,11 +10,11 @@ import { Logger } from '@bpinternal/log4bot' const logger = new Logger('main', { prefix: 'MYAPP', level: 'debug' }) logger.info('I love Botpress.', { afield: '42' }) -logger.attachError(new Error('Precondition Failed')).error('An error occured') +logger.attachError(new Error('Precondition Failed')).error('An error occurred') ``` ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/log4bot/src/logger.ts b/log4bot/src/logger.ts index 61d1e593f..c9054b8ce 100644 --- a/log4bot/src/logger.ts +++ b/log4bot/src/logger.ts @@ -33,7 +33,7 @@ export class Logger implements types.Logger { this._filters = _.mapValues(config.filters, regexParser) as any as { [level: string]: RegExp } } - // logger configures all childs + // logger configures all children for (const logger of this._loggers.values()) { logger.configure(config) } diff --git a/mcp-gen/src/api.test.ts b/mcp-gen/src/api.test.ts index fdadb3269..c39f3a682 100644 --- a/mcp-gen/src/api.test.ts +++ b/mcp-gen/src/api.test.ts @@ -142,7 +142,7 @@ describe('api', () => { await expect(generateIntegrationWithConfig({ outputDir: './output' })).rejects.toThrow('mcpServerUrl is required') }) - it('should fallback to http transport when config has no type', async () => { + it('should fall back to http transport when config has no type', async () => { mockLoad.mockResolvedValue({ name: 'test', url: 'http://localhost:3000' } as any) mockGenerate.mockResolvedValue(undefined) diff --git a/opapi/readme.md b/opapi/readme.md index 56c429579..21a7b51e6 100644 --- a/opapi/readme.md +++ b/opapi/readme.md @@ -46,7 +46,7 @@ const api = new OpenApi({ { status: 403, type: 'Forbidden', - description: "The requested action can't be peform by this resource.", + description: "The requested action can't be perform by this resource.", }, { status: 400, @@ -88,6 +88,6 @@ api.exportClient('./gen/client') // This will generate a client that can be used ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/opapi/src/generators/client-node.ts b/opapi/src/generators/client-node.ts index b56fc5bd1..b1924a19c 100644 --- a/opapi/src/generators/client-node.ts +++ b/opapi/src/generators/client-node.ts @@ -27,7 +27,7 @@ const fixSchema = (schema: JSONSchema7): JSONSchema7 => { return schema } -// usefull for debugging, remove when generator is stable +// useful for debugging, remove when generator is stable const debugSchema = (inputSchema: JSONSchema7, key: string, enable: boolean = false) => (tsCode: string) => { diff --git a/opapi/src/generators/errors.ts b/opapi/src/generators/errors.ts index bab79588c..749c5830d 100644 --- a/opapi/src/generators/errors.ts +++ b/opapi/src/generators/errors.ts @@ -41,7 +41,7 @@ declare const window: any type CryptoLib = { getRandomValues(array: Uint8Array): Uint8Array } const cryptoLibPolyfill: CryptoLib = { - // Fallback in case crypto isn't available. + // Fallback when crypto isn't available. getRandomValues: (array: Uint8Array) => new Uint8Array(array.map(() => Math.floor(Math.random() * 256))), } @@ -51,7 +51,7 @@ let cryptoLib: CryptoLib = : crypto if (!cryptoLib.getRandomValues) { - // Use a polyfill in older environments that have a crypto implementaton missing getRandomValues() + // Use a polyfill in older environments that have a crypto implementation missing getRandomValues() cryptoLib = cryptoLibPolyfill } @@ -136,7 +136,7 @@ export const errorFrom = (err: unknown): ApiError => { } function getApiErrorFromObject(err: any) { - // Check if it's an deserialized API error object + // Check if it's a deserialized API error object if (typeof err === 'object' && 'code' in err && 'type' in err && 'id' in err && 'message' in err && typeof err.type === 'string' && typeof err.message === 'string') { const ErrorClass = errorTypes[err.type] if (!ErrorClass) { diff --git a/opapi/src/jsonschema.ts b/opapi/src/jsonschema.ts index e6153049e..e24ccbd68 100644 --- a/opapi/src/jsonschema.ts +++ b/opapi/src/jsonschema.ts @@ -135,7 +135,7 @@ export const exploreJsonSchema = * Lib "@anatine/zod-openapi" transforms zod to json-schema using the nullable property. * This property is not officially supported by json-schema, but supported by ajv (see: https://ajv.js.org/json-schema.html#nullable) * Since it's not officially supported, some tools like "json-schema-to-typescript" don't support it. - * This function replaces all occurences of { type: T, nullable: true } with { anyOf: [{ type: T }, { type: 'null' }] } + * This function replaces all occurrences of { type: T, nullable: true } with { anyOf: [{ type: T }, { type: 'null' }] } */ export const replaceNullableWithUnion = (schema: NullableJsonSchema): JSONSchema7 => { const mapper = exploreJsonSchema((s) => { @@ -152,7 +152,7 @@ export const replaceNullableWithUnion = (schema: NullableJsonSchema): JSONSchema /** * Lib "@anatine/zod-openapi" transforms zod unions to json-schema oneOf. * This is a mistake as a union does not enforce that only one of the types is present. - * This function replaces all occurences of { oneOf: [{ type: T1 }, { type: T2 }] } with { anyOf: [{ type: T1 }, { type: T2 }] } + * This function replaces all occurrences of { oneOf: [{ type: T1 }, { type: T2 }] } with { anyOf: [{ type: T1 }, { type: T2 }] } */ export const replaceOneOfWithAnyOf = (oneOfSchema: JsonSchema): JSONSchema7 => { const mapper = exploreJsonSchema((schema) => { diff --git a/opapi/test/openapi.test.ts b/opapi/test/openapi.test.ts index f9107202e..328ae4f1c 100644 --- a/opapi/test/openapi.test.ts +++ b/opapi/test/openapi.test.ts @@ -7,7 +7,7 @@ import { existsSync } from 'fs' const openapiFiles = ['metadata.json', 'openapi.json'] describe('openapi generator', () => { - it('should be able to generate a openapi', async () => { + it('should be able to generate an openapi', async () => { const genOpenapiFolder = join(__dirname, 'gen/openapi') const api = getMockApi() diff --git a/pingrip/README.md b/pingrip/README.md index 49ad23211..47f96c34b 100644 --- a/pingrip/README.md +++ b/pingrip/README.md @@ -51,6 +51,6 @@ function handler(body: string) { ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/promex/readme.md b/promex/readme.md index 559ad550c..9569c88ec 100644 --- a/promex/readme.md +++ b/promex/readme.md @@ -24,7 +24,7 @@ promex.start() // Starts a metrics server on port 9090 ``` -Promex can also be used with an handler on an express app +Promex can also be used with a handler on an express app ```ts import * as promex from '@bpinternal/promex'; @@ -43,6 +43,6 @@ app.listen() ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/promex/src/prometheus.ts b/promex/src/prometheus.ts index 238e23248..415bfd57e 100644 --- a/promex/src/prometheus.ts +++ b/promex/src/prometheus.ts @@ -19,7 +19,7 @@ let defaultNormalizedPathEnabled = true type TOptionalPromsterOptions = NonNullable[0]>['options'] /** - * config is used to setup the global promster middleware + * config is used to set up the global promster middleware * @param options for the promster middleware * @returns the configured promster middleware */ diff --git a/ptb-schema/readme.md b/ptb-schema/readme.md index c07c077e4..839d6bd67 100644 --- a/ptb-schema/readme.md +++ b/ptb-schema/readme.md @@ -1,6 +1,6 @@ # Protobuf Schema -Small wrapper above [protobufjs](https://github.com/protobufjs/protobuf.js) that allows infering a TypeScript type directly from a protobuf schema in a [zod](https://github.com/colinhacks/zod)-like fashion. +Small wrapper above [protobufjs](https://github.com/protobufjs/protobuf.js) that allows inferring a TypeScript type directly from a protobuf schema in a [zod](https://github.com/colinhacks/zod)-like fashion. Defining a `PTBMessage` allows both to decode/encode data structures and to define types. @@ -51,6 +51,6 @@ console.log('decoded:', decoded) ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/readiness/readme.md b/readiness/readme.md index 5d9510934..4e896671c 100644 --- a/readiness/readme.md +++ b/readiness/readme.md @@ -1,6 +1,6 @@ # Readiness -Offers a readiness probe for docker ressources like Postgres, Redis, etc. +Offers a readiness probe for docker resources like Postgres, Redis, etc. ## Usage @@ -12,6 +12,6 @@ curl http://localhost:9398/ready ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/retry/readme.md b/retry/readme.md index febf47849..f77f44864 100644 --- a/retry/readme.md +++ b/retry/readme.md @@ -6,6 +6,6 @@ The original library was unmaintained. ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/retry/src/retry-cli.test.ts b/retry/src/retry-cli.test.ts index 64f430206..af612f072 100644 --- a/retry/src/retry-cli.test.ts +++ b/retry/src/retry-cli.test.ts @@ -46,14 +46,14 @@ test('retry-cli help should run successfully', async () => { expect(exitCode).toBe(0) }) -test('retry-cli retry of a successfull command should run successfully once', async () => { +test('retry-cli retry of a successful command should run successfully once', async () => { const { stderr, stdout, exitCode } = await runCommand(`${RETRY} -n 20 -- echo "HELLO WORLD"`) expect(stderr).toBe('') expect(parseStd(stdout)).toEqual(['HELLO WORLD']) expect(exitCode).toBe(0) }) -test('retry-cli retry of an unsuccessfull command should retry n + 1 times', async () => { +test('retry-cli retry of an unsuccessful command should retry n + 1 times', async () => { const { stderr, exitCode } = await runCommand( `${RETRY} -n 5 -f 0 -- node -e "console.error('### ERROR'); process.exit(42)"` ) diff --git a/slackdown/README.md b/slackdown/README.md index 791c48c28..98df5de88 100644 --- a/slackdown/README.md +++ b/slackdown/README.md @@ -13,6 +13,6 @@ const markdown = slackToMarkdown('') ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/thicktoken/readme.md b/thicktoken/readme.md index 466fda46b..4a64301ae 100644 --- a/thicktoken/readme.md +++ b/thicktoken/readme.md @@ -4,6 +4,6 @@ Tiktoken but thicker; A bundled tokenizer with added helper functions ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/trail/readme.md b/trail/readme.md index d4dff2155..f350ec757 100644 --- a/trail/readme.md +++ b/trail/readme.md @@ -22,12 +22,12 @@ The available environment variables for configuring the tracing client are: - OTEL_EXPORTER_JAEGER_ENDPOINT `url` Sets the Jaeger collector endpoint - OTEL_SERVICE_NAME `string` Sets the service name given to a trace - OTEL_SERVICE_VERSION `string` Sets the current running version of the service -- OTEL_SERVICE_VERSION_INSTANCE_ID `string` Sets the node intance id on which the service is running on +- OTEL_SERVICE_VERSION_INSTANCE_ID `string` Sets the node instance id on which the service is running on - OTEL_SERVICE_NAMESPACE `string` Sets the namespace of the service - OTEL_DEPLOYMENT_ENVIRONMENT `string` Sets the environment of the service ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/tunnel/readme.md b/tunnel/readme.md index 144aaf844..8beae4818 100644 --- a/tunnel/readme.md +++ b/tunnel/readme.md @@ -6,6 +6,6 @@ Used in the botpress tunnel system. ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/tunnel/src/tunnel-client.ts b/tunnel/src/tunnel-client.ts index 201676284..39f76b4d6 100644 --- a/tunnel/src/tunnel-client.ts +++ b/tunnel/src/tunnel-client.ts @@ -170,7 +170,7 @@ export class TunnelHead extends TunnelClient { this.events.emit('hello', {}) return } - this.events.emit('response', message.reponse) + this.events.emit('response', message.response) }) } @@ -183,7 +183,7 @@ export class TunnelHead extends TunnelClient { private _parseMessage = ( ev: WebSocket.MessageEvent - ): { type: 'hello' } | { type: 'response'; reponse: TunnelResponse } | undefined => { + ): { type: 'hello' } | { type: 'response'; response: TunnelResponse } | undefined => { const data = JSON.parse(ev.data.toString()) const parseResult = headSchema.safeParse(data) @@ -195,6 +195,6 @@ export class TunnelHead extends TunnelClient { return { type: 'hello' } } - return { type: 'response', reponse: parseResult.data } + return { type: 'response', response: parseResult.data } } } diff --git a/verel/build.ts b/verel/build.ts index 5ff6c26ee..5b5ae8d09 100644 --- a/verel/build.ts +++ b/verel/build.ts @@ -140,7 +140,7 @@ const main = async (argv: string[]) => { await buildWeb() return } - throw new Error(`Unsuported target: ${target}`) + throw new Error(`Unsupported target: ${target}`) } void main(process.argv.slice(2)) diff --git a/verel/readme.md b/verel/readme.md index 462144645..f0eb7922b 100644 --- a/verel/readme.md +++ b/verel/readme.md @@ -52,6 +52,6 @@ console.log(outputEvent) ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team. diff --git a/yargs-extra/readme.md b/yargs-extra/readme.md index e464f7469..6633de763 100644 --- a/yargs-extra/readme.md +++ b/yargs-extra/readme.md @@ -76,6 +76,6 @@ When opening the config file in vscode, you'll get intellisense: ## Disclaimer ⚠️ -This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly. +This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly. The Botpress Engineering team.