@unicitylabs/sphere-sdk 0.16.0-dev.1 → 0.16.0
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/connect/index.cjs +13 -3
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +13 -3
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +4 -3
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +4 -3
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/connect/index.cjs +3 -3
- package/dist/impl/browser/connect/index.cjs.map +1 -1
- package/dist/impl/browser/connect/index.js +3 -3
- package/dist/impl/browser/connect/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +4 -4
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +4 -4
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/connect/index.cjs +2 -2
- package/dist/impl/nodejs/connect/index.cjs.map +1 -1
- package/dist/impl/nodejs/connect/index.js +2 -2
- package/dist/impl/nodejs/connect/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +21 -5
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.d.cts +2 -2
- package/dist/impl/nodejs/index.d.ts +2 -2
- package/dist/impl/nodejs/index.js +21 -5
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -984,7 +984,7 @@ var NETWORKS = {
|
|
|
984
984
|
// old goggregator testnet spoke the removed v1 protocol — a v2 engine cannot
|
|
985
985
|
// run against it. 'testnet2' stays as an alias of the same configuration.
|
|
986
986
|
testnet: {
|
|
987
|
-
name: "
|
|
987
|
+
name: "Testnet",
|
|
988
988
|
networkId: 4,
|
|
989
989
|
// v2 state-transition gateway (networkId 4 comes from the trust base). apiKey is env-injected.
|
|
990
990
|
aggregatorUrl: "https://gateway.testnet2.unicity.network",
|
|
@@ -994,7 +994,7 @@ var NETWORKS = {
|
|
|
994
994
|
tokenRegistryUrl: "https://raw.githubusercontent.com/unicitynetwork/unicity-ids/refs/heads/main/unicity-ids.testnet2.json"
|
|
995
995
|
},
|
|
996
996
|
testnet2: {
|
|
997
|
-
name: "
|
|
997
|
+
name: "Testnet",
|
|
998
998
|
networkId: 4,
|
|
999
999
|
// v2 state-transition gateway (networkId 4 comes from the trust base). apiKey is env-injected.
|
|
1000
1000
|
aggregatorUrl: "https://gateway.testnet2.unicity.network",
|
|
@@ -16817,7 +16817,8 @@ var Sphere = class _Sphere {
|
|
|
16817
16817
|
}
|
|
16818
16818
|
const progress = options.onProgress;
|
|
16819
16819
|
logger.debug("Sphere", "Starting import...");
|
|
16820
|
-
const
|
|
16820
|
+
const liveHere = _Sphere.liveOn(options.storage).some((s) => s._storage === options.storage);
|
|
16821
|
+
const needsClear = liveHere || await _Sphere.exists(options.storage);
|
|
16821
16822
|
if (needsClear) {
|
|
16822
16823
|
progress?.({ step: "clearing", message: "Clearing previous wallet data..." });
|
|
16823
16824
|
logger.debug("Sphere", "Clearing existing wallet data...");
|