spd-lib 1.0.9 → 1.1.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/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -125,7 +125,7 @@ this.salt = salt;
|
|
|
125
125
|
return compressedSpdData;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
async loadFromString(spdData, passcode) {
|
|
128
|
+
static async loadFromString(spdData, passcode) {
|
|
129
129
|
if (!spdData || typeof spdData !== 'string' || !spdData.trim() || !passcode || typeof passcode !== 'string' || !passcode.trim()) {
|
|
130
130
|
throw new Error('Invalid SPD path or passcode.');
|
|
131
131
|
}
|