Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kotori-bot

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kotori-bot - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

lib/cli.d.ts

19

lib/index.d.ts

@@ -1,19 +0,4 @@

import Context from './context';
export * from './components/adapter';
export * from './components/api';
export * from './components/elements';
export * from './context';
export * from './utils/errror';
export * from './consts';
export * from './types';
export * from '@kotori-bot/tools';
export * from 'tsukiko';
export declare class ContextInstance {
protected constructor();
private static instance;
protected static setInstance(ctx: Context): void;
static getInstance(): Context;
static getMixin(): any;
}
import { Context } from '@kotori-bot/core';
export * from '@kotori-bot/core';
export declare const Kotori: typeof Context & Context;
export default Kotori;

@@ -17,29 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Kotori = exports.ContextInstance = void 0;
const tools_1 = require("@kotori-bot/tools");
__exportStar(require("./components/adapter"), exports);
__exportStar(require("./components/api"), exports);
__exportStar(require("./components/elements"), exports);
__exportStar(require("./context"), exports);
__exportStar(require("./utils/errror"), exports);
__exportStar(require("./consts"), exports);
__exportStar(require("./types"), exports);
__exportStar(require("@kotori-bot/tools"), exports);
__exportStar(require("tsukiko"), exports);
class ContextInstance {
constructor() {
(0, tools_1.none)();
}
static instance = {};
static setInstance(ctx) {
this.instance = ctx;
}
static getInstance() {
return this.instance;
}
static getMixin() {
return Object.assign(ContextInstance.getInstance() /* , Context */);
}
}
exports.ContextInstance = ContextInstance;
exports.Kotori = void 0;
const core_1 = require("@kotori-bot/core");
__exportStar(require("@kotori-bot/core"), exports);
// const ctx = ContextInstance.get();

@@ -62,5 +38,5 @@ // namespace KotoriSpace {

// }
exports.Kotori = new Proxy(ContextInstance.getMixin(), {
exports.Kotori = new Proxy(core_1.ContextInstance.getMixin(), {
get: (_, prop) => {
const target = ContextInstance.getMixin();
const target = core_1.ContextInstance.getMixin();
if (prop === undefined)

@@ -67,0 +43,0 @@ return target;

{
"name": "kotori-bot",
"version": "1.0.0",
"version": "v1.1.0",
"description": "ChatBot Framework Base For NodeJS And TypeScript",

@@ -8,2 +8,5 @@ "main": "lib/index.js",

"author": "Hotaru <biyuehuya@gmail.com>",
"bin": {
"kotori": "./lib/cli.js"
},
"keywords": [

@@ -31,10 +34,10 @@ "chatbot",

"dependencies": {
"tsukiko": "^1.2.1",
"@kotori-bot/i18n": "^1.1.2",
"@kotori-bot/logger": "^1.0.0",
"@kotori-bot/tools": "^1.1.0"
"cac": "^6.7.14",
"@kotori-bot/core": "^v1.1.0",
"@kotori-bot/loader": "^v1.2.0"
},
"publishConfig": {
"access": "public"
"scripts": {
"dev": "ts-node --esm -r tsconfig-paths/register ./src/dev.ts --no-signale",
"build": "tsc --build"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc