Skip to content

Commit

Permalink
fix: handle root-path comparison @ trackers#matchPathPattern (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
paras-fundwave authored May 17, 2024
1 parent c7c202c commit a57cceb
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages/*"
],
"useWorkspaces": true,
"version": "2.0.3",
"version": "2.0.4-fix-match-path-pattern.0",
"command": {
"version": {
"message": "chore(release): publish %s \n [skip ci]"
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/fw-avatar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fw-components/fw-avatar",
"version": "2.0.3",
"version": "2.0.4-fix-match-path-pattern.0",
"description": "Avatar Web Component",
"main": "src/fw-avatar.js",
"type": "module",
Expand All @@ -15,7 +15,7 @@
"test:watch": "web-test-runner --watch"
},
"dependencies": {
"@fw-components/styles": "^2.0.3",
"@fw-components/styles": "^2.0.4-fix-match-path-pattern.0",
"@material/mwc-icon": "^0.27.0",
"@material/mwc-list": "^0.25.3",
"@material/mwc-menu": "^0.25.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/fw-dnd/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fw-components/fw-dnd",
"version": "2.0.3",
"version": "2.0.4-fix-match-path-pattern.0",
"description": "Drag-n-drop list",
"main": "fw-dnd.js",
"publishConfig": {
Expand All @@ -12,7 +12,7 @@
"author": "The Fundwave Authors",
"license": "ISC",
"dependencies": {
"@fw-components/styles": "^2.0.3",
"@fw-components/styles": "^2.0.4-fix-match-path-pattern.0",
"@polymer/iron-icons": "^3.0.1",
"@polymer/paper-button": "^3.0.1",
"@polymer/paper-icon-button": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fw-components/styles",
"version": "2.0.3",
"version": "2.0.4-fix-match-path-pattern.0",
"description": "Style library for web components",
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions packages/trackers/lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export function getSelectorForShadowRootJsPath(jsPath: string = "") {
* @returns {boolean}
**/
export function matchPathPattern(path: string | string[], pattern: string | string[]): boolean {
if (path.toString() === "/" && pattern.toString() === "/") return true;
if (!Array.isArray(path)) path = path.split("/").filter(Boolean);
if (!Array.isArray(pattern)) pattern = pattern.split("/").filter(Boolean);

Expand Down
2 changes: 1 addition & 1 deletion packages/trackers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fw-components/trackers",
"version": "2.0.3",
"version": "2.0.4-fix-match-path-pattern.0",
"description": "Usage trackers for web components",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit a57cceb

Please sign in to comment.