Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Jan 30, 2024
1 parent 5b0568c commit 950b8b7
Show file tree
Hide file tree
Showing 14 changed files with 135 additions and 56 deletions.
8 changes: 8 additions & 0 deletions dist/commonjs/atomic.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ export interface StringComparisonOptions {
* Useful when only the differences in content are important, but not the order of the content
* */
reorder?: boolean;
/**
* When `reorder` is used this determines how to split each string into the tokens that will be reordered.
*
* The value of this property is used in String.split() -- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split#separator
*
* @default " "
* */
delimiter?: string | RegExp;
}
export interface StringSamenessResult {
strategies: {
Expand Down
2 changes: 1 addition & 1 deletion dist/commonjs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ComparisonStrategyResult, StringComparisonOptions, StringSamenessResult
import { strDefaultTransforms, transforms } from "./normalization/index.js";
declare const defaultStrategies: import("./atomic.js").ComparisonStrategy<import("./atomic.js").ComparisonStrategyResultObject>[];
declare const stringSameness: (valA: string, valB: string, options?: StringComparisonOptions) => StringSamenessResult;
export declare const reorderStr: (cleanA: string, cleanB: string, options?: StringComparisonOptions) => string;
export declare const reorderStr: (strA: string, strB: string, options?: StringComparisonOptions) => [string, string];
declare const createStringSameness: (defaults: StringComparisonOptions) => (valA: string, valB: string, options?: StringComparisonOptions) => StringSamenessResult;
declare const strategies: {
diceStrategy: import("./atomic.js").ComparisonStrategy<import("./atomic.js").ComparisonStrategyResultObject>;
Expand Down
72 changes: 50 additions & 22 deletions dist/commonjs/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commonjs/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/commonjs/normalization/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ declare const lowercase: StringTransformFunc;
declare const trim: StringTransformFunc;
declare const replaceUnicode: StringTransformFunc;
declare const removePunctuation: StringTransformFunc;
declare const removeNonAlphanumeric: StringTransformFunc;
declare const removeWhitespace: StringTransformFunc;
declare const replaceMultiWhitespace: StringTransformFunc;
declare const transforms: {
Expand All @@ -14,4 +15,4 @@ declare const transforms: {
removePunctuation: StringTransformFunc;
};
declare const strDefaultTransforms: StringTransformFunc[];
export { lowercase, trim, replaceUnicode, removePunctuation, removeWhitespace, replaceMultiWhitespace, transforms, strDefaultTransforms };
export { lowercase, trim, replaceUnicode, removePunctuation, removeWhitespace, removeNonAlphanumeric, replaceMultiWhitespace, transforms, strDefaultTransforms };
7 changes: 5 additions & 2 deletions dist/commonjs/normalization/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commonjs/normalization/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 950b8b7

Please sign in to comment.