@homer0/env-utils
Advanced tools
Comparing version 1.0.4 to 2.0.0
@@ -0,6 +1,12 @@ | ||
var __defProp = Object.defineProperty; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __publicField = (obj, key, value) => { | ||
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
return value; | ||
}; | ||
import { providerCreator } from "@homer0/jimple"; | ||
class EnvUtils { | ||
env; | ||
production; | ||
constructor() { | ||
__publicField(this, "env"); | ||
__publicField(this, "production"); | ||
this.env = this.get("NODE_ENV", "development"); | ||
@@ -7,0 +13,0 @@ this.production = this.env === "production"; |
@@ -57,3 +57,3 @@ import * as _homer0_jimple from '@homer0/jimple'; | ||
*/ | ||
declare type EnvUtilsProviderOptions = { | ||
type EnvUtilsProviderOptions = { | ||
/** | ||
@@ -60,0 +60,0 @@ * The name that will be used to register the service. |
@@ -6,2 +6,3 @@ "use strict"; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __export = (target, all) => { | ||
@@ -20,2 +21,6 @@ for (var name in all) | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
var __publicField = (obj, key, value) => { | ||
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); | ||
return value; | ||
}; | ||
var src_exports = {}; | ||
@@ -30,5 +35,5 @@ __export(src_exports, { | ||
class EnvUtils { | ||
env; | ||
production; | ||
constructor() { | ||
__publicField(this, "env"); | ||
__publicField(this, "production"); | ||
this.env = this.get("NODE_ENV", "development"); | ||
@@ -35,0 +40,0 @@ this.production = this.env === "production"; |
{ | ||
"name": "@homer0/env-utils", | ||
"description": "A simple service to avoid calling process.env on multiples places", | ||
"version": "1.0.4", | ||
"version": "2.0.0", | ||
"repository": { | ||
@@ -26,13 +26,13 @@ "type": "git", | ||
"dependencies": { | ||
"@homer0/jimple": "^1.0.4" | ||
"@homer0/jimple": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"jest": "^29.2.1", | ||
"jest": "^29.3.1", | ||
"ts-jest": "^29.0.3", | ||
"tsup": "^6.3.0", | ||
"typescript": "^4.8.4" | ||
"tsup": "^6.5.0", | ||
"typescript": "^4.9.4" | ||
}, | ||
"engine-strict": true, | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=16" | ||
}, | ||
@@ -49,3 +49,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "e584e4ef93ede1065a91a1d3e88e070662acb66e" | ||
"gitHead": "86d8723fd11c969e334d58c4e6bc4d290311fe26" | ||
} |
@@ -96,5 +96,5 @@ # 🏠 Env utils | ||
As this project is part of the `packages` monorepo, it requires Yarn, and some of the tooling, like ESLint and Husky, are installed on the root's `package.json`. | ||
As this project is part of the `packages` monorepo, some of the tooling, like ESLint and Husky, are installed on the root's `package.json`. | ||
#### Yarn tasks | ||
#### NPM tasks | ||
@@ -101,0 +101,0 @@ | Task | Description | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20238
189
+ Added@homer0/jimple@2.0.7(transitive)
- Removed@homer0/jimple@1.0.4(transitive)
Updated@homer0/jimple@^2.0.0