Skip to content

Commit

Permalink
lint and upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Jul 18, 2022
1 parent 2f5e78c commit 379a96e
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 107 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

## UNRELEASED

- INTERNAL: fix(bug [oddbird#112](https://github.com/oddbird/accoutrement/issues/112)): [`tokens.get()`](https://www.oddbird.net/accoutrement/docs/token-api#function--get) memorization
- INTERNAL: fix bug
([oddbird#112](https://github.com/oddbird/accoutrement/issues/112)) in
[`tokens.get()`](https://www.oddbird.net/accoutrement/docs/token-api#function--get)
memorization

- INTERNAL: Upgrade dev dependencies.

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
"mocha": "^10.0.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.14",
"prettier": "^2.6.2",
"sass": "^1.52.3",
"prettier": "^2.7.1",
"sass": "^1.53.0",
"sass-true": "^6.1.0",
"sassdoc": "^2.7.4",
"sassdoc-theme-herman": "^4.0.2",
"stylelint": "^14.9.0",
"stylelint": "^14.9.1",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard-scss": "^4.0.0",
"stylelint-config-standard-scss": "^5.0.0",
"stylelint-prettier": "^2.0.0"
},
"eyeglass": {
Expand Down
4 changes: 2 additions & 2 deletions sass/tokens/_api.scss
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,11 @@ $_memo: ();
@if not map.has-key($_memo, $map, $key) {
// lookup the key in the map
$lookup: parse.lookup-alias($map, $key);

@if $lookup {
$resolved: parse.compile-token($map, map.get($lookup, 'token'), $key);
}

// update the memo
$_memo: map.set($_memo, $map, $key, $resolved) !global;
}
Expand Down
4 changes: 3 additions & 1 deletion test/tokens/_api.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
);
}

@include it('Memorize resolved value, and applies adjustments to memorized values') {
@include it(
'Memorize resolved value, and applies adjustments to memorized values'
) {
@include assert-equal(
tokens.get(
$haystack,
Expand Down
Loading

0 comments on commit 379a96e

Please sign in to comment.