@learncard/ceramic-plugin 1.1.37 → 1.1.39
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/ceramic-plugin.cjs.development.cjs +28 -19
- package/dist/ceramic-plugin.cjs.development.cjs.map +2 -2
- package/dist/ceramic-plugin.cjs.production.min.cjs +1 -1
- package/dist/ceramic-plugin.cjs.production.min.cjs.map +2 -2
- package/dist/ceramic-plugin.esm.js +28 -19
- package/dist/ceramic-plugin.esm.js.map +2 -2
- package/package.json +4 -4
|
@@ -11,11 +11,20 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
11
11
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
12
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
13
|
});
|
|
14
|
-
var __esm = (fn, res) => function __init() {
|
|
15
|
-
|
|
14
|
+
var __esm = (fn, res, err) => function __init() {
|
|
15
|
+
if (err) throw err[0];
|
|
16
|
+
try {
|
|
17
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
18
|
+
} catch (e2) {
|
|
19
|
+
throw err = [e2], e2;
|
|
20
|
+
}
|
|
16
21
|
};
|
|
17
22
|
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
-
|
|
23
|
+
try {
|
|
24
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
25
|
+
} catch (e2) {
|
|
26
|
+
throw mod = 0, e2;
|
|
27
|
+
}
|
|
19
28
|
};
|
|
20
29
|
var __export = (target, all) => {
|
|
21
30
|
for (var name5 in all)
|
|
@@ -40332,7 +40341,7 @@ __export(esm_exports, {
|
|
|
40332
40341
|
name: () => name4
|
|
40333
40342
|
});
|
|
40334
40343
|
|
|
40335
|
-
// ../../../node_modules/cborg/esm/lib/is.js
|
|
40344
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/is.js
|
|
40336
40345
|
var typeofs = [
|
|
40337
40346
|
"string",
|
|
40338
40347
|
"number",
|
|
@@ -40418,7 +40427,7 @@ function getObjectType(value) {
|
|
|
40418
40427
|
}
|
|
40419
40428
|
__name(getObjectType, "getObjectType");
|
|
40420
40429
|
|
|
40421
|
-
// ../../../node_modules/cborg/esm/lib/token.js
|
|
40430
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/token.js
|
|
40422
40431
|
var _Type = class _Type {
|
|
40423
40432
|
constructor(major, name5, terminal) {
|
|
40424
40433
|
this.major = major;
|
|
@@ -40463,7 +40472,7 @@ var _Token = class _Token {
|
|
|
40463
40472
|
__name(_Token, "Token");
|
|
40464
40473
|
var Token = _Token;
|
|
40465
40474
|
|
|
40466
|
-
// ../../../node_modules/cborg/esm/lib/byte-utils.js
|
|
40475
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/byte-utils.js
|
|
40467
40476
|
var useBuffer = globalThis.process && !globalThis.process.browser && globalThis.Buffer && typeof globalThis.Buffer.isBuffer === "function";
|
|
40468
40477
|
var textDecoder3 = new TextDecoder();
|
|
40469
40478
|
var textEncoder3 = new TextEncoder();
|
|
@@ -40662,7 +40671,7 @@ function decodeCodePointsArray(codePoints) {
|
|
|
40662
40671
|
}
|
|
40663
40672
|
__name(decodeCodePointsArray, "decodeCodePointsArray");
|
|
40664
40673
|
|
|
40665
|
-
// ../../../node_modules/cborg/esm/lib/bl.js
|
|
40674
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/bl.js
|
|
40666
40675
|
var defaultChunkSize = 256;
|
|
40667
40676
|
var _Bl = class _Bl {
|
|
40668
40677
|
constructor(chunkSize = defaultChunkSize) {
|
|
@@ -40735,7 +40744,7 @@ var _Bl = class _Bl {
|
|
|
40735
40744
|
__name(_Bl, "Bl");
|
|
40736
40745
|
var Bl = _Bl;
|
|
40737
40746
|
|
|
40738
|
-
// ../../../node_modules/cborg/esm/lib/common.js
|
|
40747
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/common.js
|
|
40739
40748
|
var decodeErrPrefix = "CBOR decode error:";
|
|
40740
40749
|
var encodeErrPrefix = "CBOR encode error:";
|
|
40741
40750
|
var uintMinorPrefixBytes = [];
|
|
@@ -40751,7 +40760,7 @@ function assertEnoughData(data, pos, need) {
|
|
|
40751
40760
|
}
|
|
40752
40761
|
__name(assertEnoughData, "assertEnoughData");
|
|
40753
40762
|
|
|
40754
|
-
// ../../../node_modules/cborg/esm/lib/0uint.js
|
|
40763
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/0uint.js
|
|
40755
40764
|
var uintBoundaries = [
|
|
40756
40765
|
24,
|
|
40757
40766
|
256,
|
|
@@ -40907,7 +40916,7 @@ encodeUint.compareTokens = /* @__PURE__ */ __name(function compareTokens(tok1, t
|
|
|
40907
40916
|
return tok1.value < tok2.value ? -1 : tok1.value > tok2.value ? 1 : 0;
|
|
40908
40917
|
}, "compareTokens");
|
|
40909
40918
|
|
|
40910
|
-
// ../../../node_modules/cborg/esm/lib/1negint.js
|
|
40919
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/1negint.js
|
|
40911
40920
|
function decodeNegint8(data, pos, _minor, options) {
|
|
40912
40921
|
return new Token(Type.negint, -1 - readUint8(data, pos + 1, options), 2);
|
|
40913
40922
|
}
|
|
@@ -40963,7 +40972,7 @@ encodeNegint.compareTokens = /* @__PURE__ */ __name(function compareTokens2(tok1
|
|
|
40963
40972
|
return tok1.value < tok2.value ? 1 : tok1.value > tok2.value ? -1 : 0;
|
|
40964
40973
|
}, "compareTokens");
|
|
40965
40974
|
|
|
40966
|
-
// ../../../node_modules/cborg/esm/lib/2bytes.js
|
|
40975
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/2bytes.js
|
|
40967
40976
|
function toToken(data, pos, prefix, length10) {
|
|
40968
40977
|
assertEnoughData(data, pos, prefix + length10);
|
|
40969
40978
|
const buf2 = slice(data, pos + prefix, pos + prefix + length10);
|
|
@@ -41019,7 +41028,7 @@ function compareBytes(b1, b2) {
|
|
|
41019
41028
|
}
|
|
41020
41029
|
__name(compareBytes, "compareBytes");
|
|
41021
41030
|
|
|
41022
|
-
// ../../../node_modules/cborg/esm/lib/3string.js
|
|
41031
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/3string.js
|
|
41023
41032
|
function toToken2(data, pos, prefix, length10, options) {
|
|
41024
41033
|
const totLength = prefix + length10;
|
|
41025
41034
|
assertEnoughData(data, pos, totLength);
|
|
@@ -41056,7 +41065,7 @@ function decodeString64(data, pos, _minor, options) {
|
|
|
41056
41065
|
__name(decodeString64, "decodeString64");
|
|
41057
41066
|
var encodeString = encodeBytes;
|
|
41058
41067
|
|
|
41059
|
-
// ../../../node_modules/cborg/esm/lib/4array.js
|
|
41068
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/4array.js
|
|
41060
41069
|
function toToken3(_data, _pos, prefix, length10) {
|
|
41061
41070
|
return new Token(Type.array, length10, prefix);
|
|
41062
41071
|
}
|
|
@@ -41101,7 +41110,7 @@ encodeArray.encodedSize = /* @__PURE__ */ __name(function encodedSize5(token) {
|
|
|
41101
41110
|
return encodeUintValue.encodedSize(token.value);
|
|
41102
41111
|
}, "encodedSize");
|
|
41103
41112
|
|
|
41104
|
-
// ../../../node_modules/cborg/esm/lib/5map.js
|
|
41113
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/5map.js
|
|
41105
41114
|
function toToken4(_data, _pos, prefix, length10) {
|
|
41106
41115
|
return new Token(Type.map, length10, prefix);
|
|
41107
41116
|
}
|
|
@@ -41146,7 +41155,7 @@ encodeMap.encodedSize = /* @__PURE__ */ __name(function encodedSize6(token) {
|
|
|
41146
41155
|
return encodeUintValue.encodedSize(token.value);
|
|
41147
41156
|
}, "encodedSize");
|
|
41148
41157
|
|
|
41149
|
-
// ../../../node_modules/cborg/esm/lib/6tag.js
|
|
41158
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/6tag.js
|
|
41150
41159
|
function decodeTagCompact(_data, _pos, minor, _options) {
|
|
41151
41160
|
return new Token(Type.tag, minor, 1);
|
|
41152
41161
|
}
|
|
@@ -41176,7 +41185,7 @@ encodeTag.encodedSize = /* @__PURE__ */ __name(function encodedSize7(token) {
|
|
|
41176
41185
|
return encodeUintValue.encodedSize(token.value);
|
|
41177
41186
|
}, "encodedSize");
|
|
41178
41187
|
|
|
41179
|
-
// ../../../node_modules/cborg/esm/lib/7float.js
|
|
41188
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/7float.js
|
|
41180
41189
|
var MINOR_FALSE = 20;
|
|
41181
41190
|
var MINOR_TRUE = 21;
|
|
41182
41191
|
var MINOR_NULL = 22;
|
|
@@ -41364,7 +41373,7 @@ function readFloat64(ui8a2, pos) {
|
|
|
41364
41373
|
__name(readFloat64, "readFloat64");
|
|
41365
41374
|
encodeFloat.compareTokens = encodeUint.compareTokens;
|
|
41366
41375
|
|
|
41367
|
-
// ../../../node_modules/cborg/esm/lib/jump.js
|
|
41376
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/jump.js
|
|
41368
41377
|
function invalidMinor(data, pos, minor) {
|
|
41369
41378
|
throw new Error(`${decodeErrPrefix} encountered invalid minor (${minor}) for major ${data[pos] >>> 5}`);
|
|
41370
41379
|
}
|
|
@@ -41523,7 +41532,7 @@ function quickEncodeToken(token) {
|
|
|
41523
41532
|
}
|
|
41524
41533
|
__name(quickEncodeToken, "quickEncodeToken");
|
|
41525
41534
|
|
|
41526
|
-
// ../../../node_modules/cborg/esm/lib/encode.js
|
|
41535
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/encode.js
|
|
41527
41536
|
var defaultEncodeOptions = {
|
|
41528
41537
|
float64: false,
|
|
41529
41538
|
mapSorter,
|
|
@@ -41757,7 +41766,7 @@ function encode13(data, options) {
|
|
|
41757
41766
|
}
|
|
41758
41767
|
__name(encode13, "encode");
|
|
41759
41768
|
|
|
41760
|
-
// ../../../node_modules/cborg/esm/lib/decode.js
|
|
41769
|
+
// ../../../node_modules/@ipld/dag-cbor/node_modules/cborg/esm/lib/decode.js
|
|
41761
41770
|
var defaultDecodeOptions = {
|
|
41762
41771
|
strict: false,
|
|
41763
41772
|
allowIndefinite: true,
|