@chatally/core
Advanced tools
| > @chatally/core@0.0.10 lint | ||
| > @chatally/core@0.0.11 lint | ||
| > eslint . | ||
+20
-20
| > @chatally/core@0.0.10 test | ||
| > @chatally/core@0.0.11 test | ||
| > vitest run | ||
@@ -8,30 +8,30 @@ | ||
| [15:15:12.806] INFO (@chatally/core): Registered middleware 'echo' | ||
| [15:15:12.817] INFO (@chatally/core): Registered middleware 'a' | ||
| [15:15:12.818] INFO (@chatally/core): Registered middleware 'b' | ||
| [15:15:12.818] INFO (@chatally/core): Registered middleware 'c' | ||
| [15:15:12.818] INFO (@chatally/core): Registered middleware 'd' | ||
| [15:15:12.818] INFO (@chatally/core): Registered middleware 'e' | ||
| [15:15:12.820] INFO (@chatally/core): Registered middleware 'echo' | ||
| [15:15:12.820] WARN (@chatally/core): ⚠️ For better traceability, prefer using named functions | ||
| [15:29:30.926] INFO (@chatally/core): Registered middleware 'echo' | ||
| [15:29:30.931] INFO (@chatally/core): Registered middleware 'a' | ||
| [15:29:30.931] INFO (@chatally/core): Registered middleware 'b' | ||
| [15:29:30.931] INFO (@chatally/core): Registered middleware 'c' | ||
| [15:29:30.931] INFO (@chatally/core): Registered middleware 'd' | ||
| [15:29:30.931] INFO (@chatally/core): Registered middleware 'e' | ||
| [15:29:30.933] INFO (@chatally/core): Registered middleware 'echo' | ||
| [15:29:30.933] WARN (@chatally/core): ⚠️ For better traceability, prefer using named functions | ||
| instead of arrow functions or provide an optional | ||
| 'name' parameter when registering it with 'use'. | ||
| [15:15:12.820] INFO (@chatally/core): Registered middleware '<unnamed>' | ||
| [15:15:12.821] INFO (@chatally/core): Registered middleware 'echo' | ||
| [15:15:12.821] INFO (@chatally/core): Registered middleware 'throws' | ||
| [15:15:12.822] INFO (@chatally/core): Registered middleware 'echo' | ||
| [15:15:12.822] WARN (@chatally/core): ⚠️ For better traceability, prefer using named functions | ||
| [15:29:30.933] INFO (@chatally/core): Registered middleware '<unnamed>' | ||
| [15:29:30.934] INFO (@chatally/core): Registered middleware 'echo' | ||
| [15:29:30.934] INFO (@chatally/core): Registered middleware 'throws' | ||
| [15:29:30.935] INFO (@chatally/core): Registered middleware 'echo' | ||
| [15:29:30.935] WARN (@chatally/core): ⚠️ For better traceability, prefer using named functions | ||
| instead of arrow functions or provide an optional | ||
| 'name' parameter when registering it with 'use'. | ||
| [15:15:12.822] INFO (@chatally/core): Registered middleware '<unnamed>' | ||
| [15:15:12.822] WARN (@chatally/core): ⚠️ For better traceability, prefer using named functions | ||
| [15:29:30.935] INFO (@chatally/core): Registered middleware '<unnamed>' | ||
| [15:29:30.935] WARN (@chatally/core): ⚠️ For better traceability, prefer using named functions | ||
| instead of arrow functions or provide an optional | ||
| 'name' parameter when registering it with 'use'. | ||
| [15:15:12.822] INFO (@chatally/core): Registered middleware '<unnamed>' | ||
| [32m✓[39m lib/application.test.js [2m ([22m[2m7 tests[22m[2m)[22m[90m 22[2mms[22m[39m | ||
| [15:29:30.935] INFO (@chatally/core): Registered middleware '<unnamed>' | ||
| [32m✓[39m lib/application.test.js [2m ([22m[2m7 tests[22m[2m)[22m[90m 14[2mms[22m[39m | ||
| [2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m | ||
| [2m Tests [22m [1m[32m7 passed[39m[22m[90m (7)[39m | ||
| [2m Start at [22m 15:15:11 | ||
| [2m Duration [22m 1.09s[2m (transform 269ms, setup 0ms, collect 317ms, tests 22ms, environment 0ms, prepare 322ms)[22m | ||
| [2m Start at [22m 15:29:29 | ||
| [2m Duration [22m 1.12s[2m (transform 161ms, setup 0ms, collect 206ms, tests 14ms, environment 0ms, prepare 462ms)[22m | ||
| > @chatally/core@0.0.10 tsc | ||
| > @chatally/core@0.0.11 tsc | ||
| > tsc | ||
+8
-0
| # @chatally/core | ||
| ## 0.0.11 | ||
| ### Patch Changes | ||
| - 6eba307: Updated README and package.json files | ||
| - Updated dependencies [6eba307] | ||
| - @chatally/logger@0.0.9 | ||
| ## 0.0.10 | ||
@@ -4,0 +12,0 @@ |
@@ -14,5 +14,3 @@ import type { EventEmitter } from 'node:events' | ||
| */ | ||
| export declare class Application< | ||
| D extends Record<string, unknown>, | ||
| > extends EventEmitter<ApplicationEvents<D>> { | ||
| export declare class Application<D> extends EventEmitter<ApplicationEvents<D>> { | ||
| /** | ||
@@ -19,0 +17,0 @@ * Create a ChatAlly application that dispatches incoming chat requests from |
@@ -21,3 +21,3 @@ /** | ||
| interface _Action { | ||
| id: string | ||
| command: string | ||
| title: string | ||
@@ -24,0 +24,0 @@ description?: string |
@@ -9,3 +9,3 @@ import type { Logger } from '@chatally/logger' | ||
| */ | ||
| export type Middleware<D> = | ||
| export type Middleware<D = unknown> = | ||
| | ((params: Context<D>) => unknown) | ||
@@ -12,0 +12,0 @@ | ((params: Context<D>) => Promise<unknown>) |
+8
-5
| { | ||
| "name": "@chatally/core", | ||
| "type": "module", | ||
| "version": "0.0.10", | ||
| "version": "0.0.11", | ||
| "description": "ChatAlly Core Modules", | ||
| "license": "MIT", | ||
| "homepage": "https://chatally.org/", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/chatally/chatally.git" | ||
| }, | ||
| "keywords": [ | ||
| "app", | ||
| "application", | ||
| "chat", | ||
| "chatbot", | ||
| "framework", | ||
| "middleware" | ||
| "application", | ||
| "framework" | ||
| ], | ||
@@ -15,0 +18,0 @@ "exports": { |
+8
-2
| # @chatally/core | ||
| ## ChatAlly Core | ||
| **ChatAlly Core** contains the application components and types for creating a chatbot application. It resembles the structure of an Express web server, but for chat applications. | ||
| ## Getting started | ||
| The whole framework is very modular and extendible. It provides some middleware and servers (which are used to communicate with chat clients like WhatsApp or Signal), that you can use to create your individual chat application. | ||
| [See all ChatAlly packages](https://www.npmjs.com/search?q=chatally). | ||
| Help the community and publish your own ChatAlly modules with the tag `chatally`. | ||
| ## Usage | ||
| Install the package and for testing a console chat server | ||
@@ -8,0 +14,0 @@ |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
35264
2.21%1
-50%39
18.18%1
-50%0
-100%1034
-0.19%