@ztimson/momentum 0.50.4 → 0.50.5
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.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -860,7 +860,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
860
860
|
const parsedFind = makeArray(filter).map((pe) => new PathEvent(pe));
|
|
861
861
|
return parsedTarget.filter((t) => {
|
|
862
862
|
if (!t.fullPath && t.all) return true;
|
|
863
|
-
return !!parsedFind.find((f) =>
|
|
863
|
+
return !!parsedFind.find((f) => f.fullPath.startsWith(t.fullPath) && (f.all || t.all || t.methods.intersection(f.methods).length));
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
866
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -856,7 +856,7 @@ class PathEvent {
|
|
|
856
856
|
const parsedFind = makeArray(filter).map((pe) => new PathEvent(pe));
|
|
857
857
|
return parsedTarget.filter((t) => {
|
|
858
858
|
if (!t.fullPath && t.all) return true;
|
|
859
|
-
return !!parsedFind.find((f) =>
|
|
859
|
+
return !!parsedFind.find((f) => f.fullPath.startsWith(t.fullPath) && (f.all || t.all || t.methods.intersection(f.methods).length));
|
|
860
860
|
});
|
|
861
861
|
}
|
|
862
862
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ztimson/momentum",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.5",
|
|
4
4
|
"description": "Client library for momentum",
|
|
5
5
|
"keywords": ["Momentum"],
|
|
6
6
|
"author": "Zak Timson <zaktimson@gmail.com>",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"postbuild": "node -e \"const fs=require('fs');fs.cpSync('dist/index.mjs','../server/public/momentum.mjs');fs.cpSync('dist/index.cjs','../server/public/momentum.js')\""
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ztimson/utils": "0.23.
|
|
27
|
+
"@ztimson/utils": "0.23.7",
|
|
28
28
|
"var-persist": "^1.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|