New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@kokkoro/cli

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kokkoro/cli - npm Package Compare versions

Comparing version
2.0.5
to
2.0.6
+0
-0
bin/kokkoro.js
#!/usr/bin/env node
import('../lib/index.js');
+2
-4
import enquirer from 'enquirer';
import { join } from 'node:path';
import { promisify } from 'node:util';
import { existsSync } from 'node:fs';

@@ -9,3 +10,2 @@ import { exec } from 'node:child_process';

import { INFO, SUCCESS } from '../utils/prefix.js';
import { promisify } from 'node:util';
function required(value) {

@@ -42,5 +42,3 @@ if (!value.trim()) {

const config = JSON.parse(text);
const events = is_public
? ['PUBLIC_GUILD_MESSAGES']
: ['PUBLIC_GUILD_MESSAGES', 'GUILD_MESSAGES'];
const events = is_public ? ['PUBLIC_GUILD_MESSAGES'] : ['PUBLIC_GUILD_MESSAGES', 'GUILD_MESSAGES'];
const bot = { appid, token, secret };

@@ -47,0 +45,0 @@ config.events = events;

@@ -6,5 +6,5 @@ import enquirer from 'enquirer';

import { promisify } from 'node:util';
import { root, working } from '../index.js';
import { cyan } from '../utils/color.js';
import { hasConfig } from '../utils/file.js';
import { root, working } from '../index.js';
import { ERROR, INFO, SUCCESS } from '../utils/prefix.js';

@@ -11,0 +11,0 @@ async function generatePlugin(name, style) {

@@ -15,3 +15,3 @@ import { spawn } from 'child_process';

const { develop } = options;
const node = spawn('node', ['main.js'], {
const node = spawn('node', ['index.js'], {
stdio: 'inherit',

@@ -18,0 +18,0 @@ env: {

@@ -14,3 +14,3 @@ var Type;

Type[Type["GreenBg"] = 42] = "GreenBg";
Type[Type["YellowBg"] = 44] = "YellowBg";
Type[Type["YellowBg"] = 43] = "YellowBg";
Type[Type["BlueBg"] = 44] = "BlueBg";

@@ -17,0 +17,0 @@ Type[Type["MagentaBg"] = 45] = "MagentaBg";

import { colorful } from './color.js';
export const INFO = colorful('INFO', 'White', 'CyanBg');
export const ERROR = colorful('ERROR', 'White', 'RedBg');
export const WARN = colorful('WARN', 'White', 'YellowBg');
export const SUCCESS = colorful('SUCCESS', 'White', 'GreenBg');
export const INFO = colorful(' INFO ', 'BlueBg');
export const ERROR = colorful(' ERROR ', 'RedBg');
export const WARN = colorful(' WARN ', 'YellowBg');
export const SUCCESS = colorful(' SUCCESS ', 'GreenBg');
{
"name": "@kokkoro/cli",
"version": "2.0.5",
"version": "2.0.6",
"description": "Cli tool for kokkoro.",
"engines": {
"node": ">=20.6.0"
"node": ">=18.0.0"
},

@@ -38,7 +38,3 @@ "files": [

"enquirer": "^2.4.1"
},
"devDependencies": {
"@kokkoro/core": "^3.0.11",
"@types/node": "^20.10.8"
}
}

@@ -1,3 +0,3 @@

import { setup } from 'kokkoro';
import { bootstrap } from 'kokkoro';
setup();
bootstrap();

@@ -5,3 +5,3 @@ {

"engines": {
"node": ">=20.6.0"
"node": ">=18.0.0"
},

@@ -11,3 +11,3 @@ "type": "module",

"scripts": {
"start": "node --experimental-import-meta-resolve index.js"
"start": "node index.js"
},

@@ -14,0 +14,0 @@ "dependencies": {

@@ -6,3 +6,3 @@ {

"engines": {
"node": ">=20.6.0"
"node": ">=18.0.0"
},

@@ -9,0 +9,0 @@ "type": "module",

@@ -0,0 +0,0 @@ import { Command, CommandContext, Context, Event, Plugin } from '@kokkoro/core';

@@ -6,3 +6,3 @@ {

"engines": {
"node": ">=20.6.0"
"node": ">=18.0.0"
},

@@ -9,0 +9,0 @@ "type": "module",

@@ -0,0 +0,0 @@ import { Metadata, useCommand, useEvent } from '@kokkoro/core';

@@ -0,0 +0,0 @@ import { useCommand, useEvent } from '@kokkoro/core';

@@ -6,3 +6,3 @@ {

"engines": {
"node": ">=20.6.0"
"node": ">=18.0.0"
},

@@ -9,0 +9,0 @@ "type": "module",

MIT License
Copyright (c) 2020 Yuki
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
# kokkoro-cli
Cli tool for kokkoro.