@jini-ai/registry 0.6.15-rc.1 → 0.6.15
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/static-backend.js +4 -4
- package/package.json +9 -9
package/dist/static-backend.js
CHANGED
|
@@ -211,10 +211,10 @@ function listFilterPredicate(filter) {
|
|
|
211
211
|
const publisher = filter.publisher?.toLowerCase();
|
|
212
212
|
const tags = lowercased(filter.tags);
|
|
213
213
|
const terms = queryTerms(filter.query ?? '');
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
const visible = (entry) => filter.includeYanked === true || !entry.yanked;
|
|
215
|
+
const fromPublisher = (entry) => !publisher || publishedBy(entry, publisher);
|
|
216
|
+
const matchesQuery = (entry) => terms.length === 0 || terms.some((term) => searchHaystack(entry).includes(term));
|
|
217
|
+
return (entry) => visible(entry) && fromPublisher(entry) && hasEveryTag(entry, tags) && matchesQuery(entry);
|
|
218
218
|
}
|
|
219
219
|
/** @internal True when the (already lowercased) `publisher` is the entry's publisher id or GitHub handle. */
|
|
220
220
|
function publishedBy(entry, publisher) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/registry",
|
|
3
|
-
"version": "0.6.15
|
|
3
|
+
"version": "0.6.15",
|
|
4
4
|
"description": "Pluggable content-registry backends (static, GitHub, database) and semver specifier resolution over @jini-ai/protocol’s registry wire types.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"registry": "https://registry.npmjs.org"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@jini-ai/protocol": "^0.6.15
|
|
78
|
-
"@jini-ai/core": "^0.6.15
|
|
77
|
+
"@jini-ai/protocol": "^0.6.15",
|
|
78
|
+
"@jini-ai/core": "^0.6.15"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"better-sqlite3": "^13.0.0",
|
|
82
|
-
"@jini-ai/db": "^0.6.
|
|
83
|
-
"@jini-ai/platform": "^0.6.
|
|
82
|
+
"@jini-ai/db": "^0.6.10",
|
|
83
|
+
"@jini-ai/platform": "^0.6.10"
|
|
84
84
|
},
|
|
85
85
|
"peerDependenciesMeta": {
|
|
86
86
|
"better-sqlite3": {
|
|
@@ -96,10 +96,10 @@
|
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@types/better-sqlite3": "^7.6.11",
|
|
98
98
|
"better-sqlite3": "^13.0.0",
|
|
99
|
-
"@jini-ai/db": "0.6.15
|
|
100
|
-
"@jini-ai/
|
|
101
|
-
"@jini-ai/
|
|
102
|
-
"@jini-ai/
|
|
99
|
+
"@jini-ai/db": "0.6.15",
|
|
100
|
+
"@jini-ai/protocol": "^0.6.15",
|
|
101
|
+
"@jini-ai/core": "^0.6.15",
|
|
102
|
+
"@jini-ai/platform": "^0.6.15"
|
|
103
103
|
},
|
|
104
104
|
"scripts": {
|
|
105
105
|
"build": "tsc -p tsconfig.json",
|