@w5s/commitlint-config 2.0.22 → 2.0.25

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/plugin.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.gitmojiPlugin = exports.typeValidGitmoji = exports.typeGitmojiStyle = void 0;
4
- const gitmoji_js_1 = require("@w5s/conventional-changelog/dist/gitmoji.js");
4
+ const conventional_changelog_1 = require("@w5s/conventional-changelog");
5
5
  const $if = (when = 'always') => (cond) => when === 'always' ? cond : !cond;
6
6
  const typeGitmojiStyle = (parsed, when = 'always', value = 'unicode') => {
7
- const isUnicode = parsed.type != null && gitmoji_js_1.Emoji.isUnicode(parsed.type);
8
- const isEmoji = parsed.type != null && gitmoji_js_1.Emoji.isText(parsed.type);
7
+ const isUnicode = parsed.type != null && conventional_changelog_1.Emoji.isUnicode(parsed.type);
8
+ const isEmoji = parsed.type != null && conventional_changelog_1.Emoji.isText(parsed.type);
9
9
  return value === 'unicode'
10
10
  ? $if(when)(isUnicode)
11
11
  ? [true]
@@ -16,7 +16,7 @@ const typeGitmojiStyle = (parsed, when = 'always', value = 'unicode') => {
16
16
  };
17
17
  exports.typeGitmojiStyle = typeGitmojiStyle;
18
18
  const typeValidGitmoji = (parsed, when = 'always') => {
19
- const isValidGitmoji = parsed.type != null && gitmoji_js_1.GitmojiCode.isValid(parsed.type);
19
+ const isValidGitmoji = parsed.type != null && conventional_changelog_1.GitmojiCode.isValid(parsed.type);
20
20
  return $if(when)(isValidGitmoji)
21
21
  ? [true]
22
22
  : [false, `Type should ${when} be an valid gitmoji (see https://gitmoji.dev)`];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@w5s/commitlint-config",
3
- "version": "2.0.22",
3
+ "version": "2.0.25",
4
4
  "description": "Commitlint configuration presets",
5
5
  "keywords": [
6
6
  "commitlint",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@commitlint/types": "^18.0.0",
41
- "@w5s/conventional-changelog": "^2.0.20"
41
+ "@w5s/conventional-changelog": "^2.0.23"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@commitlint/cli": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "114c1aa56da01c4ad5cc775ff4df717eb90614b4"
57
+ "gitHead": "fa1eddaa132e97c9bfd33437a6bb4aa3bfcdaa7c"
58
58
  }
package/src/plugin.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Plugin, Rule, RuleConfigCondition } from '@commitlint/types';
2
- import { Emoji, GitmojiCode } from '@w5s/conventional-changelog/dist/gitmoji.js';
2
+ import { Emoji, GitmojiCode } from '@w5s/conventional-changelog';
3
3
 
4
4
  const $if =
5
5
  (when: RuleConfigCondition | undefined = 'always') =>