gitmark 0.0.59 → 0.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/git-mark-list CHANGED
@@ -91,7 +91,7 @@ function renderCommit(commit, type) {
91
91
  // console.log(canon)
92
92
 
93
93
  // sign
94
-
94
+ const KIND_CODE = 17
95
95
 
96
96
  const privateKeyHex = commit.privkey
97
97
  const message = Buffer.from(id, 'hex')
@@ -101,7 +101,7 @@ function renderCommit(commit, type) {
101
101
  // console.log(sig)
102
102
  // var sig = 1
103
103
 
104
- var event = `["EVENT",{"id":"${id}","pubkey":"${commit.pubkey}","created_at":${commit.authorDate},"kind":1,"tags":[],"content":"${commit.hash}","sig":"${sig}"}]`
104
+ var event = `["EVENT",{"id":"${id}","pubkey":"${commit.pubkey}","created_at":${commit.authorDate},"kind":${KIND_CODE},"tags":[],"content":"${commit.hash}","sig":"${sig}"}]`
105
105
 
106
106
  console.log(event)
107
107
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitmark",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "gitmark",
5
5
  "main": "index.js",
6
6
  "scripts": {