spd-lib 1.1.1 → 1.1.3

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.
Files changed (2) hide show
  1. package/index.js +3 -15
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -291,18 +291,6 @@ this.salt = salt;
291
291
  }
292
292
  }
293
293
 
294
- (async()=>{
295
- const spd = new SPD();
296
- const passcode = 'thisisatests';
297
- await spd.setPassKey(passcode);
298
- await spd.addData('test', 'test');
299
- const data = spd.saveData().toString('base64')
300
- console.log(data)
301
- const LSPD =await SPD.loadFromString(data,passcode)
302
- const ED = await LSPD.extractData();
303
- console.log(ED);
304
- })()
305
-
306
- //module.exports = {
307
- // SPD,
308
- //};
294
+ module.exports = {
295
+ SPD,
296
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spd-lib",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "SPD or Secure Packaged Data is a compress PQC protected file format to store sensitive data localy",
5
5
  "main": "index.js",
6
6
  "scripts": {