Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@studiohyperdrive/env

Package Overview
Dependencies
Maintainers
9
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@studiohyperdrive/env - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

lib/cjs/env.js

21

lib/types/env.d.ts

@@ -1,14 +0,11 @@

// / <reference types="hapi__joi" />
import {
Schema, ValidationOptions, ValidationResult, AsyncValidationOptions,
} from '@hapi/joi';
/// <reference types="hapi__joi" />
import { Schema, ValidationOptions, ValidationResult, AsyncValidationOptions } from '@hapi/joi';
export default class Env {
static get(key: string, allowEmpty?: boolean): string;
static getAsBoolean(key: string): boolean;
static getAsNumber(key: string): number;
static getAsArray(key: string, separator?: string): string[];
static getAsObject(key?: string): object;
static validateEnv(schema: Schema, options?: ValidationOptions): ValidationResult;
static validateEnvAsync(schema: Schema, options?: AsyncValidationOptions): Promise<ValidationResult>;
static get(key: string, allowEmpty?: boolean): string;
static getAsBoolean(key: string): boolean;
static getAsNumber(key: string): number;
static getAsArray(key: string, separator?: string): string[];
static getAsObject(key?: string): object;
static validateEnv(schema: Schema, options?: ValidationOptions): ValidationResult;
static validateEnvAsync(schema: Schema, options?: AsyncValidationOptions): Promise<ValidationResult>;
}
{
"name": "@studiohyperdrive/env",
"version": "1.0.0",
"version": "1.0.1",
"description": "Environment helper used at Studio Hyperdrive.",
"main": "lib/index.js",
"main": "lib/umd/env.js",
"esm": "lib/esm/env.js",
"es2015": "lib/es2015/env.js",
"cjs": "lib/cjs/env.js",
"types": "lib/types/env.d.ts",
"files": [
"lib"
"lib/*"
],
"types": "lib/types/env.d.ts",
"scripts": {
"lint": "eslint -c .eslintrc.js --ext .ts,.js src/ --quiet",
"test": "NODE_ENV=test jest --config jest.config.js --runInBand",
"build": "webpack",
"prebuild": "rimraf lib/**/* && mkdirp lib/umd && mkdirp lib/esm && mkdirp lib/types",
"build": "run-s build:es2015 build:esm build:cjs build:umd build:umd:min build:types",
"build:es2015": "tsc --p tsconfig.lib.json --module es2015 --target es2015 --outDir lib/es2015",
"build:esm": "tsc --p tsconfig.lib.json --module es2015 --target es5 --outDir lib/esm",
"build:cjs": "tsc --p tsconfig.lib.json --module commonjs --target es5 --outDir lib/cjs",
"build:umd": "rollup lib/esm/env.js --format umd --name Env --sourcemap --file lib/umd/env.js --globals tslib:tslib",
"build:umd:min": "cd lib/umd && uglifyjs --compress --mangle --source-map --screw-ie8 --comments --output env.min.js -- env.js && gzip env.min.js -c > env.min.js.gz",
"build:types": "cpx \"lib/esm/**/*.d.ts\" \"lib/types\"",
"types": "tsc --emitDeclarationOnly",
"prepublish": "npm run build"
"prepare": "npm run build && cd lib",
"publish": "npm publish"
},

@@ -32,20 +43,11 @@ "repository": {

"devDependencies": {
"@babel/cli": "7.8.3",
"@babel/core": "7.8.3",
"@babel/plugin-proposal-class-properties": "7.8.3",
"@babel/plugin-proposal-decorators": "7.8.3",
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
"@babel/plugin-proposal-optional-chaining": "7.8.3",
"@babel/preset-env": "7.8.3",
"@babel/preset-typescript": "7.8.3",
"@studiohyperdrive/commitlint-config": "1.0.0",
"@types/hapi__joi": "16.0.6",
"@types/jest": "25.1.1",
"@types/ramda": "0.26.40",
"@typescript-eslint/eslint-plugin": "2.18.0",
"@typescript-eslint/parser": "2.18.0",
"babel-jest": "25.1.0",
"babel-loader": "8.0.6",
"babel-preset-minify": "0.5.1",
"clean-webpack-plugin": "3.0.0",
"copy-webpack-plugin": "5.1.1",
"cpx": "1.5.0",
"eslint": "6.8.0",

@@ -63,10 +65,13 @@ "eslint-config-airbnb-typescript": "6.3.1",

"jest": "25.1.0",
"jest-config": "25.1.0",
"jest-extended": "0.11.5",
"jest-module-name-mapper": "0.1.2",
"lint-staged": "10.0.3",
"mkdirp": "1.0.3",
"npm-run-all": "4.1.5",
"ramda": "0.26.1",
"rimraf": "3.0.0",
"rollup": "1.30.1",
"ts-jest": "25.1.0",
"tsconfig-paths-webpack-plugin": "3.2.0",
"typescript": "3.7.5",
"uglify-js": "3.7.6",
"webpack": "4.41.5",

@@ -73,0 +78,0 @@ "webpack-cli": "3.3.10"

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