houdini-svelte 1.2.41 → 1.2.42

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.
@@ -74771,13 +74771,13 @@ async function copyFile(src2, dest) {
74771
74771
  }
74772
74772
  return null;
74773
74773
  }
74774
- async function readFile(filepath) {
74774
+ async function readFile(filepath, encoding) {
74775
74775
  if (houdini_mode.is_testing) {
74776
74776
  try {
74777
74777
  if (filepath.includes("build/runtime")) {
74778
- return await import_promises.default.readFile(filepath, "utf-8");
74778
+ return await import_promises.default.readFile(filepath, encoding ?? "utf-8");
74779
74779
  }
74780
- return import_memfs.fs.readFileSync(filepath, "utf-8").toString();
74780
+ return import_memfs.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
74781
74781
  } catch (e22) {
74782
74782
  return null;
74783
74783
  }
@@ -74917,11 +74917,15 @@ async function recursiveCopy(source, target, transforms, notRoot) {
74917
74917
  await recursiveCopy(childPath, parentDir, transforms, true);
74918
74918
  } else {
74919
74919
  const targetPath = join2(parentDir, child);
74920
- let original = await readFile(childPath) || "";
74921
74920
  if (transforms?.[childPath]) {
74922
- original = await transforms[childPath](original, childPath);
74921
+ let original = await readFile(childPath) || "";
74922
+ await writeFile(
74923
+ targetPath,
74924
+ await transforms[childPath](original, childPath)
74925
+ );
74926
+ } else {
74927
+ await copyFile(childPath, targetPath);
74923
74928
  }
74924
- await writeFile(targetPath, original);
74925
74929
  }
74926
74930
  })
74927
74931
  );
@@ -140006,13 +140010,13 @@ async function copyFile2(src2, dest) {
140006
140010
  }
140007
140011
  return null;
140008
140012
  }
140009
- async function readFile2(filepath) {
140013
+ async function readFile2(filepath, encoding) {
140010
140014
  if (houdini_mode2.is_testing) {
140011
140015
  try {
140012
140016
  if (filepath.includes("build/runtime")) {
140013
- return await import_promises2.default.readFile(filepath, "utf-8");
140017
+ return await import_promises2.default.readFile(filepath, encoding ?? "utf-8");
140014
140018
  }
140015
- return import_memfs2.fs.readFileSync(filepath, "utf-8").toString();
140019
+ return import_memfs2.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
140016
140020
  } catch (e22) {
140017
140021
  return null;
140018
140022
  }
@@ -140152,11 +140156,15 @@ async function recursiveCopy2(source, target, transforms, notRoot) {
140152
140156
  await recursiveCopy2(childPath, parentDir, transforms, true);
140153
140157
  } else {
140154
140158
  const targetPath = join22(parentDir, child);
140155
- let original = await readFile2(childPath) || "";
140156
140159
  if (transforms?.[childPath]) {
140157
- original = await transforms[childPath](original, childPath);
140160
+ let original = await readFile2(childPath) || "";
140161
+ await writeFile2(
140162
+ targetPath,
140163
+ await transforms[childPath](original, childPath)
140164
+ );
140165
+ } else {
140166
+ await copyFile2(childPath, targetPath);
140158
140167
  }
140159
- await writeFile2(targetPath, original);
140160
140168
  }
140161
140169
  })
140162
140170
  );
@@ -74766,13 +74766,13 @@ async function copyFile(src2, dest) {
74766
74766
  }
74767
74767
  return null;
74768
74768
  }
74769
- async function readFile(filepath) {
74769
+ async function readFile(filepath, encoding) {
74770
74770
  if (houdini_mode.is_testing) {
74771
74771
  try {
74772
74772
  if (filepath.includes("build/runtime")) {
74773
- return await fs.readFile(filepath, "utf-8");
74773
+ return await fs.readFile(filepath, encoding ?? "utf-8");
74774
74774
  }
74775
- return import_memfs.fs.readFileSync(filepath, "utf-8").toString();
74775
+ return import_memfs.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
74776
74776
  } catch (e22) {
74777
74777
  return null;
74778
74778
  }
@@ -74912,11 +74912,15 @@ async function recursiveCopy(source, target, transforms, notRoot) {
74912
74912
  await recursiveCopy(childPath, parentDir, transforms, true);
74913
74913
  } else {
74914
74914
  const targetPath = join2(parentDir, child);
74915
- let original = await readFile(childPath) || "";
74916
74915
  if (transforms?.[childPath]) {
74917
- original = await transforms[childPath](original, childPath);
74916
+ let original = await readFile(childPath) || "";
74917
+ await writeFile(
74918
+ targetPath,
74919
+ await transforms[childPath](original, childPath)
74920
+ );
74921
+ } else {
74922
+ await copyFile(childPath, targetPath);
74918
74923
  }
74919
- await writeFile(targetPath, original);
74920
74924
  }
74921
74925
  })
74922
74926
  );
