@buildonspark/issuer-sdk 0.1.6 → 0.1.7
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/CHANGELOG.md +7 -0
- package/dist/index.browser.d.ts +244 -238
- package/dist/index.browser.js +629 -917
- package/dist/index.node.cjs +654 -935
- package/dist/index.node.d.cts +248 -239
- package/dist/index.node.d.ts +248 -239
- package/dist/index.node.js +635 -914
- package/dist/native/index.react-native.cjs +684 -925
- package/dist/native/index.react-native.d.cts +245 -239
- package/dist/native/index.react-native.d.ts +245 -239
- package/dist/native/index.react-native.js +665 -913
- package/dist/proto/spark.cjs +6 -37
- package/dist/proto/spark.d.cts +1 -4
- package/dist/proto/spark.d.ts +1 -4
- package/dist/proto/spark.js +2 -3
- package/dist/proto/spark_token.cjs +6 -37
- package/dist/proto/spark_token.d.cts +1 -1
- package/dist/proto/spark_token.d.ts +1 -1
- package/dist/proto/spark_token.js +2 -3
- package/dist/tests/test-utils.cjs +6 -37
- package/dist/tests/test-utils.d.cts +1 -1
- package/dist/tests/test-utils.d.ts +1 -1
- package/dist/tests/test-utils.js +2 -3
- package/dist/types/index.cjs +6 -37
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +2 -3
- package/package.json +4 -4
- package/dist/chunk-7B4B24XF.js +0 -17
package/dist/proto/spark.cjs
CHANGED
|
@@ -1,40 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
1
|
|
|
17
|
-
// src/proto/spark.ts
|
|
18
|
-
var spark_exports = {};
|
|
19
|
-
module.exports = __toCommonJS(spark_exports);
|
|
20
2
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (typeof window.global === "undefined") {
|
|
28
|
-
window.global = window;
|
|
29
|
-
}
|
|
30
|
-
if (typeof window.globalThis === "undefined") {
|
|
31
|
-
window.globalThis = window;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// src/proto/spark.ts
|
|
36
|
-
__reExport(spark_exports, require("@buildonspark/spark-sdk/proto/spark"), module.exports);
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
...require("@buildonspark/spark-sdk/proto/spark")
|
|
3
|
+
var _buildonspark_spark_sdk_proto_spark = require("@buildonspark/spark-sdk/proto/spark");
|
|
4
|
+
Object.keys(_buildonspark_spark_sdk_proto_spark).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return _buildonspark_spark_sdk_proto_spark[k]; }
|
|
8
|
+
});
|
|
40
9
|
});
|
package/dist/proto/spark.d.cts
CHANGED
package/dist/proto/spark.d.ts
CHANGED
package/dist/proto/spark.js
CHANGED
|
@@ -1,40 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
1
|
|
|
17
|
-
// src/proto/spark_token.ts
|
|
18
|
-
var spark_token_exports = {};
|
|
19
|
-
module.exports = __toCommonJS(spark_token_exports);
|
|
20
2
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (typeof window.global === "undefined") {
|
|
28
|
-
window.global = window;
|
|
29
|
-
}
|
|
30
|
-
if (typeof window.globalThis === "undefined") {
|
|
31
|
-
window.globalThis = window;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// src/proto/spark_token.ts
|
|
36
|
-
__reExport(spark_token_exports, require("@buildonspark/spark-sdk/proto/spark_token"), module.exports);
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
...require("@buildonspark/spark-sdk/proto/spark_token")
|
|
3
|
+
var _buildonspark_spark_sdk_proto_spark_token = require("@buildonspark/spark-sdk/proto/spark_token");
|
|
4
|
+
Object.keys(_buildonspark_spark_sdk_proto_spark_token).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return _buildonspark_spark_sdk_proto_spark_token[k]; }
|
|
8
|
+
});
|
|
40
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "@buildonspark/spark-sdk/proto/spark_token";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "@buildonspark/spark-sdk/proto/spark_token";
|
|
@@ -1,40 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
1
|
|
|
17
|
-
// src/tests/test-utils.ts
|
|
18
|
-
var test_utils_exports = {};
|
|
19
|
-
module.exports = __toCommonJS(test_utils_exports);
|
|
20
2
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (typeof window.global === "undefined") {
|
|
28
|
-
window.global = window;
|
|
29
|
-
}
|
|
30
|
-
if (typeof window.globalThis === "undefined") {
|
|
31
|
-
window.globalThis = window;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// src/tests/test-utils.ts
|
|
36
|
-
__reExport(test_utils_exports, require("@buildonspark/spark-sdk/test-utils"), module.exports);
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
...require("@buildonspark/spark-sdk/test-utils")
|
|
3
|
+
var _buildonspark_spark_sdk_test_utils = require("@buildonspark/spark-sdk/test-utils");
|
|
4
|
+
Object.keys(_buildonspark_spark_sdk_test_utils).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return _buildonspark_spark_sdk_test_utils[k]; }
|
|
8
|
+
});
|
|
40
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "@buildonspark/spark-sdk/test-utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "@buildonspark/spark-sdk/test-utils";
|
package/dist/tests/test-utils.js
CHANGED
package/dist/types/index.cjs
CHANGED
|
@@ -1,40 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
1
|
|
|
17
|
-
// src/types/index.ts
|
|
18
|
-
var types_exports = {};
|
|
19
|
-
module.exports = __toCommonJS(types_exports);
|
|
20
2
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (typeof window.global === "undefined") {
|
|
28
|
-
window.global = window;
|
|
29
|
-
}
|
|
30
|
-
if (typeof window.globalThis === "undefined") {
|
|
31
|
-
window.globalThis = window;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// src/types/index.ts
|
|
36
|
-
__reExport(types_exports, require("@buildonspark/spark-sdk/types"), module.exports);
|
|
37
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
...require("@buildonspark/spark-sdk/types")
|
|
3
|
+
var _buildonspark_spark_sdk_types = require("@buildonspark/spark-sdk/types");
|
|
4
|
+
Object.keys(_buildonspark_spark_sdk_types).forEach(function (k) {
|
|
5
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function () { return _buildonspark_spark_sdk_types[k]; }
|
|
8
|
+
});
|
|
40
9
|
});
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "@buildonspark/spark-sdk/types";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "@buildonspark/spark-sdk/types";
|
package/dist/types/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buildonspark/issuer-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "Spark Issuer SDK for token issuance",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.browser.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"CHANGELOG.md"
|
|
54
54
|
],
|
|
55
55
|
"scripts": {
|
|
56
|
-
"build": "yarn tsc && rm -rf dist &&
|
|
56
|
+
"build": "yarn tsc && rm -rf dist && tsdown",
|
|
57
57
|
"build:watch": "yarn build --watch --clean=false",
|
|
58
58
|
"clean": "rm -rf dist",
|
|
59
59
|
"circular-deps": "madge --circular --extensions ts,tsx src",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"types": "tsc"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@buildonspark/spark-sdk": "0.5.
|
|
79
|
+
"@buildonspark/spark-sdk": "0.5.7",
|
|
80
80
|
"@noble/curves": "^1.8.0",
|
|
81
81
|
"@scure/btc-signer": "^1.5.0",
|
|
82
82
|
"buffer": "^6.0.3"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"react-native": "0.79.4",
|
|
97
97
|
"react-native-get-random-values": "^1.11.0",
|
|
98
98
|
"ts-jest": "^29.2.5",
|
|
99
|
-
"
|
|
99
|
+
"tsdown": "^0.20.0-beta.3",
|
|
100
100
|
"typescript": "^5.7.3"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
package/dist/chunk-7B4B24XF.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// buffer.js
|
|
2
|
-
import { Buffer } from "buffer";
|
|
3
|
-
if (typeof globalThis.Buffer === "undefined") {
|
|
4
|
-
globalThis.Buffer = Buffer;
|
|
5
|
-
}
|
|
6
|
-
if (typeof window !== "undefined") {
|
|
7
|
-
if (typeof window.global === "undefined") {
|
|
8
|
-
window.global = window;
|
|
9
|
-
}
|
|
10
|
-
if (typeof window.globalThis === "undefined") {
|
|
11
|
-
window.globalThis = window;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
Buffer
|
|
17
|
-
};
|