Comparing version 1.0.9 to 1.0.11
{ | ||
"name": "rclink", | ||
"version": "1.0.9", | ||
"version": "1.0.11", | ||
"main": "./src/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://gitee.com/BTAJL/RCNode.git", |
@@ -1,2 +0,2 @@ | ||
import WebSocket from 'ws'; | ||
const WebSocket = require('ws'); | ||
@@ -3,0 +3,0 @@ class EventTube { |
const protobuf = require("protobufjs"); | ||
import EventTube from './events'; | ||
const EventTube =require( './events'); | ||
@@ -4,0 +4,0 @@ |
@@ -20,5 +20,4 @@ /* | ||
Crypto: require('./crypto'), | ||
IndexDBRest: require('./indexdbRest').default, | ||
Transaction: require('./transaction').default, | ||
Rest: require('./rest').default | ||
} |
@@ -123,4 +123,8 @@ const protobuf = require('protobufjs') | ||
verifySignedTransaction(pubKey, alg){ | ||
// 深拷贝 | ||
// 深拷贝(相对于"=") | ||
// 实际上使用Object.assign()只能保证第一级属性的深拷贝 | ||
// 是满足这里的需求的 | ||
let msg = Object.assign({}, txMsg.get(this)) | ||
// 使用JSON.parse与JSON.stringify不能复制function等非object的属性 | ||
// let msg = JSON.parse(JSON.stringify(txMsg.get(this))) | ||
msg.metadata = null | ||
@@ -127,0 +131,0 @@ let signature = msg.signature |
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
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
1271968
22
881