@injectivelabs/exceptions 1.0.18 → 1.0.19

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.
@@ -1 +1 @@
1
- {"version":3,"file":"LedgerException.d.ts","sourceRoot":"","sources":["../../src/exceptions/LedgerException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,YAAY,EAAa,MAAM,UAAU,CAAA;AAalD,qBAAa,eAAgB,SAAQ,iBAAiB;gBACxC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,YAAY;IAMzC,YAAY,IAAI,IAAI;CAS5B"}
1
+ {"version":3,"file":"LedgerException.d.ts","sourceRoot":"","sources":["../../src/exceptions/LedgerException.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,YAAY,EAAa,MAAM,UAAU,CAAA;AAalD,qBAAa,eAAgB,SAAQ,iBAAiB;gBACxC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,YAAY;IAMzC,YAAY,IAAI,IAAI;CAyB5B"}
@@ -20,6 +20,15 @@ class LedgerException extends exception_1.ConcreteException {
20
20
  if (isCommonLockedError(message)) {
21
21
  this.setMessage('Please ensure your Ledger is connected, unlocked and your Ethereum app is open.');
22
22
  }
23
+ if (message.includes('No device selected.')) {
24
+ this.setMessage('Please make sure your Ledger device is connected, unlocked and your Ethereum app is open');
25
+ }
26
+ if (message.includes('Unable to set device configuration.')) {
27
+ this.setMessage('Please restart your Ledger device and try connecting again');
28
+ }
29
+ if (message.includes('Cannot read properties of undefined')) {
30
+ this.setMessage('Please make sure your Ledger device is connected');
31
+ }
23
32
  }
24
33
  }
25
34
  exports.LedgerException = LedgerException;
@@ -1 +1 @@
1
- {"version":3,"file":"LedgerException.js","sourceRoot":"","sources":["../../src/exceptions/LedgerException.ts"],"names":[],"mappings":";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C,QAAQ,CAAC,uBAAuB,CAAC;IACvC,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,CAChC,CAAA;AAEH,MAAa,eAAgB,SAAQ,6BAAiB;IACpD,YAAY,KAAY,EAAE,OAAsB;QAC9C,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAErB,IAAI,CAAC,IAAI,GAAG,iBAAS,CAAC,WAAW,CAAA;IACnC,CAAC;IAEM,YAAY;QACjB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;QAExB,IAAI,mBAAmB,CAAC,OAAO,CAAC,EAAE;YAChC,IAAI,CAAC,UAAU,CACb,iFAAiF,CAClF,CAAA;SACF;QAED,IAAI,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;YAC3C,IAAI,CAAC,UAAU,CACb,0FAA0F,CAC3F,CAAA;SACF;QAED,IAAI,OAAO,CAAC,QAAQ,CAAC,qCAAqC,CAAC,EAAE;YAC3D,IAAI,CAAC,UAAU,CACb,4DAA4D,CAC7D,CAAA;SACF;QAED,IAAI,OAAO,CAAC,QAAQ,CAAC,qCAAqC,CAAC,EAAE;YAC3D,IAAI,CAAC,UAAU,CAAC,kDAAkD,CAAC,CAAA;SACpE;IACH,CAAC;CACF;AAhCD,0CAgCC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@injectivelabs/exceptions",
3
3
  "description": "List of exceptions that can be reused throughout Injective's projects.",
4
- "version": "1.0.18",
4
+ "version": "1.0.19",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -37,5 +37,5 @@
37
37
  "link-module-alias": "^1.2.0",
38
38
  "shx": "^0.3.2"
39
39
  },
40
- "gitHead": "ecd73936014524abd1f9d997b56a5155c807b444"
40
+ "gitHead": "f267784f4c2c994e9f21ca1190b436c3e6ba7634"
41
41
  }