@openctx/client
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -27,3 +27,3 @@ import { LRUCache } from 'lru-cache'; | ||
const itemsChanges = (params, { emitPartial = true } = { emitPartial: true }) => { | ||
const configuration = from(env.configuration(params.file)).pipe(map(config => { | ||
const configuration = from(env.configuration(params.uri)).pipe(map(config => { | ||
if (!config.enable) { | ||
@@ -30,0 +30,0 @@ config = { ...config, providers: {} }; |
@@ -25,3 +25,3 @@ import { scopedLogger } from '../logger'; | ||
if (!capable) { | ||
logger?.(`skipping items for ${JSON.stringify(params.file)} because it did not match the provider's selector`); | ||
logger?.(`skipping items for ${JSON.stringify(params.uri)} because it did not match the provider's selector`); | ||
return null; | ||
@@ -28,0 +28,0 @@ } |
@@ -15,3 +15,3 @@ // | ||
return params => { | ||
const filePath = trimLeadingSlash(new URL(params.file).pathname); | ||
const filePath = trimLeadingSlash(new URL(params.uri).pathname); | ||
return matchFuncs.some(matchFunc => matchFunc(filePath, params.content)); | ||
@@ -18,0 +18,0 @@ }; |
{ | ||
"name": "@openctx/client", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "OpenCtx client library", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"rxjs": "^7.8.1", | ||
"@openctx/protocol": "0.0.3", | ||
"@openctx/schema": "0.0.3", | ||
"@openctx/provider": "0.0.4" | ||
"@openctx/protocol": "0.0.4", | ||
"@openctx/provider": "0.0.5", | ||
"@openctx/schema": "0.0.3" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -174,3 +174,3 @@ import type { ItemsParams, ProviderSettings } from '@openctx/protocol' | ||
): Observable<Item<R>[]> => { | ||
const configuration: Observable<Configuration> = from(env.configuration(params.file)).pipe( | ||
const configuration: Observable<Configuration> = from(env.configuration(params.uri)).pipe( | ||
map(config => { | ||
@@ -177,0 +177,0 @@ if (!config.enable) { |
@@ -53,3 +53,3 @@ import type { ItemsParams, ItemsResult, ProviderSettings } from '@openctx/protocol' | ||
`skipping items for ${JSON.stringify( | ||
params.file | ||
params.uri | ||
)} because it did not match the provider's selector` | ||
@@ -56,0 +56,0 @@ ) |
@@ -17,3 +17,3 @@ import type { ItemsParams, Selector } from '@openctx/protocol' | ||
return params => { | ||
const filePath = trimLeadingSlash(new URL(params.file).pathname) | ||
const filePath = trimLeadingSlash(new URL(params.uri).pathname) | ||
return matchFuncs.some(matchFunc => matchFunc(filePath, params.content)) | ||
@@ -20,0 +20,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
98040
+ Added@openctx/protocol@0.0.4(transitive)
+ Added@openctx/provider@0.0.5(transitive)
- Removed@openctx/protocol@0.0.3(transitive)
- Removed@openctx/provider@0.0.4(transitive)
Updated@openctx/protocol@0.0.4
Updated@openctx/provider@0.0.5