@deadair/plugin-sdk 0.77.6 → 0.77.7
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.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/match.text.d.ts +10 -0
- package/dist/match.text.d.ts.map +1 -1
- package/dist/plugin.config.fields.d.ts +1 -1
- package/package.json +1 -1
package/dist/match.text.d.ts
CHANGED
|
@@ -25,4 +25,14 @@ export declare function normalize(value: string): string;
|
|
|
25
25
|
* comparison misses most of a real library.
|
|
26
26
|
*/
|
|
27
27
|
export declare function baseForm(value: string): string;
|
|
28
|
+
/** How well two names agree: the same in comparison form, the same once decorations are dropped, or not at all. */
|
|
29
|
+
export type TextAgreement = 'exact' | 'base' | 'none';
|
|
30
|
+
/**
|
|
31
|
+
* How well a candidate's name agrees with the one asked about, for a matcher's score.
|
|
32
|
+
*
|
|
33
|
+
* `exact` in {@link normalize}'s form, `base` in {@link baseForm}'s (so `Roads (Live)` agrees with
|
|
34
|
+
* `Roads`, more weakly), and `none` for anything else, a missing candidate included. Three library
|
|
35
|
+
* plugins scored their candidates with this same function, each with its own copy.
|
|
36
|
+
*/
|
|
37
|
+
export declare function textAgreement(candidate: string | null | undefined, reference: string): TextAgreement;
|
|
28
38
|
//# sourceMappingURL=match.text.d.ts.map
|
package/dist/match.text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match.text.d.ts","sourceRoot":"","sources":["../src/match.text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ/C;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE9C"}
|
|
1
|
+
{"version":3,"file":"match.text.d.ts","sourceRoot":"","sources":["../src/match.text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQ/C;AAED;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,mHAAmH;AACnH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,aAAa,CAKpG"}
|
|
@@ -194,7 +194,7 @@ export interface ConfigFieldColumn {
|
|
|
194
194
|
* the whole reason it is here. A field-level `dependsOn` hides a control and the server never
|
|
195
195
|
* reads it. This says the cell DOES NOT APPLY, so the console declines to send it and the host
|
|
196
196
|
* declines to derive anything from it — which for a `url` column means the row contributes no
|
|
197
|
-
* hostname to the plugin's allowlist (`addressCells` in `plugin.
|
|
197
|
+
* hostname to the plugin's allowlist (`addressCells` in `plugin.network.settings.ts`). An address
|
|
198
198
|
* typed on a row before its kind was changed would otherwise widen the allowlist by a host the
|
|
199
199
|
* plugin can never call, which is exactly the quiet widening that path exists to refuse.
|
|
200
200
|
*
|
package/package.json
CHANGED