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

koishi-plugin-mai-ocr

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koishi-plugin-mai-ocr - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

4

lib/index.js

@@ -59,2 +59,4 @@ "use strict";

.action(async ({ session }, img) => {
if (!img)
return `输入指令时需要带上识别(翻译)图片`;
const text = img.match(/src="([^"]*)"/)[1];

@@ -104,3 +106,3 @@ //定义变量

const kSigning = sha256("tc3_request", kService);
const signature = sha256(stringToSign, kSigning, "hex");
const signature = sha256(stringToSign, kSigning);
//拼接 Authorization

@@ -107,0 +109,0 @@ const authorization = algorithm +

{
"name": "koishi-plugin-mai-ocr",
"description": "通过腾讯的ocr接口进行文字识别,并且提供翻译功能",
"version": "0.0.7",
"version": "0.0.8",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "typings": "lib/index.d.ts",

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