guessit-js 5.0.0 → 5.1.0
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/api.d.ts +13 -0
- package/dist/guessit-js.cjs +3 -3
- package/dist/guessit-js.cjs.map +1 -1
- package/dist/guessit-js.js +1439 -1394
- package/dist/guessit-js.js.map +1 -1
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -27,6 +27,19 @@ export declare class GuessItApi {
|
|
|
27
27
|
private _config;
|
|
28
28
|
private _loadConfigOptions;
|
|
29
29
|
private _advancedConfig;
|
|
30
|
+
/**
|
|
31
|
+
* Merged (config + call options) objects per distinct options value, for the
|
|
32
|
+
* config they were merged from. Merging deep-copies the whole config, which
|
|
33
|
+
* costs about a third of a parse; callers mostly repeat a handful of option
|
|
34
|
+
* sets, so each is merged once. Bounded, oldest evicted first. Rules never
|
|
35
|
+
* write to the merged options (guessitMany already shares one per batch).
|
|
36
|
+
* Same idea as upstream guessit#1008.
|
|
37
|
+
*/
|
|
38
|
+
private _mergedCache;
|
|
39
|
+
private _mergedCacheConfig;
|
|
40
|
+
private static readonly MERGED_CACHE_SIZE;
|
|
41
|
+
private _lastBuilder;
|
|
42
|
+
private _lastOverrideKey;
|
|
30
43
|
reset(): void;
|
|
31
44
|
configure(options?: RawOptions, rulesBuilder?: (config: AdvancedConfig) => Rebulk, force?: boolean, sanitizeOptions?: boolean): Record<string, unknown>;
|
|
32
45
|
guessit(string: string, options?: RawOptions): GuessItResult;
|