@lingo.dev/_sdk 0.7.22 → 0.7.24

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/build/index.cjs CHANGED
@@ -11,7 +11,7 @@ var engineParamsSchema = _zod2.default.object({
11
11
  var payloadSchema = _zod2.default.record(_zod2.default.string(), _zod2.default.any());
12
12
  var referenceSchema = _zod2.default.record(__spec.localeCodeSchema, payloadSchema);
13
13
  var localizationParamsSchema = _zod2.default.object({
14
- sourceLocale: __spec.localeCodeSchema,
14
+ sourceLocale: _zod2.default.union([__spec.localeCodeSchema, _zod2.default.null()]),
15
15
  targetLocale: __spec.localeCodeSchema,
16
16
  fast: _zod2.default.boolean().optional(),
17
17
  reference: referenceSchema.optional()
package/build/index.d.cts CHANGED
@@ -19,17 +19,17 @@ declare const engineParamsSchema: Z.ZodObject<{
19
19
  }, Z.ZodTypeAny, "passthrough">>;
20
20
  declare const payloadSchema: Z.ZodRecord<Z.ZodString, Z.ZodAny>;
21
21
  declare const localizationParamsSchema: Z.ZodObject<{
22
- sourceLocale: Z.ZodEffects<Z.ZodString, string, string>;
22
+ sourceLocale: Z.ZodUnion<[Z.ZodEffects<Z.ZodString, string, string>, Z.ZodNull]>;
23
23
  targetLocale: Z.ZodEffects<Z.ZodString, string, string>;
24
24
  fast: Z.ZodOptional<Z.ZodBoolean>;
25
25
  reference: Z.ZodOptional<Z.ZodRecord<Z.ZodEffects<Z.ZodString, string, string>, Z.ZodRecord<Z.ZodString, Z.ZodAny>>>;
26
26
  }, "strip", Z.ZodTypeAny, {
27
- sourceLocale: string;
27
+ sourceLocale: string | null;
28
28
  targetLocale: string;
29
29
  fast?: boolean | undefined;
30
30
  reference?: Record<string, Record<string, any>> | undefined;
31
31
  }, {
32
- sourceLocale: string;
32
+ sourceLocale: string | null;
33
33
  targetLocale: string;
34
34
  fast?: boolean | undefined;
35
35
  reference?: Record<string, Record<string, any>> | undefined;
package/build/index.d.ts CHANGED
@@ -19,17 +19,17 @@ declare const engineParamsSchema: Z.ZodObject<{
19
19
  }, Z.ZodTypeAny, "passthrough">>;
20
20
  declare const payloadSchema: Z.ZodRecord<Z.ZodString, Z.ZodAny>;
21
21
  declare const localizationParamsSchema: Z.ZodObject<{
22
- sourceLocale: Z.ZodEffects<Z.ZodString, string, string>;
22
+ sourceLocale: Z.ZodUnion<[Z.ZodEffects<Z.ZodString, string, string>, Z.ZodNull]>;
23
23
  targetLocale: Z.ZodEffects<Z.ZodString, string, string>;
24
24
  fast: Z.ZodOptional<Z.ZodBoolean>;
25
25
  reference: Z.ZodOptional<Z.ZodRecord<Z.ZodEffects<Z.ZodString, string, string>, Z.ZodRecord<Z.ZodString, Z.ZodAny>>>;
26
26
  }, "strip", Z.ZodTypeAny, {
27
- sourceLocale: string;
27
+ sourceLocale: string | null;
28
28
  targetLocale: string;
29
29
  fast?: boolean | undefined;
30
30
  reference?: Record<string, Record<string, any>> | undefined;
31
31
  }, {
32
- sourceLocale: string;
32
+ sourceLocale: string | null;
33
33
  targetLocale: string;
34
34
  fast?: boolean | undefined;
35
35
  reference?: Record<string, Record<string, any>> | undefined;
package/build/index.mjs CHANGED
@@ -11,7 +11,7 @@ var engineParamsSchema = Z.object({
11
11
  var payloadSchema = Z.record(Z.string(), Z.any());
12
12
  var referenceSchema = Z.record(localeCodeSchema, payloadSchema);
13
13
  var localizationParamsSchema = Z.object({
14
- sourceLocale: localeCodeSchema,
14
+ sourceLocale: Z.union([localeCodeSchema, Z.null()]),
15
15
  targetLocale: localeCodeSchema,
16
16
  fast: Z.boolean().optional(),
17
17
  reference: referenceSchema.optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingo.dev/_sdk",
3
- "version": "0.7.22",
3
+ "version": "0.7.24",
4
4
  "description": "Lingo.dev JS SDK",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -23,7 +23,7 @@
23
23
  "typescript": "^5.7.2",
24
24
  "vitest": "^2.1.8",
25
25
  "zod": "^3.24.1",
26
- "@lingo.dev/_spec": "0.26.0"
26
+ "@lingo.dev/_spec": "0.26.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/jsdom": "^21.1.7",