@navikt/aksel 7.36.0 → 7.37.0

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = removePropsFromComponent;
4
- function removePropsFromComponent(j, root, componentName, propsToRemove) {
4
+ function removePropsFromComponent(_, root, componentName, propsToRemove) {
5
5
  const component = root.findJSXElements(componentName);
6
6
  component.forEach((node) => {
7
7
  const attributes = node.node.openingElement.attributes;
@@ -215,7 +215,9 @@ function getLegacySearchTerms() {
215
215
  terms.add((0, translate_token_1.translateToken)(tokenName, "less"));
216
216
  terms.add((0, translate_token_1.translateToken)(tokenName, "js"));
217
217
  if (config.twOld) {
218
- config.twOld.split(",").forEach((t) => terms.add(t.trim()));
218
+ config.twOld.split(",").forEach((t) => {
219
+ terms.add(t.trim());
220
+ });
219
221
  }
220
222
  legacySearchTerms.set(legacyToken, terms);
221
223
  }
@@ -232,7 +234,9 @@ function getDarksideSearchTerms() {
232
234
  terms.add((0, translate_token_1.translateToken)(newTokenName, "js"));
233
235
  terms.add(newTokenName);
234
236
  if (config.tw) {
235
- config.tw.split(",").forEach((t) => terms.add(t.trim()));
237
+ config.tw.split(",").forEach((t) => {
238
+ terms.add(t.trim());
239
+ });
236
240
  }
237
241
  darksideSearchTerms.set(newTokenName, terms);
238
242
  }
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "7.36.0";
4
+ exports.VERSION = "7.37.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/aksel",
3
- "version": "7.36.0",
3
+ "version": "7.37.0",
4
4
  "description": "Aksel command line interface. Codemods and other utilities for Aksel users.",
5
5
  "author": "Aksel | Nav designsystem team",
6
6
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "url": "https://github.com/navikt/aksel/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@navikt/ds-css": "^7.36.0",
37
- "@navikt/ds-tokens": "^7.36.0",
36
+ "@navikt/ds-css": "^7.37.0",
37
+ "@navikt/ds-tokens": "^7.37.0",
38
38
  "chalk": "5.6.2",
39
39
  "cli-progress": "3.12.0",
40
40
  "clipboardy": "5.0.1",