Comparing version 1.1.8 to 2.0.0
{ | ||
"name": "envdotjs", | ||
"version": "1.1.8", | ||
"version": "2.0.0", | ||
"keywords": [ | ||
@@ -11,5 +11,3 @@ "envdotjs", | ||
], | ||
"main": "dist-es5/index.js", | ||
"module": "dist-es6/index.js", | ||
"jsnext:main": "dist-es6/index.js", | ||
"main": "dist/index.js", | ||
"bin": { | ||
@@ -25,31 +23,11 @@ "envdotjs": "dist-es5/cli.js" | ||
"scripts": { | ||
"analyze": "cross-env ANALYZE=1 webpack -p", | ||
"build": "run-p build:es5 build:es6", | ||
"build:es6": "cross-env BABEL_ENV=es6 babel ./src --out-dir ./dist-es6", | ||
"build:es5": "cross-env BABEL_ENV=es5 babel ./src --out-dir ./dist-es5", | ||
"prepublishOnly": "npm run test && npm run build", | ||
"relink": "npm unlink && npm run build && npm link", | ||
"test": "npm run build && cross-env BABEL_ENV=es5 mocha --require babel-core/register", | ||
"travis": "opn https://travis-ci.org/escaladesports/envdotjs/branches" | ||
"build": "esca-scripts build", | ||
"prepublishOnly": "npm run build", | ||
"test": "npm run build && esca-scripts test", | ||
"travis": "opn https://travis-ci.org/escaladesports/envdotjs/branches", | ||
"asdf": "babel-node src/cli version" | ||
}, | ||
"pre-commit": [ | ||
"test" | ||
], | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-minify-webpack-plugin": "^0.2.0", | ||
"babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-es2015": "^6.24.1", | ||
"babel-preset-es2016": "^6.24.1", | ||
"babel-preset-stage-3": "^6.24.1", | ||
"chai": "^4.1.2", | ||
"cross-env": "^5.1.1", | ||
"mocha": "^4.1.0", | ||
"npm-run-all": "^4.1.2", | ||
"opn-cli": "^3.1.0", | ||
"pre-commit": "^1.2.2", | ||
"webpack": "^3.8.1", | ||
"webpack-bundle-analyzer": "^2.9.1" | ||
"esca-scripts": "^1.3.1", | ||
"opn-cli": "^3.1.0" | ||
}, | ||
@@ -59,6 +37,4 @@ "dependencies": { | ||
"fs-extra": "^5.0.0", | ||
"meow": "^4.0.0", | ||
"module": "^1.2.5", | ||
"subcommander": "^1.0.0" | ||
} | ||
} |
@@ -43,7 +43,7 @@ # envdotjs | ||
Create a `envdotjs-key` file in the root of your project containing whatever key you want to use. envdotjs will automatically find this file and use it to encrypt and unencrypt the contents of your `env.js` file. Make sure you don't check this file or your `env.js` file into source control. | ||
Create a `env.js.key` file in the root of your project containing whatever key you want to use. envdotjs will automatically find this file and use it to encrypt and unencrypt the contents of your `env.js` file. Make sure you don't check this file or your `env.js` file into source control. | ||
### Setting your key in the environment | ||
You can also set a variable in the environment called `ENVDOTJS_KEY` with the value of your key. If you also have a `envdotjs-key` file and the environment variable set, the environment variable will get used. | ||
You can also set a variable in the environment called `ENVDOTJS_KEY` with the value of your key. If you also have a `env.js.key` file and the environment variable set, the environment variable will get used. | ||
@@ -62,3 +62,3 @@ ### Setting your key with options | ||
- `key`: Sets encryption key. Defaults to process.env.ENVDOTJS_KEY, then contents of envdotjs-key. | ||
- `key`: Sets encryption key. Defaults to process.env.ENVDOTJS_KEY, then contents of env.js.key. | ||
- `path`: Path to your encrypted or unencrypted environment file. Defaults to env.js.enc, then env.js. | ||
@@ -82,3 +82,3 @@ | ||
This will encrypt your `env.js` file using the key that's location in your `envdotjs-key` file. For more advanced usage, check for options with `envdotjs --help` | ||
This will encrypt your `env.js` file using the key that's location in your `env.js.key` file. For more advanced usage, check for options with `envdotjs --help` | ||
@@ -88,2 +88,2 @@ ## Best Practices | ||
- Encrypt your `env.js` file any time it changes. This will ensure your development environment matches your deploys. | ||
- Never commit `env.js` or `envdotjs-key` files to source control | ||
- Never commit `env.js` or `env.js.key` files to source control |
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
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
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
267547
3
2
15
21
364
1
- Removedmeow@^4.0.0
- Removedmodule@^1.2.5
- Removed@gulp-sourcemaps/map-sources@1.0.0(transitive)
- Removedacorn@4.0.13(transitive)
- Removedarr-diff@2.0.0(transitive)
- Removedarr-flatten@1.1.0(transitive)
- Removedarray-find-index@1.0.2(transitive)
- Removedarray-unique@0.2.1(transitive)
- Removedarrify@1.0.1(transitive)
- Removedatob@2.1.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@1.8.5(transitive)
- Removedcamelcase@2.1.13.0.04.1.0(transitive)
- Removedcamelcase-keys@4.2.0(transitive)
- Removedcliui@3.2.0(transitive)
- Removedclone@1.0.4(transitive)
- Removedclone-stats@0.0.1(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconcat-stream@1.5.1(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcss@2.2.4(transitive)
- Removedcurrently-unhandled@0.4.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddebug-fabulous@0.0.4(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddecamelize-keys@1.1.1(transitive)
- Removeddecode-uri-component@0.2.2(transitive)
- Removeddetect-newline@2.1.0(transitive)
- Removedduplexify@3.7.1(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedexpand-brackets@0.1.5(transitive)
- Removedexpand-range@1.8.2(transitive)
- Removedextend@3.0.2(transitive)
- Removedextend-shallow@2.0.1(transitive)
- Removedextglob@0.3.2(transitive)
- Removedfilename-regex@2.0.1(transitive)
- Removedfill-range@2.2.4(transitive)
- Removedfind-up@1.1.22.1.0(transitive)
- Removedfirst-chunk-stream@1.0.0(transitive)
- Removedfor-in@1.0.2(transitive)
- Removedfor-own@0.1.5(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedglob@5.0.15(transitive)
- Removedglob-base@0.3.0(transitive)
- Removedglob-parent@2.0.03.1.0(transitive)
- Removedglob-stream@5.3.5(transitive)
- Removedgulp-sourcemaps@1.12.1(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedindent-string@3.2.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedinvert-kv@1.0.0(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-dotfile@1.0.3(transitive)
- Removedis-equal-shallow@0.1.3(transitive)
- Removedis-extendable@0.1.1(transitive)
- Removedis-extglob@1.0.02.1.1(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedis-glob@2.0.13.1.0(transitive)
- Removedis-number@2.1.04.0.0(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removedis-posix-bracket@0.1.1(transitive)
- Removedis-primitive@2.0.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedis-utf8@0.2.1(transitive)
- Removedis-valid-glob@0.3.0(transitive)
- Removedisarray@0.0.11.0.0(transitive)
- Removedisobject@2.1.0(transitive)
- Removedjson-parse-better-errors@1.0.2(transitive)
- Removedjson-stable-stringify-without-jsonify@1.0.1(transitive)
- Removedkind-of@3.2.26.0.3(transitive)
- Removedlazy-debug-legacy@0.0.1(transitive)
- Removedlazystream@1.0.1(transitive)
- Removedlcid@1.0.0(transitive)
- Removedload-json-file@1.1.04.0.0(transitive)
- Removedlocate-path@2.0.0(transitive)
- Removedlodash._reinterpolate@3.0.0(transitive)
- Removedlodash.assign@4.2.0(transitive)
- Removedlodash.assigninwith@4.2.0(transitive)
- Removedlodash.isequal@4.5.0(transitive)
- Removedlodash.keys@4.2.0(transitive)
- Removedlodash.rest@4.0.5(transitive)
- Removedlodash.template@4.2.4(transitive)
- Removedlodash.templatesettings@4.2.0(transitive)
- Removedlodash.tostring@4.1.4(transitive)
- Removedloud-rejection@1.6.0(transitive)
- Removedmap-obj@1.0.12.0.0(transitive)
- Removedmap-stream@0.0.6(transitive)
- Removedmath-random@1.0.4(transitive)
- Removedmeow@4.0.1(transitive)
- Removedmerge-stream@1.0.1(transitive)
- Removedmicromatch@2.3.11(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedminimist-options@3.0.2(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedmodule@1.2.5(transitive)
- Removedms@2.0.0(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removednormalize-path@2.1.1(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.04.1.1(transitive)
- Removedobject.omit@2.0.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedordered-read-streams@0.3.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-locale@1.4.0(transitive)
- Removedp-limit@1.3.0(transitive)
- Removedp-locate@2.0.0(transitive)
- Removedp-try@1.0.0(transitive)
- Removedparse-glob@3.0.4(transitive)
- Removedparse-json@2.2.04.0.0(transitive)
- Removedpath-dirname@1.0.2(transitive)
- Removedpath-exists@2.1.03.0.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@1.1.03.0.0(transitive)
- Removedpify@2.3.03.0.0(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedpkg-conf@1.1.3(transitive)
- Removedpreserve@0.2.0(transitive)
- Removedprocess-nextick-args@1.0.72.0.1(transitive)
- Removedquick-lru@1.1.0(transitive)
- Removedrandomatic@3.1.1(transitive)
- Removedread-pkg@1.1.03.0.0(transitive)
- Removedread-pkg-up@1.0.13.0.0(transitive)
- Removedreadable-stream@1.0.342.0.62.3.83.6.2(transitive)
- Removedredent@2.0.0(transitive)
- Removedregex-cache@0.4.4(transitive)
- Removedremove-trailing-separator@1.1.0(transitive)
- Removedrepeat-element@1.1.4(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedreplace-ext@0.0.1(transitive)
- Removedrequire-main-filename@1.0.1(transitive)
- Removedresolve@1.22.8(transitive)
- Removedresolve-url@0.2.1(transitive)
- Removedsafe-buffer@5.1.25.2.1(transitive)
- Removedsemver@5.7.2(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-resolve@0.5.3(transitive)
- Removedsource-map-url@0.4.1(transitive)
- Removedspdx-correct@3.2.0(transitive)
- Removedspdx-exceptions@2.5.0(transitive)
- Removedspdx-expression-parse@3.0.1(transitive)
- Removedspdx-license-ids@3.0.20(transitive)
- Removedstream-shift@1.0.3(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@0.10.311.1.11.3.0(transitive)
- Removedstrip-bom@2.0.03.0.0(transitive)
- Removedstrip-bom-stream@1.0.0(transitive)
- Removedstrip-indent@2.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedsymbol@0.2.3(transitive)
- Removedthrough2@0.6.52.0.54.0.2(transitive)
- Removedthrough2-filter@2.0.03.1.0(transitive)
- Removedtildify@1.2.0(transitive)
- Removedto-absolute-glob@0.1.1(transitive)
- Removedtrim-newlines@2.0.0(transitive)
- Removedtypedarray@0.0.7(transitive)
- Removedunique-stream@2.3.1(transitive)
- Removedurix@0.1.0(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedvali-date@1.0.0(transitive)
- Removedvalidate-npm-package-license@3.0.4(transitive)
- Removedvinyl@1.2.0(transitive)
- Removedvinyl-fs@2.4.3(transitive)
- Removedwindow-size@0.2.0(transitive)
- Removedwrap-ansi@2.1.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
- Removedy18n@3.2.2(transitive)
- Removedyargs@4.6.0(transitive)
- Removedyargs-parser@2.4.1(transitive)