New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@satorijs/core

Package Overview
Dependencies
Maintainers
1
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@satorijs/core - npm Package Compare versions

Comparing version 3.6.1 to 3.6.2

8

lib/index.d.ts

@@ -89,3 +89,3 @@ import * as cordis from 'cordis';

callbacks: Dict<Function>;
logger: Logger;
logger: cordis.Logger;
protected context: Context;

@@ -107,5 +107,5 @@ protected _status: Status;

dispatch(session: C[typeof Context.session]): void;
createMessage(channelId: string, content: Fragment, guildId?: string, options?: SendOptions): Promise<import("@satorijs/protocol").Message[]>;
sendMessage(channelId: string, content: Fragment, guildId?: string, options?: SendOptions): Promise<string[]>;
sendPrivateMessage(userId: string, content: Fragment, guildId?: string, options?: SendOptions): Promise<string[]>;
createMessage(channelId: string, content: h.Fragment, guildId?: string, options?: SendOptions): Promise<import("@satorijs/protocol").Message[]>;
sendMessage(channelId: string, content: h.Fragment, guildId?: string, options?: SendOptions): Promise<string[]>;
sendPrivateMessage(userId: string, content: h.Fragment, guildId?: string, options?: SendOptions): Promise<string[]>;
supports(name: string, session?: Partial<C[typeof Context.session]>): Promise<boolean>;

@@ -112,0 +112,0 @@ checkPermission(name: string, session: Partial<C[typeof Context.session]>): Promise<boolean>;

{
"name": "@satorijs/core",
"description": "Core components of Satorijs",
"version": "3.6.1",
"version": "3.6.2",
"type": "module",

@@ -49,5 +49,5 @@ "main": "lib/index.cjs",

"@satorijs/protocol": "^1.3.0-alpha.0",
"cordis": "^3.12.0",
"cordis": "^3.13.0",
"cosmokit": "^1.5.2",
"undios": "^0.2.3",
"undios": "^0.3.0",
"undios-file": "^0.1.2",

@@ -54,0 +54,0 @@ "ws": "^8.14.2"

import { clone, Dict, pick, remove } from 'cosmokit'
import { Context, Fragment, Logger } from '.'
import * as cordis from 'cordis'
import h from '@satorijs/element'
import { Context } from '.'
import { Adapter } from './adapter'

@@ -29,3 +31,3 @@ import { MessageEncoder } from './message'

public callbacks: Dict<Function> = {}
public logger: Logger
public logger: cordis.Logger

@@ -162,3 +164,3 @@ // Same as `this.ctx`, but with a more specific type.

async createMessage(channelId: string, content: Fragment, guildId?: string, options?: SendOptions) {
async createMessage(channelId: string, content: h.Fragment, guildId?: string, options?: SendOptions) {
const { MessageEncoder } = this.constructor as typeof Bot

@@ -168,3 +170,3 @@ return new MessageEncoder(this, channelId, guildId, options).send(content)

async sendMessage(channelId: string, content: Fragment, guildId?: string, options?: SendOptions) {
async sendMessage(channelId: string, content: h.Fragment, guildId?: string, options?: SendOptions) {
const messages = await this.createMessage(channelId, content, guildId, options)

@@ -174,3 +176,3 @@ return messages.map(message => message.id)

async sendPrivateMessage(userId: string, content: Fragment, guildId?: string, options?: SendOptions) {
async sendPrivateMessage(userId: string, content: h.Fragment, guildId?: string, options?: SendOptions) {
const { id } = await this.createDirectChannel(userId, guildId ?? options?.session?.guildId)

@@ -177,0 +179,0 @@ return this.sendMessage(id, content, null, options)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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