From 323805fb515c47f3fd348e6abb6d30f01d95ab47 Mon Sep 17 00:00:00 2001 From: nartc Date: Fri, 1 Nov 2024 09:34:52 -0500 Subject: [PATCH] chore(repo): run format --- .all-contributorsrc | 783 ++++++++---------- .../src/inject-local-storage.ts | 2 +- .../inject-params/src/inject-params.ts | 2 +- .../src/inject-route-data.ts | 2 +- .../migrate-signals-in-template.ts | 2 +- 5 files changed, 346 insertions(+), 445 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 91235ae8..43524319 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1,443 +1,344 @@ { - "projectName": "ngxtension-platform", - "projectOwner": "ngxtension", - "repoType": "github", - "repoHost": "https://github.com", - "files": [ - "README.md" - ], - "imageSize": 100, - "commit": true, - "commitConvention": "angular", - "contributors": [ - { - "login": "nartc", - "name": "Chau Tran", - "avatar_url": "https://avatars.githubusercontent.com/u/25516557?v=4", - "profile": "https://nartc.me/", - "contributions": [ - "code" - ] - }, - { - "login": "eneajaho", - "name": "Enea Jahollari", - "avatar_url": "https://avatars.githubusercontent.com/u/25394362?v=4", - "profile": "https://eneajaho.me", - "contributions": [ - "code" - ] - }, - { - "login": "develite98", - "name": "Phong Cao", - "avatar_url": "https://avatars.githubusercontent.com/u/43846216?v=4", - "profile": "https://github.com/develite98", - "contributions": [ - "code" - ] - }, - { - "login": "tieppt", - "name": "Tiep Phan", - "avatar_url": "https://avatars.githubusercontent.com/u/7151365?v=4", - "profile": "https://www.tiepphan.com/", - "contributions": [ - "code" - ] - }, - { - "login": "dmorosinotto", - "name": "Daniele Morosinotto", - "avatar_url": "https://avatars.githubusercontent.com/u/3982050?v=4", - "profile": "https://twitter.com/dmorosinotto", - "contributions": [ - "code" - ] - }, - { - "login": "va-stefanek", - "name": "Mateusz Stefańczyk", - "avatar_url": "https://avatars.githubusercontent.com/u/67691339?v=4", - "profile": "https://houseofangular.io/", - "contributions": [ - "code" - ] - }, - { - "login": "tomer953", - "name": "Tomer953", - "avatar_url": "https://avatars.githubusercontent.com/u/1807493?v=4", - "profile": "https://github.com/tomer953", - "contributions": [ - "doc", - "code" - ] - }, - { - "login": "tomalaforge", - "name": "Laforge Thomas", - "avatar_url": "https://avatars.githubusercontent.com/u/30832608?v=4", - "profile": "https://thomaslaforge.dev/home", - "contributions": [ - "code" - ] - }, - { - "login": "wanoo21", - "name": "Ion Prodan", - "avatar_url": "https://avatars.githubusercontent.com/u/6537167?v=4", - "profile": "https://yon.fun/", - "contributions": [ - "code" - ] - }, - { - "login": "amirhosseinfaraji", - "name": "AmirHossein", - "avatar_url": "https://avatars.githubusercontent.com/u/15232909?v=4", - "profile": "https://github.com/amirhosseinfaraji", - "contributions": [ - "doc" - ] - }, - { - "login": "LcsGa", - "name": "Lucas Garcia", - "avatar_url": "https://avatars.githubusercontent.com/u/58547290?v=4", - "profile": "https://github.com/LcsGa", - "contributions": [ - "code" - ] - }, - { - "login": "nevzatopcu", - "name": "Nevzat Topçu", - "avatar_url": "https://avatars.githubusercontent.com/u/33401667?v=4", - "profile": "https://nevzatopcu.medium.com", - "contributions": [ - "code" - ] - }, - { - "login": "Pascalmh", - "name": "Pascal Küsgen", - "avatar_url": "https://avatars.githubusercontent.com/u/498197?v=4", - "profile": "https://ksgn.dev", - "contributions": [ - "doc" - ] - }, - { - "login": "dalenguyen", - "name": "Dale Nguyen", - "avatar_url": "https://avatars.githubusercontent.com/u/14116156?v=4", - "profile": "http://dalenguyen.me", - "contributions": [ - "code" - ] - }, - { - "login": "vneogi199", - "name": "Vinit Neogi", - "avatar_url": "https://avatars.githubusercontent.com/u/20491952?v=4", - "profile": "https://github.com/vneogi199", - "contributions": [ - "test" - ] - }, - { - "login": "joshuamorony", - "name": "Josh Morony", - "avatar_url": "https://avatars.githubusercontent.com/u/2578009?v=4", - "profile": "https://www.joshmorony.com", - "contributions": [ - "doc", - "code" - ] - }, - { - "login": "cskiwi", - "name": "Glenn Latomme", - "avatar_url": "https://avatars.githubusercontent.com/u/847540?v=4", - "profile": "https://github.com/cskiwi", - "contributions": [ - "doc" - ] - }, - { - "login": "JeevanMahesha", - "name": "Jeevan ", - "avatar_url": "https://avatars.githubusercontent.com/u/34814862?v=4", - "profile": "https://jeevanmahesha.github.io", - "contributions": [ - "doc" - ] - }, - { - "login": "diegovilar", - "name": "Diego Vilar", - "avatar_url": "https://avatars.githubusercontent.com/u/759416?v=4", - "profile": "https://github.com/diegovilar", - "contributions": [ - "code" - ] - }, - { - "login": "gianmarcogiummarra", - "name": "Gianmarco Giummarra", - "avatar_url": "https://avatars.githubusercontent.com/u/9169021?v=4", - "profile": "https://github.com/gianmarcogiummarra", - "contributions": [ - "doc" - ] - }, - { - "login": "e-oz", - "name": "Evgeniy OZ", - "avatar_url": "https://avatars.githubusercontent.com/u/526352?v=4", - "profile": "https://jamm.dev", - "contributions": [ - "code" - ] - }, - { - "login": "ajitzero", - "name": "Ajit Panigrahi", - "avatar_url": "https://avatars.githubusercontent.com/u/19947758?v=4", - "profile": "https://beta.ajitpanigrahi.com", - "contributions": [ - "doc" - ] - }, - { - "login": "palexcast", - "name": "Alexander Castillo", - "avatar_url": "https://avatars.githubusercontent.com/u/15246162?v=4", - "profile": "https://github.com/palexcast", - "contributions": [ - "code" - ] - }, - { - "login": "fiorelozere", - "name": "Fiorelo Zere", - "avatar_url": "https://avatars.githubusercontent.com/u/47506023?v=4", - "profile": "https://github.com/fiorelozere", - "contributions": [ - "code" - ] - }, - { - "login": "robbaman", - "name": "Robert Mulder", - "avatar_url": "https://avatars.githubusercontent.com/u/4688582?v=4", - "profile": "http://www.creativeid.nl", - "contributions": [ - "code" - ] - }, - { - "login": "nelsongutidev", - "name": "Nelson Gutierrez", - "avatar_url": "https://avatars.githubusercontent.com/u/62297014?v=4", - "profile": "https://nelsonguti.dev/", - "contributions": [ - "doc" - ] - }, - { - "login": "justinrassier", - "name": "Justin Rassier", - "avatar_url": "https://avatars.githubusercontent.com/u/1228424?v=4", - "profile": "http://www.justinrassier.com", - "contributions": [ - "doc" - ] - }, - { - "login": "rlmestre", - "name": "Rafael Mestre", - "avatar_url": "https://avatars.githubusercontent.com/u/277805?v=4", - "profile": "https://github.com/rlmestre", - "contributions": [ - "doc" - ] - }, - { - "login": "swami-sanapathi", - "name": "Swami", - "avatar_url": "https://avatars.githubusercontent.com/u/40539126?v=4", - "profile": "https://github.com/swami-sanapathi", - "contributions": [ - "doc" - ] - }, - { - "login": "geometricpanda", - "name": "Jim Drury (he/him)", - "avatar_url": "https://avatars.githubusercontent.com/u/708229?v=4", - "profile": "https://www.twitch.tv/geometricjim", - "contributions": [ - "code" - ] - }, - { - "login": "RobbyRabbitman", - "name": "Robby Rabbitman", - "avatar_url": "https://avatars.githubusercontent.com/u/54601487?v=4", - "profile": "https://github.com/RobbyRabbitman", - "contributions": [ - "code" - ] - }, - { - "login": "rainerhahnekamp", - "name": "Rainer Hahnekamp", - "avatar_url": "https://avatars.githubusercontent.com/u/5721205?v=4", - "profile": "https://www.rainerhahnekamp.com", - "contributions": [ - "code" - ] - }, - { - "login": "JeanMeche", - "name": "Matthieu Riegler", - "avatar_url": "https://avatars.githubusercontent.com/u/1300985?v=4", - "profile": "http://riegler.fr", - "contributions": [ - "code" - ] - }, - { - "login": "isthatME", - "name": "isthatME", - "avatar_url": "https://avatars.githubusercontent.com/u/37561224?v=4", - "profile": "https://github.com/isthatME", - "contributions": [ - "doc" - ] - }, - { - "login": "kkachniarz220", - "name": "kkachniarz", - "avatar_url": "https://avatars.githubusercontent.com/u/50884231?v=4", - "profile": "https://github.com/kkachniarz220", - "contributions": [ - "code" - ] - }, - { - "login": "Dafnik", - "name": "Dominik", - "avatar_url": "https://avatars.githubusercontent.com/u/16242839?v=4", - "profile": "https://dafnik.me", - "contributions": [ - "doc" - ] - }, - { - "login": "nguyenphutrong", - "name": "Trong Nguyen", - "avatar_url": "https://avatars.githubusercontent.com/u/62984954?v=4", - "profile": "https://www.linkedin.com/in/trong-nguyen/", - "contributions": [ - "code" - ] - }, - { - "login": "Kiskae", - "name": "Kiskae", - "avatar_url": "https://avatars.githubusercontent.com/u/546681?v=4", - "profile": "https://github.com/Kiskae", - "contributions": [ - "code" - ] - }, - { - "login": "mauriziocescon", - "name": "Maurizio Cescon", - "avatar_url": "https://avatars.githubusercontent.com/u/3672842?v=4", - "profile": "https://github.com/mauriziocescon", - "contributions": [ - "code" - ] - }, - { - "login": "leonelvsc", - "name": "Leonel Franchelli", - "avatar_url": "https://avatars.githubusercontent.com/u/2332029?v=4", - "profile": "https://github.com/leonelvsc", - "contributions": [ - "code" - ] - }, - { - "login": "lorenzodianni", - "name": "Lorenzo D'Ianni", - "avatar_url": "https://avatars.githubusercontent.com/u/7217805?v=4", - "profile": "http://codepen.io/lorenzodianni/", - "contributions": [ - "code" - ] - }, - { - "login": "mikelgo", - "name": "Michael Berger", - "avatar_url": "https://avatars.githubusercontent.com/u/29756792?v=4", - "profile": "https://www.berger-engineering.io", - "contributions": [ - "code", - "doc" - ] - }, - { - "login": "illunix", - "name": "Maksymilian Szokalski", - "avatar_url": "https://avatars.githubusercontent.com/u/42069493?v=4", - "profile": "https://github.com/illunix", - "contributions": [ - "doc" - ] - }, - { - "login": "Ostromecky", - "name": "Paweł Ostromecki", - "avatar_url": "https://avatars.githubusercontent.com/u/37908305?v=4", - "profile": "https://github.com/Ostromecky", - "contributions": [ - "code" - ] - }, - { - "login": "mattmoos", - "name": "Matthias Moos", - "avatar_url": "https://avatars.githubusercontent.com/u/25790637?v=4", - "profile": "https://github.com/mattmoos", - "contributions": [ - "code" - ] - }, - { - "login": "ShacharHarshuv", - "name": "Shahar Har-Shuv", - "avatar_url": "https://avatars.githubusercontent.com/u/4821858?v=4", - "profile": "https://github.com/ShacharHarshuv", - "contributions": [ - "code" - ] - }, - { - "login": "MillerSvt", - "name": "Svyatoslav Zaytsev", - "avatar_url": "https://avatars.githubusercontent.com/u/143048525?v=4", - "profile": "https://github.com/MillerSvt", - "contributions": [ - "code" - ] - } - ], - "contributorsPerLine": 7, - "linkToUsage": true, - "commitType": "docs" + "projectName": "ngxtension-platform", + "projectOwner": "ngxtension", + "repoType": "github", + "repoHost": "https://github.com", + "files": ["README.md"], + "imageSize": 100, + "commit": true, + "commitConvention": "angular", + "contributors": [ + { + "login": "nartc", + "name": "Chau Tran", + "avatar_url": "https://avatars.githubusercontent.com/u/25516557?v=4", + "profile": "https://nartc.me/", + "contributions": ["code"] + }, + { + "login": "eneajaho", + "name": "Enea Jahollari", + "avatar_url": "https://avatars.githubusercontent.com/u/25394362?v=4", + "profile": "https://eneajaho.me", + "contributions": ["code"] + }, + { + "login": "develite98", + "name": "Phong Cao", + "avatar_url": "https://avatars.githubusercontent.com/u/43846216?v=4", + "profile": "https://github.com/develite98", + "contributions": ["code"] + }, + { + "login": "tieppt", + "name": "Tiep Phan", + "avatar_url": "https://avatars.githubusercontent.com/u/7151365?v=4", + "profile": "https://www.tiepphan.com/", + "contributions": ["code"] + }, + { + "login": "dmorosinotto", + "name": "Daniele Morosinotto", + "avatar_url": "https://avatars.githubusercontent.com/u/3982050?v=4", + "profile": "https://twitter.com/dmorosinotto", + "contributions": ["code"] + }, + { + "login": "va-stefanek", + "name": "Mateusz Stefańczyk", + "avatar_url": "https://avatars.githubusercontent.com/u/67691339?v=4", + "profile": "https://houseofangular.io/", + "contributions": ["code"] + }, + { + "login": "tomer953", + "name": "Tomer953", + "avatar_url": "https://avatars.githubusercontent.com/u/1807493?v=4", + "profile": "https://github.com/tomer953", + "contributions": ["doc", "code"] + }, + { + "login": "tomalaforge", + "name": "Laforge Thomas", + "avatar_url": "https://avatars.githubusercontent.com/u/30832608?v=4", + "profile": "https://thomaslaforge.dev/home", + "contributions": ["code"] + }, + { + "login": "wanoo21", + "name": "Ion Prodan", + "avatar_url": "https://avatars.githubusercontent.com/u/6537167?v=4", + "profile": "https://yon.fun/", + "contributions": ["code"] + }, + { + "login": "amirhosseinfaraji", + "name": "AmirHossein", + "avatar_url": "https://avatars.githubusercontent.com/u/15232909?v=4", + "profile": "https://github.com/amirhosseinfaraji", + "contributions": ["doc"] + }, + { + "login": "LcsGa", + "name": "Lucas Garcia", + "avatar_url": "https://avatars.githubusercontent.com/u/58547290?v=4", + "profile": "https://github.com/LcsGa", + "contributions": ["code"] + }, + { + "login": "nevzatopcu", + "name": "Nevzat Topçu", + "avatar_url": "https://avatars.githubusercontent.com/u/33401667?v=4", + "profile": "https://nevzatopcu.medium.com", + "contributions": ["code"] + }, + { + "login": "Pascalmh", + "name": "Pascal Küsgen", + "avatar_url": "https://avatars.githubusercontent.com/u/498197?v=4", + "profile": "https://ksgn.dev", + "contributions": ["doc"] + }, + { + "login": "dalenguyen", + "name": "Dale Nguyen", + "avatar_url": "https://avatars.githubusercontent.com/u/14116156?v=4", + "profile": "http://dalenguyen.me", + "contributions": ["code"] + }, + { + "login": "vneogi199", + "name": "Vinit Neogi", + "avatar_url": "https://avatars.githubusercontent.com/u/20491952?v=4", + "profile": "https://github.com/vneogi199", + "contributions": ["test"] + }, + { + "login": "joshuamorony", + "name": "Josh Morony", + "avatar_url": "https://avatars.githubusercontent.com/u/2578009?v=4", + "profile": "https://www.joshmorony.com", + "contributions": ["doc", "code"] + }, + { + "login": "cskiwi", + "name": "Glenn Latomme", + "avatar_url": "https://avatars.githubusercontent.com/u/847540?v=4", + "profile": "https://github.com/cskiwi", + "contributions": ["doc"] + }, + { + "login": "JeevanMahesha", + "name": "Jeevan ", + "avatar_url": "https://avatars.githubusercontent.com/u/34814862?v=4", + "profile": "https://jeevanmahesha.github.io", + "contributions": ["doc"] + }, + { + "login": "diegovilar", + "name": "Diego Vilar", + "avatar_url": "https://avatars.githubusercontent.com/u/759416?v=4", + "profile": "https://github.com/diegovilar", + "contributions": ["code"] + }, + { + "login": "gianmarcogiummarra", + "name": "Gianmarco Giummarra", + "avatar_url": "https://avatars.githubusercontent.com/u/9169021?v=4", + "profile": "https://github.com/gianmarcogiummarra", + "contributions": ["doc"] + }, + { + "login": "e-oz", + "name": "Evgeniy OZ", + "avatar_url": "https://avatars.githubusercontent.com/u/526352?v=4", + "profile": "https://jamm.dev", + "contributions": ["code"] + }, + { + "login": "ajitzero", + "name": "Ajit Panigrahi", + "avatar_url": "https://avatars.githubusercontent.com/u/19947758?v=4", + "profile": "https://beta.ajitpanigrahi.com", + "contributions": ["doc"] + }, + { + "login": "palexcast", + "name": "Alexander Castillo", + "avatar_url": "https://avatars.githubusercontent.com/u/15246162?v=4", + "profile": "https://github.com/palexcast", + "contributions": ["code"] + }, + { + "login": "fiorelozere", + "name": "Fiorelo Zere", + "avatar_url": "https://avatars.githubusercontent.com/u/47506023?v=4", + "profile": "https://github.com/fiorelozere", + "contributions": ["code"] + }, + { + "login": "robbaman", + "name": "Robert Mulder", + "avatar_url": "https://avatars.githubusercontent.com/u/4688582?v=4", + "profile": "http://www.creativeid.nl", + "contributions": ["code"] + }, + { + "login": "nelsongutidev", + "name": "Nelson Gutierrez", + "avatar_url": "https://avatars.githubusercontent.com/u/62297014?v=4", + "profile": "https://nelsonguti.dev/", + "contributions": ["doc"] + }, + { + "login": "justinrassier", + "name": "Justin Rassier", + "avatar_url": "https://avatars.githubusercontent.com/u/1228424?v=4", + "profile": "http://www.justinrassier.com", + "contributions": ["doc"] + }, + { + "login": "rlmestre", + "name": "Rafael Mestre", + "avatar_url": "https://avatars.githubusercontent.com/u/277805?v=4", + "profile": "https://github.com/rlmestre", + "contributions": ["doc"] + }, + { + "login": "swami-sanapathi", + "name": "Swami", + "avatar_url": "https://avatars.githubusercontent.com/u/40539126?v=4", + "profile": "https://github.com/swami-sanapathi", + "contributions": ["doc"] + }, + { + "login": "geometricpanda", + "name": "Jim Drury (he/him)", + "avatar_url": "https://avatars.githubusercontent.com/u/708229?v=4", + "profile": "https://www.twitch.tv/geometricjim", + "contributions": ["code"] + }, + { + "login": "RobbyRabbitman", + "name": "Robby Rabbitman", + "avatar_url": "https://avatars.githubusercontent.com/u/54601487?v=4", + "profile": "https://github.com/RobbyRabbitman", + "contributions": ["code"] + }, + { + "login": "rainerhahnekamp", + "name": "Rainer Hahnekamp", + "avatar_url": "https://avatars.githubusercontent.com/u/5721205?v=4", + "profile": "https://www.rainerhahnekamp.com", + "contributions": ["code"] + }, + { + "login": "JeanMeche", + "name": "Matthieu Riegler", + "avatar_url": "https://avatars.githubusercontent.com/u/1300985?v=4", + "profile": "http://riegler.fr", + "contributions": ["code"] + }, + { + "login": "isthatME", + "name": "isthatME", + "avatar_url": "https://avatars.githubusercontent.com/u/37561224?v=4", + "profile": "https://github.com/isthatME", + "contributions": ["doc"] + }, + { + "login": "kkachniarz220", + "name": "kkachniarz", + "avatar_url": "https://avatars.githubusercontent.com/u/50884231?v=4", + "profile": "https://github.com/kkachniarz220", + "contributions": ["code"] + }, + { + "login": "Dafnik", + "name": "Dominik", + "avatar_url": "https://avatars.githubusercontent.com/u/16242839?v=4", + "profile": "https://dafnik.me", + "contributions": ["doc"] + }, + { + "login": "nguyenphutrong", + "name": "Trong Nguyen", + "avatar_url": "https://avatars.githubusercontent.com/u/62984954?v=4", + "profile": "https://www.linkedin.com/in/trong-nguyen/", + "contributions": ["code"] + }, + { + "login": "Kiskae", + "name": "Kiskae", + "avatar_url": "https://avatars.githubusercontent.com/u/546681?v=4", + "profile": "https://github.com/Kiskae", + "contributions": ["code"] + }, + { + "login": "mauriziocescon", + "name": "Maurizio Cescon", + "avatar_url": "https://avatars.githubusercontent.com/u/3672842?v=4", + "profile": "https://github.com/mauriziocescon", + "contributions": ["code"] + }, + { + "login": "leonelvsc", + "name": "Leonel Franchelli", + "avatar_url": "https://avatars.githubusercontent.com/u/2332029?v=4", + "profile": "https://github.com/leonelvsc", + "contributions": ["code"] + }, + { + "login": "lorenzodianni", + "name": "Lorenzo D'Ianni", + "avatar_url": "https://avatars.githubusercontent.com/u/7217805?v=4", + "profile": "http://codepen.io/lorenzodianni/", + "contributions": ["code"] + }, + { + "login": "mikelgo", + "name": "Michael Berger", + "avatar_url": "https://avatars.githubusercontent.com/u/29756792?v=4", + "profile": "https://www.berger-engineering.io", + "contributions": ["code", "doc"] + }, + { + "login": "illunix", + "name": "Maksymilian Szokalski", + "avatar_url": "https://avatars.githubusercontent.com/u/42069493?v=4", + "profile": "https://github.com/illunix", + "contributions": ["doc"] + }, + { + "login": "Ostromecky", + "name": "Paweł Ostromecki", + "avatar_url": "https://avatars.githubusercontent.com/u/37908305?v=4", + "profile": "https://github.com/Ostromecky", + "contributions": ["code"] + }, + { + "login": "mattmoos", + "name": "Matthias Moos", + "avatar_url": "https://avatars.githubusercontent.com/u/25790637?v=4", + "profile": "https://github.com/mattmoos", + "contributions": ["code"] + }, + { + "login": "ShacharHarshuv", + "name": "Shahar Har-Shuv", + "avatar_url": "https://avatars.githubusercontent.com/u/4821858?v=4", + "profile": "https://github.com/ShacharHarshuv", + "contributions": ["code"] + }, + { + "login": "MillerSvt", + "name": "Svyatoslav Zaytsev", + "avatar_url": "https://avatars.githubusercontent.com/u/143048525?v=4", + "profile": "https://github.com/MillerSvt", + "contributions": ["code"] + } + ], + "contributorsPerLine": 7, + "linkToUsage": true, + "commitType": "docs" } diff --git a/libs/ngxtension/inject-local-storage/src/inject-local-storage.ts b/libs/ngxtension/inject-local-storage/src/inject-local-storage.ts index f3e3af96..fae5c3a8 100644 --- a/libs/ngxtension/inject-local-storage/src/inject-local-storage.ts +++ b/libs/ngxtension/inject-local-storage/src/inject-local-storage.ts @@ -126,7 +126,7 @@ const internalInjectLocalStorage = ( const initialStoredValue = goodTry(() => localStorage.getItem(key)); const initialValue = initialStoredValue - ? goodTry(() => parse(initialStoredValue) as R) ?? defaultValue + ? (goodTry(() => parse(initialStoredValue) as R) ?? defaultValue) : defaultValue; const internalSignal = signal(initialValue); diff --git a/libs/ngxtension/inject-params/src/inject-params.ts b/libs/ngxtension/inject-params/src/inject-params.ts index da9ecbc0..ccd571aa 100644 --- a/libs/ngxtension/inject-params/src/inject-params.ts +++ b/libs/ngxtension/inject-params/src/inject-params.ts @@ -47,7 +47,7 @@ export function injectParams( } const getParam = (params: Params) => - keyOrTransform ? params?.[keyOrTransform] ?? null : params; + keyOrTransform ? (params?.[keyOrTransform] ?? null) : params; return toSignal(route.params.pipe(map(getParam)), { initialValue: getParam(params), diff --git a/libs/ngxtension/inject-route-data/src/inject-route-data.ts b/libs/ngxtension/inject-route-data/src/inject-route-data.ts index b8498f84..7ff783f8 100644 --- a/libs/ngxtension/inject-route-data/src/inject-route-data.ts +++ b/libs/ngxtension/inject-route-data/src/inject-route-data.ts @@ -40,7 +40,7 @@ export function injectRouteData( typeof keyOrTransform === 'function' ? keyOrTransform : (data: Data) => - keyOrTransform ? data?.[keyOrTransform] ?? null : data; + keyOrTransform ? (data?.[keyOrTransform] ?? null) : data; return toSignal(route.data.pipe(map(getDataParam)), { initialValue: getDataParam(initialRouteData), diff --git a/libs/plugin/src/generators/shared-utils/migrate-signals-in-template.ts b/libs/plugin/src/generators/shared-utils/migrate-signals-in-template.ts index 1c69d384..80cb25a4 100644 --- a/libs/plugin/src/generators/shared-utils/migrate-signals-in-template.ts +++ b/libs/plugin/src/generators/shared-utils/migrate-signals-in-template.ts @@ -16,7 +16,7 @@ export function migrateTemplateVariablesToSignals( template, 'template.html', { - preserveLineEndings: true, + preserveLineEndings: true, tokenizeBlocks: true, }, );