@pezkuwi/types 16.5.22 → 16.5.24

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.
@@ -15272,30 +15272,21 @@
15272
15272
  };
15273
15273
  const PATHS_ALIAS = splitNamespace([
15274
15274
  'pezsp_core::crypto::AccountId32',
15275
- 'sp_core::crypto::AccountId32',
15276
15275
  'pezsp_runtime::generic::era::Era',
15277
- 'sp_runtime::generic::era::Era',
15278
15276
  'pezsp_runtime::multiaddress::MultiAddress',
15279
- 'sp_runtime::multiaddress::MultiAddress',
15280
15277
  'fp_account::AccountId20',
15281
15278
  'account::AccountId20',
15282
15279
  'pezkuwi_runtime_common::claims::EthereumAddress',
15283
15280
  'pezframe_support::weights::weight_v2::Weight',
15284
- 'frame_support::weights::weight_v2::Weight',
15285
15281
  'pezsp_weights::weight_v2::Weight',
15286
- 'sp_weights::weight_v2::Weight',
15287
15282
  '*_democracy::vote::Vote',
15288
15283
  '*_conviction_voting::vote::Vote',
15289
15284
  '*_identity::types::Data',
15290
15285
  'pezsp_core::OpaqueMetadata',
15291
- 'sp_core::OpaqueMetadata',
15292
15286
  'pezsp_core::OpaquePeerId',
15293
- 'sp_core::OpaquePeerId',
15294
15287
  'pezsp_core::offchain::OpaqueMultiaddr',
15295
- 'sp_core::offchain::OpaqueMultiaddr',
15296
15288
  'primitive_types::*',
15297
15289
  'pezsp_arithmetic::per_things::*',
15298
- 'sp_arithmetic::per_things::*',
15299
15290
  '*_runtime::RuntimeCall',
15300
15291
  '*_runtime::RuntimeEvent',
15301
15292
  'ink::env::types::*',
@@ -15356,7 +15347,7 @@
15356
15347
  });
15357
15348
  }
15358
15349
  function getAliasPath({ def, path }) {
15359
- if (['pezframe_support::weights::weight_v2::Weight', 'frame_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
15350
+ if (['pezframe_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight'].includes(path.join('::'))) {
15360
15351
  return !def.isComposite || def.asComposite.fields.length === 1
15361
15352
  ? 'WeightV1'
15362
15353
  : null;
@@ -15503,7 +15494,7 @@
15503
15494
  const siSignature = lookup.getSiType(sigParam.type.unwrap());
15504
15495
  const nsSignature = siSignature.path.join('::');
15505
15496
  let nsAccountId = siAddress.path.join('::');
15506
- const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress' || nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
15497
+ const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress';
15507
15498
  if (isMultiAddress) {
15508
15499
  const [idParam] = siAddress.params;
15509
15500
  nsAccountId = lookup.getSiType(idParam.type.unwrap()).path.join('::');
@@ -15515,7 +15506,7 @@
15515
15506
  Address: isMultiAddress
15516
15507
  ? 'MultiAddress'
15517
15508
  : 'AccountId',
15518
- ExtrinsicSignature: ['pezsp_runtime::MultiSignature', 'sp_runtime::MultiSignature'].includes(nsSignature)
15509
+ ExtrinsicSignature: nsSignature === 'pezsp_runtime::MultiSignature'
15519
15510
  ? 'MultiSignature'
15520
15511
  : names[sigParam.type.unwrap().toNumber()] || 'MultiSignature'
15521
15512
  });
@@ -15529,7 +15520,7 @@
15529
15520
  alias[type.unwrap().toNumber()] = 'Call';
15530
15521
  }
15531
15522
  else if (hasParams && !isContract) {
15532
- l$2.warn('Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic');
15523
+ l$2.warn('Unable to determine runtime Call type, cannot inspect pezsp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic');
15533
15524
  }
15534
15525
  if (params.PezframeSystemEventRecord) {
15535
15526
  const [{ type }] = params.PezframeSystemEventRecord;
@@ -16125,7 +16116,7 @@
16125
16116
  }));
