@zoralabs/protocol-sdk 0.12.0 → 0.12.2
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +29 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +29 -12
- package/dist/index.js.map +1 -1
- package/dist/preminter.d.ts +5 -5
- package/dist/preminter.d.ts.map +1 -1
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @zoralabs/protocol-sdk@0.12.
|
|
2
|
+
> @zoralabs/protocol-sdk@0.12.2 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-sdk
|
|
3
3
|
> pnpm tsup
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.ts
|
|
@@ -10,9 +10,9 @@ CLI Target: es2021
|
|
|
10
10
|
CLI Cleaning output folder
|
|
11
11
|
CJS Build start
|
|
12
12
|
ESM Build start
|
|
13
|
-
CJS dist/index.cjs 233.
|
|
14
|
-
CJS dist/index.cjs.map
|
|
15
|
-
CJS ⚡️ Build success in
|
|
16
|
-
ESM dist/index.js 226.
|
|
17
|
-
ESM dist/index.js.map
|
|
18
|
-
ESM ⚡️ Build success in
|
|
13
|
+
CJS dist/index.cjs 233.85 KB
|
|
14
|
+
CJS dist/index.cjs.map 476.02 KB
|
|
15
|
+
CJS ⚡️ Build success in 402ms
|
|
16
|
+
ESM dist/index.js 226.62 KB
|
|
17
|
+
ESM dist/index.js.map 473.18 KB
|
|
18
|
+
ESM ⚡️ Build success in 402ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @zoralabs/protocol-sdk
|
|
2
2
|
|
|
3
|
+
## 0.12.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [1e10ac74]
|
|
8
|
+
- @zoralabs/protocol-deployments@0.4.2
|
|
9
|
+
|
|
10
|
+
## 0.12.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [855112de]
|
|
15
|
+
- @zoralabs/protocol-deployments@0.4.1
|
|
16
|
+
|
|
3
17
|
## 0.12.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/index.cjs
CHANGED
|
@@ -6586,7 +6586,7 @@ function isArweaveURL(url) {
|
|
|
6586
6586
|
return url && typeof url === "string" ? url.startsWith("ar://") : false;
|
|
6587
6587
|
}
|
|
6588
6588
|
|
|
6589
|
-
// ../../node_modules/.pnpm/multiformats@13.
|
|
6589
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/bytes.js
|
|
6590
6590
|
var empty = new Uint8Array(0);
|
|
6591
6591
|
function equals(aa, bb) {
|
|
6592
6592
|
if (aa === bb)
|
|
@@ -6612,7 +6612,7 @@ function coerce3(o) {
|
|
|
6612
6612
|
throw new Error("Unknown type, must be binary type");
|
|
6613
6613
|
}
|
|
6614
6614
|
|
|
6615
|
-
// ../../node_modules/.pnpm/multiformats@13.
|
|
6615
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/vendor/base-x.js
|
|
6616
6616
|
function base3(ALPHABET, name) {
|
|
6617
6617
|
if (ALPHABET.length >= 255) {
|
|
6618
6618
|
throw new TypeError("Alphabet too long");
|
|
@@ -6748,7 +6748,7 @@ var src = base3;
|
|
|
6748
6748
|
var _brrp__multiformats_scope_baseX = src;
|
|
6749
6749
|
var base_x_default = _brrp__multiformats_scope_baseX;
|
|
6750
6750
|
|
|
6751
|
-
// ../../node_modules/.pnpm/multiformats@13.
|
|
6751
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/bases/base.js
|
|
6752
6752
|
var Encoder = class {
|
|
6753
6753
|
constructor(name, prefix, baseEncode) {
|
|
6754
6754
|
__publicField(this, "name");
|
|
@@ -6774,10 +6774,11 @@ var Decoder = class {
|
|
|
6774
6774
|
__publicField(this, "prefixCodePoint");
|
|
6775
6775
|
this.name = name;
|
|
6776
6776
|
this.prefix = prefix;
|
|
6777
|
-
|
|
6777
|
+
const prefixCodePoint = prefix.codePointAt(0);
|
|
6778
|
+
if (prefixCodePoint === void 0) {
|
|
6778
6779
|
throw new Error("Invalid prefix character");
|
|
6779
6780
|
}
|
|
6780
|
-
this.prefixCodePoint =
|
|
6781
|
+
this.prefixCodePoint = prefixCodePoint;
|
|
6781
6782
|
this.baseDecode = baseDecode;
|
|
6782
6783
|
}
|
|
6783
6784
|
decode(text) {
|
|
@@ -6919,7 +6920,7 @@ function rfc4648({ name, prefix, bitsPerChar, alphabet }) {
|
|
|
6919
6920
|
});
|
|
6920
6921
|
}
|
|
6921
6922
|
|
|
6922
|
-
// ../../node_modules/.pnpm/multiformats@13.
|
|
6923
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/bases/base32.js
|
|
6923
6924
|
var base32 = rfc4648({
|
|
6924
6925
|
prefix: "b",
|
|
6925
6926
|
name: "base32",
|
|
@@ -6975,7 +6976,19 @@ var base32z = rfc4648({
|
|
|
6975
6976
|
bitsPerChar: 5
|
|
6976
6977
|
});
|
|
6977
6978
|
|
|
6978
|
-
// ../../node_modules/.pnpm/multiformats@13.
|
|
6979
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/bases/base36.js
|
|
6980
|
+
var base36 = baseX({
|
|
6981
|
+
prefix: "k",
|
|
6982
|
+
name: "base36",
|
|
6983
|
+
alphabet: "0123456789abcdefghijklmnopqrstuvwxyz"
|
|
6984
|
+
});
|
|
6985
|
+
var base36upper = baseX({
|
|
6986
|
+
prefix: "K",
|
|
6987
|
+
name: "base36upper",
|
|
6988
|
+
alphabet: "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
|
6989
|
+
});
|
|
6990
|
+
|
|
6991
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/bases/base58.js
|
|
6979
6992
|
var base58btc = baseX({
|
|
6980
6993
|
name: "base58btc",
|
|
6981
6994
|
prefix: "z",
|
|
@@ -6987,7 +7000,7 @@ var base58flickr = baseX({
|
|
|
6987
7000
|
alphabet: "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"
|
|
6988
7001
|
});
|
|
6989
7002
|
|
|
6990
|
-
// ../../node_modules/.pnpm/multiformats@13.
|
|
7003
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/vendor/varint.js
|
|
6991
7004
|
var encode_1 = encode2;
|
|
6992
7005
|
var MSB = 128;
|
|
6993
7006
|
var REST = 127;
|
|
@@ -7046,7 +7059,7 @@ var varint = {
|
|
|
7046
7059
|
var _brrp_varint = varint;
|
|
7047
7060
|
var varint_default = _brrp_varint;
|
|
7048
7061
|
|
|
7049
|
-
// ../../node_modules/.pnpm/multiformats@13.
|
|
7062
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/varint.js
|
|
7050
7063
|
function decode3(data, offset = 0) {
|
|
7051
7064
|
const code = varint_default.decode(data, offset);
|
|
7052
7065
|
return [code, varint_default.decode.bytes];
|
|
@@ -7059,7 +7072,7 @@ function encodingLength(int) {
|
|
|
7059
7072
|
return varint_default.encodingLength(int);
|
|
7060
7073
|
}
|
|
7061
7074
|
|
|
7062
|
-
// ../../node_modules/.pnpm/multiformats@13.
|
|
7075
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/hashes/digest.js
|
|
7063
7076
|
function create(code, digest) {
|
|
7064
7077
|
const size = digest.byteLength;
|
|
7065
7078
|
const sizeOffset = encodingLength(code);
|
|
@@ -7104,7 +7117,7 @@ var Digest = class {
|
|
|
7104
7117
|
}
|
|
7105
7118
|
};
|
|
7106
7119
|
|
|
7107
|
-
// ../../node_modules/.pnpm/multiformats@13.
|
|
7120
|
+
// ../../node_modules/.pnpm/multiformats@13.3.1/node_modules/multiformats/dist/src/cid.js
|
|
7108
7121
|
function format(link, base4) {
|
|
7109
7122
|
const { bytes, version } = link;
|
|
7110
7123
|
switch (version) {
|
|
@@ -7390,9 +7403,13 @@ function parseCIDtoBytes(source, base4) {
|
|
|
7390
7403
|
const decoder = base4 ?? base32;
|
|
7391
7404
|
return [base32.prefix, decoder.decode(source)];
|
|
7392
7405
|
}
|
|
7406
|
+
case base36.prefix: {
|
|
7407
|
+
const decoder = base4 ?? base36;
|
|
7408
|
+
return [base36.prefix, decoder.decode(source)];
|
|
7409
|
+
}
|
|
7393
7410
|
default: {
|
|
7394
7411
|
if (base4 == null) {
|
|
7395
|
-
throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");
|
|
7412
|
+
throw Error("To parse non base32, base36 or base58btc encoded CID multibase decoder must be provided");
|
|
7396
7413
|
}
|
|
7397
7414
|
return [source[0], base4.decode(source)];
|
|
7398
7415
|
}
|