@@ -140000,13 +140004,13 @@ async function copyFile2(src2, dest) {
140000
140004
  }
140001
140005
  return null;
140002
140006
  }
140003
- async function readFile2(filepath) {
140007
+ async function readFile2(filepath, encoding) {
140004
140008
  if (houdini_mode2.is_testing) {
140005
140009
  try {
140006
140010
  if (filepath.includes("build/runtime")) {
140007
- return await fs3.readFile(filepath, "utf-8");
140011
+ return await fs3.readFile(filepath, encoding ?? "utf-8");
140008
140012
  }
140009
- return import_memfs2.fs.readFileSync(filepath, "utf-8").toString();
140013
+ return import_memfs2.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
140010
140014
  } catch (e22) {
140011
140015
  return null;
140012
140016
  }
@@ -140146,11 +140150,15 @@ async function recursiveCopy2(source, target, transforms, notRoot) {
140146
140150
  await recursiveCopy2(childPath, parentDir, transforms, true);
140147
140151
  } else {
140148
140152
  const targetPath = join22(parentDir, child);
140149
- let original = await readFile2(childPath) || "";
140150
140153
  if (transforms?.[childPath]) {
140151
- original = await transforms[childPath](original, childPath);
140154
+ let original = await readFile2(childPath) || "";
140155
+ await writeFile2(
140156
+ targetPath,
140157
+ await transforms[childPath](original, childPath)
140158
+ );
140159
+ } else {
140160
+ await copyFile2(childPath, targetPath);
140152
140161
  }
140153
- await writeFile2(targetPath, original);
140154
140162
  }
140155
140163
  })
140156
140164
  );
@@ -77512,13 +77512,13 @@ async function copyFile(src2, dest) {
77512
77512
  }
77513
77513
  return null;
77514
77514
  }
77515
- async function readFile(filepath) {
77515
+ async function readFile(filepath, encoding) {
77516
77516
  if (houdini_mode.is_testing) {
77517
77517
  try {
77518
77518
  if (filepath.includes("build/runtime")) {
77519
- return await import_promises.default.readFile(filepath, "utf-8");
77519
+ return await import_promises.default.readFile(filepath, encoding ?? "utf-8");
77520
77520
  }
77521
- return import_memfs.fs.readFileSync(filepath, "utf-8").toString();
77521
+ return import_memfs.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
77522
77522
  } catch (e22) {
77523
77523
  return null;
77524
77524
  }
@@ -77658,11 +77658,15 @@ async function recursiveCopy(source, target, transforms, notRoot) {
77658
77658
  await recursiveCopy(childPath, parentDir, transforms, true);
77659
77659
  } else {
77660
77660
  const targetPath = join2(parentDir, child);
77661
- let original = await readFile(childPath) || "";
77662
77661
  if (transforms?.[childPath]) {
77663
- original = await transforms[childPath](original, childPath);
77662
+ let original = await readFile(childPath) || "";
77663
+ await writeFile(
77664
+ targetPath,
77665
+ await transforms[childPath](original, childPath)
77666
+ );
77667
+ } else {
77668
+ await copyFile(childPath, targetPath);
77664
77669
  }
77665
- await writeFile(targetPath, original);
77666
77670
  }
77667
77671
  })
77668
77672
  );
@@ -171812,13 +171816,13 @@ async function copyFile2(src2, dest) {
171812
171816
  }
171813
171817
  return null;
171814
171818
  }
