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

@cnhis-frontend/signature

Package Overview
Dependencies
Maintainers
0
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cnhis-frontend/signature - npm Package Compare versions

Comparing version 1.0.2-beta.1 to 1.0.2-beta.2

2

package.json
{
"name": "@cnhis-frontend/signature",
"version": "1.0.2-beta.1",
"version": "1.0.2-beta.2",
"description": "手写板签名对接 sdk",

@@ -5,0 +5,0 @@ "main": "dist/signature.es.min.js",

@@ -24,3 +24,3 @@ # signature-sdk

strokeWidth?: number; 签名线条粗细值,默认值 3
padPath?: string; 预览目标pdf文件路径
pdfPath?: string; 预览目标pdf文件路径
xmlPath?: string; xml文件生成路径,

@@ -50,4 +50,16 @@ location?: string; 签名或者指纹的位置,一个签名或指纹标准格式为Type.Page.X.Y,默认值 '2.1.100.100'

// 河北腾翔3.0(signImage包含了手写签名和指纹)
const signatureSdk = SignatureSDK.create({ name: 'tengxiang', version: 3 })
const { signImage } = await signatureSdk.start(option)
/* option类型为 {
id?: string | number; 业务系统自定义字段,可以定义多个,证信签不对其进行处理,签字完成时一并返回
reason?: string; 签字确认文字
title?: string; 标题
content?: string; type为html时为网页源码(源码的双引号用单引号替换,其它不变),type为text的时候为string字符串(可传入有效url)
source: string; 待签原文,PC传递给证信签,用于签名
type?: 'text' | 'html' | 'htmlB64'; 默认值为text
} */
// 销毁实例,执行后可使用SignatureSDK.create()创建一个新实例
SignatureSDK.destroy()
```

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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