@forsakringskassan/vite-lib-config 4.3.1 → 4.3.2

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.
@@ -9348,6 +9348,17 @@ function createDedent(options) {
9348
9348
  if (escapeSpecialCharacters) {
9349
9349
  result = result.replace(/\\n/g, "\n");
9350
9350
  }
9351
+ if (typeof Bun !== "undefined") {
9352
+ result = result.replace(
9353
+ // Matches e.g. \\u{1f60a} or \\u5F1F
9354
+ /\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,
9355
+ (_, braced, unbraced) => {
9356
+ var _ref;
9357
+ const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : "";
9358
+ return String.fromCodePoint(parseInt(hex, 16));
9359
+ }
9360
+ );
9361
+ }
9351
9362
  return result;
9352
9363
  }
9353
9364
  }
@@ -11460,6 +11460,17 @@ function createDedent(options) {
11460
11460
  if (escapeSpecialCharacters) {
11461
11461
  result = result.replace(/\\n/g, "\n");
11462
11462
  }
11463
+ if (typeof Bun !== "undefined") {
11464
+ result = result.replace(
11465
+ // Matches e.g. \\u{1f60a} or \\u5F1F
11466
+ /\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,
11467
+ (_, braced, unbraced) => {
11468
+ var _ref;
11469
+ const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : "";
11470
+ return String.fromCodePoint(parseInt(hex, 16));
11471
+ }
11472
+ );
11473
+ }
11463
11474
  return result;
11464
11475
  }
11465
11476
  }
@@ -11450,6 +11450,17 @@ function createDedent(options) {
11450
11450
  if (escapeSpecialCharacters) {
11451
11451
  result = result.replace(/\\n/g, "\n");
11452
11452
  }
11453
+ if (typeof Bun !== "undefined") {
11454
+ result = result.replace(
11455
+ // Matches e.g. \\u{1f60a} or \\u5F1F
11456
+ /\\u(?:\{([\da-fA-F]{1,6})\}|([\da-fA-F]{4}))/g,
11457
+ (_, braced, unbraced) => {
11458
+ var _ref;
11459
+ const hex = (_ref = braced !== null && braced !== void 0 ? braced : unbraced) !== null && _ref !== void 0 ? _ref : "";
11460
+ return String.fromCodePoint(parseInt(hex, 16));
11461
+ }
11462
+ );
11463
+ }
11453
11464
  return result;
11454
11465
  }
11455
11466
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"