@studiohyperdrive/env
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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" |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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 3 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
22117
34
16
234
2
25
2