Skip to content

Commit

Permalink
🛠️ [Utilities] Remove all utilities that are replaced by beeftools
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Apr 28, 2024
1 parent ae28101 commit bda5d9d
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 89 deletions.
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export {socialitePrefix} from './prefixes';
export {Socialite} from './socialite';

export {
objFilterNullish,
filterNetworkProperties,
mergeRegExp,
getDiscordPreferredUrl,
Expand Down
25 changes: 0 additions & 25 deletions src/utilities/general.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/utilities/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export {objFilterNullish} from './general';
export {filterNetworkProperties} from './network';
export {mergeRegExp} from './regexp';
export {
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/network.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {arrayDedupe, typedObjectKeys} from 'beeftools';
import type {
SocialiteNetwork,
NetworkSubset,
SocialiteNetworkProperties,
} from '../types';
import {arrayDedupe, typedObjectKeys} from './general';

export function filterNetworkProperties(
network: SocialiteNetwork,
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/regexp.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {arrayDedupe} from 'beeftools';
import type {MergedRegExp} from '../types';
import {arrayDedupe} from './general';

export function mergeRegExp(...expressions: RegExp[]): MergedRegExp {
const source = expressions.map((exp) => exp.source).join('');
Expand Down
59 changes: 0 additions & 59 deletions src/utilities/tests/general.test.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/utilities/url.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {objFilterNullish} from 'beeftools';

import {discordPreferredUrls, profileReplacement, urlRegExp} from '../capture';
import type {
DiscordUrlCriteria,
UrlGroupSubset,
ParsedUrlGroups,
} from '../types';
import {objFilterNullish} from './general';

function updateGroupsWithSubdomain(groups: UrlGroupSubset): UrlGroupSubset {
const {domain} = groups;
Expand Down

0 comments on commit bda5d9d

Please sign in to comment.