Comparing version 0.0.1 to 0.0.2
@@ -1,5 +0,4 @@ | ||
interface Config { | ||
dotenv?: boolean; | ||
} | ||
export declare function parseEnv(specs: any, { dotenv }: Config): any; | ||
export * as z from "zod"; | ||
export * from "./parse-env"; | ||
export * from "./parse-core"; | ||
export * from "./preprocessors"; |
@@ -21,14 +21,11 @@ "use strict"; | ||
}; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.z = exports.parseEnv = void 0; | ||
// import z from "zod"; | ||
const dotenv_1 = require("dotenv"); | ||
function parseEnv(specs, { dotenv = true }) { | ||
if (dotenv) { | ||
(0, dotenv_1.config)(); | ||
} | ||
return specs; | ||
} | ||
exports.parseEnv = parseEnv; | ||
exports.z = void 0; | ||
exports.z = __importStar(require("zod")); | ||
__exportStar(require("./parse-env"), exports); | ||
__exportStar(require("./parse-core"), exports); | ||
__exportStar(require("./preprocessors"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "znv", | ||
"version": "0.0.1", | ||
"description": "validate env vars with zod", | ||
"version": "0.0.2", | ||
"description": "Parse your environment with Zod schemas", | ||
"keywords": [ | ||
"env", | ||
"process.env", | ||
"zod", | ||
@@ -31,3 +32,3 @@ "validation" | ||
"test:eslint": "eslint --color src", | ||
"test:jest": "echo 'fixme! then change this to jest --colors'", | ||
"test:jest": "jest --colors", | ||
"test:prettier": "prettier -l 'src/**/*'", | ||
@@ -43,5 +44,6 @@ "prettier": "prettier 'src/**/*' --write", | ||
"devDependencies": { | ||
"@types/jest": "^27.4.0", | ||
"@types/node": "^16.9.6", | ||
"eslint": "^8.6.0", | ||
"eslint-config-lostfictions": "^3.0.1", | ||
"eslint-config-lostfictions": "^3.1.0", | ||
"jest": "^27.4.7", | ||
@@ -48,0 +50,0 @@ "npm-run-all": "^4.1.5", |
# znv | ||
(Don't use this yet!) | ||
<a href="https://www.npmjs.com/package/znv"> | ||
<img src="https://img.shields.io/npm/v/znv.svg?logo=npm" alt="NPM version" /> | ||
</a> | ||
```bash | ||
npm i znv | ||
# or | ||
yarn add znv | ||
``` | ||
Parse your environment (and optionally [`.env` | ||
file](https://github.com/motdotla/dotenv)) with | ||
[Zod](https://github.com/colinhacks/zod). | ||
Tastes great with the | ||
[eslint-plugin-node](https://github.com/mysticatea/eslint-plugin-node) rule | ||
[`no-process-env`](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-process-env.md). |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
27720
18
408
22
10
1
1