@etainabl/nodejs-sdk 1.3.151 → 1.3.152

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.
package/dist/esm/index.js CHANGED
@@ -1362,8 +1362,8 @@ var units = [
1362
1362
  var getMeterPointNumberBottomLine = (meterPointNumber) => {
1363
1363
  if (!meterPointNumber) return "";
1364
1364
  const mpan = String(meterPointNumber).replace(/\s/g, "");
1365
- if (mpan.length === 21) {
1366
- return mpan.substring(8, 21);
1365
+ if (mpan.length === 21 || mpan.length === 22) {
1366
+ return mpan.substring(8, mpan.length);
1367
1367
  }
1368
1368
  if (mpan.length === 13) {
1369
1369
  return mpan;