@pezkuwi/api 16.5.9 → 16.5.10

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.
@@ -1448,7 +1448,7 @@
1448
1448
  };
1449
1449
  }
1450
1450
 
1451
- const packageInfo = { name: '@pezkuwi/api', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-api.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-api.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-api.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-api.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.9' };
1451
+ const packageInfo = { name: '@pezkuwi/api', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-api.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-api.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-api.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-api.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.10' };
1452
1452
 
1453
1453
  var extendStatics = function(d, b) {
1454
1454
  extendStatics = Object.setPrototypeOf ||
@@ -4863,7 +4863,8 @@
4863
4863
  return api.rpc.chain.subscribeFinalizedHeads().pipe(switchMap((header) => {
4864
4864
  const endHash = prevHash;
4865
4865
  const startHash = header.parentHash;
4866
- prevHash = header.createdAtHash = header.hash;
4866
+ header.createdAtHash = header.hash;
4867
+ prevHash = header.hash;
4867
4868
  return endHash === null || startHash.eq(endHash)
4868
4869
  ? of(header)
4869
4870
  : api.derive.chain._getHeaderRange(startHash, endHash, [header]).pipe(switchMap((headers) => from(headers)));
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/api', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.9' };
4
+ exports.packageInfo = { name: '@pezkuwi/api', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.10' };
@@ -19,6 +19,7 @@ function makeEraOptions(api, registry, partialOptions, { header, mortalLength, n
19
19
  return makeSignOptions(api, partialOptions, { nonce });
20
20
  }
21
21
  return makeSignOptions(api, partialOptions, {
22
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
23
  blockHash: header.hash,
23
24
  era: registry.createTypeUnsafe('ExtrinsicEra', [{
24
25
  current: header.number,
package/package.json CHANGED
@@ -18,8 +18,8 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "16.5.9",
22
- "main": "./cjs/cjs/index.js",
21
+ "version": "16.5.10",
22
+ "main": "./cjs/index.js",
23
23
  "module": "./cjs/index.js",
24
24
  "types": "./cjs/index.d.ts",
25
25
  "exports": {
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/api', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.9' };
1
+ export const packageInfo = { name: '@pezkuwi/api', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.10' };
@@ -16,6 +16,7 @@ function makeEraOptions(api, registry, partialOptions, { header, mortalLength, n
16
16
  return makeSignOptions(api, partialOptions, { nonce });
17
17
  }
18
18
  return makeSignOptions(api, partialOptions, {
19
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
19
20
  blockHash: header.hash,
20
21
  era: registry.createTypeUnsafe('ExtrinsicEra', [{
21
22
  current: header.number,