16126
16117
  }
16127
16118
 
16128
- const packageInfo = { name: '@pezkuwi/types', 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-types.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-types.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-types.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-types.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.18' };
16119
+ const packageInfo = { name: '@pezkuwi/types', 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-types.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-types.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-types.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-types.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '16.5.24' };
16129
16120
 
16130
16121
  function flattenUniq(list, result = []) {
16131
16122
  for (let i = 0, count = list.length; i < count; i++) {
@@ -16373,12 +16364,14 @@
16373
16364
  };
16374
16365
 
16375
16366
  const pezkuwi = {
16367
+ AuthorizeCall: emptyCheck,
16376
16368
  LimitParathreadCommits: emptyCheck,
16377
16369
  OnlyStakingAndClaims: emptyCheck,
16378
16370
  PrevalidateAttests: emptyCheck,
16379
16371
  RestrictFunctionality: emptyCheck,
16380
16372
  TransactionCallFilter: emptyCheck,
16381
- ValidateDoubleVoteReports: emptyCheck
16373
+ ValidateDoubleVoteReports: emptyCheck,
16374
+ WeightReclaim: emptyCheck
16382
16375
  };
16383
16376
 
16384
16377
  const shell = {
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pezkuwi = void 0;
4
4
  const emptyCheck_js_1 = require("./emptyCheck.js");
5
5
  exports.pezkuwi = {
6
+ AuthorizeCall: emptyCheck_js_1.emptyCheck,
6
7
  LimitParathreadCommits: emptyCheck_js_1.emptyCheck,
7
8
  OnlyStakingAndClaims: emptyCheck_js_1.emptyCheck,
8
9
  PrevalidateAttests: emptyCheck_js_1.emptyCheck,
9
10
  RestrictFunctionality: emptyCheck_js_1.emptyCheck,
10
11
  TransactionCallFilter: emptyCheck_js_1.emptyCheck,
11
- ValidateDoubleVoteReports: emptyCheck_js_1.emptyCheck
12
+ ValidateDoubleVoteReports: emptyCheck_js_1.emptyCheck,
13
+ WeightReclaim: emptyCheck_js_1.emptyCheck
12
14
  };
@@ -14,11 +14,8 @@ const PATHS_ALIAS = splitNamespace([
14
14
  // full matching on exact names...
15
15
  // these are well-known types with additional encoding
16
16
  'pezsp_core::crypto::AccountId32',
17
- 'sp_core::crypto::AccountId32', // upstream compatibility
18
17
  'pezsp_runtime::generic::era::Era',
19
- 'sp_runtime::generic::era::Era', // upstream compatibility
20
18
  'pezsp_runtime::multiaddress::MultiAddress',
21
- 'sp_runtime::multiaddress::MultiAddress', // upstream compatibility
22
19
  // ethereum overrides (Frontier, Moonbeam, Pezkuwi claims)
23
20
  'fp_account::AccountId20',
24
21
  'account::AccountId20',
@@ -26,9 +23,7 @@ const PATHS_ALIAS = splitNamespace([
26
23
  // weights 2 is a structure, however for 1.5. with a single field it
27
24
  // should be flatenned (can appear in Compact<Weight> extrinsics)
28
25
  'pezframe_support::weights::weight_v2::Weight',
29
- 'frame_support::weights::weight_v2::Weight', // upstream compatibility
30
26
  'pezsp_weights::weight_v2::Weight',
31
- 'sp_weights::weight_v2::Weight', // upstream compatibility
32
27
  // wildcard matching in place...
33
28
  // these have a specific encoding or logic, use a wildcard for {pallet, darwinia}_democracy
34
29
  '*_democracy::vote::Vote',
@@ -36,15 +31,11 @@ const PATHS_ALIAS = splitNamespace([
36
31
  '*_identity::types::Data',
37
32
  // these are opaque Vec<u8> wrappers
38
33
  'pezsp_core::OpaqueMetadata',
39
- 'sp_core::OpaqueMetadata', // upstream compatibility
40
34
  'pezsp_core::OpaquePeerId',
41
- 'sp_core::OpaquePeerId', // upstream compatibility
42
35
  'pezsp_core::offchain::OpaqueMultiaddr',
43
- 'sp_core::offchain::OpaqueMultiaddr', // upstream compatibility
44
36
  // shorten some well-known types
45
37
  'primitive_types::*',
46
38
  'pezsp_arithmetic::per_things::*',
47
- 'sp_arithmetic::per_things::*', // upstream compatibility
48
39
  // runtime
49
40
  '*_runtime::RuntimeCall',
50
41
  '*_runtime::RuntimeEvent',
@@ -117,7 +108,7 @@ function matchParts(first, second) {
117
108
  function getAliasPath({ def, path }) {
118
109
  // specific logic for weights - we override when non-complex struct
119
110
  // (as applied in Weight 1.5 where we also have `Compact<{ refTime: u64 }>)
120
- if (['pezframe_support::weights::weight_v2::Weight', 'frame_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
111
+ if (['pezframe_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight'].includes(path.join('::'))) {
121
112
  return !def.isComposite || def.asComposite.fields.length === 1
122
113
  ? 'WeightV1'
123
114
  : null;
@@ -152,8 +143,8 @@ function extractNameFlat(portable, lookupIndex, params, path, isInternal = false
152
143
  const l = lowers[i];
153
144
  // Remove ::{generic, misc, pallet, traits, types}::
154
145
  if (i !== 1 || !PATH_RM_INDEX_1.includes(l)) {
155
- // sp_runtime::generic::digest::Digest -> sp_runtime::generic::Digest
156
- // sp_runtime::multiaddress::MultiAddress -> sp_runtime::MultiAddress
146
+ // pezsp_runtime::generic::digest::Digest -> pezsp_runtime::generic::Digest
147
+ // pezsp_runtime::multiaddress::MultiAddress -> pezsp_runtime::MultiAddress
157
148
  if (l !== lowers[i + 1]) {
158
149
  name += camels[i];
159
150
  }
@@ -307,7 +298,7 @@ function registerTypes(lookup, lookups, names, params) {
307
298
  const siSignature = lookup.getSiType(sigParam.type.unwrap());
308
299
  const nsSignature = siSignature.path.join('::');
309
300
  let nsAccountId = siAddress.path.join('::');
310
- const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress' || nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
301
+ const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress';
311
302
  // With multiaddress, we check the first type param again
312
303
  if (isMultiAddress) {
313
304
  // AccountId, AccountIndex
@@ -322,7 +313,7 @@ function registerTypes(lookup, lookups, names, params) {
322
313
  Address: isMultiAddress
323
314
  ? 'MultiAddress'
324
315
  : 'AccountId',
325
- ExtrinsicSignature: ['pezsp_runtime::MultiSignature', 'sp_runtime::MultiSignature'].includes(nsSignature)
316
+ ExtrinsicSignature: nsSignature === 'pezsp_runtime::MultiSignature'
326
317
  ? 'MultiSignature'
327
318
  : names[sigParam.type.unwrap().toNumber()] || 'MultiSignature'
328
319
  });
@@ -341,7 +332,7 @@ function extractAliases(params, isContract) {
341
332
  alias[type.unwrap().toNumber()] = 'Call';
342
333
  }
343
334
  else if (hasParams && !isContract) {
344
- l.warn('Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic');
335
+ l.warn('Unable to determine runtime Call type, cannot inspect pezsp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic');
345
336
  }
346
337
  if (params.PezframeSystemEventRecord) {
347
338
  // Event, Topic
@@ -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/types', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.18' };
4
+ exports.packageInfo = { name: '@pezkuwi/types', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '16.5.24' };
@@ -1,9 +1,11 @@
1
1
  import { emptyCheck } from './emptyCheck.js';
2
2
  export const pezkuwi = {
3
+ AuthorizeCall: emptyCheck,
3
4
  LimitParathreadCommits: emptyCheck,
4
5
  OnlyStakingAndClaims: emptyCheck,
5
6
  PrevalidateAttests: emptyCheck,
6
7
  RestrictFunctionality: emptyCheck,
7
8
  TransactionCallFilter: emptyCheck,
8
- ValidateDoubleVoteReports: emptyCheck
9
+ ValidateDoubleVoteReports: emptyCheck,
10
+ WeightReclaim: emptyCheck
9
11
  };
@@ -11,11 +11,8 @@ const PATHS_ALIAS = splitNamespace([
11
11
  // full matching on exact names...
12
12
  // these are well-known types with additional encoding
13
13
  'pezsp_core::crypto::AccountId32',
14
- 'sp_core::crypto::AccountId32', // upstream compatibility
15
14
  'pezsp_runtime::generic::era::Era',
16
- 'sp_runtime::generic::era::Era', // upstream compatibility
17
15
  'pezsp_runtime::multiaddress::MultiAddress',
18
- 'sp_runtime::multiaddress::MultiAddress', // upstream compatibility
19
16
  // ethereum overrides (Frontier, Moonbeam, Pezkuwi claims)
20
17
  'fp_account::AccountId20',
21
18
  'account::AccountId20',
@@ -23,9 +20,7 @@ const PATHS_ALIAS = splitNamespace([
23
20
  // weights 2 is a structure, however for 1.5. with a single field it
24
21
  // should be flatenned (can appear in Compact<Weight> extrinsics)
25
22
  'pezframe_support::weights::weight_v2::Weight',
26
- 'frame_support::weights::weight_v2::Weight', // upstream compatibility
27
23
  'pezsp_weights::weight_v2::Weight',
28
- 'sp_weights::weight_v2::Weight', // upstream compatibility
29
24
  // wildcard matching in place...
30
25
  // these have a specific encoding or logic, use a wildcard for {pallet, darwinia}_democracy
31
26
  '*_democracy::vote::Vote',
@@ -33,15 +28,11 @@ const PATHS_ALIAS = splitNamespace([
33
28
  '*_identity::types::Data',
34
29
  // these are opaque Vec<u8> wrappers
35
30
  'pezsp_core::OpaqueMetadata',
36
- 'sp_core::OpaqueMetadata', // upstream compatibility
37
31
  'pezsp_core::OpaquePeerId',
38
- 'sp_core::OpaquePeerId', // upstream compatibility
39
32
  'pezsp_core::offchain::OpaqueMultiaddr',
40
- 'sp_core::offchain::OpaqueMultiaddr', // upstream compatibility
41
33
  // shorten some well-known types
42
34
  'primitive_types::*',
43
35
  'pezsp_arithmetic::per_things::*',
44
- 'sp_arithmetic::per_things::*', // upstream compatibility
45
36
  // runtime
46
37
  '*_runtime::RuntimeCall',
47
38
  '*_runtime::RuntimeEvent',
@@ -114,7 +105,7 @@ function matchParts(first, second) {
114
105
  function getAliasPath({ def, path }) {
115
106
  // specific logic for weights - we override when non-complex struct
116
107
  // (as applied in Weight 1.5 where we also have `Compact<{ refTime: u64 }>)
117
- if (['pezframe_support::weights::weight_v2::Weight', 'frame_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight', 'sp_weights::weight_v2::Weight'].includes(path.join('::'))) {
108
+ if (['pezframe_support::weights::weight_v2::Weight', 'pezsp_weights::weight_v2::Weight'].includes(path.join('::'))) {
118
109
  return !def.isComposite || def.asComposite.fields.length === 1
119
110
  ? 'WeightV1'
120
111
  : null;
@@ -149,8 +140,8 @@ function extractNameFlat(portable, lookupIndex, params, path, isInternal = false
149
140
  const l = lowers[i];
150
141
  // Remove ::{generic, misc, pallet, traits, types}::
151
142
  if (i !== 1 || !PATH_RM_INDEX_1.includes(l)) {
152
- // sp_runtime::generic::digest::Digest -> sp_runtime::generic::Digest
153
- // sp_runtime::multiaddress::MultiAddress -> sp_runtime::MultiAddress
143
+ // pezsp_runtime::generic::digest::Digest -> pezsp_runtime::generic::Digest
144
+ // pezsp_runtime::multiaddress::MultiAddress -> pezsp_runtime::MultiAddress
154
145
  if (l !== lowers[i + 1]) {
155
146
  name += camels[i];
156
147
  }
@@ -304,7 +295,7 @@ function registerTypes(lookup, lookups, names, params) {
304
295
  const siSignature = lookup.getSiType(sigParam.type.unwrap());
305
296
  const nsSignature = siSignature.path.join('::');
306
297
  let nsAccountId = siAddress.path.join('::');
307
- const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress' || nsAccountId === 'sp_runtime::multiaddress::MultiAddress';
298
+ const isMultiAddress = nsAccountId === 'pezsp_runtime::multiaddress::MultiAddress';
308
299
  // With multiaddress, we check the first type param again
309
300
  if (isMultiAddress) {
310
301
  // AccountId, AccountIndex
@@ -319,7 +310,7 @@ function registerTypes(lookup, lookups, names, params) {
319
310
  Address: isMultiAddress
320
311
  ? 'MultiAddress'
321
312
  : 'AccountId',
322
- ExtrinsicSignature: ['pezsp_runtime::MultiSignature', 'sp_runtime::MultiSignature'].includes(nsSignature)
313
+ ExtrinsicSignature: nsSignature === 'pezsp_runtime::MultiSignature'
323
314
  ? 'MultiSignature'
324
315
  : names[sigParam.type.unwrap().toNumber()] || 'MultiSignature'
325
316
  });
@@ -338,7 +329,7 @@ function extractAliases(params, isContract) {
338
329
  alias[type.unwrap().toNumber()] = 'Call';
339
330
  }
340
331
  else if (hasParams && !isContract) {
341
- l.warn('Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic');
332
+ l.warn('Unable to determine runtime Call type, cannot inspect pezsp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic');
342
333
  }
343
334
  if (params.PezframeSystemEventRecord) {
344
335
  // Event, Topic
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "16.5.22",
21
+ "version": "16.5.24",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./cjs/index.js",
24
24
  "types": "./cjs/index.d.ts",
@@ -5927,10 +5927,10 @@
5927
5927
  },
5928
5928
  "dependencies": {
5929
5929
  "@pezkuwi/keyring": "14.0.13",
5930
- "@pezkuwi/types-augment": "16.5.22",
5931
- "@pezkuwi/types-codec": "16.5.22",
5932
- "@pezkuwi/types-create": "16.5.22",
5933
- "@pezkuwi/types-support": "16.5.22",
5930
+ "@pezkuwi/types-augment": "16.5.24",
5931
+ "@pezkuwi/types-codec": "16.5.24",
5932
+ "@pezkuwi/types-create": "16.5.24",
5933
+ "@pezkuwi/types-support": "16.5.24",
5934
5934
  "@pezkuwi/util": "14.0.13",
5935
5935
  "@pezkuwi/util-crypto": "14.0.13",
5936
5936
  "rxjs": "^7.8.1",
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/types', 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.18' };
1
+ export const packageInfo = { name: '@pezkuwi/types', 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.24' };