171815
- async function readFile2(filepath) {
171819
+ async function readFile2(filepath, encoding) {
171816
171820
  if (houdini_mode2.is_testing) {
171817
171821
  try {
171818
171822
  if (filepath.includes("build/runtime")) {
171819
- return await import_promises2.default.readFile(filepath, "utf-8");
171823
+ return await import_promises2.default.readFile(filepath, encoding ?? "utf-8");
171820
171824
  }
171821
- return import_memfs2.fs.readFileSync(filepath, "utf-8").toString();
171825
+ return import_memfs2.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
171822
171826
  } catch (e22) {
171823
171827
  return null;
171824
171828
  }
@@ -171958,11 +171962,15 @@ async function recursiveCopy2(source, target, transforms, notRoot) {
171958
171962
  await recursiveCopy2(childPath, parentDir, transforms, true);
171959
171963
  } else {
171960
171964
  const targetPath = join22(parentDir, child);
171961
- let original = await readFile2(childPath) || "";
171962
171965
  if (transforms?.[childPath]) {
171963
- original = await transforms[childPath](original, childPath);
171966
+ let original = await readFile2(childPath) || "";
171967
+ await writeFile2(
171968
+ targetPath,
171969
+ await transforms[childPath](original, childPath)
171970
+ );
171971
+ } else {
171972
+ await copyFile2(childPath, targetPath);
171964
171973
  }
171965
- await writeFile2(targetPath, original);
171966
171974
  }
171967
171975
  })
171968
171976
  );
@@ -77509,13 +77509,13 @@ async function copyFile(src2, dest) {
77509
77509
  }
77510
77510
  return null;
77511
77511
  }
77512
- async function readFile(filepath) {
77512
+ async function readFile(filepath, encoding) {
77513
77513
  if (houdini_mode.is_testing) {
77514
77514
  try {
77515
77515
  if (filepath.includes("build/runtime")) {
77516
- return await fs.readFile(filepath, "utf-8");
77516
+ return await fs.readFile(filepath, encoding ?? "utf-8");
77517
77517
  }
77518
- return import_memfs.fs.readFileSync(filepath, "utf-8").toString();
77518
+ return import_memfs.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
77519
77519
  } catch (e22) {
77520
77520
  return null;
77521
77521
  }
@@ -77655,11 +77655,15 @@ async function recursiveCopy(source, target, transforms, notRoot) {
77655
77655
  await recursiveCopy(childPath, parentDir, transforms, true);
77656
77656
  } else {
77657
77657
  const targetPath = join2(parentDir, child);
77658
- let original = await readFile(childPath) || "";
77659
77658
  if (transforms?.[childPath]) {
77660
- original = await transforms[childPath](original, childPath);
77659
+ let original = await readFile(childPath) || "";
77660
+ await writeFile(
77661
+ targetPath,
77662
+ await transforms[childPath](original, childPath)
77663
+ );
77664
+ } else {
77665
+ await copyFile(childPath, targetPath);
77661
77666
  }
77662
- await writeFile(targetPath, original);
77663
77667
  }
77664
77668
  })
77665
77669
  );
@@ -171808,13 +171812,13 @@ async function copyFile2(src2, dest) {
171808
171812
  }
171809
171813
  return null;
171810
171814
  }
171811
- async function readFile2(filepath) {
171815
+ async function readFile2(filepath, encoding) {
171812
171816
  if (houdini_mode2.is_testing) {
171813
171817
  try {
171814
171818
  if (filepath.includes("build/runtime")) {
171815
- return await fs3.readFile(filepath, "utf-8");
171819
+ return await fs3.readFile(filepath, encoding ?? "utf-8");
171816
171820
  }
171817
- return import_memfs2.fs.readFileSync(filepath, "utf-8").toString();
171821
+ return import_memfs2.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
171818
171822
  } catch (e22) {
171819
171823
  return null;
171820
171824
  }
@@ -171954,11 +171958,15 @@ async function recursiveCopy2(source, target, transforms, notRoot) {
171954
171958
  await recursiveCopy2(childPath, parentDir, transforms, true);
171955
171959
  } else {
171956
171960
  const targetPath = join22(parentDir, child);
171957
- let original = await readFile2(childPath) || "";
171958
171961
  if (transforms?.[childPath]) {
171959
- original = await transforms[childPath](original, childPath);
171962
+ let original = await readFile2(childPath) || "";
171963
+ await writeFile2(
171964
+ targetPath,
171965
+ await transforms[childPath](original, childPath)
171966
+ );
171967
+ } else {
171968
+ await copyFile2(childPath, targetPath);
171960
171969
  }
171961
- await writeFile2(targetPath, original);
171962
171970
  }
171963
171971
  })
171964
171972
  );
@@ -74774,13 +74774,13 @@ async function copyFile(src2, dest) {
74774
74774
  }
74775
74775
  return null;
74776
74776
  }
