@msafe/sui-app-store 0.0.24 → 0.0.25

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.mjs CHANGED
@@ -333,6 +333,7 @@ import { TransactionBlock as TransactionBlock3 } from "@mysten/sui.js/transactio
333
333
  // src/apps/mpay/builder/CreateStreamHelper.ts
334
334
  import { TransactionBlock } from "@mysten/sui.js/transactions";
335
335
  import { normalizeStructTag as normalizeStructTag2, SUI_TYPE_ARG } from "@mysten/sui.js/utils";
336
+ import { nanoid } from "nanoid";
336
337
 
337
338
  // src/apps/mpay/builder/const.ts
338
339
  var FEE_NUMERATOR = 50n;
@@ -504,17 +505,6 @@ function isSameTarget(target1, target2) {
504
505
  // src/apps/mpay/types/wallet.ts
505
506
  var GAS_OBJECT_SPEC = "txn.gas";
506
507
 
507
- // src/apps/mpay/utils/random.ts
508
- import { Buffer as Buffer3 } from "buffer";
509
- import { nanoid } from "nanoid";
510
- if (typeof window !== "undefined") {
511
- window.global = window.global ?? window;
512
- window.Buffer = window.Buffer ?? Buffer3;
513
- }
514
- function generateGroupId() {
515
- return nanoid();
516
- }
517
-
518
508
  // src/apps/mpay/builder/CreateStreamHelper.ts
519
509
  var CreateStreamHelper = class _CreateStreamHelper {
520
510
  constructor(globals, feeContract, streamContract) {
@@ -526,7 +516,7 @@ var CreateStreamHelper = class _CreateStreamHelper {
526
516
  return {
527
517
  metadata: encodeMetadata({
528
518
  name: info.name,
529
- groupId: generateGroupId()
519
+ groupId: nanoid()
530
520
  }),
531
521
  coinType: normalizeStructTag2(info.coinType),
532
522
  recipients: info.recipients.map((recipient) => ({