@intlayer/config 8.4.1 → 8.4.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.
Files changed (42) hide show
  1. package/dist/cjs/configFile/buildConfigurationFields.cjs +1 -1
  2. package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
  3. package/dist/cjs/configFile/configurationSchema.cjs +1 -1
  4. package/dist/cjs/configFile/configurationSchema.cjs.map +1 -1
  5. package/dist/cjs/configFile/getConfiguration.cjs +1 -1
  6. package/dist/cjs/configFile/getConfiguration.cjs.map +1 -1
  7. package/dist/cjs/configFile/searchConfigurationFile.cjs +1 -1
  8. package/dist/cjs/configFile/searchConfigurationFile.cjs.map +1 -1
  9. package/dist/cjs/loadExternalFile/loadExternalFile.cjs +1 -1
  10. package/dist/cjs/loadExternalFile/loadExternalFile.cjs.map +1 -1
  11. package/dist/cjs/loadExternalFile/transpileTSToCJS.cjs +1 -1
  12. package/dist/cjs/loadExternalFile/transpileTSToCJS.cjs.map +1 -1
  13. package/dist/esm/configFile/buildConfigurationFields.mjs +1 -1
  14. package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
  15. package/dist/esm/configFile/configurationSchema.mjs +1 -1
  16. package/dist/esm/configFile/configurationSchema.mjs.map +1 -1
  17. package/dist/esm/configFile/getConfiguration.mjs +1 -1
  18. package/dist/esm/configFile/getConfiguration.mjs.map +1 -1
  19. package/dist/esm/configFile/searchConfigurationFile.mjs +1 -1
  20. package/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -1
  21. package/dist/esm/loadExternalFile/loadExternalFile.mjs +1 -1
  22. package/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -1
  23. package/dist/esm/loadExternalFile/transpileTSToCJS.mjs +1 -1
  24. package/dist/esm/loadExternalFile/transpileTSToCJS.mjs.map +1 -1
  25. package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
  26. package/dist/types/configFile/configurationSchema.d.ts +7 -13
  27. package/dist/types/configFile/configurationSchema.d.ts.map +1 -1
  28. package/dist/types/configFile/getConfiguration.d.ts +2 -0
  29. package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
  30. package/dist/types/configFile/loadConfigurationFile.d.ts +1 -1
  31. package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
  32. package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
  33. package/dist/types/loadExternalFile/index.d.ts +3 -3
  34. package/dist/types/loadExternalFile/loadExternalFile.d.ts +2 -25
  35. package/dist/types/loadExternalFile/transpileTSToCJS.d.ts +2 -8
  36. package/dist/types/loadExternalFile-CJIPA_rP.d.ts +25 -0
  37. package/dist/types/loadExternalFile-CJIPA_rP.d.ts.map +1 -0
  38. package/dist/types/transpileTSToCJS-DxeK5fRY.d.ts +19 -0
  39. package/dist/types/transpileTSToCJS-DxeK5fRY.d.ts.map +1 -0
  40. package/package.json +2 -2
  41. package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +0 -1
  42. package/dist/types/loadExternalFile/transpileTSToCJS.d.ts.map +0 -1
