@leofcoin/codec-format-interface 1.1.0 → 1.1.1
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/dist/index.js +31 -2
- package/package.json +1 -1
- package/src/index.js +5 -7
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var bs32 = require('@vandeurenglenn/base32');
|
|
4
6
|
var bs58 = require('@vandeurenglenn/base58');
|
|
5
7
|
var isHex = require('@vandeurenglenn/is-hex');
|
|
@@ -152,6 +154,11 @@ class BasicInterface {
|
|
|
152
154
|
}
|
|
153
155
|
}
|
|
154
156
|
|
|
157
|
+
var basicInterface = /*#__PURE__*/Object.freeze({
|
|
158
|
+
__proto__: null,
|
|
159
|
+
'default': BasicInterface
|
|
160
|
+
});
|
|
161
|
+
|
|
155
162
|
var codecs = {
|
|
156
163
|
// just a hash
|
|
157
164
|
'disco-hash': {
|
|
@@ -232,6 +239,11 @@ var codecs = {
|
|
|
232
239
|
},
|
|
233
240
|
};
|
|
234
241
|
|
|
242
|
+
var codecs$1 = /*#__PURE__*/Object.freeze({
|
|
243
|
+
__proto__: null,
|
|
244
|
+
'default': codecs
|
|
245
|
+
});
|
|
246
|
+
|
|
235
247
|
class PeernetCodec extends BasicInterface {
|
|
236
248
|
get codecs() {
|
|
237
249
|
return {...globalThis.peernet.codecs, ...codecs}
|
|
@@ -323,6 +335,11 @@ class PeernetCodec extends BasicInterface {
|
|
|
323
335
|
}
|
|
324
336
|
}
|
|
325
337
|
|
|
338
|
+
var codec = /*#__PURE__*/Object.freeze({
|
|
339
|
+
__proto__: null,
|
|
340
|
+
'default': PeernetCodec
|
|
341
|
+
});
|
|
342
|
+
|
|
326
343
|
class CodecHash extends BasicInterface {
|
|
327
344
|
constructor(buffer, options = {}) {
|
|
328
345
|
super();
|
|
@@ -446,6 +463,11 @@ class CodecHash extends BasicInterface {
|
|
|
446
463
|
}
|
|
447
464
|
}
|
|
448
465
|
|
|
466
|
+
var codecHash = /*#__PURE__*/Object.freeze({
|
|
467
|
+
__proto__: null,
|
|
468
|
+
'default': CodecHash
|
|
469
|
+
});
|
|
470
|
+
|
|
449
471
|
let protons;
|
|
450
472
|
|
|
451
473
|
class FormatInterface extends BasicInterface {
|
|
@@ -555,6 +577,13 @@ class FormatInterface extends BasicInterface {
|
|
|
555
577
|
}
|
|
556
578
|
}
|
|
557
579
|
|
|
558
|
-
var
|
|
580
|
+
var codecFormatInterface = /*#__PURE__*/Object.freeze({
|
|
581
|
+
__proto__: null,
|
|
582
|
+
'default': FormatInterface
|
|
583
|
+
});
|
|
559
584
|
|
|
560
|
-
|
|
585
|
+
exports.BasicInterface = basicInterface;
|
|
586
|
+
exports.Codec = codec;
|
|
587
|
+
exports.CodecHash = codecHash;
|
|
588
|
+
exports.FormatInterface = codecFormatInterface;
|
|
589
|
+
exports.codecs = codecs$1;
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default { codecs, Codec, CodecHash, FormatInterface, BasicInterface }
|
|
1
|
+
export * as BasicInterface from './basic-interface.js'
|
|
2
|
+
export * as FormatInterface from './codec-format-interface.js'
|
|
3
|
+
export * as CodecHash from './codec-hash.js'
|
|
4
|
+
export * as Codec from './codec.js'
|
|
5
|
+
export * as codecs from './codecs.js'
|