74777
- async function readFile(filepath) {
74777
+ async function readFile(filepath, encoding) {
74778
74778
  if (houdini_mode.is_testing) {
74779
74779
  try {
74780
74780
  if (filepath.includes("build/runtime")) {
74781
- return await import_promises.default.readFile(filepath, "utf-8");
74781
+ return await import_promises.default.readFile(filepath, encoding ?? "utf-8");
74782
74782
  }
74783
- return import_memfs.fs.readFileSync(filepath, "utf-8").toString();
74783
+ return import_memfs.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
74784
74784
  } catch (e22) {
74785
74785
  return null;
74786
74786
  }
@@ -74920,11 +74920,15 @@ async function recursiveCopy(source, target, transforms, notRoot) {
74920
74920
  await recursiveCopy(childPath, parentDir, transforms, true);
74921
74921
  } else {
74922
74922
  const targetPath = join2(parentDir, child);
74923
- let original = await readFile(childPath) || "";
74924
74923
  if (transforms?.[childPath]) {
74925
- original = await transforms[childPath](original, childPath);
74924
+ let original = await readFile(childPath) || "";
74925
+ await writeFile(
74926
+ targetPath,
74927
+ await transforms[childPath](original, childPath)
74928
+ );
74929
+ } else {
74930
+ await copyFile(childPath, targetPath);
74926
74931
  }
74927
- await writeFile(targetPath, original);
74928
74932
  }
74929
74933
  })
74930
74934
  );
@@ -132407,13 +132411,13 @@ async function copyFile2(src2, dest) {
132407
132411
  }
132408
132412
  return null;
132409
132413
  }
132410
- async function readFile2(filepath) {
132414
+ async function readFile2(filepath, encoding) {
132411
132415
  if (houdini_mode2.is_testing) {
132412
132416
  try {
132413
132417
  if (filepath.includes("build/runtime")) {
132414
- return await import_promises2.default.readFile(filepath, "utf-8");
132418
+ return await import_promises2.default.readFile(filepath, encoding ?? "utf-8");
132415
132419
  }
132416
- return import_memfs2.fs.readFileSync(filepath, "utf-8").toString();
132420
+ return import_memfs2.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
132417
132421
  } catch (e3) {
132418
132422
  return null;
132419
132423
  }
@@ -132553,11 +132557,15 @@ async function recursiveCopy2(source, target, transforms, notRoot) {
132553
132557
  await recursiveCopy2(childPath, parentDir, transforms, true);
132554
132558
  } else {
132555
132559
  const targetPath = join3(parentDir, child);
132556
- let original = await readFile2(childPath) || "";
132557
132560
  if (transforms?.[childPath]) {
132558
- original = await transforms[childPath](original, childPath);
132561
+ let original = await readFile2(childPath) || "";
132562
+ await writeFile2(
132563
+ targetPath,
132564
+ await transforms[childPath](original, childPath)
132565
+ );
132566
+ } else {
132567
+ await copyFile2(childPath, targetPath);
132559
132568
  }
132560
- await writeFile2(targetPath, original);
132561
132569
  }
132562
132570
  })
132563
132571
  );
@@ -196760,13 +196768,13 @@ async function copyFile3(src2, dest) {
196760
196768
  }
196761
196769
  return null;
196762
196770
  }
196763
- async function readFile3(filepath) {
196771
+ async function readFile3(filepath, encoding) {
196764
196772
  if (houdini_mode3.is_testing) {
196765
196773
  try {
196766
196774
  if (filepath.includes("build/runtime")) {
196767
- return await import_promises3.default.readFile(filepath, "utf-8");
196775
+ return await import_promises3.default.readFile(filepath, encoding ?? "utf-8");
196768
196776
  }
196769
- return import_memfs3.fs.readFileSync(filepath, "utf-8").toString();
196777
+ return import_memfs3.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
196770
196778
  } catch (e3) {
196771
196779
  return null;
196772
196780
  }
@@ -196906,11 +196914,15 @@ async function recursiveCopy3(source, target, transforms, notRoot) {
196906
196914
  await recursiveCopy3(childPath, parentDir, transforms, true);
196907
196915
  } else {
196908
196916
  const targetPath = join4(parentDir, child);
196909
- let original = await readFile3(childPath) || "";
196910
196917
  if (transforms?.[childPath]) {
196911
- original = await transforms[childPath](original, childPath);
196918
+ let original = await readFile3(childPath) || "";
196919
+ await writeFile3(
196920
+ targetPath,
196921
+ await transforms[childPath](original, childPath)
196922
+ );
196923
+ } else {
196924
+ await copyFile3(childPath, targetPath);
196912
196925
  }
196913
- await writeFile3(targetPath, original);
196914
196926
  }
196915
196927
  })
196916
196928
  );
@@ -262094,13 +262106,13 @@ async function copyFile4(src2, dest) {
262094
262106
  }
262095
262107
  return null;
262096
262108
  }
262097
- async function readFile4(filepath) {
262109
+ async function readFile4(filepath, encoding) {
262098
262110
  if (houdini_mode4.is_testing) {
262099
262111
  try {
262100
262112
  if (filepath.includes("build/runtime")) {
262101
- return await import_promises4.default.readFile(filepath, "utf-8");
262113
+ return await import_promises4.default.readFile(filepath, encoding ?? "utf-8");
262102
262114
  }
262103
- return import_memfs4.fs.readFileSync(filepath, "utf-8").toString();
262115
+ return import_memfs4.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
262104
262116
  } catch (e22) {
262105
262117
  return null;
262106
262118
  }
@@ -262240,11 +262252,15 @@ async function recursiveCopy4(source, target, transforms, notRoot) {
262240
262252
  await recursiveCopy4(childPath, parentDir, transforms, true);
262241
262253
  } else {
262242
262254
  const targetPath = join24(parentDir, child);
262243
- let original = await readFile4(childPath) || "";
262244
262255
  if (transforms?.[childPath]) {
262245
- original = await transforms[childPath](original, childPath);
262256
+ let original = await readFile4(childPath) || "";
262257
+ await writeFile4(
262258
+ targetPath,
262259
+ await transforms[childPath](original, childPath)
262260
+ );
262261
+ } else {
262262
+ await copyFile4(childPath, targetPath);
262246
262263
  }
262247
- await writeFile4(targetPath, original);
262248
262264
  }
262249
262265
  })
262250
262266
  );
@@ -74766,13 +74766,13 @@ async function copyFile(src2, dest) {
74766
74766
  }
74767
74767
  return null;
74768
74768
  }
74769
- async function readFile(filepath) {
74769
+ async function readFile(filepath, encoding) {
74770
74770
  if (houdini_mode.is_testing) {
74771
74771
  try {
74772
74772
  if (filepath.includes("build/runtime")) {
74773
- return await fs.readFile(filepath, "utf-8");
74773
+ return await fs.readFile(filepath, encoding ?? "utf-8");
74774
74774
  }
74775
- return import_memfs.fs.readFileSync(filepath, "utf-8").toString();
74775
+ return import_memfs.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
74776
74776
  } catch (e22) {
74777
74777
  return null;
74778
74778
  }
@@ -74912,11 +74912,15 @@ async function recursiveCopy(source, target, transforms, notRoot) {
74912
74912
  await recursiveCopy(childPath, parentDir, transforms, true);
74913
74913
  } else {
74914
74914
  const targetPath = join2(parentDir, child);
74915
- let original = await readFile(childPath) || "";
74916
74915
  if (transforms?.[childPath]) {
74917
- original = await transforms[childPath](original, childPath);
74916
+ let original = await readFile(childPath) || "";
74917
+ await writeFile(
74918
+ targetPath,
74919
+ await transforms[childPath](original, childPath)
74920
+ );
74921
+ } else {
74922
+ await copyFile(childPath, targetPath);
74918
74923
  }
74919
- await writeFile(targetPath, original);
74920
74924
  }
74921
74925
  })
74922
74926
  );
@@ -132398,13 +132402,13 @@ async function copyFile2(src2, dest) {
132398
132402
  }
132399
132403
  return null;
132400
132404
  }
132401
- async function readFile2(filepath) {
132405
+ async function readFile2(filepath, encoding) {
132402
132406
  if (houdini_mode2.is_testing) {
132403
132407
  try {
132404
132408
  if (filepath.includes("build/runtime")) {
132405
- return await fs3.readFile(filepath, "utf-8");
132409
+ return await fs3.readFile(filepath, encoding ?? "utf-8");
132406
132410
  }
132407
- return import_memfs2.fs.readFileSync(filepath, "utf-8").toString();
132411
+ return import_memfs2.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
132408
132412
  } catch (e3) {
132409
132413
  return null;
132410
132414
  }
@@ -132544,11 +132548,15 @@ async function recursiveCopy2(source, target, transforms, notRoot) {
132544
132548
  await recursiveCopy2(childPath, parentDir, transforms, true);
132545
132549
  } else {
132546
132550
  const targetPath = join3(parentDir, child);
132547
- let original = await readFile2(childPath) || "";
132548
132551
  if (transforms?.[childPath]) {
132549
- original = await transforms[childPath](original, childPath);
132552
+ let original = await readFile2(childPath) || "";
132553
+ await writeFile2(
132554
+ targetPath,
132555
+ await transforms[childPath](original, childPath)
132556
+ );
132557
+ } else {
132558
+ await copyFile2(childPath, targetPath);
132550
132559
  }
132551
- await writeFile2(targetPath, original);
132552
132560
  }
132553
132561
  })
132554
132562
  );
@@ -196750,13 +196758,13 @@ async function copyFile3(src2, dest) {
196750
196758
  }
196751
196759
  return null;
196752
196760
  }
196753
- async function readFile3(filepath) {
196761
+ async function readFile3(filepath, encoding) {
196754
196762
  if (houdini_mode3.is_testing) {
196755
196763
  try {
196756
196764
  if (filepath.includes("build/runtime")) {
196757
- return await fs4.readFile(filepath, "utf-8");
196765
+ return await fs4.readFile(filepath, encoding ?? "utf-8");
196758
196766
  }
196759
- return import_memfs3.fs.readFileSync(filepath, "utf-8").toString();
196767
+ return import_memfs3.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
196760
196768
  } catch (e3) {
196761
196769
  return null;
196762
196770
  }
@@ -196896,11 +196904,15 @@ async function recursiveCopy3(source, target, transforms, notRoot) {
196896
196904
  await recursiveCopy3(childPath, parentDir, transforms, true);
196897
196905
  } else {
196898
196906
  const targetPath = join4(parentDir, child);
196899
- let original = await readFile3(childPath) || "";
196900
196907
  if (transforms?.[childPath]) {
196901
- original = await transforms[childPath](original, childPath);
196908
+ let original = await readFile3(childPath) || "";
196909
+ await writeFile3(
196910
+ targetPath,
196911
+ await transforms[childPath](original, childPath)
196912
+ );
196913
+ } else {
196914
+ await copyFile3(childPath, targetPath);
196902
196915
  }
196903
- await writeFile3(targetPath, original);
196904
196916
  }
196905
196917
  })
196906
196918
  );
@@ -262083,13 +262095,13 @@ async function copyFile4(src2, dest) {
262083
262095
  }
262084
262096
  return null;
262085
262097
  }
262086
- async function readFile4(filepath) {
262098
+ async function readFile4(filepath, encoding) {
262087
262099
  if (houdini_mode4.is_testing) {
262088
262100
  try {
262089
262101
  if (filepath.includes("build/runtime")) {
262090
- return await fs5.readFile(filepath, "utf-8");
262102
+ return await fs5.readFile(filepath, encoding ?? "utf-8");
262091
262103
  }
262092
- return import_memfs4.fs.readFileSync(filepath, "utf-8").toString();
262104
+ return import_memfs4.fs.readFileSync(filepath, encoding ?? "utf-8").toString();
262093
262105
  } catch (e22) {
262094
262106
  return null;
262095
262107
  }
@@ -262229,11 +262241,15 @@ async function recursiveCopy4(source, target, transforms, notRoot) {
262229
262241
  await recursiveCopy4(childPath, parentDir, transforms, true);
262230
262242
  } else {
262231
262243
  const targetPath = join24(parentDir, child);
262232
- let original = await readFile4(childPath) || "";
262233
262244
  if (transforms?.[childPath]) {
262234
- original = await transforms[childPath](original, childPath);
262245
+ let original = await readFile4(childPath) || "";
262246
+ await writeFile4(
262247
+ targetPath,
262248
+ await transforms[childPath](original, childPath)
262249
+ );
262250
+ } else {
262251
+ await copyFile4(childPath, targetPath);
262235
262252
  }
262236
- await writeFile4(targetPath, original);
262237
262253
  }
262238
262254
  })
262239
262255
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "1.2.41",
3
+ "version": "1.2.42",
4
4
  "description": "The svelte plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -33,7 +33,7 @@
33
33
  "rollup": "^3.7.4",
34
34
  "svelte": "^3.57.0",
35
35
  "vite": "^4.1.1",
36
- "houdini": "^1.2.41"
36
+ "houdini": "^1.2.42"
37
37
  },
38
38
  "files": [
39
39
  "build"