@@ -1,8 +1,2 @@
1
- import { BuildOptions } from "esbuild";
2
-
3
- //#region src/loadExternalFile/transpileTSToCJS.d.ts
4
- declare const transpileTSToCJSSync: (code: string, filePath: string, options?: BuildOptions) => string | undefined;
5
- declare const transpileTSToCJS: (code: string, filePath: string, options?: BuildOptions) => Promise<string | undefined>;
6
- //#endregion
7
- export { transpileTSToCJS, transpileTSToCJSSync };
8
- //# sourceMappingURL=transpileTSToCJS.d.ts.map
1
+ import { n as transpileTSToCJS, r as transpileTSToCJSSync, t as TranspileOptions } from "../transpileTSToCJS-DxeK5fRY.js";
2
+ export { TranspileOptions, transpileTSToCJS, transpileTSToCJSSync };
@@ -0,0 +1,25 @@
1
+ import { t as SandBoxContextOptions } from "./parseFileContent-CriV5Luv.js";
2
+ import { t as TranspileOptions } from "./transpileTSToCJS-DxeK5fRY.js";
3
+ import { IntlayerConfig } from "@intlayer/types/config";
4
+
5
+ //#region src/loadExternalFile/loadExternalFile.d.ts
6
+ type LoadExternalFileOptions = {
7
+ configuration?: IntlayerConfig;
8
+ buildOptions?: TranspileOptions;
9
+ logError?: boolean;
10
+ } & SandBoxContextOptions;
11
+ /**
12
+ * Load the content declaration from the given path
13
+ *
14
+ * Accepts JSON, JS, MJS and TS files as configuration
15
+ */
16
+ declare const loadExternalFileSync: (filePath: string, options?: LoadExternalFileOptions) => any | undefined;
17
+ /**
18
+ * Load the content declaration from the given path
19
+ *
20
+ * Accepts JSON, JS, MJS and TS files as configuration
21
+ */
22
+ declare const loadExternalFile: (filePath: string, options?: LoadExternalFileOptions) => Promise<any | undefined>;
23
+ //#endregion
24
+ export { loadExternalFile as n, loadExternalFileSync as r, LoadExternalFileOptions as t };
25
+ //# sourceMappingURL=loadExternalFile-CJIPA_rP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loadExternalFile-CJIPA_rP.d.ts","names":[],"sources":["../../src/loadExternalFile/loadExternalFile.ts"],"mappings":";;;;;KAmBY,uBAAA;EACV,aAAA,GAAgB,cAAA;EAChB,YAAA,GAAe,gBAAA;EACf,QAAA;AAAA,IACE,qBAAA;;;;;;cAOS,oBAAA,GACX,QAAA,UACA,OAAA,GAAU,uBAAA;;;;;;cA4DC,gBAAA,GACX,QAAA,UACA,OAAA,GAAU,uBAAA,KACT,OAAA"}
@@ -0,0 +1,19 @@
1
+ import * as esbuild from "esbuild";
2
+ import { BuildOptions } from "esbuild";
3
+
4
+ //#region src/loadExternalFile/transpileTSToCJS.d.ts
5
+ type TranspileOptions = BuildOptions & {
6
+ /**
7
+ * Optional custom esbuild instance to use for transpilation.
8
+ * Useful in environments (e.g. VS Code extensions) where the bundled
9
+ * esbuild binary may not match the host platform.
10
+ * When provided, its `buildSync`/`build` methods are used instead of
11
+ * the ones imported from the `esbuild` package.
12
+ */
13
+ esbuildInstance?: typeof esbuild;
14
+ };
15
+ declare const transpileTSToCJSSync: (code: string, filePath: string, options?: TranspileOptions) => string | undefined;
16
+ declare const transpileTSToCJS: (code: string, filePath: string, options?: TranspileOptions) => Promise<string | undefined>;
17
+ //#endregion
18
+ export { transpileTSToCJS as n, transpileTSToCJSSync as r, TranspileOptions as t };
19
+ //# sourceMappingURL=transpileTSToCJS-DxeK5fRY.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transpileTSToCJS-DxeK5fRY.d.ts","names":[],"sources":["../../src/loadExternalFile/transpileTSToCJS.ts"],"mappings":";;;;KAOY,gBAAA,GAAmB,YAAA;;;AAA/B;;;;;EAQE,eAAA,UARyC,OAAA;AAAA;AAAA,cA6C9B,oBAAA,GACX,IAAA,UACA,QAAA,UACA,OAAA,GAAU,gBAAA;AAAA,cAwBC,gBAAA,GACX,IAAA,UACA,QAAA,UACA,OAAA,GAAU,gBAAA,KACT,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/config",
3
- "version": "8.4.1",
3
+ "version": "8.4.2",
4
4
  "private": false,
5
5
  "description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
6
6
  "keywords": [
@@ -127,7 +127,7 @@
127
127
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
128
128
  },
129
129
  "dependencies": {
130
- "@intlayer/types": "8.4.1",
130
+ "@intlayer/types": "8.4.2",
131
131
  "defu": "6.1.4",
132
132
  "dotenv": "17.3.1",
133
133
  "esbuild": "0.27.4",
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadExternalFile.d.ts","names":[],"sources":["../../../src/loadExternalFile/loadExternalFile.ts"],"mappings":";;;;;KAgBY,uBAAA;EACV,aAAA,GAAgB,cAAA;EAChB,YAAA,GAAe,YAAA;EACf,QAAA;AAAA,IACE,qBAAA;;;;;;cAOS,oBAAA,GACX,QAAA,UACA,OAAA,GAAU,uBAAA;;;;;;cA2DC,gBAAA,GACX,QAAA,UACA,OAAA,GAAU,uBAAA,KACT,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"transpileTSToCJS.d.ts","names":[],"sources":["../../../src/loadExternalFile/transpileTSToCJS.ts"],"mappings":";;;cAyCa,oBAAA,GACX,IAAA,UACA,QAAA,UACA,OAAA,GAAU,YAAA;AAAA,cAqBC,gBAAA,GACX,IAAA,UACA,QAAA,UACA,OAAA,GAAU,YAAA,KACT,OAAA"}