@readme/markdown 9.5.0 → 9.6.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.
@@ -1,4 +1,13 @@
1
+ import type { Gemoji } from 'gemoji';
2
+ export declare const owlmoji: {
3
+ emoji: string;
4
+ names: string[];
5
+ tags: string[];
6
+ description: string;
7
+ category: string;
8
+ }[];
1
9
  export default class Owlmoji {
2
10
  static kind: (name: string) => "gemoji" | "fontawesome" | "owlmoji";
3
11
  static nameToEmoji: Record<string, string>;
12
+ static owlmoji: Gemoji[];
4
13
  }
package/dist/main.js CHANGED
@@ -58000,18 +58000,56 @@ const emojiToName = {
58000
58000
 
58001
58001
  ;// ./lib/owlmoji.ts
58002
58002
 
58003
- const owlmoji = ['owlbert-books', 'owlbert-mask', 'owlbert', 'owlbert-reading', 'owlbert-thinking'];
58003
+ const owlmoji = [
58004
+ {
58005
+ emoji: '', // This `emoji` property doesn't get consumed, but is required for type consistency
58006
+ names: ['owlbert'],
58007
+ tags: ['owlbert'],
58008
+ description: 'an owlbert for any occasion',
58009
+ category: 'ReadMe',
58010
+ },
58011
+ {
58012
+ emoji: '',
58013
+ names: ['owlbert-books'],
58014
+ tags: ['owlbert'],
58015
+ description: 'owlbert carrying books',
58016
+ category: 'ReadMe',
58017
+ },
58018
+ {
58019
+ emoji: '',
58020
+ names: ['owlbert-mask'],
58021
+ tags: ['owlbert'],
58022
+ description: 'owlbert with a respirator',
58023
+ category: 'ReadMe',
58024
+ },
58025
+ {
58026
+ emoji: '',
58027
+ names: ['owlbert-reading'],
58028
+ tags: ['owlbert'],
58029
+ description: 'owlbert reading',
58030
+ category: 'ReadMe',
58031
+ },
58032
+ {
58033
+ emoji: '',
58034
+ names: ['owlbert-thinking'],
58035
+ tags: ['owlbert'],
58036
+ description: 'owlbert thinking',
58037
+ category: 'ReadMe',
58038
+ },
58039
+ ];
58040
+ const owlmojiNames = owlmoji.flatMap(emoji => emoji.names);
58004
58041
  class Owlmoji {
58005
58042
  static kind = (name) => {
58006
58043
  if (name in nameToEmoji)
58007
58044
  return 'gemoji';
58008
58045
  else if (name.match(/^fa-/))
58009
58046
  return 'fontawesome';
58010
- else if (owlmoji.includes(name))
58047
+ else if (owlmojiNames.includes(name))
58011
58048
  return 'owlmoji';
58012
58049
  return null;
58013
58050
  };
58014
58051
  static nameToEmoji = nameToEmoji;
58052
+ static owlmoji = gemoji.concat(owlmoji).sort((a, b) => a.names[0].localeCompare(b.names[0]));
58015
58053
  }
58016
58054
 
58017
58055
  ;// ./processor/transform/gemoji+.ts
package/dist/main.node.js CHANGED
@@ -74910,18 +74910,56 @@ const emojiToName = {
74910
74910
 
74911
74911
  ;// ./lib/owlmoji.ts
74912
74912
 
74913
- const owlmoji = ['owlbert-books', 'owlbert-mask', 'owlbert', 'owlbert-reading', 'owlbert-thinking'];
74913
+ const owlmoji = [
74914
+ {
74915
+ emoji: '', // This `emoji` property doesn't get consumed, but is required for type consistency
74916
+ names: ['owlbert'],
74917
+ tags: ['owlbert'],
74918
+ description: 'an owlbert for any occasion',
74919
+ category: 'ReadMe',
74920
+ },
74921
+ {
74922
+ emoji: '',
74923
+ names: ['owlbert-books'],
74924
+ tags: ['owlbert'],
74925
+ description: 'owlbert carrying books',
74926
+ category: 'ReadMe',
74927
+ },
74928
+ {
74929
+ emoji: '',
74930
+ names: ['owlbert-mask'],
74931
+ tags: ['owlbert'],
74932
+ description: 'owlbert with a respirator',
74933
+ category: 'ReadMe',
74934
+ },
74935
+ {
74936
+ emoji: '',
74937
+ names: ['owlbert-reading'],
74938
+ tags: ['owlbert'],
74939
+ description: 'owlbert reading',
74940
+ category: 'ReadMe',
74941
+ },
74942
+ {
74943
+ emoji: '',
74944
+ names: ['owlbert-thinking'],
74945
+ tags: ['owlbert'],
74946
+ description: 'owlbert thinking',
74947
+ category: 'ReadMe',
74948
+ },
74949
+ ];
74950
+ const owlmojiNames = owlmoji.flatMap(emoji => emoji.names);
74914
74951
  class Owlmoji {
74915
74952
  static kind = (name) => {
74916
74953
  if (name in nameToEmoji)
74917
74954
  return 'gemoji';
74918
74955
  else if (name.match(/^fa-/))
74919
74956
  return 'fontawesome';
74920
- else if (owlmoji.includes(name))
74957
+ else if (owlmojiNames.includes(name))
74921
74958
  return 'owlmoji';
74922
74959
  return null;
74923
74960
  };
74924
74961
  static nameToEmoji = nameToEmoji;
74962
+ static owlmoji = gemoji.concat(owlmoji).sort((a, b) => a.names[0].localeCompare(b.names[0]));
74925
74963
  }
74926
74964
 
74927
74965
  ;// ./processor/transform/gemoji+.ts