@taquito/ledger-signer 23.0.3 → 24.0.0-beta.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.
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1761326268336" clover="3.2.0">
3
- <project timestamp="1761326268336" name="All files">
2
+ <coverage generated="1766624725962" clover="3.2.0">
3
+ <project timestamp="1766624725962" name="All files">
4
4
  <metrics statements="167" coveredstatements="142" conditionals="43" coveredconditionals="36" methods="25" coveredmethods="17" elements="235" coveredelements="195" complexity="0" loc="167" ncloc="167" packages="1" files="4" classes="4"/>
5
5
  <file name="errors.ts" path="/Users/huianyang/Desktop/taquito/packages/taquito-ledger-signer/src/errors.ts">
6
6
  <metrics statements="19" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="0"/>
@@ -9,7 +9,7 @@ var jumpToCode = (function init() {
9
9
  // We don't want to select elements that are direct descendants of another match
10
10
  var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
11
11
 
12
- // Selecter that finds elements on the page to which we can jump
12
+ // Selector that finds elements on the page to which we can jump
13
13
  var selector =
14
14
  fileListingElements.join(', ') +
15
15
  ', ' +
@@ -214,7 +214,7 @@ export class InvalidDerivationTypeError extends ParameterValidationError {
214
214
  <div class='footer quiet pad2 space-top1 center small'>
215
215
  Code coverage generated by
216
216
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
217
- at 2025-10-24T17:17:48.325Z
217
+ at 2025-12-25T01:05:25.946Z
218
218
  </div>
219
219
  <script src="prettify.js"></script>
220
220
  <script>
@@ -146,7 +146,7 @@
146
146
  <div class='footer quiet pad2 space-top1 center small'>
147
147
  Code coverage generated by
148
148
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
149
- at 2025-10-24T17:17:48.325Z
149
+ at 2025-12-25T01:05:25.946Z
150
150
  </div>
151
151
  <script src="prettify.js"></script>
152
152
  <script>
@@ -27,17 +27,31 @@ var addSorting = (function() {
27
27
  function onFilterInput() {
28
28
  const searchValue = document.getElementById('fileSearch').value;
29
29
  const rows = document.getElementsByTagName('tbody')[0].children;
30
+
31
+ // Try to create a RegExp from the searchValue. If it fails (invalid regex),
32
+ // it will be treated as a plain text search
33
+ let searchRegex;
34
+ try {
35
+ searchRegex = new RegExp(searchValue, 'i'); // 'i' for case-insensitive
36
+ } catch (error) {
37
+ searchRegex = null;
38
+ }
39
+
30
40
  for (let i = 0; i < rows.length; i++) {
31
41
  const row = rows[i];
32
- if (
33
- row.textContent
34
- .toLowerCase()
35
- .includes(searchValue.toLowerCase())
36
- ) {
37
- row.style.display = '';
42
+ let isMatch = false;
43
+
44
+ if (searchRegex) {
45
+ // If a valid regex was created, use it for matching
46
+ isMatch = searchRegex.test(row.textContent);
38
47
  } else {
39
- row.style.display = 'none';
48
+ // Otherwise, fall back to the original plain text search
49
+ isMatch = row.textContent
50
+ .toLowerCase()
51
+ .includes(searchValue.toLowerCase());
40
52
  }
53
+
54
+ row.style.display = isMatch ? '' : 'none';
41
55
  }
42
56
  }
43
57
 
@@ -775,7 +775,7 @@ export class LedgerSigner implements Signer {
775
775
  <div class='footer quiet pad2 space-top1 center small'>
776
776
  Code coverage generated by
777
777
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
778
- at 2025-10-24T17:17:48.325Z
778
+ at 2025-12-25T01:05:25.946Z
779
779
  </div>
780
780
  <script src="prettify.js"></script>
781
781
  <script>
@@ -460,7 +460,7 @@ export function extractValue(idxLength: number, response: Buffer) {
460
460
  <div class='footer quiet pad2 space-top1 center small'>
461
461
  Code coverage generated by
462
462
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
463
- at 2025-10-24T17:17:48.325Z
463
+ at 2025-12-25T01:05:25.946Z
464
464
  </div>
465
465
  <script src="prettify.js"></script>
466
466
  <script>
@@ -78,8 +78,8 @@
78
78
  <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&nbsp;
79
79
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
80
80
  export const VERSION = {
81
- "commitHash": "20b6624f217ec85f28023ca02b2d3b73777a8df9",
82
- "version": "23.0.2"
81
+ "commitHash": "c77fe4b0989665d8b5cfd15a7cc977499021f6fd",
82
+ "version": "23.1.0"
83
83
  };
84
84
  &nbsp;</pre></td></tr></table></pre>
85
85
 
@@ -88,7 +88,7 @@ export const VERSION = {
88
88
  <div class='footer quiet pad2 space-top1 center small'>
89
89
  Code coverage generated by
90
90
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
91
- at 2025-10-24T17:17:48.325Z
91
+ at 2025-12-25T01:05:25.946Z
92
92
  </div>
93
93
  <script src="prettify.js"></script>
94
94
  <script>
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
5
5
  exports.VERSION = {
6
- "commitHash": "42048d039f6d4345fc59d04b03650bcb8e27bb62",
7
- "version": "23.0.3"
6
+ "commitHash": "7912b77f57f943dff619383900bd46a7a593a244",
7
+ "version": "24.0.0-beta.0"
8
8
  };
@@ -17,7 +17,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
17
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
18
  PERFORMANCE OF THIS SOFTWARE.
19
19
  ***************************************************************************** */
20
- /* global Reflect, Promise, SuppressedError, Symbol */
20
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
21
21
 
22
22
 
23
23
  function __awaiter(thisArg, _arguments, P, generator) {
@@ -204,8 +204,8 @@ class InvalidDerivationTypeError extends ParameterValidationError {
204
204
 
205
205
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
206
206
  const VERSION = {
207
- "commitHash": "42048d039f6d4345fc59d04b03650bcb8e27bb62",
208
- "version": "23.0.3"
207
+ "commitHash": "7912b77f57f943dff619383900bd46a7a593a244",
208
+ "version": "24.0.0-beta.0"
209
209
  };
210
210
 
211
211
  /**
@@ -18,7 +18,7 @@
18
18
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
19
  PERFORMANCE OF THIS SOFTWARE.
20
20
  ***************************************************************************** */
21
- /* global Reflect, Promise, SuppressedError, Symbol */
21
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
22
22
 
23
23
 
24
24
  function __awaiter(thisArg, _arguments, P, generator) {
@@ -205,8 +205,8 @@
205
205
 
206
206
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
207
207
  const VERSION = {
208
- "commitHash": "42048d039f6d4345fc59d04b03650bcb8e27bb62",
209
- "version": "23.0.3"
208
+ "commitHash": "7912b77f57f943dff619383900bd46a7a593a244",
209
+ "version": "24.0.0-beta.0"
210
210
  };
211
211
 
212
212
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/ledger-signer",
3
- "version": "23.0.3",
3
+ "version": "24.0.0-beta.0",
4
4
  "description": "Ledger signer provider",
5
5
  "keywords": [
6
6
  "tezos",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "Apache-2.0",
22
22
  "engines": {
23
- "node": ">=18"
23
+ "node": ">=20"
24
24
  },
25
25
  "scripts": {
26
26
  "lint": "eslint --ext .js,.ts .",
@@ -59,15 +59,15 @@
59
59
  "dependencies": {
60
60
  "@ledgerhq/hw-transport": "^6.31.4",
61
61
  "@stablelib/blake2b": "^1.0.1",
62
- "@taquito/core": "^23.0.3",
63
- "@taquito/taquito": "^23.0.3",
64
- "@taquito/utils": "^23.0.3",
62
+ "@taquito/core": "^24.0.0-beta.0",
63
+ "@taquito/taquito": "^24.0.0-beta.0",
64
+ "@taquito/utils": "^24.0.0-beta.0",
65
65
  "buffer": "^6.0.3"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@types/bluebird": "^3.5.42",
69
69
  "@types/jest": "^29.5.12",
70
- "@types/node": "^18",
70
+ "@types/node": "^20",
71
71
  "@types/ws": "^8.5.12",
72
72
  "@typescript-eslint/eslint-plugin": "^6.21.0",
73
73
  "@typescript-eslint/parser": "^6.21.0",
@@ -92,5 +92,5 @@
92
92
  "ts-toolbelt": "^9.6.0",
93
93
  "typescript": "~5.5.4"
94
94
  },
95
- "gitHead": "2abf349e97af45f11210b3121078b9d96699d5da"
95
+ "gitHead": "f212ea3edaf1fac34d738b5d00a9892ab7a3b721"
96
96
  }
package/rollup.config.ts CHANGED
@@ -9,11 +9,25 @@ const libraryName = 'taquito-ledger-signer';
9
9
  export default {
10
10
  input: `src/${libraryName}.ts`,
11
11
  output: [
12
- { file: pkg.main, name: camelCase(libraryName), format: 'umd', sourcemap: true },
12
+ {
13
+ file: pkg.main,
14
+ name: camelCase(libraryName),
15
+ format: 'umd',
16
+ sourcemap: true,
17
+ globals: {
18
+ '@taquito/core': 'core',
19
+ '@taquito/utils': 'utils',
20
+ '@stablelib/blake2b': 'blake2b'
21
+ }
22
+ },
13
23
  { file: pkg.module, format: 'es', sourcemap: true },
14
24
  ],
15
25
  // Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
16
- //external: ['@ledgerhq/hw-transport-node-hid'],
26
+ external: [
27
+ '@taquito/core',
28
+ '@taquito/utils',
29
+ '@stablelib/blake2b'
30
+ ],
17
31
  watch: {
18
32
  include: 'src/**',
19
33
  },
package/src/version.ts CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
3
3
  export const VERSION = {
4
- "commitHash": "42048d039f6d4345fc59d04b03650bcb8e27bb62",
5
- "version": "23.0.3"
4
+ "commitHash": "7912b77f57f943dff619383900bd46a7a593a244",
5
+ "version": "24.0.0-beta.0"
6
6
  };