@leancodepl/config 10.1.1 → 10.1.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.1.2](https://github.com/leancodepl/js_corelibrary/compare/v10.1.1...v10.1.2) (2026-02-26)
7
+
8
+ ### Bug Fixes
9
+
10
+ - preserve import.meta from bundling
11
+ ([7e4fefe](https://github.com/leancodepl/js_corelibrary/commit/7e4fefe1aeeee3730d08767964414242c22959bd))
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.1.1](https://github.com/leancodepl/js_corelibrary/compare/v10.1.0...v10.1.1) (2026-02-23)
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;6BAEhC,UAAU,KAAuC,MAAM,GAAG,SAAS;EAE/F"}
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"}
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- const t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
2
1
  function n() {
2
+ const t = import.meta;
3
3
  return {
4
- getInjectedConfig: (e) => t[`VITE_${e}`]
4
+ getInjectedConfig: (e) => t.env[`VITE_${e}`]
5
5
  };
6
6
  }
7
7
  export {
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports):typeof define=="function"&&define.amd?define(["exports"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["@leancodepl/config"]={}))})(this,(function(e){"use strict";const n={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};function t(){return{getInjectedConfig:o=>n[`VITE_${o}`]}}e.mkGetInjectedConfig=t,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
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"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leancodepl/config",
3
- "version": "10.1.1",
3
+ "version": "10.1.2",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",