@buildonspark/issuer-sdk 0.0.67 → 0.0.69

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @buildonspark/issuer-sdk
2
2
 
3
+ ## 0.0.69
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @buildonspark/spark-sdk@0.1.38
9
+
10
+ ## 0.0.68
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+ - @buildonspark/spark-sdk@0.1.37
16
+
3
17
  ## 0.0.67
4
18
 
5
19
  ### Patch Changes
@@ -0,0 +1,13 @@
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
+ }
package/dist/index.cjs CHANGED
@@ -29,8 +29,13 @@ var import_buffer = require("buffer");
29
29
  if (typeof globalThis.Buffer === "undefined") {
30
30
  globalThis.Buffer = import_buffer.Buffer;
31
31
  }
32
- if (typeof global === "undefined") {
33
- window.global = window.globalThis;
32
+ if (typeof window !== "undefined") {
33
+ if (typeof window.global === "undefined") {
34
+ window.global = window;
35
+ }
36
+ if (typeof window.globalThis === "undefined") {
37
+ window.globalThis = window;
38
+ }
34
39
  }
35
40
 
36
41
  // src/issuer-wallet/issuer-spark-wallet.ts
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-77FPZDAE.js";
1
+ import "./chunk-5MYKP7NN.js";
2
2
 
3
3
  // src/issuer-wallet/issuer-spark-wallet.ts
4
4
  import { TokenPubkey, TokenPubkeyAnnouncement } from "@buildonspark/lrc20-sdk";
@@ -23,8 +23,13 @@ var import_buffer = require("buffer");
23
23
  if (typeof globalThis.Buffer === "undefined") {
24
24
  globalThis.Buffer = import_buffer.Buffer;
25
25
  }
26
- if (typeof global === "undefined") {
27
- window.global = window.globalThis;
26
+ if (typeof window !== "undefined") {
27
+ if (typeof window.global === "undefined") {
28
+ window.global = window;
29
+ }
30
+ if (typeof window.globalThis === "undefined") {
31
+ window.globalThis = window;
32
+ }
28
33
  }
29
34
 
30
35
  // src/proto/lrc20.ts
@@ -1,4 +1,4 @@
1
- import "../chunk-77FPZDAE.js";
1
+ import "../chunk-5MYKP7NN.js";
2
2
 
3
3
  // src/proto/lrc20.ts
4
4
  export * from "@buildonspark/spark-sdk/proto/lrc20";
@@ -23,8 +23,13 @@ var import_buffer = require("buffer");
23
23
  if (typeof globalThis.Buffer === "undefined") {
24
24
  globalThis.Buffer = import_buffer.Buffer;
25
25
  }
26
- if (typeof global === "undefined") {
27
- window.global = window.globalThis;
26
+ if (typeof window !== "undefined") {
27
+ if (typeof window.global === "undefined") {
28
+ window.global = window;
29
+ }
30
+ if (typeof window.globalThis === "undefined") {
31
+ window.globalThis = window;
32
+ }
28
33
  }
29
34
 
30
35
  // src/proto/spark.ts
@@ -1,4 +1,4 @@
1
- import "../chunk-77FPZDAE.js";
1
+ import "../chunk-5MYKP7NN.js";
2
2
 
3
3
  // src/proto/spark.ts
4
4
  export * from "@buildonspark/spark-sdk/proto/spark";
package/dist/types.cjs CHANGED
@@ -22,6 +22,11 @@ var import_buffer = require("buffer");
22
22
  if (typeof globalThis.Buffer === "undefined") {
23
23
  globalThis.Buffer = import_buffer.Buffer;
24
24
  }
25
- if (typeof global === "undefined") {
26
- window.global = window.globalThis;
25
+ if (typeof window !== "undefined") {
26
+ if (typeof window.global === "undefined") {
27
+ window.global = window;
28
+ }
29
+ if (typeof window.globalThis === "undefined") {
30
+ window.globalThis = window;
31
+ }
27
32
  }
package/dist/types.js CHANGED
@@ -1 +1 @@
1
- import "./chunk-77FPZDAE.js";
1
+ import "./chunk-5MYKP7NN.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildonspark/issuer-sdk",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "description": "Spark Issuer SDK for token issuance",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.js",
@@ -63,7 +63,7 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "@buildonspark/lrc20-sdk": "0.0.57",
66
- "@buildonspark/spark-sdk": "0.1.36",
66
+ "@buildonspark/spark-sdk": "0.1.38",
67
67
  "@lightsparkdev/core": "^1.4.1",
68
68
  "@noble/curves": "^1.8.0",
69
69
  "@scure/btc-signer": "^1.5.0",
@@ -1,8 +0,0 @@
1
- // buffer.js
2
- import { Buffer } from "buffer";
3
- if (typeof globalThis.Buffer === "undefined") {
4
- globalThis.Buffer = Buffer;
5
- }
6
- if (typeof global === "undefined") {
7
- window.global = window.globalThis;
8
- }