@razvan11/paladin 1.0.1 → 1.0.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/dist/index.d.ts +1 -0
- package/dist/index.js +14 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { repository } from './functions/repository';
|
|
|
13
13
|
export { database } from './functions/database';
|
|
14
14
|
export { default as config } from './functions/config';
|
|
15
15
|
export { default as validator } from './functions/validator';
|
|
16
|
+
export { default as env } from './functions/env';
|
|
16
17
|
export { render, renderElement, createRenderer } from './functions/render';
|
|
17
18
|
export { LayoutView, PageLoader, type LayoutViewProps, } from './components/LayoutView';
|
|
18
19
|
export { asset, publicAsset, setAssetBasePath, getAssetBasePath, } from './functions/asset';
|
package/dist/index.js
CHANGED
|
@@ -27791,6 +27791,19 @@ function validator() {
|
|
|
27791
27791
|
});
|
|
27792
27792
|
};
|
|
27793
27793
|
}
|
|
27794
|
+
// src/functions/env.ts
|
|
27795
|
+
function env2() {
|
|
27796
|
+
return (target, propertyKey) => {
|
|
27797
|
+
const envVar = String(propertyKey).toUpperCase();
|
|
27798
|
+
const value = Bun.env[envVar];
|
|
27799
|
+
Object.defineProperty(target, propertyKey, {
|
|
27800
|
+
value,
|
|
27801
|
+
writable: false,
|
|
27802
|
+
enumerable: true,
|
|
27803
|
+
configurable: false
|
|
27804
|
+
});
|
|
27805
|
+
};
|
|
27806
|
+
}
|
|
27794
27807
|
// node_modules/react-dom/cjs/react-dom-server.bun.development.js
|
|
27795
27808
|
var exports_react_dom_server_bun_development = {};
|
|
27796
27809
|
__export(exports_react_dom_server_bun_development, {
|
|
@@ -33817,6 +33830,7 @@ export {
|
|
|
33817
33830
|
inject,
|
|
33818
33831
|
getAssetBasePath,
|
|
33819
33832
|
get,
|
|
33833
|
+
env2 as env,
|
|
33820
33834
|
del,
|
|
33821
33835
|
database,
|
|
33822
33836
|
createRenderer,
|