@leancodepl/config 10.5.1 → 10.5.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [10.5.2](https://github.com/leancodepl/js_corelibrary/compare/v10.5.1...v10.5.2) (2026-07-02)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **config:** preserve literal import.meta.env in published dist
11
+ ([6230930](https://github.com/leancodepl/js_corelibrary/commit/623093083e8a14bfea5db24fa54406bf3674244a))
12
+
13
+ # Change Log
14
+
15
+ All notable changes to this project will be documented in this file. See
16
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
17
+
6
18
  ## [10.5.1](https://github.com/leancodepl/js_corelibrary/compare/v10.4.0...v10.5.1) (2026-07-01)
7
19
 
8
20
  **Note:** Version bump only for package @leancodepl/config
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAA;KAC5C;CACF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,SAAS,MAAM;6BAGhC,UAAU,KAAsC,MAAM,GAAG,SAAS;EAE9F"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB,CAAC,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAA;KAC5C;CACF;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,SAAS,MAAM;6BAEhC,UAAU,KAAuC,MAAM,GAAG,SAAS;EAE/F"}
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
1
- function n() {
2
- const t = import.meta;
1
+ function t() {
3
2
  return {
4
- getInjectedConfig: (e) => t.env[`VITE_${e}`]
3
+ getInjectedConfig: (e) => import.meta.env[`VITE_${e}`]
5
4
  };
6
5
  }
7
6
  export {
8
- n as mkGetInjectedConfig
7
+ t as mkGetInjectedConfig
9
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/config",
3
- "version": "10.5.1",
3
+ "version": "10.5.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1 +0,0 @@
1
- (function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["@leancodepl/config"]={}))})(this,(function(n){"use strict";var e=typeof document<"u"?document.currentScript:null;function t(){const o={url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:e&&e.tagName.toUpperCase()==="SCRIPT"&&e.src||new URL("index.umd.cjs",document.baseURI).href};return{getInjectedConfig:i=>o.env[`VITE_${i}`]}}n.mkGetInjectedConfig=t,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));