@forsakringskassan/commitlint-config 1.3.5 → 1.3.6

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.
@@ -255439,6 +255439,7 @@ var wildcards = [
255439
255439
  test(/^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m),
255440
255440
  test(/^(Merge tag (.*?))(?:\r?\n)*$/m),
255441
255441
  test(/^(R|r)evert (.*)/),
255442
+ test(/^(R|r)eapply (.*)/),
255442
255443
  test(/^(amend|fixup|squash)!/),
255443
255444
  isSemver,
255444
255445
  test(/^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))/),
@@ -255861,10 +255862,10 @@ var scopeEnum = ({ scope }, when = "always", value2 = []) => {
255861
255862
  const isScopeInEnum = (scope2) => enum_default(scope2, value2);
255862
255863
  let isValid;
255863
255864
  if (when === "never") {
255864
- isValid = !messageScopes.some(isScopeInEnum);
255865
+ isValid = !messageScopes.some(isScopeInEnum) && !isScopeInEnum(scope);
255865
255866
  errorMessage.splice(1, 0, "not");
255866
255867
  } else {
255867
- isValid = messageScopes.every(isScopeInEnum);
255868
+ isValid = messageScopes.every(isScopeInEnum) || isScopeInEnum(scope);
255868
255869
  }
255869
255870
  return [isValid, message(errorMessage)];
255870
255871
  };
@@ -264394,7 +264395,7 @@ var cli = yargs_default(process.argv.slice(2)).options({
264394
264395
  },
264395
264396
  config: {
264396
264397
  alias: "g",
264397
- description: "path to the config file",
264398
+ description: "path to the config file; result code 9 if config is missing",
264398
264399
  type: "string"
264399
264400
  },
264400
264401
  "print-config": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/commitlint-config",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "FK commitlint shareable config",
5
5
  "keywords": [
6
6
  "commitlint"