Skip to content

Commit

Permalink
build(npm): update external dependencies
Browse files Browse the repository at this point in the history
Up'em just updated these outdated dependencies in package.json:

chai                         4.3.4    -> 4.3.6    devDependencies   (policy: latest)
dependency-cruiser           10.0.1   -> 11.15.0  devDependencies   (policy: latest)
eslint                       7.28.0   -> 8.22.0   devDependencies   (policy: latest)
eslint-config-moving-meadow  2.0.9    -> 3.0.0    devDependencies   (policy: latest)
eslint-config-prettier       8.3.0    -> 8.5.0    devDependencies   (policy: latest)
eslint-plugin-budapestian    2.3.0    -> 4.0.0    devDependencies   (policy: latest)
eslint-plugin-import         2.23.4   -> 2.26.0   devDependencies   (policy: latest)
eslint-plugin-mocha          9.0.0    -> 10.1.0   devDependencies   (policy: latest)
eslint-plugin-security       1.4.0    -> 1.5.0    devDependencies   (policy: latest)
eslint-plugin-unicorn        33.0.1   -> 43.0.2   devDependencies   (policy: latest)
mocha                        9.0.0    -> 10.0.0   devDependencies   (policy: latest)
mscgenjs                     6.0.1    -> 6.0.2    dependencies      (policy: latest)
prettier                     2.3.1    -> 2.7.1    devDependencies   (policy: latest)
upem                         6.0.0    -> 7.2.0    devDependencies   (policy: latest)
webpack                      5.39.0   -> 5.74.0   devDependencies   (policy: latest)
webpack-cli                  4.7.2    -> 4.10.0   devDependencies   (policy: latest)
  • Loading branch information
sverweij committed Aug 21, 2022
1 parent b18296f commit d6eae09
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 27 deletions.
2 changes: 1 addition & 1 deletion dist/mscgen-inpage.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mscgen-inpage.js.map

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@
"COPYING"
],
"dependencies": {
"mscgenjs": "6.0.1"
"mscgenjs": "6.0.2"
},
"devDependencies": {
"chai": "4.3.4",
"dependency-cruiser": "10.0.1",
"eslint": "7.28.0",
"eslint-config-moving-meadow": "2.0.9",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-budapestian": "2.3.0",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-mocha": "9.0.0",
"chai": "4.3.6",
"dependency-cruiser": "11.15.0",
"eslint": "8.22.0",
"eslint-config-moving-meadow": "3.0.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-budapestian": "4.0.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-mocha": "10.1.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-security": "1.4.0",
"eslint-plugin-unicorn": "33.0.1",
"mocha": "9.0.0",
"eslint-plugin-security": "1.5.0",
"eslint-plugin-unicorn": "43.0.2",
"mocha": "10.0.0",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"prettier": "2.3.1",
"upem": "6.0.0",
"webpack": "5.39.0",
"webpack-cli": "4.7.2"
"prettier": "2.7.1",
"upem": "7.2.0",
"webpack": "5.74.0",
"webpack-cli": "4.10.0"
},
"scripts": {
"build": "webpack",
Expand All @@ -72,7 +72,7 @@
"test": "mocha --recursive test --invert --grep \"\\(browser only\\)\"",
"test:cover": "nyc --check-coverage npm test",
"update-dependencies": "run-s upem:update upem:install lint:fix check",
"upem:update": "npm outdated --json | upem",
"upem:update": "npm outdated --json --long | upem | pbcopy && pbpaste",
"upem:install": "npm install",
"version": "run-s build depcruise:graph scm:stage"
},
Expand Down
2 changes: 1 addition & 1 deletion src/embedding/error-rendering.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function deZALGΌtheBlackPonyLord(pString) {
}

function underlineCol(pLine, pCol) {
return pLine.split("").reduce((pPrevious, pChar, pIndex) => {
return [...pLine].reduce((pPrevious, pChar, pIndex) => {
if (pIndex === pCol) {
return (
pPrevious +
Expand Down
11 changes: 4 additions & 7 deletions src/mscgen-inpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,17 @@ function render(pAST, pElementId, pOptions) {
}

function getMirrorEntities(pElement) {
let lMirrorEntities = pElement.getAttribute("data-mirror-entities");
let lMirrorEntities = pElement.dataset.mirrorEntities;

return lMirrorEntities && lMirrorEntities === "true";
}

function getNamedStyle(pElement) {
return pElement.getAttribute("data-named-style") || "basic";
return pElement.dataset.namedStyle || "basic";
}

function getVerticalAlignment(pElement) {
return (
pElement.getAttribute("data-regular-arc-text-vertical-alignment") ||
"middle"
);
return pElement.dataset.regularArcTextVerticalAlignment || "middle";
}

function parseAndRender(
Expand Down Expand Up @@ -148,7 +145,7 @@ function getResponseText(pResponse) {
}

function getSourceAttribute(pElement) {
return pElement.getAttribute("data-src") || pElement.getAttribute("src");
return pElement.dataset.src || pElement.getAttribute("src");
}

function getElementSource(pScript) {
Expand Down

0 comments on commit d6eae09

Please sign in to comment.