@vitnode/core 1.2.0-canary.77 → 1.2.0-canary.78

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.
Files changed (39) hide show
  1. package/dist/scripts/i18n-check.d.ts.map +1 -1
  2. package/dist/scripts/i18n-create.d.ts +20 -0
  3. package/dist/scripts/i18n-create.d.ts.map +1 -0
  4. package/dist/scripts/i18n-delete.d.ts +4 -0
  5. package/dist/scripts/i18n-delete.d.ts.map +1 -0
  6. package/dist/scripts/i18n-shared.d.ts +51 -0
  7. package/dist/scripts/i18n-shared.d.ts.map +1 -0
  8. package/dist/scripts/i18n-update.d.ts +3 -0
  9. package/dist/scripts/i18n-update.d.ts.map +1 -0
  10. package/dist/scripts/scripts.js +58 -4
  11. package/dist/src/api/lib/plugin.d.ts.map +1 -1
  12. package/dist/src/api/middlewares/global.middleware.d.ts.map +1 -1
  13. package/dist/src/api/middlewares/global.middleware.js +1 -1
  14. package/dist/src/components/languages-provider.d.ts.map +1 -1
  15. package/dist/src/components/languages-provider.js +1 -1
  16. package/dist/src/config.js +1 -1
  17. package/dist/src/database/languages.d.ts +0 -17
  18. package/dist/src/database/languages.d.ts.map +1 -1
  19. package/dist/src/database/languages.js +1 -1
  20. package/dist/src/lib/i18n/load-messages.d.ts.map +1 -1
  21. package/dist/src/lib/i18n/load-messages.js +1 -1
  22. package/dist/src/lib/i18n/sources.d.ts +8 -1
  23. package/dist/src/lib/i18n/sources.d.ts.map +1 -1
  24. package/dist/src/lib/i18n/sources.js +1 -1
  25. package/dist/src/lib/i18n/types.d.ts +2 -0
  26. package/dist/src/lib/i18n/types.d.ts.map +1 -1
  27. package/dist/src/lib/plugin.d.ts.map +1 -1
  28. package/dist/src/locales/api/en.json +19 -0
  29. package/dist/src/locales/api/index.d.ts +4 -0
  30. package/dist/src/locales/api/index.d.ts.map +1 -0
  31. package/dist/src/locales/api/index.js +1 -0
  32. package/dist/src/locales/en.json +14 -25
  33. package/dist/src/locales/index.d.ts.map +1 -1
  34. package/dist/tsconfig.build.tsbuildinfo +1 -1
  35. package/package.json +2 -2
  36. package/src/locales/api/en.json +19 -0
  37. package/src/locales/api/index.ts +15 -0
  38. package/src/locales/en.json +14 -25
  39. package/src/locales/index.ts +4 -2
