@lokalise/polyglot-sdk 24.5.0 → 24.5.1

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.
@@ -1 +1,10 @@
1
+ /**
2
+ * Strips Unicode null characters from a string.
3
+ *
4
+ * Removes both actual null bytes and the unescaped `U+0000` JSON escape sequence,
5
+ * while preserving literal, backslash-escaped occurrences in user-provided text.
6
+ *
7
+ * @param text - The input string to sanitize.
8
+ * @returns The input with null characters removed.
9
+ */
1
10
  export declare function removeUnicodeNullCharacters(text: string): string;
@@ -1,3 +1,12 @@
1
+ /**
2
+ * Strips Unicode null characters from a string.
3
+ *
4
+ * Removes both actual null bytes and the unescaped `U+0000` JSON escape sequence,
5
+ * while preserving literal, backslash-escaped occurrences in user-provided text.
6
+ *
7
+ * @param text - The input string to sanitize.
8
+ * @returns The input with null characters removed.
9
+ */
1
10
  export function removeUnicodeNullCharacters(text) {
2
11
  // Remove:
3
12
  // 1. Actual null bytes (\u0000)
@@ -1 +1 @@
1
- {"version":3,"file":"removeUnicodeNullCharacters.js","sourceRoot":"","sources":["../../../src/sdk/helpers/removeUnicodeNullCharacters.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,2BAA2B,CAAC,IAAY;IACtD,UAAU;IACV,gCAAgC;IAChC,qFAAqF;IACrF,EAAE;IACF,sFAAsF;IACtF,0EAA0E;IAC1E,EAAE;IACF,gGAAgG;IAChG,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAA;AACnD,CAAC"}
1
+ {"version":3,"file":"removeUnicodeNullCharacters.js","sourceRoot":"","sources":["../../../src/sdk/helpers/removeUnicodeNullCharacters.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,2BAA2B,CAAC,IAAY;IACtD,UAAU;IACV,gCAAgC;IAChC,qFAAqF;IACrF,EAAE;IACF,sFAAsF;IACtF,0EAA0E;IAC1E,EAAE;IACF,gGAAgG;IAChG,OAAO,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,CAAC,CAAA;AACnD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/polyglot-sdk",
3
- "version": "24.5.0",
3
+ "version": "24.5.1",
4
4
  "author": {
5
5
  "name": "Lokalise",
6
6
  "url": "https://lokalise.com/"
@@ -39,7 +39,7 @@
39
39
  "html-escaper": "^3.0.3",
40
40
  "parse-sse": "^0.1.0",
41
41
  "pino": "^10.3.1",
42
- "undici": "^8.3.0",
42
+ "undici": "^8.4.1",
43
43
  "undici-retry": "^7.0.0"
44
44
  },
45
45
  "devDependencies": {
@@ -47,7 +47,7 @@
47
47
  "@lokalise/biome-config": "^3.1.1",
48
48
  "@lokalise/tsconfig": "^4.0.0",
49
49
  "@types/html-escaper": "^3.0.4",
50
- "@types/node": "^25.9.1",
50
+ "@types/node": "^25.9.2",
51
51
  "@vitest/coverage-v8": "^4.1.8",
52
52
  "mockttp": "^4.4.2",
53
53
  "rimraf": "^6.1.3",