@twreporter/core
Advanced tools
Comparing version 1.14.0 to 1.15.0-rc.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.15.0-rc.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.14.0...@twreporter/core@1.15.0-rc.0) (2023-12-05) | ||
### Features | ||
* add foundation category set ([29259ef](https://github.com/twreporter/twreporter-npm-packages/commit/29259efe78e37aa148631a31e7f1bd5a3b2ecfe3)) | ||
# [1.14.0](https://github.com/twreporter/twreporter-npm-packages/compare/@twreporter/core@1.14.0-rc.2...@twreporter/core@1.14.0) (2023-11-20) | ||
@@ -8,0 +19,0 @@ |
@@ -35,12 +35,13 @@ "use strict"; | ||
opinion: 'opinion', | ||
photography: 'photography' | ||
photography: 'photography', | ||
foundation: 'foundation' | ||
}; | ||
var CATEGORY_PATH = categoryPath; | ||
var CATEGORY_PATH = Object.freeze(categoryPath); | ||
exports.CATEGORY_PATH = CATEGORY_PATH; | ||
var CATEGORY_ORDER = [categoryPath.world, categoryPath.humanrights, categoryPath.politicsAndSociety, categoryPath.health, categoryPath.environment, categoryPath.econ, categoryPath.culture, categoryPath.education]; // todo: update id when db ready | ||
var CATEGORY_ORDER = [categoryPath.world, categoryPath.humanrights, categoryPath.politicsAndSociety, categoryPath.health, categoryPath.environment, categoryPath.econ, categoryPath.culture, categoryPath.education]; | ||
exports.CATEGORY_ORDER = CATEGORY_ORDER; | ||
var CATEGORY_LABEL = (_CATEGORY_LABEL = {}, _defineProperty(_CATEGORY_LABEL, categoryPath.world, '國際兩岸'), _defineProperty(_CATEGORY_LABEL, categoryPath.humanrights, '人權司法'), _defineProperty(_CATEGORY_LABEL, categoryPath.politicsAndSociety, '政治社會'), _defineProperty(_CATEGORY_LABEL, categoryPath.health, '醫療健康'), _defineProperty(_CATEGORY_LABEL, categoryPath.environment, '環境永續'), _defineProperty(_CATEGORY_LABEL, categoryPath.econ, '經濟產業'), _defineProperty(_CATEGORY_LABEL, categoryPath.culture, '文化生活'), _defineProperty(_CATEGORY_LABEL, categoryPath.education, '教育校園'), _defineProperty(_CATEGORY_LABEL, categoryPath.podcast, 'Podcast'), _defineProperty(_CATEGORY_LABEL, categoryPath.opinion, '評論'), _defineProperty(_CATEGORY_LABEL, categoryPath.photography, '影像'), _defineProperty(_CATEGORY_LABEL, categoryPath.foundation, '基金會消息'), _CATEGORY_LABEL); // todo: update id when db ready | ||
exports.CATEGORY_ORDER = CATEGORY_ORDER; | ||
var CATEGORY_LABEL = (_CATEGORY_LABEL = {}, _defineProperty(_CATEGORY_LABEL, categoryPath.world, '國際兩岸'), _defineProperty(_CATEGORY_LABEL, categoryPath.humanrights, '人權司法'), _defineProperty(_CATEGORY_LABEL, categoryPath.politicsAndSociety, '政治社會'), _defineProperty(_CATEGORY_LABEL, categoryPath.health, '醫療健康'), _defineProperty(_CATEGORY_LABEL, categoryPath.environment, '環境永續'), _defineProperty(_CATEGORY_LABEL, categoryPath.econ, '經濟產業'), _defineProperty(_CATEGORY_LABEL, categoryPath.culture, '文化生活'), _defineProperty(_CATEGORY_LABEL, categoryPath.education, '教育校園'), _defineProperty(_CATEGORY_LABEL, categoryPath.podcast, 'Podcast'), _defineProperty(_CATEGORY_LABEL, categoryPath.opinion, '評論'), _defineProperty(_CATEGORY_LABEL, categoryPath.photography, '影像'), _CATEGORY_LABEL); | ||
exports.CATEGORY_LABEL = CATEGORY_LABEL; | ||
var CATEGORY_ID = (_CATEGORY_ID = {}, _defineProperty(_CATEGORY_ID, categoryPath.world, '63206383207bf7c5f871622c'), _defineProperty(_CATEGORY_ID, categoryPath.humanrights, '63206383207bf7c5f8716234'), _defineProperty(_CATEGORY_ID, categoryPath.politicsAndSociety, '63206383207bf7c5f871623d'), _defineProperty(_CATEGORY_ID, categoryPath.health, '63206383207bf7c5f8716245'), _defineProperty(_CATEGORY_ID, categoryPath.environment, '63206383207bf7c5f871624d'), _defineProperty(_CATEGORY_ID, categoryPath.econ, '63206383207bf7c5f8716254'), _defineProperty(_CATEGORY_ID, categoryPath.culture, '63206383207bf7c5f8716259'), _defineProperty(_CATEGORY_ID, categoryPath.education, '63206383207bf7c5f8716260'), _defineProperty(_CATEGORY_ID, categoryPath.podcast, '63206383207bf7c5f8716266'), _defineProperty(_CATEGORY_ID, categoryPath.opinion, '63206383207bf7c5f8716269'), _defineProperty(_CATEGORY_ID, categoryPath.photography, '574d028748fa171000c45d48'), _CATEGORY_ID); // flip CATEGORY_ID to a {id: path} object | ||
var CATEGORY_ID = (_CATEGORY_ID = {}, _defineProperty(_CATEGORY_ID, categoryPath.world, '63206383207bf7c5f871622c'), _defineProperty(_CATEGORY_ID, categoryPath.humanrights, '63206383207bf7c5f8716234'), _defineProperty(_CATEGORY_ID, categoryPath.politicsAndSociety, '63206383207bf7c5f871623d'), _defineProperty(_CATEGORY_ID, categoryPath.health, '63206383207bf7c5f8716245'), _defineProperty(_CATEGORY_ID, categoryPath.environment, '63206383207bf7c5f871624d'), _defineProperty(_CATEGORY_ID, categoryPath.econ, '63206383207bf7c5f8716254'), _defineProperty(_CATEGORY_ID, categoryPath.culture, '63206383207bf7c5f8716259'), _defineProperty(_CATEGORY_ID, categoryPath.education, '63206383207bf7c5f8716260'), _defineProperty(_CATEGORY_ID, categoryPath.podcast, '63206383207bf7c5f8716266'), _defineProperty(_CATEGORY_ID, categoryPath.opinion, '63206383207bf7c5f8716269'), _defineProperty(_CATEGORY_ID, categoryPath.photography, '574d028748fa171000c45d48'), _defineProperty(_CATEGORY_ID, categoryPath.foundation, ''), _CATEGORY_ID); // flip CATEGORY_ID to a {id: path} object | ||
@@ -118,9 +119,12 @@ exports.CATEGORY_ID = CATEGORY_ID; | ||
bookReview: 'book-review', | ||
letter: 'letter' | ||
letter: 'letter', | ||
milestone: 'milestone', | ||
award: 'award', | ||
cooperation: 'cooperation' | ||
}; | ||
var SUBCATEGORY_PATH = subcategoryPath; | ||
var SUBCATEGORY_PATH = Object.freeze(subcategoryPath); | ||
exports.SUBCATEGORY_PATH = SUBCATEGORY_PATH; | ||
var SUBCATEGORY_LABEL = (_SUBCATEGORY_LABEL = {}, _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.all, '全部'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.hk, '香港'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.china, '中國'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.us, '美國'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.jpAndKr, '日韓'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.indoPacific, '東南亞與印太'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.europe, '歐洲'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.others, '其他'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.gender, '性別'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.labor, '勞動'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.immigrant, '移工與移民'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.housingJustice, '居住正義'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.transformationalJustice, '轉型正義'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.socialAdministration, '社政安置'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.justice, '獄政司法'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.digital, '數位人權'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.election, '選舉'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.politicalPartyAndLocalFaction, '政黨與地方政治'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.policy, '政策'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.transportation, '交通'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.foodSafety, '食安'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.informationWarfare, '資訊戰'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.socialwatch, '社會觀察'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.pandemic, '疫情'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.healthPolicy, '醫療政策'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.biotech, '生物科技'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.patientAutonomy, '病人自主權利'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.psychology, '心理'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.longTermCare, '長照'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.publicHealth, '公共衛生'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.cicularEconomy, '循環經濟'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.ocean, '海洋'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.mountainAndForest, '山林'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.animal, '動物'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.climateChange, '能源與氣候變遷'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.pollution, '環境污染'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.naturalDisaster, '自然災害'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.economy, '經濟'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.energyEcon, '能源'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.agriculture, '農林漁牧'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.technology, '科技'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.peAndSports, '體育'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.movie, '電影'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.publishing, '出版'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.music, '音樂'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.dramaAndTheatre, '戲劇'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.art, '藝術'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.scientificResearch, '科學研究'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.higherEducation, '高等教育'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.teens, '青少年'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.parenting, '育兒'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.lowBirthRate, '少子化'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.theRealStory, 'The Real Story'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.onTheGround, 'On the Ground 路邊攤計畫'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.bookReview, '書摘與書評'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.letter, '讀者投書'), _SUBCATEGORY_LABEL); | ||
var SUBCATEGORY_LABEL = (_SUBCATEGORY_LABEL = {}, _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.all, '全部'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.hk, '香港'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.china, '中國'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.us, '美國'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.jpAndKr, '日韓'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.indoPacific, '東南亞與印太'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.europe, '歐洲'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.others, '其他'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.gender, '性別'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.labor, '勞動'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.immigrant, '移工與移民'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.housingJustice, '居住正義'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.transformationalJustice, '轉型正義'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.socialAdministration, '社政安置'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.justice, '獄政司法'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.digital, '數位人權'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.election, '選舉'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.politicalPartyAndLocalFaction, '政黨與地方政治'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.policy, '政策'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.transportation, '交通'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.foodSafety, '食安'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.informationWarfare, '資訊戰'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.socialwatch, '社會觀察'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.pandemic, '疫情'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.healthPolicy, '醫療政策'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.biotech, '生物科技'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.patientAutonomy, '病人自主權利'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.psychology, '心理'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.longTermCare, '長照'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.publicHealth, '公共衛生'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.cicularEconomy, '循環經濟'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.ocean, '海洋'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.mountainAndForest, '山林'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.animal, '動物'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.climateChange, '能源與氣候變遷'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.pollution, '環境污染'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.naturalDisaster, '自然災害'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.economy, '經濟'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.energyEcon, '能源'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.agriculture, '農林漁牧'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.technology, '科技'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.peAndSports, '體育'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.movie, '電影'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.publishing, '出版'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.music, '音樂'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.dramaAndTheatre, '戲劇'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.art, '藝術'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.scientificResearch, '科學研究'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.higherEducation, '高等教育'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.teens, '青少年'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.parenting, '育兒'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.lowBirthRate, '少子化'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.theRealStory, 'The Real Story'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.onTheGround, 'On the Ground 路邊攤計畫'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.bookReview, '書摘與書評'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.letter, '讀者投書'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.milestone, '營運紀事'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.award, '得獎肯定'), _defineProperty(_SUBCATEGORY_LABEL, subcategoryPath.cooperation, '公益合作'), _SUBCATEGORY_LABEL); | ||
exports.SUBCATEGORY_LABEL = SUBCATEGORY_LABEL; | ||
var SUBCATEGORY_ID = (_SUBCATEGORY_ID = {}, _defineProperty(_SUBCATEGORY_ID, subcategoryPath.all, ''), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.hk, '63206383207bf7c5f871622d'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.china, '63206383207bf7c5f871622e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.us, '63206383207bf7c5f871622f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.jpAndKr, '63206383207bf7c5f8716230'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.indoPacific, '63206383207bf7c5f8716231'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.europe, '63206383207bf7c5f8716232'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.others, '63206383207bf7c5f8716233'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.gender, '63206383207bf7c5f8716235'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.labor, '63206383207bf7c5f8716236'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.immigrant, '63206383207bf7c5f8716237'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.housingJustice, '63206383207bf7c5f8716238'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.transformationalJustice, '63206383207bf7c5f8716239'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.socialAdministration, '63206383207bf7c5f871623a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.justice, '63206383207bf7c5f871623b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.digital, '63206383207bf7c5f871623c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.election, '63206383207bf7c5f871623e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.politicalPartyAndLocalFaction, '63206383207bf7c5f871623f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.policy, '63206383207bf7c5f8716240'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.transportation, '63206383207bf7c5f8716241'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.foodSafety, '63206383207bf7c5f8716242'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.informationWarfare, '63206383207bf7c5f8716243'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.socialwatch, '63206383207bf7c5f8716244'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.pandemic, '63206383207bf7c5f8716246'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.healthPolicy, '63206383207bf7c5f8716247'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.biotech, '63206383207bf7c5f8716248'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.patientAutonomy, '63206383207bf7c5f8716249'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.psychology, '63206383207bf7c5f871624a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.longTermCare, '63206383207bf7c5f871624b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.publicHealth, '63206383207bf7c5f871624c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.cicularEconomy, '63206383207bf7c5f871624e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.ocean, '63206383207bf7c5f871624f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.mountainAndForest, '63206383207bf7c5f8716250'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.animal, '63206383207bf7c5f8716251'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.climateChange, '633407174a9cab5ac7a90738'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.pollution, '63206383207bf7c5f8716252'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.naturalDisaster, '63206383207bf7c5f8716253'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.economy, '63206383207bf7c5f8716255'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.energyEcon, '63206383207bf7c5f8716256'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.agriculture, '63206383207bf7c5f8716257'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.technology, '63206383207bf7c5f8716258'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.peAndSports, '63206383207bf7c5f871625a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.movie, '63206383207bf7c5f871625b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.publishing, '63206383207bf7c5f871625c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.music, '63206383207bf7c5f871625d'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.dramaAndTheatre, '63206383207bf7c5f871625e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.art, '63206383207bf7c5f871625f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.scientificResearch, '63206383207bf7c5f8716261'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.higherEducation, '63206383207bf7c5f8716262'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.teens, '63206383207bf7c5f8716263'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.parenting, '63206383207bf7c5f8716264'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.lowBirthRate, '63206383207bf7c5f8716265'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.theRealStory, '63206383207bf7c5f8716267'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.onTheGround, '63206383207bf7c5f8716268'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.bookReview, '63206383207bf7c5f871626a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.letter, '63206383207bf7c5f871626b'), _SUBCATEGORY_ID); // flip SUBCATEGORY_ID to a {id: path} object | ||
var SUBCATEGORY_ID = (_SUBCATEGORY_ID = {}, _defineProperty(_SUBCATEGORY_ID, subcategoryPath.all, ''), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.hk, '63206383207bf7c5f871622d'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.china, '63206383207bf7c5f871622e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.us, '63206383207bf7c5f871622f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.jpAndKr, '63206383207bf7c5f8716230'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.indoPacific, '63206383207bf7c5f8716231'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.europe, '63206383207bf7c5f8716232'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.others, '63206383207bf7c5f8716233'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.gender, '63206383207bf7c5f8716235'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.labor, '63206383207bf7c5f8716236'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.immigrant, '63206383207bf7c5f8716237'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.housingJustice, '63206383207bf7c5f8716238'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.transformationalJustice, '63206383207bf7c5f8716239'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.socialAdministration, '63206383207bf7c5f871623a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.justice, '63206383207bf7c5f871623b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.digital, '63206383207bf7c5f871623c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.election, '63206383207bf7c5f871623e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.politicalPartyAndLocalFaction, '63206383207bf7c5f871623f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.policy, '63206383207bf7c5f8716240'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.transportation, '63206383207bf7c5f8716241'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.foodSafety, '63206383207bf7c5f8716242'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.informationWarfare, '63206383207bf7c5f8716243'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.socialwatch, '63206383207bf7c5f8716244'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.pandemic, '63206383207bf7c5f8716246'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.healthPolicy, '63206383207bf7c5f8716247'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.biotech, '63206383207bf7c5f8716248'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.patientAutonomy, '63206383207bf7c5f8716249'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.psychology, '63206383207bf7c5f871624a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.longTermCare, '63206383207bf7c5f871624b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.publicHealth, '63206383207bf7c5f871624c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.cicularEconomy, '63206383207bf7c5f871624e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.ocean, '63206383207bf7c5f871624f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.mountainAndForest, '63206383207bf7c5f8716250'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.animal, '63206383207bf7c5f8716251'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.climateChange, '633407174a9cab5ac7a90738'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.pollution, '63206383207bf7c5f8716252'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.naturalDisaster, '63206383207bf7c5f8716253'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.economy, '63206383207bf7c5f8716255'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.energyEcon, '63206383207bf7c5f8716256'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.agriculture, '63206383207bf7c5f8716257'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.technology, '63206383207bf7c5f8716258'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.peAndSports, '63206383207bf7c5f871625a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.movie, '63206383207bf7c5f871625b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.publishing, '63206383207bf7c5f871625c'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.music, '63206383207bf7c5f871625d'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.dramaAndTheatre, '63206383207bf7c5f871625e'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.art, '63206383207bf7c5f871625f'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.scientificResearch, '63206383207bf7c5f8716261'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.higherEducation, '63206383207bf7c5f8716262'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.teens, '63206383207bf7c5f8716263'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.parenting, '63206383207bf7c5f8716264'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.lowBirthRate, '63206383207bf7c5f8716265'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.theRealStory, '63206383207bf7c5f8716267'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.onTheGround, '63206383207bf7c5f8716268'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.bookReview, '63206383207bf7c5f871626a'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.letter, '63206383207bf7c5f871626b'), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.milestone, ''), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.award, ''), _defineProperty(_SUBCATEGORY_ID, subcategoryPath.cooperation, ''), _SUBCATEGORY_ID); // flip SUBCATEGORY_ID to a {id: path} object | ||
@@ -148,3 +152,3 @@ exports.SUBCATEGORY_ID = SUBCATEGORY_ID; | ||
exports.GET_SUBCATEGORY_PATH_FROM_ID = GET_SUBCATEGORY_PATH_FROM_ID; | ||
var CATEGORY_SET = (_CATEGORY_SET = {}, _defineProperty(_CATEGORY_SET, categoryPath.world, [subcategoryPath.all, subcategoryPath.hk, subcategoryPath.china, subcategoryPath.us, subcategoryPath.jpAndKr, subcategoryPath.indoPacific, subcategoryPath.europe, subcategoryPath.others]), _defineProperty(_CATEGORY_SET, categoryPath.humanrights, [subcategoryPath.all, subcategoryPath.gender, subcategoryPath.labor, subcategoryPath.immigrant, subcategoryPath.housingJustice, subcategoryPath.transformationalJustice, subcategoryPath.socialAdministration, subcategoryPath.justice, subcategoryPath.digital]), _defineProperty(_CATEGORY_SET, categoryPath.politicsAndSociety, [subcategoryPath.all, subcategoryPath.election, subcategoryPath.politicalPartyAndLocalFaction, subcategoryPath.policy, subcategoryPath.transportation, subcategoryPath.foodSafety, subcategoryPath.informationWarfare, subcategoryPath.socialwatch]), _defineProperty(_CATEGORY_SET, categoryPath.health, [subcategoryPath.all, subcategoryPath.pandemic, subcategoryPath.healthPolicy, subcategoryPath.biotech, subcategoryPath.patientAutonomy, subcategoryPath.psychology, subcategoryPath.longTermCare, subcategoryPath.publicHealth]), _defineProperty(_CATEGORY_SET, categoryPath.environment, [subcategoryPath.all, subcategoryPath.ocean, subcategoryPath.mountainAndForest, subcategoryPath.animal, subcategoryPath.climateChange, subcategoryPath.cicularEconomy, subcategoryPath.pollution, subcategoryPath.naturalDisaster]), _defineProperty(_CATEGORY_SET, categoryPath.econ, [subcategoryPath.all, subcategoryPath.economy, subcategoryPath.energyEcon, subcategoryPath.agriculture, subcategoryPath.technology]), _defineProperty(_CATEGORY_SET, categoryPath.culture, [subcategoryPath.all, subcategoryPath.peAndSports, subcategoryPath.movie, subcategoryPath.publishing, subcategoryPath.music, subcategoryPath.dramaAndTheatre, subcategoryPath.art]), _defineProperty(_CATEGORY_SET, categoryPath.education, [subcategoryPath.all, subcategoryPath.scientificResearch, subcategoryPath.higherEducation, subcategoryPath.teens, subcategoryPath.parenting, subcategoryPath.lowBirthRate]), _defineProperty(_CATEGORY_SET, categoryPath.podcast, [subcategoryPath.all, subcategoryPath.theRealStory, subcategoryPath.onTheGround]), _defineProperty(_CATEGORY_SET, categoryPath.opinion, [subcategoryPath.all, subcategoryPath.bookReview, subcategoryPath.letter]), _CATEGORY_SET); | ||
var CATEGORY_SET = (_CATEGORY_SET = {}, _defineProperty(_CATEGORY_SET, categoryPath.world, [subcategoryPath.all, subcategoryPath.hk, subcategoryPath.china, subcategoryPath.us, subcategoryPath.jpAndKr, subcategoryPath.indoPacific, subcategoryPath.europe, subcategoryPath.others]), _defineProperty(_CATEGORY_SET, categoryPath.humanrights, [subcategoryPath.all, subcategoryPath.gender, subcategoryPath.labor, subcategoryPath.immigrant, subcategoryPath.housingJustice, subcategoryPath.transformationalJustice, subcategoryPath.socialAdministration, subcategoryPath.justice, subcategoryPath.digital]), _defineProperty(_CATEGORY_SET, categoryPath.politicsAndSociety, [subcategoryPath.all, subcategoryPath.election, subcategoryPath.politicalPartyAndLocalFaction, subcategoryPath.policy, subcategoryPath.transportation, subcategoryPath.foodSafety, subcategoryPath.informationWarfare, subcategoryPath.socialwatch]), _defineProperty(_CATEGORY_SET, categoryPath.health, [subcategoryPath.all, subcategoryPath.pandemic, subcategoryPath.healthPolicy, subcategoryPath.biotech, subcategoryPath.patientAutonomy, subcategoryPath.psychology, subcategoryPath.longTermCare, subcategoryPath.publicHealth]), _defineProperty(_CATEGORY_SET, categoryPath.environment, [subcategoryPath.all, subcategoryPath.ocean, subcategoryPath.mountainAndForest, subcategoryPath.animal, subcategoryPath.climateChange, subcategoryPath.cicularEconomy, subcategoryPath.pollution, subcategoryPath.naturalDisaster]), _defineProperty(_CATEGORY_SET, categoryPath.econ, [subcategoryPath.all, subcategoryPath.economy, subcategoryPath.energyEcon, subcategoryPath.agriculture, subcategoryPath.technology]), _defineProperty(_CATEGORY_SET, categoryPath.culture, [subcategoryPath.all, subcategoryPath.peAndSports, subcategoryPath.movie, subcategoryPath.publishing, subcategoryPath.music, subcategoryPath.dramaAndTheatre, subcategoryPath.art]), _defineProperty(_CATEGORY_SET, categoryPath.education, [subcategoryPath.all, subcategoryPath.scientificResearch, subcategoryPath.higherEducation, subcategoryPath.teens, subcategoryPath.parenting, subcategoryPath.lowBirthRate]), _defineProperty(_CATEGORY_SET, categoryPath.podcast, [subcategoryPath.all, subcategoryPath.theRealStory, subcategoryPath.onTheGround]), _defineProperty(_CATEGORY_SET, categoryPath.opinion, [subcategoryPath.all, subcategoryPath.bookReview, subcategoryPath.letter]), _defineProperty(_CATEGORY_SET, categoryPath.foundation, [subcategoryPath.all, subcategoryPath.milestone, subcategoryPath.award, subcategoryPath.cooperation]), _CATEGORY_SET); | ||
exports.CATEGORY_SET = CATEGORY_SET; | ||
@@ -151,0 +155,0 @@ var _default = { |
@@ -6,4 +6,4 @@ "use strict"; | ||
}); | ||
exports.MEMBERSHIP = void 0; | ||
var MEMBERSHIP = true; | ||
exports.MEMBERSHIP = MEMBERSHIP; | ||
exports.FOUNDATION_CATEGORY_SET = void 0; | ||
var FOUNDATION_CATEGORY_SET = true; | ||
exports.FOUNDATION_CATEGORY_SET = FOUNDATION_CATEGORY_SET; |
{ | ||
"name": "@twreporter/core", | ||
"version": "1.14.0", | ||
"version": "1.15.0-rc.0", | ||
"main": "lib/index.js", | ||
@@ -22,3 +22,3 @@ "repository": "https://github.com/twreporter/twreporter-npm-packages.git", | ||
], | ||
"gitHead": "ebe4cca68d577c8088974fbb5dadd9ec589cadba" | ||
"gitHead": "7b84e49e2dc5533fc9af185daa6d1bee406032e0" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
98349
37
1125
2