@@ -1 +1 @@
1
- import{relations}from"drizzle-orm";import{index,pgTable}from"drizzle-orm/pg-core";export const core_languages=pgTable("core_languages",t=>({id:t.serial().primaryKey(),code:t.varchar({length:32}).notNull().unique(),name:t.varchar({length:255}).notNull(),timezone:t.varchar({length:255}).notNull().default("UTC"),protected:t.boolean().notNull().default(false),default:t.boolean().notNull().default(false),enabled:t.boolean().notNull().default(true),createdAt:t.timestamp().notNull().defaultNow(),updatedAt:t.timestamp().notNull().defaultNow().$onUpdate(()=>new Date),time24:t.boolean().notNull().default(false)}),t=>[index("core_languages_code_idx").on(t.code),index("core_languages_name_idx").on(t.name)]).enableRLS();export const core_languages_words=pgTable("core_languages_words",t=>({id:t.serial().primaryKey(),languageCode:t.varchar().notNull().references(()=>core_languages.code,{onDelete:"cascade"}),pluginCode:t.varchar({length:50}).notNull(),itemId:t.integer().notNull(),value:t.text().notNull(),tableName:t.varchar({length:255}).notNull(),variable:t.varchar({length:255}).notNull()}),t=>[index("core_languages_words_lang_code_idx").on(t.languageCode)]).enableRLS();export const core_languages_words_relations=relations(core_languages_words,({one})=>({language:one(core_languages,{fields:[core_languages_words.languageCode],references:[core_languages.code]})}));
1
+ import{relations}from"drizzle-orm";import{index,pgTable}from"drizzle-orm/pg-core";export const core_languages=pgTable("core_languages",t=>({id:t.serial().primaryKey(),code:t.varchar({length:32}).notNull().unique(),name:t.varchar({length:255}).notNull(),timezone:t.varchar({length:255}).notNull().default("UTC"),protected:t.boolean().notNull().default(false),default:t.boolean().notNull().default(false),createdAt:t.timestamp().notNull().defaultNow(),updatedAt:t.timestamp().notNull().defaultNow().$onUpdate(()=>new Date),time24:t.boolean().notNull().default(false)}),t=>[index("core_languages_code_idx").on(t.code),index("core_languages_name_idx").on(t.name)]).enableRLS();export const core_languages_words=pgTable("core_languages_words",t=>({id:t.serial().primaryKey(),languageCode:t.varchar().notNull().references(()=>core_languages.code,{onDelete:"cascade"}),pluginCode:t.varchar({length:50}).notNull(),itemId:t.integer().notNull(),value:t.text().notNull(),tableName:t.varchar({length:255}).notNull(),variable:t.varchar({length:255}).notNull()}),t=>[index("core_languages_words_lang_code_idx").on(t.languageCode)]).enableRLS();export const core_languages_words_relations=relations(core_languages_words,({one})=>({language:one(core_languages,{fields:[core_languages_words.languageCode],references:[core_languages.code]})}));
@@ -1 +1 @@
1
- {"version":3,"file":"load-messages.d.ts","sourceRoot":"","sources":["../../../../src/lib/i18n/load-messages.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAkHxD,eAAO,MAAM,YAAY,GAAU,qCAIhC;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B,KAAG,OAAO,CAAC,QAAQ,CASnB,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,SAAS,cAAc,EAAE,KAAG,MAAM,EAG/B,CAAC;AAGvC,eAAO,MAAM,kBAAkB,YAG9B,CAAC"}
1
+ {"version":3,"file":"load-messages.d.ts","sourceRoot":"","sources":["../../../../src/lib/i18n/load-messages.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAqHxD,eAAO,MAAM,YAAY,GAAU,qCAIhC;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B,KAAG,OAAO,CAAC,QAAQ,CAcnB,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,SAAS,cAAc,EAAE,KAAG,MAAM,EAG/B,CAAC;AAGvC,eAAO,MAAM,kBAAkB,YAG9B,CAAC"}
@@ -1 +1 @@
1
- import{deepMerge}from"./deep-merge.js";const messagesCache=new Map;const warned=new Set;const warnOnce=(key,message)=>{if(warned.has(key))return;warned.add(key);console.warn(`\x1b[34m[VitNode i18n]\x1b[0m \x1b[33m${message}\x1b[0m`)};const loadSourceMessages=async(source,locale,isDefaultLocale)=>{const loader=source.messages?.[locale];if(!loader){if(isDefaultLocale&&!source.optional&&source.messages){warnOnce(`${source.id}:${locale}:missing`,`"${source.id}" ships no messages for the default locale "${locale}".`)}return null}try{const loaded=await loader();if(!loaded.default){warnOnce(`${source.id}:${locale}:empty`,`"${source.id}" exports no default from its "${locale}" messages.`);return null}return loaded.default}catch(error){warnOnce(`${source.id}:${locale}:failed`,`Could not load "${locale}" messages for "${source.id}" - its strings will render as raw keys. ${String(error)}`);return null}};const mergeLocale=async(sources,locale,isDefaultLocale)=>{const parts=await Promise.all(sources.map(async source=>loadSourceMessages(source,locale,isDefaultLocale)));return parts.reduce((acc,part)=>part?{found:acc.found+1,messages:deepMerge(acc.messages,part)}:acc,{found:0,messages:{}})};const buildMessages=async({defaultLocale,locale,sources})=>{const base=await mergeLocale(sources,defaultLocale,true);if(locale===defaultLocale)return base.messages;const requested=await mergeLocale(sources,locale,false);if(requested.found===0){warnOnce(`*:${locale}:unknown`,`Nothing provides "${locale}" messages - falling back to "${defaultLocale}".`);return base.messages}return deepMerge(base.messages,requested.messages)};export const loadMessages=async({defaultLocale,locale,sources})=>{const cacheKey=`${defaultLocale}|${locale}|${sources.map(source=>source.id).join(",")}`;const cached=messagesCache.get(cacheKey);if(cached)return await cached;const messages=buildMessages({defaultLocale,locale,sources});messagesCache.set(cacheKey,messages);return await messages};export const collectLocaleCodes=sources=>[...new Set(sources.flatMap(source=>Object.keys(source.messages??{})))].sort((a,b)=>a.localeCompare(b));export const resetMessagesCache=()=>{messagesCache.clear();warned.clear()};
1
+ import{deepMerge}from"./deep-merge.js";const messagesCache=new Map;const warned=new Set;const warnOnce=(key,message)=>{if(warned.has(key))return;warned.add(key);console.warn(`\x1b[34m[VitNode i18n]\x1b[0m \x1b[33m${message}\x1b[0m`)};const loadSourceMessages=async(source,locale,isDefaultLocale)=>{const loader=source.messages?.[locale];const warnId=`${source.scope??""}:${source.id}`;if(!loader){if(isDefaultLocale&&!source.optional&&source.messages){warnOnce(`${warnId}:${locale}:missing`,`"${source.id}" ships no messages for the default locale "${locale}".`)}return null}try{const loaded=await loader();if(!loaded.default){warnOnce(`${warnId}:${locale}:empty`,`"${source.id}" exports no default from its "${locale}" messages.`);return null}return loaded.default}catch(error){warnOnce(`${warnId}:${locale}:failed`,`Could not load "${locale}" messages for "${source.id}" - its strings will render as raw keys. ${String(error)}`);return null}};const mergeLocale=async(sources,locale,isDefaultLocale)=>{const parts=await Promise.all(sources.map(async source=>loadSourceMessages(source,locale,isDefaultLocale)));return parts.reduce((acc,part)=>part?{found:acc.found+1,messages:deepMerge(acc.messages,part)}:acc,{found:0,messages:{}})};const buildMessages=async({defaultLocale,locale,sources})=>{const base=await mergeLocale(sources,defaultLocale,true);if(locale===defaultLocale)return base.messages;const requested=await mergeLocale(sources,locale,false);if(requested.found===0){warnOnce(`*:${locale}:unknown`,`Nothing provides "${locale}" messages - falling back to "${defaultLocale}".`);return base.messages}return deepMerge(base.messages,requested.messages)};export const loadMessages=async({defaultLocale,locale,sources})=>{const cacheKey=`${defaultLocale}|${locale}|${sources.map(source=>`${source.scope??""}#${source.id}`).join(",")}`;const cached=messagesCache.get(cacheKey);if(cached)return await cached;const messages=buildMessages({defaultLocale,locale,sources});messagesCache.set(cacheKey,messages);return await messages};export const collectLocaleCodes=sources=>[...new Set(sources.flatMap(source=>Object.keys(source.messages??{})))].sort((a,b)=>a.localeCompare(b));export const resetMessagesCache=()=>{messagesCache.clear();warned.clear()};
@@ -1,5 +1,12 @@
1
1
  import type { AppMessagesMap, LocaleMessagesMap, MessagesSource } from "./types";
2
- export declare const buildMessagesSources: ({ appMessages, plugins, }: {
2
+ export declare const buildMessagesSources: (args: {
3
+ appMessages?: AppMessagesMap;
4
+ plugins: {
5
+ messages?: LocaleMessagesMap;
6
+ pluginId: string;
7
+ }[];
8
+ }) => MessagesSource[];
9
+ export declare const buildApiMessagesSources: (args: {
3
10
  appMessages?: AppMessagesMap;
4
11
  plugins: {
5
12
  messages?: LocaleMessagesMap;
@@ -1 +1 @@
1
- {"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../src/lib/i18n/sources.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,cAAc,EACf,MAAM,SAAS,CAAC;AA+BjB,eAAO,MAAM,oBAAoB,GAAI,2BAGlC;IACD,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/D,KAAG,cAAc,EAOjB,CAAC"}
1
+ {"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../../../src/lib/i18n/sources.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,cAAc,EACf,MAAM,SAAS,CAAC;AA4DjB,eAAO,MAAM,oBAAoB,GAAI,MAAM;IACzC,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/D,KAAG,cAAc,EACiD,CAAC;AAOpE,eAAO,MAAM,uBAAuB,GAAI,MAAM;IAC5C,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/D,KAAG,cAAc,EACoD,CAAC"}
@@ -1 +1 @@
1
- import{CONFIG_PLUGIN}from"../../config.js";import coreMessages from"../../locales/index.js";const appMessagesToSources=appMessages=>{if(!appMessages)return[];const byPlugin=new Map;for(const[locale,perPlugin]of Object.entries(appMessages)){for(const[pluginId,loader]of Object.entries(perPlugin)){byPlugin.set(pluginId,{...byPlugin.get(pluginId),[locale]:loader})}}return[...byPlugin].map(([pluginId,messages])=>({id:`app:${pluginId}`,messages,optional:true}))};export const buildMessagesSources=({appMessages,plugins})=>[{id:CONFIG_PLUGIN.pluginId,messages:coreMessages},...plugins.map(plugin=>({id:plugin.pluginId,messages:plugin.messages})),...appMessagesToSources(appMessages)];
1
+ import{CONFIG_PLUGIN}from"../../config.js";import coreMessages from"../../locales/index.js";import coreApiMessages from"../../locales/api/index.js";const appMessagesToSources=appMessages=>{if(!appMessages)return[];const byPlugin=new Map;for(const[locale,perPlugin]of Object.entries(appMessages)){for(const[pluginId,loader]of Object.entries(perPlugin)){byPlugin.set(pluginId,{...byPlugin.get(pluginId),[locale]:loader})}}return[...byPlugin].map(([pluginId,messages])=>({id:`app:${pluginId}`,messages,optional:true}))};const buildSources=({appMessages,coreBarrel,plugins,scope})=>[{id:CONFIG_PLUGIN.pluginId,messages:coreBarrel},...plugins.map(plugin=>({id:plugin.pluginId,messages:plugin.messages})),...appMessagesToSources(appMessages)].map(source=>({...source,scope}));export const buildMessagesSources=args=>buildSources({...args,coreBarrel:coreMessages,scope:"web"});export const buildApiMessagesSources=args=>buildSources({...args,coreBarrel:coreApiMessages,scope:"api"});
@@ -8,9 +8,11 @@ export interface MessagesSource {
8
8
  id: string;
9
9
  messages?: LocaleMessagesMap;
10
10
  optional?: boolean;
11
+ scope?: string;
11
12
  }
12
13
  export interface LocaleConfig {
13
14
  code: string;
15
+ enabled?: boolean;
14
16
  name: string;
15
17
  }
16
18
  export interface VitNodeI18nConfig<AppLocales extends LocaleConfig[] = LocaleConfig[]> {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/i18n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CAAC,EAAE,CAAC,YAAY,GAAG;YACpB,KAAK,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE,CAAC;SACtC,CAAC,EAAE,CAAC;KACN,CAAC;IAOF,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,EAAE,CAAC,CAAC;CACb;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAC1C,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAC1B,iBAAiB,CAAC,CAAC,CAAC,CAEtB"}
@@ -0,0 +1,19 @@
1
+ {
2
+ "core": {
3
+ "auth": {
4
+ "reset_password": {
5
+ "email": {
6
+ "subject": "Reset your password",
7
+ "greeting": "Hello {name}!",
8
+ "intro": "We received a request to reset your password for your account.",
9
+ "button": "Reset Password",
10
+ "instructions": "Click the button above to reset your password. This link will expire in 30 minutes for security reasons.",
11
+ "no_action": "If you didn't request a password reset, you can safely ignore this email. Your password will remain unchanged.",
12
+ "security_note": "For your security, this request was made from IP address: {ip}",
13
+ "help": "If you're having trouble with the button above, copy and paste the URL below into your web browser:",
14
+ "expire_time": "This link will expire on {date}"
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,4 @@
1
+ import type { LocaleMessagesMap } from "../../lib/i18n/types";
2
+ declare const messages: LocaleMessagesMap;
3
+ export default messages;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/locales/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAU1D,QAAA,MAAM,QAAQ,EAAE,iBAEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1 @@
1
+ const messages={en:async()=>await import("./en.json",{with:{type:"json"}})};export default messages;
@@ -190,19 +190,6 @@
190
190
  "go_to_prev_page": "Go to previous page",
191
191
  "go_to_next_page": "Go to next page",
192
192
  "errors": {
193
- "title": "Oops! Something went wrong.",
194
- "internal_server_error": "Internal server error.",
195
- "field_required": "This field is required.",
196
- "field_min_length": "This field must be at least {min} characters.",
197
- "captcha_internal_error": "Captcha validation failed. Please try again later.",
198
- "404": {
199
- "title": "Page Not Found",
200
- "desc": "Oops! The page you're looking for doesn't exist."
201
- },
202
- "500": {
203
- "title": "Internal Server Error",
204
- "desc": "Sorry, we're experiencing technical difficulties on our server."
205
- },
206
193
  "400": {
207
194
  "title": "Bad Request",
208
195
  "desc": "The request couldn't be processed due to invalid parameters."
@@ -211,6 +198,10 @@
211
198
  "title": "Forbidden",
212
199
  "desc": "You don't have permission to access this resource."
213
200
  },
201
+ "404": {
202
+ "title": "Page Not Found",
203
+ "desc": "Oops! The page you're looking for doesn't exist."
204
+ },
214
205
  "409": {
215
206
  "title": "Conflict",
216
207
  "desc": "The request could not be completed due to a conflict with the current state of the resource."
@@ -219,7 +210,16 @@
219
210
  "title": "Too many requests",
220
211
  "desc": "You're doing that too fast. Please slow down and try again in a moment.",
221
212
  "retry": "You're doing that too fast. Please try again in {seconds} seconds."
222
- }
213
+ },
214
+ "500": {
215
+ "title": "Internal Server Error",
216
+ "desc": "Sorry, we're experiencing technical difficulties on our server."
217
+ },
218
+ "title": "Oops! Something went wrong.",
219
+ "internal_server_error": "Internal server error.",
220
+ "field_required": "This field is required.",
221
+ "field_min_length": "This field must be at least {min} characters.",
222
+ "captcha_internal_error": "Captcha validation failed. Please try again later."
223
223
  },
224
224
  "user_bar": {
225
225
  "my_profile": "My Profile",
@@ -344,17 +344,6 @@
344
344
  "title": "Check your email",
345
345
  "desc": "We've sent a password reset link to your email address:",
346
346
  "check_spam": "If you don't see the email in your inbox, please check your spam folder."
347
- },
348
- "email": {
349
- "subject": "Reset your password",
350
- "greeting": "Hello {name}!",
351
- "intro": "We received a request to reset your password for your account.",
352
- "button": "Reset Password",
353
- "instructions": "Click the button above to reset your password. This link will expire in 30 minutes for security reasons.",
354
- "no_action": "If you didn't request a password reset, you can safely ignore this email. Your password will remain unchanged.",
355
- "security_note": "For your security, this request was made from IP address: {ip}",
356
- "help": "If you're having trouble with the button above, copy and paste the URL below into your web browser:",
357
- "expire_time": "This link will expire on {date}"
358
347
  }
359
348
  },
360
349
  "change_password": {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locales/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAU1D,QAAA,MAAM,QAAQ,EAAE,iBAEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/locales/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAY1D,QAAA,MAAM,QAAQ,EAAE,iBAEf,CAAC;AAEF,eAAe,QAAQ,CAAC"}