@inlang/paraglide-js 2.20.1 → 2.21.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.
- package/dist/bundler-plugins/rolldown.d.ts +1 -1
- package/dist/bundler-plugins/rollup.d.ts +1 -1
- package/dist/bundler-plugins/vite.d.ts +1 -1
- package/dist/cli/defaults.d.ts.map +1 -1
- package/dist/cli/steps/initialize-inlang-project.d.ts.map +1 -1
- package/dist/cli/steps/update-ts-config.d.ts.map +1 -1
- package/dist/cli/steps/update-ts-config.js.map +1 -1
- package/dist/cli/utils.d.ts.map +1 -1
- package/dist/cli/utils.js.map +1 -1
- package/dist/compiler/compile-bundle.d.ts.map +1 -1
- package/dist/compiler/compile-message.d.ts.map +1 -1
- package/dist/compiler/compile-pattern.d.ts.map +1 -1
- package/dist/compiler/compile-project.d.ts.map +1 -1
- package/dist/compiler/compile.bench.js.map +1 -1
- package/dist/compiler/compiler-options.d.ts +5 -0
- package/dist/compiler/compiler-options.d.ts.map +1 -1
- package/dist/compiler/emit-ts-declarations.d.ts.map +1 -1
- package/dist/compiler/emit-ts-declarations.interop.test.d.ts +2 -0
- package/dist/compiler/emit-ts-declarations.interop.test.d.ts.map +1 -0
- package/dist/compiler/emit-ts-declarations.interop.test.js +62 -0
- package/dist/compiler/emit-ts-declarations.interop.test.js.map +1 -0
- package/dist/compiler/emit-ts-declarations.js +150 -0
- package/dist/compiler/emit-ts-declarations.js.map +1 -1
- package/dist/compiler/emit-ts-declarations.test.d.ts +2 -0
- package/dist/compiler/emit-ts-declarations.test.d.ts.map +1 -0
- package/dist/compiler/emit-ts-declarations.test.js +181 -0
- package/dist/compiler/emit-ts-declarations.test.js.map +1 -0
- package/dist/compiler/resolve-tsc-js-path.d.ts +10 -0
- package/dist/compiler/resolve-tsc-js-path.d.ts.map +1 -0
- package/dist/compiler/resolve-tsc-js-path.js +23 -0
- package/dist/compiler/resolve-tsc-js-path.js.map +1 -0
- package/dist/compiler/runtime/check-locale.d.ts +3 -3
- package/dist/compiler/runtime/check-locale.d.ts.map +1 -1
- package/dist/compiler/runtime/create-runtime.d.ts.map +1 -1
- package/dist/compiler/runtime/create-runtime.js +10 -3
- package/dist/compiler/runtime/create-runtime.js.map +1 -1
- package/dist/compiler/runtime/extract-locale-from-cookie.d.ts +5 -1
- package/dist/compiler/runtime/extract-locale-from-cookie.d.ts.map +1 -1
- package/dist/compiler/runtime/extract-locale-from-cookie.js +28 -4
- package/dist/compiler/runtime/extract-locale-from-cookie.js.map +1 -1
- package/dist/compiler/runtime/extract-locale-from-cookie.test.js +115 -0
- package/dist/compiler/runtime/extract-locale-from-cookie.test.js.map +1 -1
- package/dist/compiler/runtime/extract-locale-from-header.d.ts +1 -1
- package/dist/compiler/runtime/extract-locale-from-header.d.ts.map +1 -1
- package/dist/compiler/runtime/extract-locale-from-navigator.d.ts +1 -1
- package/dist/compiler/runtime/extract-locale-from-navigator.d.ts.map +1 -1
- package/dist/compiler/runtime/extract-locale-from-request-async.d.ts +33 -2
- package/dist/compiler/runtime/extract-locale-from-request-async.d.ts.map +1 -1
- package/dist/compiler/runtime/extract-locale-from-request.d.ts +36 -4
- package/dist/compiler/runtime/extract-locale-from-request.d.ts.map +1 -1
- package/dist/compiler/runtime/extract-locale-from-url.d.ts +1 -1
- package/dist/compiler/runtime/extract-locale-from-url.d.ts.map +1 -1
- package/dist/compiler/runtime/generate-static-localized-urls.d.ts +1 -1
- package/dist/compiler/runtime/generate-static-localized-urls.d.ts.map +1 -1
- package/dist/compiler/runtime/get-locale.d.ts +36 -3
- package/dist/compiler/runtime/get-locale.d.ts.map +1 -1
- package/dist/compiler/runtime/get-text-direction.d.ts +1 -1
- package/dist/compiler/runtime/get-text-direction.d.ts.map +1 -1
- package/dist/compiler/runtime/get-url-origin.d.ts +10 -2
- package/dist/compiler/runtime/get-url-origin.d.ts.map +1 -1
- package/dist/compiler/runtime/localize-href.d.ts +3 -3
- package/dist/compiler/runtime/localize-href.d.ts.map +1 -1
- package/dist/compiler/runtime/localize-url.d.ts +4 -4
- package/dist/compiler/runtime/localize-url.d.ts.map +1 -1
- package/dist/compiler/runtime/set-locale.d.ts +19 -5
- package/dist/compiler/runtime/set-locale.d.ts.map +1 -1
- package/dist/compiler/runtime/set-locale.js +2 -0
- package/dist/compiler/runtime/set-locale.js.map +1 -1
- package/dist/compiler/runtime/should-redirect.d.ts +29 -29
- package/dist/compiler/runtime/should-redirect.d.ts.map +1 -1
- package/dist/compiler/runtime/strategy.d.ts +36 -36
- package/dist/compiler/runtime/strategy.d.ts.map +1 -1
- package/dist/compiler/runtime/track-message-call.d.ts +1 -1
- package/dist/compiler/runtime/track-message-call.d.ts.map +1 -1
- package/dist/compiler/runtime/type-definitions.d.ts +144 -43
- package/dist/compiler/runtime/type-definitions.d.ts.map +1 -1
- package/dist/compiler/runtime/type.test.js +12 -0
- package/dist/compiler/runtime/type.test.js.map +1 -1
- package/dist/compiler/runtime/variables.d.ts +60 -60
- package/dist/compiler/runtime/variables.d.ts.map +1 -1
- package/dist/compiler/server/create-server-file.js.map +1 -1
- package/dist/compiler/server/middleware.d.ts +1 -1
- package/dist/compiler/server/middleware.d.ts.map +1 -1
- package/dist/services/codegen/quotes.d.ts.map +1 -1
- package/dist/services/env-variables/create-index-file.d.ts +8 -0
- package/dist/services/env-variables/create-index-file.d.ts.map +1 -1
- package/dist/services/env-variables/create-index-file.js.map +1 -1
- package/dist/services/env-variables/index.d.ts.map +1 -1
- package/dist/services/env-variables/index.js +1 -1
- package/dist/services/file-watching/tracked-fs.js.map +1 -1
- package/dist/services/logger/index.d.ts.map +1 -1
- package/dist/services/logger/index.js.map +1 -1
- package/dist/utilities/detect-json-formatting.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -1,58 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A locale that is available in the project.
|
|
3
|
-
*/
|
|
4
1
|
export type Locale = string;
|
|
5
|
-
/**
|
|
6
|
-
* A branded type representing a localized string.
|
|
7
|
-
*
|
|
8
|
-
* Message functions return this type instead of \`string\`, enabling TypeScript
|
|
9
|
-
* to distinguish translated strings from regular strings at compile time.
|
|
10
|
-
* This allows you to enforce that only properly localized content is used
|
|
11
|
-
* in your UI components.
|
|
12
|
-
*
|
|
13
|
-
* Since \`LocalizedString\` is a branded subtype of \`string\`, it remains fully
|
|
14
|
-
* backward compatible—you can pass it anywhere a \`string\` is expected.
|
|
15
|
-
*/
|
|
16
2
|
export type LocalizedString = string & {
|
|
17
|
-
readonly __brand:
|
|
3
|
+
readonly __brand: 'LocalizedString';
|
|
18
4
|
};
|
|
19
|
-
/**
|
|
20
|
-
* A single markup option passed to a tag instance.
|
|
21
|
-
*/
|
|
22
5
|
export type MessageMarkupOption = {
|
|
23
6
|
name: string;
|
|
24
7
|
value: unknown;
|
|
25
8
|
};
|
|
26
|
-
/**
|
|
27
|
-
* A single static markup attribute attached to a tag instance.
|
|
28
|
-
*/
|
|
29
9
|
export type MessageMarkupAttribute = {
|
|
30
10
|
name: string;
|
|
31
11
|
value: string | true;
|
|
32
12
|
};
|
|
33
|
-
/**
|
|
34
|
-
* Record of markup options for a tag instance.
|
|
35
|
-
*/
|
|
36
13
|
export type MessageMarkupOptions = Record<string, unknown>;
|
|
37
|
-
/**
|
|
38
|
-
* Record of markup attributes for a tag instance.
|
|
39
|
-
*/
|
|
40
14
|
export type MessageMarkupAttributes = Record<string, string | true>;
|
|
41
|
-
/**
|
|
42
|
-
* Type-level schema for a single markup tag.
|
|
43
|
-
*/
|
|
44
15
|
export type MessageMarkupTag = {
|
|
45
16
|
options: MessageMarkupOptions;
|
|
46
17
|
attributes: MessageMarkupAttributes;
|
|
47
18
|
children: boolean;
|
|
48
19
|
};
|
|
49
|
-
/**
|
|
50
|
-
* Type-level schema for all markup tags in a message.
|
|
51
|
-
*/
|
|
52
20
|
export type MessageMarkupSchema = Record<string, MessageMarkupTag>;
|
|
53
|
-
/**
|
|
54
|
-
* Type-only metadata attached to compiled message functions.
|
|
55
|
-
*/
|
|
56
21
|
export type MessageMetadata<Inputs, Options, Markup extends MessageMarkupSchema = MessageMarkupSchema> = {
|
|
57
22
|
readonly __paraglide?: {
|
|
58
23
|
inputs: Inputs;
|
|
@@ -60,9 +25,6 @@ export type MessageMetadata<Inputs, Options, Markup extends MessageMarkupSchema
|
|
|
60
25
|
markup: Markup;
|
|
61
26
|
};
|
|
62
27
|
};
|
|
63
|
-
/**
|
|
64
|
-
* A compiled, framework-neutral message part.
|
|
65
|
-
*/
|
|
66
28
|
export type MessagePart = {
|
|
67
29
|
type: "text";
|
|
68
30
|
value: string;
|
|
@@ -82,16 +44,155 @@ export type MessagePart = {
|
|
|
82
44
|
options: MessageMarkupOptions;
|
|
83
45
|
attributes: MessageMarkupAttributes;
|
|
84
46
|
};
|
|
47
|
+
export type MessageFunction = (inputs?: Record<string, never>) => LocalizedString;
|
|
48
|
+
export type MessageBundleFunction<T extends string> = (params: Record<string, never>, options: {
|
|
49
|
+
locale: T;
|
|
50
|
+
}) => LocalizedString;
|
|
51
|
+
/**
|
|
52
|
+
* A locale that is available in the project.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* setLocale(request.locale as Locale)
|
|
56
|
+
*
|
|
57
|
+
* @typedef {string} Locale
|
|
58
|
+
*/
|
|
59
|
+
/**
|
|
60
|
+
* A branded type representing a localized string.
|
|
61
|
+
*
|
|
62
|
+
* Message functions return this type instead of \`string\`, enabling TypeScript
|
|
63
|
+
* to distinguish translated strings from regular strings at compile time.
|
|
64
|
+
* This allows you to enforce that only properly localized content is used
|
|
65
|
+
* in your UI components.
|
|
66
|
+
*
|
|
67
|
+
* Since \`LocalizedString\` is a branded subtype of \`string\`, it remains fully
|
|
68
|
+
* backward compatible—you can pass it anywhere a \`string\` is expected.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* // Enforce localized strings in your components
|
|
72
|
+
* function PageTitle(props: { title: LocalizedString }) {
|
|
73
|
+
* return <h1>{props.title}</h1>
|
|
74
|
+
* }
|
|
75
|
+
*
|
|
76
|
+
* // ✅ Correct: using a message function
|
|
77
|
+
* <PageTitle title={m.welcome_title()} />
|
|
78
|
+
*
|
|
79
|
+
* // ❌ Type error: raw strings are not LocalizedString
|
|
80
|
+
* <PageTitle title="Welcome" />
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* // LocalizedString is assignable to string (backward compatible)
|
|
84
|
+
* const localized: LocalizedString = m.greeting()
|
|
85
|
+
* const str: string = localized // ✅ works fine
|
|
86
|
+
*
|
|
87
|
+
* // But string is not assignable to LocalizedString
|
|
88
|
+
* const raw: LocalizedString = "Hello" // ❌ Type error
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* // Catches accidental string concatenation
|
|
92
|
+
* function showMessage(msg: LocalizedString) { ... }
|
|
93
|
+
*
|
|
94
|
+
* showMessage(m.hello()) // ✅
|
|
95
|
+
* showMessage("Hello " + userName) // ❌ Type error
|
|
96
|
+
* showMessage(m.hello_user({ name: userName })) // ✅ use params instead
|
|
97
|
+
*
|
|
98
|
+
* @typedef {string & { readonly __brand: 'LocalizedString' }} LocalizedString
|
|
99
|
+
*/
|
|
100
|
+
/**
|
|
101
|
+
* A single markup option passed to a tag instance.
|
|
102
|
+
*
|
|
103
|
+
* @typedef {{
|
|
104
|
+
* name: string;
|
|
105
|
+
* value: unknown;
|
|
106
|
+
* }} MessageMarkupOption
|
|
107
|
+
*/
|
|
108
|
+
/**
|
|
109
|
+
* A single static markup attribute attached to a tag instance.
|
|
110
|
+
*
|
|
111
|
+
* @typedef {{
|
|
112
|
+
* name: string;
|
|
113
|
+
* value: string | true;
|
|
114
|
+
* }} MessageMarkupAttribute
|
|
115
|
+
*/
|
|
116
|
+
/**
|
|
117
|
+
* Record of markup options for a tag instance.
|
|
118
|
+
*
|
|
119
|
+
* @typedef {Record<string, unknown>} MessageMarkupOptions
|
|
120
|
+
*/
|
|
121
|
+
/**
|
|
122
|
+
* Record of markup attributes for a tag instance.
|
|
123
|
+
*
|
|
124
|
+
* @typedef {Record<string, string | true>} MessageMarkupAttributes
|
|
125
|
+
*/
|
|
126
|
+
/**
|
|
127
|
+
* Type-level schema for a single markup tag.
|
|
128
|
+
*
|
|
129
|
+
* @typedef {{
|
|
130
|
+
* options: MessageMarkupOptions;
|
|
131
|
+
* attributes: MessageMarkupAttributes;
|
|
132
|
+
* children: boolean;
|
|
133
|
+
* }} MessageMarkupTag
|
|
134
|
+
*/
|
|
135
|
+
/**
|
|
136
|
+
* Type-level schema for all markup tags in a message.
|
|
137
|
+
*
|
|
138
|
+
* @typedef {Record<string, MessageMarkupTag>} MessageMarkupSchema
|
|
139
|
+
*/
|
|
140
|
+
/**
|
|
141
|
+
* Type-only metadata attached to compiled message functions.
|
|
142
|
+
*
|
|
143
|
+
* @template Inputs
|
|
144
|
+
* @template Options
|
|
145
|
+
* @template {MessageMarkupSchema} [Markup = MessageMarkupSchema]
|
|
146
|
+
* @typedef {{
|
|
147
|
+
* readonly __paraglide?: {
|
|
148
|
+
* inputs: Inputs;
|
|
149
|
+
* options: Options;
|
|
150
|
+
* markup: Markup;
|
|
151
|
+
* };
|
|
152
|
+
* }} MessageMetadata
|
|
153
|
+
*/
|
|
154
|
+
/**
|
|
155
|
+
* A compiled, framework-neutral message part.
|
|
156
|
+
*
|
|
157
|
+
* @typedef {{
|
|
158
|
+
* type: "text";
|
|
159
|
+
* value: string;
|
|
160
|
+
* } | {
|
|
161
|
+
* type: "markup-start";
|
|
162
|
+
* name: string;
|
|
163
|
+
* options: MessageMarkupOptions;
|
|
164
|
+
* attributes: MessageMarkupAttributes;
|
|
165
|
+
* } | {
|
|
166
|
+
* type: "markup-end";
|
|
167
|
+
* name: string;
|
|
168
|
+
* options: MessageMarkupOptions;
|
|
169
|
+
* attributes: MessageMarkupAttributes;
|
|
170
|
+
* } | {
|
|
171
|
+
* type: "markup-standalone";
|
|
172
|
+
* name: string;
|
|
173
|
+
* options: MessageMarkupOptions;
|
|
174
|
+
* attributes: MessageMarkupAttributes;
|
|
175
|
+
* }} MessagePart
|
|
176
|
+
*/
|
|
85
177
|
/**
|
|
86
178
|
* A message function is a message for a specific locale.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* m.hello({ name: 'world' })
|
|
182
|
+
*
|
|
183
|
+
* @typedef {(inputs?: Record<string, never>) => LocalizedString} MessageFunction
|
|
87
184
|
*/
|
|
88
|
-
export type MessageFunction = (inputs?: Record<string, never>) => LocalizedString;
|
|
89
185
|
/**
|
|
90
186
|
* A message bundle function that selects the message to be returned.
|
|
91
187
|
*
|
|
92
188
|
* Uses `getLocale()` under the hood to determine the locale with an option.
|
|
189
|
+
*
|
|
190
|
+
* @template {string} T
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* import { m } from './messages.js'
|
|
194
|
+
* m.hello({ name: 'world' }, { locale: "en" })
|
|
195
|
+
*
|
|
196
|
+
* @typedef {(params: Record<string, never>, options: { locale: T }) => LocalizedString} MessageBundleFunction
|
|
93
197
|
*/
|
|
94
|
-
export type MessageBundleFunction<T extends string> = (params: Record<string, never>, options: {
|
|
95
|
-
locale: T;
|
|
96
|
-
}) => LocalizedString;
|
|
97
198
|
//# sourceMappingURL=type-definitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-definitions.d.ts","sourceRoot":"","sources":["../../../src/compiler/runtime/type-definitions.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"type-definitions.d.ts","sourceRoot":"","sources":["../../../src/compiler/runtime/type-definitions.js"],"names":[],"mappings":"AAQG,YAAkB,MAAM,GAAd,MAAM,CAAQ;AA0CxB,YAA4D,eAAe,GAAjE,MAAM,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAA;CAAE,CAAiB;AAM3E,YAGG,mBAAmB,GAHZ;IACR,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAqB;AAMtB,YAGG,sBA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ApE,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,eAAe,CAAiB;AAc9E,YAAsF,qBAAqB,CANxF,CAAC,SAAT,MAAS,IAMV,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE;IAAE,MAAM,EAAE,CAAC,CAAA;CAAE,KAAK,eAAe,CAAuB;AA5J9G;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH;;;;;;;GAOG;AAEH;;;;;;;GAOG;AAEH;;;;GAIG;AAEH;;;;GAIG;AAEH;;;;;;;;GAQG;AAEH;;;;GAIG;AAEH;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;GAYG"}
|
|
@@ -37,6 +37,18 @@ test("createRuntimeFile throws if urlPatterns contains an unknown locale", () =>
|
|
|
37
37
|
},
|
|
38
38
|
})).toThrow('Invalid locale "fr" in urlPatterns. It must be one of the locales defined in the "locales" array.');
|
|
39
39
|
});
|
|
40
|
+
test("cookie cache clearer remains internal in the generated runtime", () => {
|
|
41
|
+
const jsdocRuntime = createRuntimeFile({
|
|
42
|
+
baseLocale: "en",
|
|
43
|
+
locales: ["en", "de"],
|
|
44
|
+
compilerOptions: {
|
|
45
|
+
...defaultCompilerOptions,
|
|
46
|
+
strategy: ["cookie", "baseLocale"],
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
expect(jsdocRuntime).toContain("function clearLocaleCookieCache");
|
|
50
|
+
expect(jsdocRuntime).not.toContain("export function clearLocaleCookieCache");
|
|
51
|
+
});
|
|
40
52
|
test("runtime type", async () => {
|
|
41
53
|
const project = await typescriptProject({
|
|
42
54
|
useInMemoryFileSystem: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.test.js","sourceRoot":"","sources":["../../../src/compiler/runtime/type.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EACN,aAAa,IAAI,iBAAiB,EAClC,EAAE,GAEF,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,UAAU,GAAG,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"type.test.js","sourceRoot":"","sources":["../../../src/compiler/runtime/type.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EACN,aAAa,IAAI,iBAAiB,EAClC,EAAE,GAEF,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,UAAU,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,MAAM,oCAAoC,GACzC;IACC,MAAM,EAAE,MAAM;IACd,WAAW,EAAE,IAAI;IACjB,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,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C,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC,CAAC;IACrE,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QACtC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAClE,CAAC;IACD,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC"}
|
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the strategy to use for a specific URL.
|
|
3
|
-
*
|
|
4
|
-
* If no route strategy matches (or the matching rule is `exclude: true`),
|
|
5
|
-
* the global strategy is returned.
|
|
6
|
-
*
|
|
7
|
-
* @param {string | URL} url
|
|
8
|
-
* @returns {typeof strategy}
|
|
9
|
-
*/
|
|
10
|
-
export function getStrategyForUrl(url: string | URL): typeof strategy;
|
|
11
|
-
/**
|
|
12
|
-
* Returns whether the given URL is excluded from middleware i18n processing.
|
|
13
|
-
*
|
|
14
|
-
* @param {string | URL} url
|
|
15
|
-
* @returns {boolean}
|
|
16
|
-
*/
|
|
17
|
-
export function isExcludedByRouteStrategy(url: string | URL): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Sets the server side async local storage.
|
|
20
|
-
*
|
|
21
|
-
* The function is needed because the `runtime.js` file
|
|
22
|
-
* must define the `serverAsyncLocalStorage` variable to
|
|
23
|
-
* avoid a circular import between `runtime.js` and
|
|
24
|
-
* `server.js` files.
|
|
25
|
-
*
|
|
26
|
-
* @param {ParaglideAsyncLocalStorage | undefined} value
|
|
27
|
-
*/
|
|
28
|
-
export function overwriteServerAsyncLocalStorage(value: ParaglideAsyncLocalStorage | undefined): void;
|
|
29
1
|
/**
|
|
30
2
|
* The project's base locale.
|
|
31
3
|
*
|
|
@@ -34,7 +6,7 @@ export function overwriteServerAsyncLocalStorage(value: ParaglideAsyncLocalStora
|
|
|
34
6
|
* // do something
|
|
35
7
|
* }
|
|
36
8
|
*/
|
|
37
|
-
export const baseLocale
|
|
9
|
+
export declare const baseLocale = "en";
|
|
38
10
|
/**
|
|
39
11
|
* The project's locales that have been specified in the settings.
|
|
40
12
|
*
|
|
@@ -43,19 +15,19 @@ export const baseLocale: "en";
|
|
|
43
15
|
* throw new Error('Locale is not available');
|
|
44
16
|
* }
|
|
45
17
|
*/
|
|
46
|
-
export const locales: readonly string[];
|
|
18
|
+
export declare const locales: readonly string[];
|
|
47
19
|
/** @type {string} */
|
|
48
|
-
export const cookieName: string;
|
|
20
|
+
export declare const cookieName: string;
|
|
49
21
|
/** @type {number} */
|
|
50
|
-
export const cookieMaxAge: number;
|
|
22
|
+
export declare const cookieMaxAge: number;
|
|
51
23
|
/** @type {string} */
|
|
52
|
-
export const cookieDomain: string;
|
|
24
|
+
export declare const cookieDomain: string;
|
|
53
25
|
/** @type {string} */
|
|
54
|
-
export const localStorageKey: string;
|
|
26
|
+
export declare const localStorageKey: string;
|
|
55
27
|
/**
|
|
56
28
|
* @type {Array<"cookie" | "baseLocale" | "globalVariable" | "url" | "preferredLanguage" | "localStorage" | `custom-${string}`>}
|
|
57
29
|
*/
|
|
58
|
-
export const strategy: Array<"cookie" | "baseLocale" | "globalVariable" | "url" | "preferredLanguage" | "localStorage" | `custom-${string}`>;
|
|
30
|
+
export declare const strategy: Array<"cookie" | "baseLocale" | "globalVariable" | "url" | "preferredLanguage" | "localStorage" | `custom-${string}`>;
|
|
59
31
|
/**
|
|
60
32
|
* Route-level strategy overrides.
|
|
61
33
|
*
|
|
@@ -67,7 +39,7 @@ export const strategy: Array<"cookie" | "baseLocale" | "globalVariable" | "url"
|
|
|
67
39
|
* exclude?: boolean;
|
|
68
40
|
* }>}
|
|
69
41
|
*/
|
|
70
|
-
export const routeStrategies: Array<{
|
|
42
|
+
export declare const routeStrategies: Array<{
|
|
71
43
|
match: string;
|
|
72
44
|
strategy?: Array<"cookie" | "baseLocale" | "globalVariable" | "url" | "preferredLanguage" | "localStorage" | `custom-${string}`>;
|
|
73
45
|
exclude?: boolean;
|
|
@@ -77,10 +49,39 @@ export const routeStrategies: Array<{
|
|
|
77
49
|
*
|
|
78
50
|
* @type {Array<{ pattern: string, localized: Array<[Locale, string]> }>}
|
|
79
51
|
*/
|
|
80
|
-
export const urlPatterns: Array<{
|
|
52
|
+
export declare const urlPatterns: Array<{
|
|
81
53
|
pattern: string;
|
|
82
54
|
localized: Array<[Locale, string]>;
|
|
83
55
|
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns the strategy to use for a specific URL.
|
|
58
|
+
*
|
|
59
|
+
* If no route strategy matches (or the matching rule is `exclude: true`),
|
|
60
|
+
* the global strategy is returned.
|
|
61
|
+
*
|
|
62
|
+
* @param {string | URL} url
|
|
63
|
+
* @returns {typeof strategy}
|
|
64
|
+
*/
|
|
65
|
+
export declare function getStrategyForUrl(url: string | URL): typeof strategy;
|
|
66
|
+
/**
|
|
67
|
+
* Returns whether the given URL is excluded from middleware i18n processing.
|
|
68
|
+
*
|
|
69
|
+
* @param {string | URL} url
|
|
70
|
+
* @returns {boolean}
|
|
71
|
+
*/
|
|
72
|
+
export declare function isExcludedByRouteStrategy(url: string | URL): boolean;
|
|
73
|
+
export type ParaglideAsyncLocalStorage = {
|
|
74
|
+
getStore(): {
|
|
75
|
+
locale?: Locale;
|
|
76
|
+
origin?: string;
|
|
77
|
+
messageCalls?: Set<string>;
|
|
78
|
+
} | undefined;
|
|
79
|
+
run: (store: {
|
|
80
|
+
locale?: Locale;
|
|
81
|
+
origin?: string;
|
|
82
|
+
messageCalls?: Set<string>;
|
|
83
|
+
}, cb: any) => any;
|
|
84
|
+
};
|
|
84
85
|
/**
|
|
85
86
|
* @typedef {{
|
|
86
87
|
* getStore(): {
|
|
@@ -100,28 +101,27 @@ export const urlPatterns: Array<{
|
|
|
100
101
|
*
|
|
101
102
|
* @type {ParaglideAsyncLocalStorage | undefined}
|
|
102
103
|
*/
|
|
103
|
-
export let serverAsyncLocalStorage: ParaglideAsyncLocalStorage | undefined;
|
|
104
|
-
export const disableAsyncLocalStorage
|
|
105
|
-
export const experimentalMiddlewareLocaleSplitting
|
|
106
|
-
export const isServer: boolean;
|
|
104
|
+
export declare let serverAsyncLocalStorage: ParaglideAsyncLocalStorage | undefined;
|
|
105
|
+
export declare const disableAsyncLocalStorage = false;
|
|
106
|
+
export declare const experimentalMiddlewareLocaleSplitting = false;
|
|
107
|
+
export declare const isServer: boolean;
|
|
107
108
|
/** @type {Locale | undefined} */
|
|
108
|
-
export const experimentalStaticLocale: Locale | undefined;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
};
|
|
109
|
+
export declare const experimentalStaticLocale: Locale | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Sets the server side async local storage.
|
|
112
|
+
*
|
|
113
|
+
* The function is needed because the `runtime.js` file
|
|
114
|
+
* must define the `serverAsyncLocalStorage` variable to
|
|
115
|
+
* avoid a circular import between `runtime.js` and
|
|
116
|
+
* `server.js` files.
|
|
117
|
+
*
|
|
118
|
+
* @param {ParaglideAsyncLocalStorage | undefined} value
|
|
119
|
+
*/
|
|
120
|
+
export declare function overwriteServerAsyncLocalStorage(value: ParaglideAsyncLocalStorage | undefined): void;
|
|
121
|
+
export declare const TREE_SHAKE_COOKIE_STRATEGY_USED = false;
|
|
122
|
+
export declare const TREE_SHAKE_URL_STRATEGY_USED = false;
|
|
123
|
+
export declare const TREE_SHAKE_GLOBAL_VARIABLE_STRATEGY_USED = false;
|
|
124
|
+
export declare const TREE_SHAKE_PREFERRED_LANGUAGE_STRATEGY_USED = false;
|
|
125
|
+
export declare const TREE_SHAKE_DEFAULT_URL_PATTERN_USED = false;
|
|
126
|
+
export declare const TREE_SHAKE_LOCAL_STORAGE_STRATEGY_USED = false;
|
|
127
127
|
//# sourceMappingURL=variables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/compiler/runtime/variables.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/compiler/runtime/variables.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,OAAO,CAAC;AAE/B;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,EAAc,SAAS,MAAM,EAAqB,CAAC;AAEvE,qBAAqB;AACrB,eAAO,MAAM,UAAU,EADZ,MAC8B,CAAC;AAE1C,qBAAqB;AACrB,eAAO,MAAM,YAAY,EADd,MACmC,CAAC;AAE/C,qBAAqB;AACrB,eAAO,MAAM,YAAY,EADd,MACkC,CAAC;AAE9C,qBAAqB;AACrB,eAAO,MAAM,eAAe,EADjB,MACsC,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,QAAQ,EAFX,KAAK,CAAC,QAAQ,GAAG,YAAY,GAAG,gBAAgB,GAAG,KAAK,GAAG,mBAAmB,GAAG,cAAc,GAAG,UAAU,MAAM,EAAE,CAEpF,CAAC;AAE3C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,EANlB,KAAK,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,YAAY,GAAG,gBAAgB,GAAG,KAAK,GAAG,mBAAmB,GAAG,cAAc,GAAG,UAAU,MAAM,EAAE,CAAC,CAAC;IACjI,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAE6B,CAAC;AAElC;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAFd,KAAK,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC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AAG,eAAe,CAAC,IAAI;iBAC7C,OAAO,CAAC,gBAAgB,YAAY,KAAK,EAAE,EAAE,CAAC;iBAC9C,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACrB,CAAC;IACF,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,UAAU,CAAC,IAAY;IAC/B,MAAM,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"create-server-file.js","sourceRoot":"","sources":["../../../src/compiler/server/create-server-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AAGzB,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAGtD;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAUhC;IACA,IAAI,IAAI,GAAG;;;EAGV,UAAU,CAAC,iBAAiB,CAAC;CAC9B,CAAC;IAED,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;IAC1D,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC1D,IAAI,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CACd,qEAAqE,CACrE,CAAC;IACH,CAAC;IAED,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAC1D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACvE,MAAM,WAAW,GAAG,GAAG,MAAM,IAAI,CAAC;IAClC,MAAM,sBAAsB,GAAG,IAAI,CAAC,eAAe,CAAC,wBAAwB;QAC3E,CAAC,CAAC;YACA,GAAG,MAAM,yCAAyC;YAClD,GAAG,WAAW,0EAA0E;YACxF,G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G,EAAE,CAAC;QACvB,CAAC;QACD,KAAK,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,IAAI,MAAM,CAAC,OAAO,CACrD,cAAc,CAAC,QAAQ,CACvB,EAAE,CAAC;YACH,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,eAAe,CAAC,IAAI;iBAC7C,OAAO,CAAC,gBAAgB,YAAY,KAAK,EAAE,EAAE,CAAC;iBAC9C,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACrB,CAAC;IACF,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,UAAU,CAAC,IAAY;IAC/B,MAAM,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IACtE,oDAAoD;IACpD,MAAM,WAAW,GAAG,8CAA8C,CAAC;IACnE,MAAM,cAAc,GAAG,8BAA8B,CAAC;IACtD,MAAM,mBAAmB,GAAG,iCAAiC,CAAC;IAC9D,OAAO,IAAI;SACT,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;SACxB,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;SAC3B,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC;SAChC,IAAI,EAAE,CAAC;AACV,CAAC"}
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
* }
|
|
90
90
|
* ```
|
|
91
91
|
*/
|
|
92
|
-
export function paraglideMiddleware<T>(request: Request, resolve: (args: {
|
|
92
|
+
export declare function paraglideMiddleware<T>(request: Request, resolve: (args: {
|
|
93
93
|
request: Request;
|
|
94
94
|
locale: import("./runtime.js").Locale;
|
|
95
95
|
}) => T | Promise<T>, options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../src/compiler/server/middleware.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH,
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../src/compiler/server/middleware.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0FG;AACH,wBAAsB,mBAAmB,CApE5B,CAAC,EAoE4B,OAAO,EAlEtC,OAkEsC,EAAE,OAAO,EAjE/C,CAAC,IAAI,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,cAAc,EAAE,MAAM,CAAA;CAAE,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAiErC,EAAE,OAAO,AA5DhE,CAIA,EAJQ;IACN,mBAAmB,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,GAAG,GAAG,CAAC,CAAC;IAC1E,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;CA0DqB,GAxDtD,OAAO,CAAC,QAAQ,CAAC,CA4K7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../../src/services/codegen/quotes.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"quotes.d.ts","sourceRoot":"","sources":["../../../src/services/codegen/quotes.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,eAAO,MAAM,WAAW,QAAS,MAAM,WAAoC,CAAC;AAC5E,yCAAyC;AACzC,eAAO,MAAM,QAAQ,QAAS,MAAM,WAAiB,CAAC"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This script writes public environment variables
|
|
3
|
+
* to an importable env file.
|
|
4
|
+
*
|
|
5
|
+
* - The SDK must bundle this file with the rest of the SDK
|
|
6
|
+
* - This scripts avoids the need for a bundler
|
|
7
|
+
* - Must be ran before building the SDK
|
|
8
|
+
*/
|
|
1
9
|
export {};
|
|
2
10
|
//# sourceMappingURL=create-index-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-index-file.d.ts","sourceRoot":"","sources":["../../../src/services/env-variables/create-index-file.js"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"create-index-file.d.ts","sourceRoot":"","sources":["../../../src/services/env-variables/create-index-file.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-index-file.js","sourceRoot":"","sources":["../../../src/services/env-variables/create-index-file.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"create-index-file.js","sourceRoot":"","sources":["../../../src/services/env-variables/create-index-file.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAEjE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAC7B,MAAM,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,uBAAuB,CAAC,EAAE,OAAO,CAAC,CAC1E,CAAC;AAEF,MAAM,EAAE,CAAC,SAAS,CACjB,OAAO,GAAG,WAAW,EACrB;;0BAEyB,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC;;CAEvD,CACA,CAAC;AAEF,qDAAqD;AAErD;;;;GAIG;AACH,SAAS,SAAS,CAAC,KAAK;IACvB,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;AACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/env-variables/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/env-variables/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;IACzB,qBAAqB;CACrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracked-fs.js","sourceRoot":"","sources":["../../../src/services/file-watching/tracked-fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AA2B3E,MAAM,UAAU,uBAAuB,CACtC,IAAY,EACZ,WAA6B;IAE7B,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC/C,KAAK,MAAM,SAAS,IAAI,WAAW,EAAE,CAAC;QACrC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;QACzD,IACC,cAAc,KAAK,mBAAmB;YACtC,cAAc,CAAC,UAAU,CAAC,GAAG,mBAAmB,GAAG,CAAC,EACnD,CAAC;YACF,OAAO,IAAI,CAAC;QACb,CAAC;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Root":"","sources":["../../../src/services/logger/index.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,qBAAa,MAAM;IAEjB,OAAO,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/logger/index.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,aAAa,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,qBAAa,MAAM;IAEjB,OAAO,CAAC,OAAO;IADhB,YACS,OAAO,GAAE,aAA+C,EAC7D;IAEG,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAKlC;IAEM,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAOnC;IAEM,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAOtC;IAEM,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAMhD;IAEM,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAMjD;IAEM,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAI/C;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/logger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,CAAC,OAAO,GAAG;IACjB,GAAG,OAAO,CAAC,OAAO;IAClB,aAAa,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;CAC9B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json-formatting.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"detect-json-formatting.d.ts","sourceRoot":"","sources":["../../src/utilities/detect-json-formatting.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,SAC1B,MAAM,KACV,CAAC,CACH,KAAK,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAC3C,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAE3C,MAAM,CAOV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inlang/paraglide-js",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.21.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"typedoc-plugin-markdown": "4.7.0",
|
|
58
58
|
"typedoc-plugin-missing-exports": "4.0.0",
|
|
59
59
|
"typescript": "5.9.2",
|
|
60
|
+
"typescript-go": "npm:typescript@7.0.2",
|
|
60
61
|
"vitest": "3.1.4"
|
|
61
62
|
},
|
|
62
63
|
"keywords": [
|