@unicitylabs/sphere-sdk 0.16.0-dev.2 → 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 +1 -1
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +1 -1
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +2 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +2 -1
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/connect/index.cjs +1 -1
- package/dist/impl/browser/connect/index.cjs.map +1 -1
- package/dist/impl/browser/connect/index.js +1 -1
- package/dist/impl/browser/connect/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +2 -2
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +2 -2
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +19 -3
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.js +19 -3
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/core/index.cjs
CHANGED
|
@@ -16757,7 +16757,8 @@ var Sphere = class _Sphere {
|
|
|
16757
16757
|
}
|
|
16758
16758
|
const progress = options.onProgress;
|
|
16759
16759
|
logger.debug("Sphere", "Starting import...");
|
|
16760
|
-
const
|
|
16760
|
+
const liveHere = _Sphere.liveOn(options.storage).some((s) => s._storage === options.storage);
|
|
16761
|
+
const needsClear = liveHere || await _Sphere.exists(options.storage);
|
|
16761
16762
|
if (needsClear) {
|
|
16762
16763
|
progress?.({ step: "clearing", message: "Clearing previous wallet data..." });
|
|
16763
16764
|
logger.debug("Sphere", "Clearing existing wallet data...");
|