@leofcoin/codec-format-interface 1.6.4 → 1.6.5

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -18
  2. package/package.json +3 -2
package/dist/index.js CHANGED
@@ -127,87 +127,87 @@ let BasicInterface$1 = class BasicInterface {
127
127
  var codecs = {
128
128
  // just a hash
129
129
  'disco-hash': {
130
- codec: parseInt('30', 16),
130
+ codec: parseInt('0x30', 16),
131
131
  hashAlg: 'dbl-keccak-256', // ,
132
132
  // testnet: 'olivia'
133
133
  },
134
134
  'peernet-peer-response': {
135
- codec: parseInt('707072', 16),
135
+ codec: parseInt('0x707072', 16),
136
136
  hashAlg: 'keccak-256',
137
137
  },
138
138
  'peernet-peer': {
139
- codec: parseInt('7070', 16),
139
+ codec: parseInt('0x7070', 16),
140
140
  hashAlg: 'keccak-256',
141
141
  },
142
142
  'peernet-dht': {
143
- codec: parseInt('706468', 16),
143
+ codec: parseInt('0x706468', 16),
144
144
  hashAlg: 'keccak-256',
145
145
  },
146
146
  'peernet-dht-response': {
147
- codec: parseInt('706472', 16),
147
+ codec: parseInt('0x706472', 16),
148
148
  hashAlg: 'keccak-256',
149
149
  },
150
150
  // data
151
151
  'peernet-data': {
152
- codec: parseInt('706461', 16),
152
+ codec: parseInt('0x706461', 16),
153
153
  hashAlg: 'keccak-256',
154
154
  },
155
155
  'peernet-data-response': {
156
- codec: parseInt('70646172', 16),
156
+ codec: parseInt('0x70646172', 16),
157
157
  hashAlg: 'keccak-256',
158
158
  },
159
159
  // message
160
160
  'peernet-message': {
161
- codec: parseInt('706d65', 16),
161
+ codec: parseInt('0x706d65', 16),
162
162
  hashAlg: 'keccak-256',
163
163
  },
164
164
  // pubsub
165
165
  'peernet-ps': {
166
- codec: parseInt('707073', 16),
166
+ codec: parseInt('0x707073', 16),
167
167
  hashAlg: 'keccak-256',
168
168
  },
169
169
  'peernet-response': {
170
- codec: parseInt('7072', 16),
170
+ codec: parseInt('0x7072', 16),
171
171
  hashAlg: 'keccak-256',
172
172
  },
173
173
  'peernet-request': {
174
- codec: parseInt('707271', 16),
174
+ codec: parseInt('0x707271', 16),
175
175
  hashAlg: 'keccak-256',
176
176
  },
177
177
  // normal block
178
178
  'leofcoin-block': {
179
- codec: parseInt('6c62', 16),
179
+ codec: parseInt('0x6c62', 16),
180
180
  hashAlg: 'dbl-keccak-512', // ,
181
181
  // testnet: 'olivia'
182
182
  },
183
183
  'leofcoin-tx': {
184
- codec: parseInt('6c74', 16),
184
+ codec: parseInt('0x6c74', 16),
185
185
  hashAlg: 'dbl-keccak-512', // ,
186
186
  // testnet: 'olivia'
187
187
  },
188
188
  // itx
189
189
  'leofcoin-itx': {
190
- codec: parseInt('6c69', 16),
190
+ codec: parseInt('0x6c69', 16),
191
191
  hashAlg: 'keccak-512', // ,
192
192
  // testnet: 'olivia'
193
193
  },
194
194
  // peer reputation
195
195
  'leofcoin-pr': {
196
- codec: parseInt('6c70', 16),
196
+ codec: parseInt('0x6c70', 16),
197
197
  hashAlg: 'keccak-256', // ,
198
198
  // testnet: 'olivia'
199
199
  },
200
200
  // chat message
201
201
  'chat-message': {
202
- codec: parseInt('70636d', 16),
202
+ codec: parseInt('0x70636d', 16),
203
203
  hashAlg: 'dbl-keccak-256',
204
204
  },
205
205
  'peernet-file': {
206
- codec: parseInt('7066', 16),
206
+ codec: parseInt('0x7066', 16),
207
207
  hashAlg: 'keccak-256',
208
208
  },
209
209
  'peernet-file-response': {
210
- codec: parseInt('706672', 16),
210
+ codec: parseInt('0x706672', 16),
211
211
  hashAlg: 'keccak-256',
212
212
  }
213
213
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/codec-format-interface",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "typings": "dist/index.d.ts",
13
13
  "scripts": {
14
- "publish": "npm run build && npm version patch && npm publish",
14
+ "prepublish": "npm run build && npm version patch",
15
15
  "build": "rollup -c",
16
16
  "test": "node test"
17
17
  },
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/leofcoin/codec-format-interface#readme",
29
29
  "dependencies": {
30
+ "@leofcoin/codecs": "^1.0.0",
30
31
  "@vandeurenglenn/base32": "^1.1.0",
31
32
  "@vandeurenglenn/base58": "^1.1.1",
32
33
  "@vandeurenglenn/is-hex": "^1.0.0",