pal-explorer-cli 0.4.11 → 0.4.12

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.
@@ -114,7 +114,7 @@ async function biSync(dirPath, palName, opts) {
114
114
  try {
115
115
  absolutePath = validateDir(dirPath);
116
116
  pal = findPal(palName);
117
- identity = getIdentity();
117
+ identity = await getIdentity();
118
118
  keyPair = getKeyPair();
119
119
  } catch (err) {
120
120
  console.log(chalk.red(err.message));
@@ -201,7 +201,7 @@ async function pushSync(dirPath, palName, opts) {
201
201
  try {
202
202
  absolutePath = validateDir(dirPath);
203
203
  pal = findPal(palName);
204
- identity = getIdentity();
204
+ identity = await getIdentity();
205
205
  keyPair = getKeyPair();
206
206
  } catch (err) {
207
207
  console.log(chalk.red(err.message));
@@ -305,7 +305,7 @@ async function pullSync(dirPath, palName, opts) {
305
305
  try {
306
306
  absolutePath = validateDir(dirPath);
307
307
  pal = findPal(palName);
308
- identity = getIdentity();
308
+ identity = await getIdentity();
309
309
  keyPair = getKeyPair();
310
310
  } catch (err) {
311
311
  console.log(chalk.red(err.message));
@@ -14,7 +14,7 @@ Examples:
14
14
  `)
15
15
  .action(async (code, opts) => {
16
16
  try {
17
- const identity = getIdentity();
17
+ const identity = await getIdentity();
18
18
  if (!identity) {
19
19
  console.log(chalk.red('No identity found. Run: pe init'));
20
20
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pal-explorer-cli",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "P2P encrypted file sharing CLI — share files directly with friends, not with the cloud",
5
5
  "main": "bin/pal.js",
6
6
  "bin": {