New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@t3-oss/env-core

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@t3-oss/env-core - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3-canary.b0cc17a

2

dist/index.js

@@ -22,3 +22,3 @@ import { z } from 'zod';

const shared = z.object(_shared);
const isServer = opts.isServer ?? typeof window === "undefined";
const isServer = opts.isServer ?? (typeof window === "undefined" || "Deno" in window);
const allClient = client.merge(shared);

@@ -25,0 +25,0 @@ const allServer = server.merge(shared).merge(client);

@@ -5,3 +5,3 @@ /**

*/
declare const vercel: Readonly<{
declare const vercel: () => Readonly<{
VERCEL?: string | undefined;

@@ -25,3 +25,10 @@ VERCEL_ENV?: "development" | "preview" | "production" | undefined;

}>;
/**
* @see https://docs.uploadthing.com/getting-started/appdir#add-env-variables
*/
declare const uploadthing: () => Readonly<{
UPLOADTHING_SECRET: string;
UPLOADTHING_APP_ID?: string | undefined;
}>;
export { vercel };
export { uploadthing, vercel };

@@ -7,29 +7,38 @@ import { z } from 'zod';

* @see https://vercel.com/docs/projects/environment-variables/system-environment-variables#system-environment-variables
*/ const vercel = createEnv({
server: {
VERCEL: z.string().optional(),
VERCEL_ENV: z.enum([
"development",
"preview",
"production"
]).optional(),
VERCEL_URL: z.string().optional(),
VERCEL_BRANCH_URL: z.string().optional(),
VERCEL_REGION: z.string().optional(),
VERCEL_AUTOMATION_BYPASS_SECRET: z.string().optional(),
VERCEL_GIT_PROVIDER: z.string().optional(),
VERCEL_GIT_REPO_SLUG: z.string().optional(),
VERCEL_GIT_REPO_OWNER: z.string().optional(),
VERCEL_GIT_REPO_ID: z.string().optional(),
VERCEL_GIT_COMMIT_REF: z.string().optional(),
VERCEL_GIT_COMMIT_SHA: z.string().optional(),
VERCEL_GIT_COMMIT_MESSAGE: z.string().optional(),
VERCEL_GIT_COMMIT_AUTHOR_LOGIN: z.string().optional(),
VERCEL_GIT_COMMIT_AUTHOR_NAME: z.string().optional(),
VERCEL_GIT_PREVIOUS_SHA: z.string().optional(),
VERCEL_GIT_PULL_REQUEST_ID: z.string().optional()
},
runtimeEnv: process.env
});
*/ const vercel = ()=>createEnv({
server: {
VERCEL: z.string().optional(),
VERCEL_ENV: z.enum([
"development",
"preview",
"production"
]).optional(),
VERCEL_URL: z.string().optional(),
VERCEL_BRANCH_URL: z.string().optional(),
VERCEL_REGION: z.string().optional(),
VERCEL_AUTOMATION_BYPASS_SECRET: z.string().optional(),
VERCEL_GIT_PROVIDER: z.string().optional(),
VERCEL_GIT_REPO_SLUG: z.string().optional(),
VERCEL_GIT_REPO_OWNER: z.string().optional(),
VERCEL_GIT_REPO_ID: z.string().optional(),
VERCEL_GIT_COMMIT_REF: z.string().optional(),
VERCEL_GIT_COMMIT_SHA: z.string().optional(),
VERCEL_GIT_COMMIT_MESSAGE: z.string().optional(),
VERCEL_GIT_COMMIT_AUTHOR_LOGIN: z.string().optional(),
VERCEL_GIT_COMMIT_AUTHOR_NAME: z.string().optional(),
VERCEL_GIT_PREVIOUS_SHA: z.string().optional(),
VERCEL_GIT_PULL_REQUEST_ID: z.string().optional()
},
runtimeEnv: process.env
});
/**
* @see https://docs.uploadthing.com/getting-started/appdir#add-env-variables
*/ const uploadthing = ()=>createEnv({
server: {
UPLOADTHING_SECRET: z.string(),
UPLOADTHING_APP_ID: z.string().optional()
},
runtimeEnv: process.env
});
export { vercel };
export { uploadthing, vercel };
{
"name": "@t3-oss/env-core",
"version": "0.9.2",
"type": "module",
"keywords": [
"create-t3-app",
"environment variables",
"zod"
],
"author": "Julius Marminge",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/t3-oss/t3-env",
"directory": "packages/core"
},
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./presets": {
"types": "./dist/presets.d.ts",
"default": "./dist/presets.js"
}
},
"files": [
"dist",
"package.json",
"LICENSE",
"README.md"
],
"scripts": {
"build": "rm -rf dist && bunchee",
"dev": "bunhcee -w",
"typecheck": "tsc --noEmit"
},
"peerDependencies": {
"typescript": ">=5.0.0",
"zod": "^3.0.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"devDependencies": {
"bunchee": "^4.3.3",
"typescript": "^5.3.3",
"zod": "^3.20.2"
}
"name": "@t3-oss/env-core",
"version": "0.9.3-canary.b0cc17a",
"type": "module",
"keywords": [
"create-t3-app",
"environment variables",
"zod"
],
"author": "Julius Marminge",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/t3-oss/t3-env",
"directory": "packages/core"
},
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./presets": {
"types": "./dist/presets.d.ts",
"default": "./dist/presets.js"
}
},
"files": [
"dist",
"package.json",
"LICENSE",
"README.md"
],
"scripts": {
"build": "rm -rf dist && bunchee",
"dev": "bunhcee -w",
"typecheck": "tsc --noEmit"
},
"peerDependencies": {
"typescript": ">=5.0.0",
"zod": "^3.0.0"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
}
},
"devDependencies": {
"bunchee": "^5.1.2",
"typescript": "^5.4.5",
"zod": "^3.23.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc