@lokalise/polyglot-sdk 17.0.3 → 18.1.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/LICENSE +13 -0
- package/dist/index.d.ts +23 -23
- package/dist/index.js +21 -34
- package/dist/index.js.map +1 -1
- package/dist/sdk/PolyglotClient.d.ts +8 -8
- package/dist/sdk/PolyglotClient.js +28 -33
- package/dist/sdk/PolyglotClient.js.map +1 -1
- package/dist/sdk/errors/PolyglotError.js +2 -6
- package/dist/sdk/errors/PolyglotError.js.map +1 -1
- package/dist/sdk/helpers/htmlEscaping.d.ts +1 -1
- package/dist/sdk/helpers/htmlEscaping.js +12 -17
- package/dist/sdk/helpers/htmlEscaping.js.map +1 -1
- package/dist/sdk/helpers/isEnumValue.js +1 -5
- package/dist/sdk/helpers/isEnumValue.js.map +1 -1
- package/dist/sdk/helpers/nonTranslatableContentHelper.d.ts +1 -1
- package/dist/sdk/helpers/nonTranslatableContentHelper.js +10 -16
- package/dist/sdk/helpers/nonTranslatableContentHelper.js.map +1 -1
- package/dist/sdk/helpers/nonTranslatableContentWrappers.d.ts +10 -3
- package/dist/sdk/helpers/nonTranslatableContentWrappers.js +17 -15
- package/dist/sdk/helpers/nonTranslatableContentWrappers.js.map +1 -1
- package/dist/sdk/schemas/common/asyncRequestSchemas.d.ts +1 -1
- package/dist/sdk/schemas/common/asyncRequestSchemas.js +12 -16
- package/dist/sdk/schemas/common/asyncRequestSchemas.js.map +1 -1
- package/dist/sdk/schemas/common/commonSchemas.d.ts +7 -1
- package/dist/sdk/schemas/common/commonSchemas.js +58 -53
- package/dist/sdk/schemas/common/commonSchemas.js.map +1 -1
- package/dist/sdk/schemas/common/errorSchemas.d.ts +1 -1
- package/dist/sdk/schemas/common/errorSchemas.js +13 -17
- package/dist/sdk/schemas/common/errorSchemas.js.map +1 -1
- package/dist/sdk/schemas/common/translationContextSchemas.js +33 -38
- package/dist/sdk/schemas/common/translationContextSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/commonSchemas.d.ts +1 -1
- package/dist/sdk/schemas/lqa/commonSchemas.js +1 -4
- package/dist/sdk/schemas/lqa/commonSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js +46 -50
- package/dist/sdk/schemas/lqa/lqaAsyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/lqa/lqaSyncSchemas.js +38 -42
- package/dist/sdk/schemas/lqa/lqaSyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/scoring/scoreSchemas.js +24 -27
- package/dist/sdk/schemas/scoring/scoreSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/generateVariants.d.ts +88 -1
- package/dist/sdk/schemas/translation/generateVariants.js +25 -27
- package/dist/sdk/schemas/translation/generateVariants.js.map +1 -1
- package/dist/sdk/schemas/translation/rewriteTextSchemas.d.ts +135 -2
- package/dist/sdk/schemas/translation/rewriteTextSchemas.js +53 -55
- package/dist/sdk/schemas/translation/rewriteTextSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/sharedSchemas.d.ts +2 -2
- package/dist/sdk/schemas/translation/sharedSchemas.js +54 -58
- package/dist/sdk/schemas/translation/sharedSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateAsyncSchemas.d.ts +224 -1
- package/dist/sdk/schemas/translation/translateAsyncSchemas.js +51 -53
- package/dist/sdk/schemas/translation/translateAsyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateSyncSchemas.d.ts +214 -1
- package/dist/sdk/schemas/translation/translateSyncSchemas.js +34 -36
- package/dist/sdk/schemas/translation/translateSyncSchemas.js.map +1 -1
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.d.ts +148 -1
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js +28 -30
- package/dist/sdk/schemas/translation/translateTextSegmentSchemas.js.map +1 -1
- package/dist/sdk/types/client.js +1 -2
- package/dist/sdk/types/common.js +1 -2
- package/dist/sdk/validation/isSegmentUnderLengthLimit.d.ts +1 -1
- package/dist/sdk/validation/isSegmentUnderLengthLimit.js +7 -11
- package/dist/sdk/validation/isSegmentUnderLengthLimit.js.map +1 -1
- package/dist/sdk/validation/requestSizeLimit.d.ts +4 -4
- package/dist/sdk/validation/requestSizeLimit.js +10 -16
- package/dist/sdk/validation/requestSizeLimit.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,38 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const commonSchemas_1 = require("../common/commonSchemas");
|
|
8
|
-
const translationContextSchemas_1 = require("../common/translationContextSchemas");
|
|
9
|
-
const sharedSchemas_1 = require("./sharedSchemas");
|
|
10
|
-
exports.TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA = zod_1.default
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { OWNER_ID_SCHEMA } from '../common/asyncRequestSchemas.js';
|
|
3
|
+
import { COMMON_REQUEST_HEADERS_SCHEMA, FORCE_INTEGRATION_SCHEMA, LOCALE_SCHEMA, METADATA_SCHEMA, REAL_INTEGRATION_ENGINE_SCHEMA, refineIntegrationIsPresent, } from '../common/commonSchemas.js';
|
|
4
|
+
import { TRANSLATION_CONTEXT_SCHEMA, TRANSLATION_EXAMPLE_SCHEMA, } from '../common/translationContextSchemas.js';
|
|
5
|
+
import { CONTENT_ID_PROP_SCHEMA, CONTENT_UNIT_DESCRIPTION_MAX_LENGTH, HISTORY_ENTRY_SCHEMA, TranslateModeEnum, refineDifferentSourceAndTargetLang, refineHistoryIsPresent, } from './sharedSchemas.js';
|
|
6
|
+
export const TRANSLATE_TEXT_SEGMENT_BODY_SCHEMA = z
|
|
11
7
|
.object({
|
|
12
|
-
ownerId:
|
|
13
|
-
sourceLocale:
|
|
14
|
-
targetLocale:
|
|
15
|
-
integration:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
ownerId: OWNER_ID_SCHEMA.optional(),
|
|
9
|
+
sourceLocale: LOCALE_SCHEMA,
|
|
10
|
+
targetLocale: LOCALE_SCHEMA,
|
|
11
|
+
integration: REAL_INTEGRATION_ENGINE_SCHEMA.optional(),
|
|
12
|
+
forceIntegration: FORCE_INTEGRATION_SCHEMA.optional(),
|
|
13
|
+
context: TRANSLATION_CONTEXT_SCHEMA.extend({
|
|
14
|
+
description: z.string().min(1).max(CONTENT_UNIT_DESCRIPTION_MAX_LENGTH).optional(),
|
|
15
|
+
translationExamples: z.array(TRANSLATION_EXAMPLE_SCHEMA).optional(),
|
|
19
16
|
}).optional(),
|
|
20
|
-
metadata:
|
|
21
|
-
mode:
|
|
22
|
-
.nativeEnum(
|
|
17
|
+
metadata: METADATA_SCHEMA,
|
|
18
|
+
mode: z
|
|
19
|
+
.nativeEnum(TranslateModeEnum)
|
|
23
20
|
.describe('Specifies the translation mode for the request. Use `translate` if you just want to have a translation of the text. Use `rephrase` in combination with `history` entries to attempt to generate a different wording for the translate. Use `shorten` to try to get the translation shorter while maintaining the message.'),
|
|
24
|
-
text:
|
|
25
|
-
contentUnitId:
|
|
26
|
-
segmentId:
|
|
27
|
-
value:
|
|
28
|
-
characterLimit:
|
|
21
|
+
text: z.object({
|
|
22
|
+
contentUnitId: CONTENT_ID_PROP_SCHEMA,
|
|
23
|
+
segmentId: CONTENT_ID_PROP_SCHEMA.optional(),
|
|
24
|
+
value: z.string().min(1),
|
|
25
|
+
characterLimit: z.number().optional(),
|
|
29
26
|
}),
|
|
30
|
-
history:
|
|
31
|
-
.array(
|
|
27
|
+
history: z
|
|
28
|
+
.array(HISTORY_ENTRY_SCHEMA)
|
|
32
29
|
.describe('A list of other previously created variations for this translation')
|
|
33
30
|
.optional(),
|
|
34
31
|
})
|
|
35
|
-
.refine(...
|
|
36
|
-
.refine(...
|
|
37
|
-
|
|
32
|
+
.refine(...refineDifferentSourceAndTargetLang)
|
|
33
|
+
.refine(...refineHistoryIsPresent)
|
|
34
|
+
.refine(...refineIntegrationIsPresent);
|
|
35
|
+
export const TRANSLATE_TEXT_SEGMENT_HEADERS_SCHEMA = COMMON_REQUEST_HEADERS_SCHEMA;
|
|
38
36
|
//# sourceMappingURL=translateTextSegmentSchemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translateTextSegmentSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/translateTextSegmentSchemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translateTextSegmentSchemas.js","sourceRoot":"","sources":["../../../../src/sdk/schemas/translation/translateTextSegmentSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AACnB,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,aAAa,EACb,eAAe,EACf,8BAA8B,EAC9B,0BAA0B,GAC3B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,oBAAoB,EACpB,iBAAiB,EACjB,kCAAkC,EAClC,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC;KAChD,MAAM,CAAC;IACN,OAAO,EAAE,eAAe,CAAC,QAAQ,EAAE;IACnC,YAAY,EAAE,aAAa;IAC3B,YAAY,EAAE,aAAa;IAC3B,WAAW,EAAE,8BAA8B,CAAC,QAAQ,EAAE;IACtD,gBAAgB,EAAE,wBAAwB,CAAC,QAAQ,EAAE;IACrD,OAAO,EAAE,0BAA0B,CAAC,MAAM,CAAC;QACzC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC,QAAQ,EAAE;QAClF,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE;KACpE,CAAC,CAAC,QAAQ,EAAE;IACb,QAAQ,EAAE,eAAe;IACzB,IAAI,EAAE,CAAC;SACJ,UAAU,CAAC,iBAAiB,CAAC;SAC7B,QAAQ,CACP,2TAA2T,CAC5T;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,aAAa,EAAE,sBAAsB;QACrC,SAAS,EAAE,sBAAsB,CAAC,QAAQ,EAAE;QAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACxB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACtC,CAAC;IACF,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,oBAAoB,CAAC;SAC3B,QAAQ,CAAC,oEAAoE,CAAC;SAC9E,QAAQ,EAAE;CACd,CAAC;KACD,MAAM,CAAC,GAAG,kCAAkC,CAAC;KAC7C,MAAM,CAAC,GAAG,sBAAsB,CAAC;KACjC,MAAM,CAAC,GAAG,0BAA0B,CAAC,CAAA;AAExC,MAAM,CAAC,MAAM,qCAAqC,GAAG,6BAA6B,CAAA"}
|
package/dist/sdk/types/client.js
CHANGED
package/dist/sdk/types/common.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { IntegrationEngineEnum } from '../schemas/common/commonSchemas';
|
|
1
|
+
import type { IntegrationEngineEnum } from '../schemas/common/commonSchemas.js';
|
|
2
2
|
export declare const isSegmentUnderLengthLimit: (value: string, integration?: IntegrationEngineEnum) => boolean;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const limit = (0, requestSizeLimit_1.getRequestSizeLimit)(integration);
|
|
9
|
-
const htmlEscaped = (0, htmlEscaping_1.handleHtmlEscape)(value, integration);
|
|
10
|
-
const ntcWrapped = (0, nonTranslatableContentHelper_1.wrapNonTranslatableRegions)(htmlEscaped, integration);
|
|
1
|
+
import { handleHtmlEscape } from '../helpers/htmlEscaping.js';
|
|
2
|
+
import { wrapNonTranslatableRegions } from '../helpers/nonTranslatableContentHelper.js';
|
|
3
|
+
import { getRequestSizeLimit } from './requestSizeLimit.js';
|
|
4
|
+
export const isSegmentUnderLengthLimit = (value, integration) => {
|
|
5
|
+
const limit = getRequestSizeLimit(integration);
|
|
6
|
+
const htmlEscaped = handleHtmlEscape(value, integration);
|
|
7
|
+
const ntcWrapped = wrapNonTranslatableRegions(htmlEscaped, integration);
|
|
11
8
|
return ntcWrapped.length <= limit;
|
|
12
9
|
};
|
|
13
|
-
exports.isSegmentUnderLengthLimit = isSegmentUnderLengthLimit;
|
|
14
10
|
//# sourceMappingURL=isSegmentUnderLengthLimit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSegmentUnderLengthLimit.js","sourceRoot":"","sources":["../../../src/sdk/validation/isSegmentUnderLengthLimit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isSegmentUnderLengthLimit.js","sourceRoot":"","sources":["../../../src/sdk/validation/isSegmentUnderLengthLimit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAA;AAEvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACvC,KAAa,EACb,WAAmC,EAC1B,EAAE;IACX,MAAM,KAAK,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAA;IAC9C,MAAM,WAAW,GAAG,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAA;IACxD,MAAM,UAAU,GAAG,0BAA0B,CAAC,WAAW,EAAE,WAAW,CAAC,CAAA;IAEvE,OAAO,UAAU,CAAC,MAAM,IAAI,KAAK,CAAA;AACnC,CAAC,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { type IntegrationEngineEnum } from '../schemas/common/commonSchemas';
|
|
2
|
-
import type { ContentUnitLike } from '../schemas/translation/sharedSchemas';
|
|
1
|
+
import { type IntegrationEngineEnum } from '../schemas/common/commonSchemas.js';
|
|
2
|
+
import type { ContentUnitLike } from '../schemas/translation/sharedSchemas.js';
|
|
3
3
|
/**
|
|
4
4
|
* Checks if every segment in the content unit is under the size limit.
|
|
5
5
|
*/
|
|
6
|
-
export declare const isContentUnitSizeUnderLimit: (segments: ContentUnitLike["segments"],
|
|
6
|
+
export declare const isContentUnitSizeUnderLimit: (segments: ContentUnitLike["segments"], preferredIntegration?: IntegrationEngineEnum) => boolean;
|
|
7
7
|
/**
|
|
8
8
|
* Checks if every content unit in the request is under the size limit.
|
|
9
9
|
*/
|
|
10
|
-
export declare const isRequestSizeUnderLimit: (contentUnits: ContentUnitLike[],
|
|
10
|
+
export declare const isRequestSizeUnderLimit: (contentUnits: ContentUnitLike[], preferredIntegration?: IntegrationEngineEnum) => boolean;
|
|
11
11
|
/**
|
|
12
12
|
* Returns the request size limit based on the integration.
|
|
13
13
|
*/
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getRequestSizeLimit = exports.isRequestSizeUnderLimit = exports.isContentUnitSizeUnderLimit = void 0;
|
|
4
|
-
const commonSchemas_1 = require("../schemas/common/commonSchemas");
|
|
5
|
-
const isSegmentUnderLengthLimit_1 = require("./isSegmentUnderLengthLimit");
|
|
1
|
+
import { REQUEST_SIZE_LIMIT_MAP, SEGMENT_VALUE_MAX_LENGTH_DEFAULT, } from '../schemas/common/commonSchemas.js';
|
|
2
|
+
import { isSegmentUnderLengthLimit } from './isSegmentUnderLengthLimit.js';
|
|
6
3
|
/**
|
|
7
4
|
* Checks if every segment in the content unit is under the size limit.
|
|
8
5
|
*/
|
|
9
|
-
const isContentUnitSizeUnderLimit = (segments,
|
|
10
|
-
return segments.every(({ value }) =>
|
|
6
|
+
export const isContentUnitSizeUnderLimit = (segments, preferredIntegration) => {
|
|
7
|
+
return segments.every(({ value }) => isSegmentUnderLengthLimit(value, preferredIntegration));
|
|
11
8
|
};
|
|
12
|
-
exports.isContentUnitSizeUnderLimit = isContentUnitSizeUnderLimit;
|
|
13
9
|
/**
|
|
14
10
|
* Checks if every content unit in the request is under the size limit.
|
|
15
11
|
*/
|
|
16
|
-
const isRequestSizeUnderLimit = (contentUnits,
|
|
17
|
-
return contentUnits.every((contentUnit) =>
|
|
12
|
+
export const isRequestSizeUnderLimit = (contentUnits, preferredIntegration) => {
|
|
13
|
+
return contentUnits.every((contentUnit) => isContentUnitSizeUnderLimit(contentUnit.segments, preferredIntegration));
|
|
18
14
|
};
|
|
19
|
-
exports.isRequestSizeUnderLimit = isRequestSizeUnderLimit;
|
|
20
15
|
/**
|
|
21
16
|
* Returns the request size limit based on the integration.
|
|
22
17
|
*/
|
|
23
|
-
const getRequestSizeLimit = (integration) => {
|
|
24
|
-
if (integration && Object.hasOwn(
|
|
25
|
-
return
|
|
18
|
+
export const getRequestSizeLimit = (integration) => {
|
|
19
|
+
if (integration && Object.hasOwn(REQUEST_SIZE_LIMIT_MAP, integration)) {
|
|
20
|
+
return REQUEST_SIZE_LIMIT_MAP[integration];
|
|
26
21
|
}
|
|
27
|
-
return
|
|
22
|
+
return SEGMENT_VALUE_MAX_LENGTH_DEFAULT;
|
|
28
23
|
};
|
|
29
|
-
exports.getRequestSizeLimit = getRequestSizeLimit;
|
|
30
24
|
//# sourceMappingURL=requestSizeLimit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestSizeLimit.js","sourceRoot":"","sources":["../../../src/sdk/validation/requestSizeLimit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"requestSizeLimit.js","sourceRoot":"","sources":["../../../src/sdk/validation/requestSizeLimit.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EACtB,gCAAgC,GACjC,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAA;AAE1E;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,QAAqC,EACrC,oBAA4C,EACnC,EAAE;IACX,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAA;AAC9F,CAAC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,YAA+B,EAC/B,oBAA4C,EACnC,EAAE;IACX,OAAO,YAAY,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,EAAE,CACxC,2BAA2B,CAAC,WAAW,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CACxE,CAAA;AACH,CAAC,CAAA;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,WAAmC,EAAU,EAAE;IACjF,IAAI,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC,sBAAsB,EAAE,WAAW,CAAC,EAAE,CAAC;QACtE,OAAO,sBAAsB,CAAC,WAAW,CAAC,CAAA;IAC5C,CAAC;IAED,OAAO,gCAAgC,CAAA;AACzC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/polyglot-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.1.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Lokalise",
|
|
6
6
|
"url": "https://lokalise.com/"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"node": ">=18"
|
|
16
16
|
},
|
|
17
17
|
"files": ["dist"],
|
|
18
|
-
"type": "
|
|
18
|
+
"type": "module",
|
|
19
19
|
"main": "dist/index.js",
|
|
20
20
|
"exports": {
|
|
21
21
|
".": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "
|
|
30
|
-
"lint": "biome check . && tsc
|
|
29
|
+
"build": "rimraf dist && tsc -p tsconfig.build.json",
|
|
30
|
+
"lint": "biome check . && tsc",
|
|
31
31
|
"lint:fix": "biome check --write",
|
|
32
32
|
"test": "vitest",
|
|
33
33
|
"test:coverage": "npm test -- --coverage",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@lokalise/backend-http-client": "^3.0.0",
|
|
40
40
|
"@lokalise/id-utils": "^2.2.0",
|
|
41
41
|
"@lokalise/node-core": "^13.4.0",
|
|
42
|
-
"@lokalise/non-translatable-markup": "^
|
|
42
|
+
"@lokalise/non-translatable-markup": "^3.0.0",
|
|
43
43
|
"@lokalise/supported-languages": "^2.1.0",
|
|
44
44
|
"@lokalise/zod-extras": "^2.1.0",
|
|
45
45
|
"html-escaper": "^3.0.3",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@vitest/coverage-v8": "^3.0.7",
|
|
61
61
|
"auto-changelog": "^2.5.0",
|
|
62
62
|
"mockttp": "^3.16.0",
|
|
63
|
-
"
|
|
63
|
+
"rimraf": "^6.0.1",
|
|
64
64
|
"ts-deepmerge": "^7.0.1",
|
|
65
|
-
"typescript": "5.
|
|
65
|
+
"typescript": "5.8.2",
|
|
66
66
|
"vitest": "^3.0.4"
|
|
67
67
|
}
|
|
68
68
|
}
|