kotori-bot
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
3
1
42845
9
79
2
+ Added@kotori-bot/core@^v1.1.0
+ Added@kotori-bot/loader@^v1.2.0
+ Addedcac@^6.7.14
+ Added@kotori-bot/core@1.6.5(transitive)
+ Added@kotori-bot/loader@1.7.5(transitive)
+ Added@types/luxon@3.4.2(transitive)
+ Addedabstract-level@1.0.4(transitive)
+ Addedaccepts@1.3.8(transitive)
+ Addedarray-flatten@1.1.1(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbody-parser@1.20.3(transitive)
+ Addedbrowser-level@1.0.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedbytes@3.1.2(transitive)
+ Addedcac@6.7.14(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcatering@2.1.1(transitive)
+ Addedclassic-level@1.4.1(transitive)
+ Addedcontent-disposition@0.5.4(transitive)
+ Addedcontent-type@1.0.5(transitive)
+ Addedcookie@0.7.1(transitive)
+ Addedcookie-signature@1.0.6(transitive)
+ Addedcron@3.2.1(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddepd@2.0.0(transitive)
+ Addeddestroy@1.2.0(transitive)
+ Addedee-first@1.1.1(transitive)
+ Addedencodeurl@1.0.22.0.0(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedescape-html@1.0.3(transitive)
+ Addedetag@1.8.1(transitive)
+ Addedexpress@4.21.1(transitive)
+ Addedfinalhandler@1.3.1(transitive)
+ Addedfluoro@1.1.1(transitive)
+ Addedforwarded@0.2.0(transitive)
+ Addedfresh@0.5.2(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhttp-errors@2.0.0(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedipaddr.js@1.9.1(transitive)
+ Addedis-buffer@2.0.5(transitive)
+ Addedlevel@8.0.1(transitive)
+ Addedlevel-supports@4.0.1(transitive)
+ Addedlevel-transcoder@1.0.1(transitive)
+ Addedluxon@3.5.0(transitive)
+ Addedmedia-typer@0.3.0(transitive)
+ Addedmerge-descriptors@1.0.3(transitive)
+ Addedmethods@1.1.2(transitive)
+ Addedmime@1.6.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmodule-error@1.0.2(transitive)
+ Addedms@2.0.02.1.3(transitive)
+ Addednapi-macros@2.2.2(transitive)
+ Addednegotiator@0.6.3(transitive)
+ Addednode-gyp-build@4.8.4(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedon-finished@2.4.1(transitive)
+ Addedparseurl@1.3.3(transitive)
+ Addedpath-to-regexp@0.1.106.3.0(transitive)
+ Addedproxy-addr@2.0.7(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedqueue-microtask@1.2.3(transitive)
+ Addedrange-parser@1.2.1(transitive)
+ Addedraw-body@2.5.2(transitive)
+ Addedrun-parallel-limit@1.1.0(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsend@0.19.0(transitive)
+ Addedserve-static@1.16.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedsetprototypeof@1.2.0(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedstatuses@2.0.1(transitive)
+ Addedtoidentifier@1.0.1(transitive)
+ Addedtype-is@1.6.18(transitive)
+ Addedunpipe@1.0.0(transitive)
+ Addedutils-merge@1.0.1(transitive)
+ Addedvary@1.1.2(transitive)
+ Addedws@8.18.0(transitive)
- Removed@kotori-bot/i18n@^1.1.2
- Removed@kotori-bot/logger@^1.0.0
- Removed@kotori-bot/tools@^1.1.0
- Removedtsukiko@^1.2.1