@heripo/research-radar 1.0.1 → 1.0.2
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.
- package/dist/index.cjs +16 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +16 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2162,29 +2162,35 @@ class CrawlingProvider {
|
|
|
2162
2162
|
/**
|
|
2163
2163
|
* Date service implementation
|
|
2164
2164
|
* - Provides current date and display date strings
|
|
2165
|
+
* - Always returns Korea Standard Time (KST, Asia/Seoul) regardless of server timezone
|
|
2165
2166
|
*/
|
|
2166
2167
|
class DateService {
|
|
2167
2168
|
/**
|
|
2168
2169
|
* Get current date in ISO format (YYYY-MM-DD)
|
|
2170
|
+
* - Always returns date in Korea Standard Time (UTC+9)
|
|
2169
2171
|
* @returns ISO date string (e.g., "2024-10-15")
|
|
2170
2172
|
*/
|
|
2171
2173
|
getCurrentISODateString() {
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
const
|
|
2175
|
-
|
|
2176
|
-
|
|
2174
|
+
// Use Intl.DateTimeFormat to get date in Korea timezone
|
|
2175
|
+
// 'en-CA' locale returns YYYY-MM-DD format by default
|
|
2176
|
+
const kstDate = new Date().toLocaleDateString('en-CA', {
|
|
2177
|
+
timeZone: 'Asia/Seoul',
|
|
2178
|
+
});
|
|
2179
|
+
return kstDate;
|
|
2177
2180
|
}
|
|
2178
2181
|
/**
|
|
2179
2182
|
* Get formatted display date string
|
|
2183
|
+
* - Always returns date in Korea Standard Time (UTC+9)
|
|
2180
2184
|
* @returns Korean formatted date (e.g., "2024년 10월 15일")
|
|
2181
2185
|
*/
|
|
2182
2186
|
getDisplayDateString() {
|
|
2183
|
-
const
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2187
|
+
const formatter = new Intl.DateTimeFormat('ko-KR', {
|
|
2188
|
+
timeZone: 'Asia/Seoul',
|
|
2189
|
+
year: 'numeric',
|
|
2190
|
+
month: 'long',
|
|
2191
|
+
day: 'numeric',
|
|
2192
|
+
});
|
|
2193
|
+
return formatter.format(new Date());
|
|
2188
2194
|
}
|
|
2189
2195
|
}
|
|
2190
2196
|
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -150,15 +150,18 @@ declare function generateNewsletter(dependencies: NewsletterGeneratorDependencie
|
|
|
150
150
|
/**
|
|
151
151
|
* Date service implementation
|
|
152
152
|
* - Provides current date and display date strings
|
|
153
|
+
* - Always returns Korea Standard Time (KST, Asia/Seoul) regardless of server timezone
|
|
153
154
|
*/
|
|
154
155
|
declare class DateService implements DateService$1 {
|
|
155
156
|
/**
|
|
156
157
|
* Get current date in ISO format (YYYY-MM-DD)
|
|
158
|
+
* - Always returns date in Korea Standard Time (UTC+9)
|
|
157
159
|
* @returns ISO date string (e.g., "2024-10-15")
|
|
158
160
|
*/
|
|
159
161
|
getCurrentISODateString(): IsoDateString;
|
|
160
162
|
/**
|
|
161
163
|
* Get formatted display date string
|
|
164
|
+
* - Always returns date in Korea Standard Time (UTC+9)
|
|
162
165
|
* @returns Korean formatted date (e.g., "2024년 10월 15일")
|
|
163
166
|
*/
|
|
164
167
|
getDisplayDateString(): string;
|
package/dist/index.js
CHANGED
|
@@ -2141,29 +2141,35 @@ class CrawlingProvider {
|
|
|
2141
2141
|
/**
|
|
2142
2142
|
* Date service implementation
|
|
2143
2143
|
* - Provides current date and display date strings
|
|
2144
|
+
* - Always returns Korea Standard Time (KST, Asia/Seoul) regardless of server timezone
|
|
2144
2145
|
*/
|
|
2145
2146
|
class DateService {
|
|
2146
2147
|
/**
|
|
2147
2148
|
* Get current date in ISO format (YYYY-MM-DD)
|
|
2149
|
+
* - Always returns date in Korea Standard Time (UTC+9)
|
|
2148
2150
|
* @returns ISO date string (e.g., "2024-10-15")
|
|
2149
2151
|
*/
|
|
2150
2152
|
getCurrentISODateString() {
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
const
|
|
2154
|
-
|
|
2155
|
-
|
|
2153
|
+
// Use Intl.DateTimeFormat to get date in Korea timezone
|
|
2154
|
+
// 'en-CA' locale returns YYYY-MM-DD format by default
|
|
2155
|
+
const kstDate = new Date().toLocaleDateString('en-CA', {
|
|
2156
|
+
timeZone: 'Asia/Seoul',
|
|
2157
|
+
});
|
|
2158
|
+
return kstDate;
|
|
2156
2159
|
}
|
|
2157
2160
|
/**
|
|
2158
2161
|
* Get formatted display date string
|
|
2162
|
+
* - Always returns date in Korea Standard Time (UTC+9)
|
|
2159
2163
|
* @returns Korean formatted date (e.g., "2024년 10월 15일")
|
|
2160
2164
|
*/
|
|
2161
2165
|
getDisplayDateString() {
|
|
2162
|
-
const
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2166
|
+
const formatter = new Intl.DateTimeFormat('ko-KR', {
|
|
2167
|
+
timeZone: 'Asia/Seoul',
|
|
2168
|
+
year: 'numeric',
|
|
2169
|
+
month: 'long',
|
|
2170
|
+
day: 'numeric',
|
|
2171
|
+
});
|
|
2172
|
+
return formatter.format(new Date());
|
|
2167
2173
|
}
|
|
2168
2174
|
}
|
|
2169
2175
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@heripo/research-radar",
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.2",
|
|
6
6
|
"description": "AI-driven intelligence for Korean cultural heritage. This package serves as both a ready-to-use newsletter service and a practical implementation example for the LLM-Newsletter-Kit.",
|
|
7
7
|
"main": "dist/index.cjs",
|
|
8
8
|
"module": "dist/index.js",
|