@chatally/core
Advanced tools
| > @chatally/core@0.0.7 lint | ||
| > eslint . | ||
| > @chatally/core@0.0.8 lint | ||
| > tsc & eslint . | ||
@@ -9,12 +9,10 @@ { | ||
| /home/runner/work/chatally/chatally/packages/core/lib/index.d.ts | ||
| 10:44 warning Don't use `Object` as a type. The `Object` type actually means "any non-nullish value", so it is marginally better than `unknown`. | ||
| - If you want a type meaning "any object", you probably want `object` instead. | ||
| - If you want a type meaning "any value", you probably want `unknown` instead. | ||
| - If you really want a type meaning "any non-nullish value", you probably want `NonNullable<unknown>` instead @typescript-eslint/ban-types | ||
| /home/runner/work/chatally/chatally/packages/core/lib/messages.d.ts | ||
| 46:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any | ||
| 46:3 warning Use "@ts-expect-error" instead of "@ts-ignore", as "@ts-ignore" will do nothing if the following line is error-free @typescript-eslint/ban-ts-comment | ||
| 47:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any | ||
| ✖ 2 problems (0 errors, 2 warnings) | ||
| ../../node_modules/vite-node/dist/index-O2IrwHKf.d.ts(87,14): error TS2304: Cannot find name 'WebSocket'. | ||
| ../../node_modules/vite/types/customEvent.d.ts(26,14): error TS2304: Cannot find name 'WebSocket'. | ||
| ../../node_modules/vite/types/importGlob.d.ts(38,11): error TS2304: Cannot find name 'Worker'. |
| > @chatally/core@0.0.7 test | ||
| > @chatally/core@0.0.8 test | ||
| > vitest run | ||
@@ -8,8 +8,8 @@ | ||
| [32m✓[39m lib/application.test.js [2m ([22m[2m7 tests[22m[2m)[22m[90m 24[2mms[22m[39m | ||
| [32m✓[39m lib/application.test.js [2m ([22m[2m7 tests[22m[2m)[22m[90m 12[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 12:30:08 | ||
| [2m Duration [22m 871ms[2m (transform 166ms, setup 1ms, collect 139ms, tests 24ms, environment 0ms, prepare 199ms)[22m | ||
| [2m Start at [22m 13:20:29 | ||
| [2m Duration [22m 790ms[2m (transform 166ms, setup 0ms, collect 129ms, tests 12ms, environment 0ms, prepare 190ms)[22m | ||
+8
-0
| # @chatally/core | ||
| ## 0.0.8 | ||
| ### Patch Changes | ||
| - 6693266: Fixed some more typing issues | ||
| - Updated dependencies [6693266] | ||
| - @chatally/logger@0.0.6 | ||
| ## 0.0.7 | ||
@@ -4,0 +12,0 @@ |
@@ -9,3 +9,3 @@ import { BaseLogger, NoLogger } from "@chatally/logger"; | ||
| * | ||
| * @template {object} D | ||
| * @template {Record<string, unknown>} D | ||
| * @type {import("./index.d.ts").Application<D>} | ||
@@ -12,0 +12,0 @@ */ |
+4
-3
| import type { Level, Logger } from "@chatally/logger"; | ||
| import { EventEmitter } from "node:events"; | ||
| import type { Message } from "./messages.d.ts"; | ||
| export type * from "./messages.d.ts"; | ||
@@ -10,5 +11,5 @@ /** | ||
| */ | ||
| export declare class Application<D extends Object> extends EventEmitter< | ||
| ApplicationEvents<D> | ||
| > { | ||
| export declare class Application< | ||
| D extends Record<string, unknown>, | ||
| > extends EventEmitter<ApplicationEvents<D>> { | ||
| /** | ||
@@ -15,0 +16,0 @@ * Create a Chatally application that dispatches incoming chat requests from |
@@ -46,2 +46,3 @@ export type Message = | ||
| readonly schema: string; | ||
| // @ts-ignore We want to use custom as anything | ||
| readonly custom: any; | ||
@@ -48,0 +49,0 @@ }; |
+2
-2
| { | ||
| "name": "@chatally/core", | ||
| "version": "0.0.7", | ||
| "version": "0.0.8", | ||
| "description": "ChatAlly Core Modules", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
| "scripts": { | ||
| "lint": "eslint .", | ||
| "lint": "tsc & eslint .", | ||
| "repl": "nodemon repl.js", | ||
@@ -27,0 +27,0 @@ "test": "vitest" |
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
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
26136
1.15%822
0.24%