@etainabl/nodejs-sdk 1.3.150 → 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;
@@ -9090,7 +9090,7 @@ var errorCodeMap = {
9090
9090
  status: "error",
9091
9091
  message: "Account not found for the provided device ID or MPAN.",
9092
9092
  isUnique: ({ details }, problems) => {
9093
- return !problems.some((p4) => p4.code === "ACCOUNT_NOT_FOUND" && p4.details?.value === details?.value) || true;
9093
+ return !problems.some((p4) => p4.code === "ACCOUNT_NOT_FOUND" && p4.details?.value === details?.value);
9094
9094
  }
9095
9095
  },
9096
9096
  INVALID_DATE_FORMAT: {