diff --git a/README.md b/README.md index 08fdc26..9466087 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,16 @@ await Wallet.disconnect(); ## Documentation For full documentation, visit [docs.xverse.app](https://docs.xverse.app/sats-connect/). + +## Development + +### Build the package + +```bash +npm run build +``` +### Run example app + +```bash +npm run dev:example +``` diff --git a/package-lock.json b/package-lock.json index 7f015c4..6410633 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,9 +9,9 @@ "version": "2.2.0", "license": "ISC", "dependencies": { - "@sats-connect/core": "0.0.4-caef0cb", - "@sats-connect/make-default-provider-config": "0.0.1-38d3294", - "@sats-connect/ui": "0.0.3-07f4874" + "@sats-connect/core": "0.0.5", + "@sats-connect/make-default-provider-config": "0.0.1", + "@sats-connect/ui": "0.0.4" }, "devDependencies": { "husky": "^8.0.3", @@ -1748,9 +1748,9 @@ ] }, "node_modules/@sats-connect/core": { - "version": "0.0.4-caef0cb", - "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.4-caef0cb.tgz", - "integrity": "sha512-M/yxUgnYF6JVhfLxMj0pLYZFiJfwkd7C3GYI43aVbaIVhqoSBianEEj2duIiSDAQLC03Scqbt2LXUu42dPs1fA==", + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.5.tgz", + "integrity": "sha512-eyAoxjs3vuJP037/XKuhjIDUrOlCHIdcvw2D1DFpzhTRzyiXptiE2A0n46loDIBCUhOuXl4vsn8cc+yC2jzGCg==", "dependencies": { "axios": "1.6.8", "bitcoin-address-validation": "2.2.3", @@ -1760,9 +1760,9 @@ } }, "node_modules/@sats-connect/make-default-provider-config": { - "version": "0.0.1-38d3294", - "resolved": "https://registry.npmjs.org/@sats-connect/make-default-provider-config/-/make-default-provider-config-0.0.1-38d3294.tgz", - "integrity": "sha512-FpyaWUePBstUjXvBa8HfE1MFlU0kUh0eI1gR5ZpmP+HVFOmikgDGyjj8epcAGWO1yjVVxk4NLDoX70NDNFgnKA==", + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@sats-connect/make-default-provider-config/-/make-default-provider-config-0.0.1.tgz", + "integrity": "sha512-Hb1ZbpJ3DnRM7vRUvNepUs6/SVAeH4CdeDsTllXrzOG9jAG4HI+jG7WGDLavFHc6vQCSfTBPH4c/L7S74hMZMg==", "dependencies": { "@sats-connect/core": "0.0.4-caef0cb", "@sats-connect/ui": "0.0.3-07f4874", @@ -1772,7 +1772,19 @@ "typescript": "5.4.4" } }, - "node_modules/@sats-connect/ui": { + "node_modules/@sats-connect/make-default-provider-config/node_modules/@sats-connect/core": { + "version": "0.0.4-caef0cb", + "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.4-caef0cb.tgz", + "integrity": "sha512-M/yxUgnYF6JVhfLxMj0pLYZFiJfwkd7C3GYI43aVbaIVhqoSBianEEj2duIiSDAQLC03Scqbt2LXUu42dPs1fA==", + "dependencies": { + "axios": "1.6.8", + "bitcoin-address-validation": "2.2.3", + "buffer": "6.0.3", + "jsontokens": "4.0.1", + "lodash.omit": "4.5.0" + } + }, + "node_modules/@sats-connect/make-default-provider-config/node_modules/@sats-connect/ui": { "version": "0.0.3-07f4874", "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.3-07f4874.tgz", "integrity": "sha512-H1rj4qOGr72M2pSFtgtFk9TjFHRhTt4vm2ct0iBJaLF4RLIa9EvPkFTMwBYhGBYNcuBpN36eYUBN7hRydfCopg==", @@ -1780,7 +1792,7 @@ "@sats-connect/core": "0.0.4" } }, - "node_modules/@sats-connect/ui/node_modules/@sats-connect/core": { + "node_modules/@sats-connect/make-default-provider-config/node_modules/@sats-connect/ui/node_modules/@sats-connect/core": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.4.tgz", "integrity": "sha512-v+u49OXku8S5Mh9wzQ6pSdNU4MppMjjUyXy/ZBE6KxqgP7Nnnz3N2VmaBSIGQx/EEy4O3L8SnJZyAwQ7QfOf7g==", @@ -1792,6 +1804,11 @@ "lodash.omit": "4.5.0" } }, + "node_modules/@sats-connect/ui": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4.tgz", + "integrity": "sha512-gmfsqPn44vsJubQC7KuK7zGnBgpLvDzadMlyCwsaBsASV7u8AxNdNas0xVEy6eIBa0Eim7AGcGNTulBFI8YRnA==" + }, "node_modules/@sinclair/typebox": { "version": "0.25.24", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", @@ -7320,9 +7337,9 @@ "optional": true }, "@sats-connect/core": { - "version": "0.0.4-caef0cb", - "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.4-caef0cb.tgz", - "integrity": "sha512-M/yxUgnYF6JVhfLxMj0pLYZFiJfwkd7C3GYI43aVbaIVhqoSBianEEj2duIiSDAQLC03Scqbt2LXUu42dPs1fA==", + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.5.tgz", + "integrity": "sha512-eyAoxjs3vuJP037/XKuhjIDUrOlCHIdcvw2D1DFpzhTRzyiXptiE2A0n46loDIBCUhOuXl4vsn8cc+yC2jzGCg==", "requires": { "axios": "1.6.8", "bitcoin-address-validation": "2.2.3", @@ -7332,27 +7349,19 @@ } }, "@sats-connect/make-default-provider-config": { - "version": "0.0.1-38d3294", - "resolved": "https://registry.npmjs.org/@sats-connect/make-default-provider-config/-/make-default-provider-config-0.0.1-38d3294.tgz", - "integrity": "sha512-FpyaWUePBstUjXvBa8HfE1MFlU0kUh0eI1gR5ZpmP+HVFOmikgDGyjj8epcAGWO1yjVVxk4NLDoX70NDNFgnKA==", + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/@sats-connect/make-default-provider-config/-/make-default-provider-config-0.0.1.tgz", + "integrity": "sha512-Hb1ZbpJ3DnRM7vRUvNepUs6/SVAeH4CdeDsTllXrzOG9jAG4HI+jG7WGDLavFHc6vQCSfTBPH4c/L7S74hMZMg==", "requires": { "@sats-connect/core": "0.0.4-caef0cb", "@sats-connect/ui": "0.0.3-07f4874", "bowser": "2.11.0" - } - }, - "@sats-connect/ui": { - "version": "0.0.3-07f4874", - "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.3-07f4874.tgz", - "integrity": "sha512-H1rj4qOGr72M2pSFtgtFk9TjFHRhTt4vm2ct0iBJaLF4RLIa9EvPkFTMwBYhGBYNcuBpN36eYUBN7hRydfCopg==", - "requires": { - "@sats-connect/core": "0.0.4" }, "dependencies": { "@sats-connect/core": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.4.tgz", - "integrity": "sha512-v+u49OXku8S5Mh9wzQ6pSdNU4MppMjjUyXy/ZBE6KxqgP7Nnnz3N2VmaBSIGQx/EEy4O3L8SnJZyAwQ7QfOf7g==", + "version": "0.0.4-caef0cb", + "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.4-caef0cb.tgz", + "integrity": "sha512-M/yxUgnYF6JVhfLxMj0pLYZFiJfwkd7C3GYI43aVbaIVhqoSBianEEj2duIiSDAQLC03Scqbt2LXUu42dPs1fA==", "requires": { "axios": "1.6.8", "bitcoin-address-validation": "2.2.3", @@ -7360,9 +7369,36 @@ "jsontokens": "4.0.1", "lodash.omit": "4.5.0" } + }, + "@sats-connect/ui": { + "version": "0.0.3-07f4874", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.3-07f4874.tgz", + "integrity": "sha512-H1rj4qOGr72M2pSFtgtFk9TjFHRhTt4vm2ct0iBJaLF4RLIa9EvPkFTMwBYhGBYNcuBpN36eYUBN7hRydfCopg==", + "requires": { + "@sats-connect/core": "0.0.4" + }, + "dependencies": { + "@sats-connect/core": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@sats-connect/core/-/core-0.0.4.tgz", + "integrity": "sha512-v+u49OXku8S5Mh9wzQ6pSdNU4MppMjjUyXy/ZBE6KxqgP7Nnnz3N2VmaBSIGQx/EEy4O3L8SnJZyAwQ7QfOf7g==", + "requires": { + "axios": "1.6.8", + "bitcoin-address-validation": "2.2.3", + "buffer": "6.0.3", + "jsontokens": "4.0.1", + "lodash.omit": "4.5.0" + } + } + } } } }, + "@sats-connect/ui": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@sats-connect/ui/-/ui-0.0.4.tgz", + "integrity": "sha512-gmfsqPn44vsJubQC7KuK7zGnBgpLvDzadMlyCwsaBsASV7u8AxNdNas0xVEy6eIBa0Eim7AGcGNTulBFI8YRnA==" + }, "@sinclair/typebox": { "version": "0.25.24", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.25.24.tgz", diff --git a/package.json b/package.json index 94ebc97..d1ce671 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,9 @@ ] }, "dependencies": { - "@sats-connect/core": "0.0.4-caef0cb", - "@sats-connect/ui": "0.0.3-07f4874", - "@sats-connect/make-default-provider-config": "0.0.1-38d3294" + "@sats-connect/core": "0.0.5", + "@sats-connect/ui": "0.0.4", + "@sats-connect/make-default-provider-config": "0.0.1" }, "devDependencies": { "husky": "^8.0.3",