diff --git a/src/common/constant.js b/src/common/constant.js index 9dd24a4..fe80cf9 100644 --- a/src/common/constant.js +++ b/src/common/constant.js @@ -4,7 +4,9 @@ module.exports = { NATIVE_KEY_WORD: "solana-program", ANCHOR_KEY_WORD: "anchor-lang", ANCHOR_WEB3_KEY_WORD: "serum/anchor", + ANCHOR_WEB3_CORAL_KEY_WORD: "coral-xyz/anchor", METAPLEX_KEY_WORD: "metaplex/js", + METAPLEX_FNDN_KEY_WORD: "metaplex-foundation", GO_KEY_WORD: "gagliardetto/solana", DOT_NET_KEY_WORD: "Solnet.Rpc", WEB3_JS_TYPE: "web3.js", diff --git a/src/crons/github.cron.js b/src/crons/github.cron.js index 9e59a1b..381aaa8 100644 --- a/src/crons/github.cron.js +++ b/src/crons/github.cron.js @@ -23,38 +23,34 @@ let searchIndex = 0; let SEARCHFILENAMESORDER = [ "package.json", - "package-lock.json", - "yarn.lock", + "package.json", "mod.go", "Cargo.toml", "Cargo.toml", "package.json", - "package-lock.json", - "yarn.lock", "package.json", - "package-lock.json", - "yarn.lock", + "package.json", "*.csproj", ]; + let SEARCHKEYWORDORDER = [ common.constant.ANCHOR_WEB3_KEY_WORD, - common.constant.ANCHOR_WEB3_KEY_WORD, - common.constant.ANCHOR_WEB3_KEY_WORD, + common.constant.ANCHOR_WEB3_CORAL_KEY_WORD, common.constant.GO_KEY_WORD, common.constant.NATIVE_KEY_WORD, common.constant.ANCHOR_KEY_WORD, common.constant.METAPLEX_KEY_WORD, - common.constant.METAPLEX_KEY_WORD, - common.constant.METAPLEX_KEY_WORD, - common.constant.SOLANA_WEB3_KEY_WORD, - common.constant.SOLANA_WEB3_KEY_WORD, + common.constant.METAPLEX_FNDN_KEY_WORD, common.constant.SOLANA_WEB3_KEY_WORD, common.constant.DOT_NET_KEY_WORD, ]; + const TYPEMAP = { [common.constant.SOLANA_WEB3_KEY_WORD]: common.constant.WEB3_JS_TYPE, [common.constant.ANCHOR_WEB3_KEY_WORD]: common.constant.ANCHOR_JS_TYPE, + [common.constant.ANCHOR_WEB3_CORAL_KEY_WORD]: common.constant.ANCHOR_JS_TYPE, [common.constant.METAPLEX_KEY_WORD]: common.constant.NFT_TYPE, + [common.constant.METAPLEX_FNDN_KEY_WORD]: common.constant.NFT_TYPE, [common.constant.GO_KEY_WORD]: common.constant.GO_TYPE, [common.constant.NATIVE_KEY_WORD]: common.constant.NATIVE_TYPE, [common.constant.ANCHOR_KEY_WORD]: common.constant.ANCHOR_TYPE,