@waffo/pancake-ts 0.4.1 → 0.4.2

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/index.js CHANGED
@@ -203,7 +203,7 @@ var HttpClient = class {
203
203
  };
204
204
 
205
205
  // src/validation.ts
206
- var SHORT_ID_REGEX = /^[A-Z]{2,4}_[A-Za-z0-9]+$/;
206
+ var SHORT_ID_REGEX = /^[A-Z]{2,5}_[0-9A-Za-z]{22}$/;
207
207
  var CURRENCY_CODE_REGEX = /^[A-Z]{3}$/;
208
208
  var COUNTRY_CODE_REGEX = /^[A-Z]{2}$/;
209
209
  var AMOUNT_STRING_REGEX = /^\d+(\.\d+)?$/;
@@ -1145,6 +1145,7 @@ var WaffoPancake = class {
1145
1145
  graphql;
1146
1146
  webhooks;
1147
1147
  constructor(config) {
1148
+ validateShortId("merchantId", config.merchantId, "MER");
1148
1149
  this.config = config;
1149
1150
  this.http = new HttpClient(config);
1150
1151
  this.auth = new AuthResource(this.http);