semantic-release-lerna 2.16.3 → 2.16.4

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.
Files changed (2) hide show
  1. package/dist/index.js +30 -30
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -12896,39 +12896,39 @@ var require_lib5 = __commonJS({
12896
12896
  var NEWLINE$1 = /\r\n|[\n\r\u2028\u2029]/;
12897
12897
  var BRACKET = /^[()[\]{}]$/;
12898
12898
  var tokenize;
12899
- {
12900
- const JSX_TAG = /^[a-z][\w-]*$/i;
12901
- const getTokenType = function(token, offset, text) {
12902
- if (token.type === "name") {
12903
- if (helperValidatorIdentifier.isKeyword(token.value) || helperValidatorIdentifier.isStrictReservedWord(token.value, true) || sometimesKeywords.has(token.value)) {
12904
- return "keyword";
12905
- }
12906
- if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
12907
- return "jsxIdentifier";
12908
- }
12909
- if (token.value[0] !== token.value[0].toLowerCase()) {
12910
- return "capitalized";
12911
- }
12899
+ var JSX_TAG = /^[a-z][\w-]*$/i;
12900
+ var getTokenType = function(token, offset, text) {
12901
+ if (token.type === "name") {
12902
+ const tokenValue = token.value;
12903
+ if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) {
12904
+ return "keyword";
12912
12905
  }
12913
- if (token.type === "punctuator" && BRACKET.test(token.value)) {
12914
- return "bracket";
12906
+ if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
12907
+ return "jsxIdentifier";
12915
12908
  }
12916
- if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
12917
- return "punctuator";
12909
+ const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
12910
+ if (firstChar !== firstChar.toLowerCase()) {
12911
+ return "capitalized";
12918
12912
  }
12919
- return token.type;
12920
- };
12921
- tokenize = function* (text) {
12922
- let match2;
12923
- while (match2 = jsTokens.default.exec(text)) {
12924
- const token = jsTokens.matchToToken(match2);
12925
- yield {
12926
- type: getTokenType(token, match2.index, text),
12927
- value: token.value
12928
- };
12929
- }
12930
- };
12931
- }
12913
+ }
12914
+ if (token.type === "punctuator" && BRACKET.test(token.value)) {
12915
+ return "bracket";
12916
+ }
12917
+ if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
12918
+ return "punctuator";
12919
+ }
12920
+ return token.type;
12921
+ };
12922
+ tokenize = function* (text) {
12923
+ let match2;
12924
+ while (match2 = jsTokens.default.exec(text)) {
12925
+ const token = jsTokens.matchToToken(match2);
12926
+ yield {
12927
+ type: getTokenType(token, match2.index, text),
12928
+ value: token.value
12929
+ };
12930
+ }
12931
+ };
12932
12932
  function highlight(text) {
12933
12933
  if (text === "") return "";
12934
12934
  const defs = getDefs(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "semantic-release-lerna",
3
- "version": "2.16.3",
3
+ "version": "2.16.4",
4
4
  "description": "semantic-release plugin to publish lerna monorepo packages to npm",
5
5
  "keywords": [
6
6
  "npm",
@@ -37,7 +37,7 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@actions/core": "^2.0.1",
40
+ "@actions/core": "^2.0.2",
41
41
  "@semantic-release/error": "^4.0.0",
42
42
  "conventional-changelog-angular": "^7.0.0 || ^8.0.0",
43
43
  "conventional-changelog-writer": "^7.0.0 || ^8.0.0",