aws-param-env
Advanced tools
Comparing version 1.1.0 to 1.2.0
# Change Log | ||
## 1.2.0 (2018-01-08) | ||
Improved: | ||
* Added options to define region | ||
## 1.1.0 (2017-09-18) | ||
@@ -7,3 +13,3 @@ | ||
* `load()` function that executes the query with a given path | ||
* `load()` function that executes the query with a given path | ||
@@ -10,0 +16,0 @@ ## 1.0.0 (2017-09-13) |
@@ -21,5 +21,5 @@ 'use strict'; | ||
constructor( paramPath ) { | ||
constructor( paramPath, options ) { | ||
this._query = awsParamStore.newQuery( paramPath ); | ||
this._query = awsParamStore.newQuery( paramPath, options ); | ||
} | ||
@@ -26,0 +26,0 @@ |
@@ -5,10 +5,10 @@ 'use strict'; | ||
function initializer( path ) { | ||
function initializer( path, options ) { | ||
return new EnvInitializer( path ); | ||
return new EnvInitializer( path, options ); | ||
} | ||
function load( path ) { | ||
function load( path, options ) { | ||
new EnvInitializer( path ).execute(); | ||
initializer( path, options ).execute(); | ||
} | ||
@@ -15,0 +15,0 @@ |
{ | ||
"name": "aws-param-env", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Module for synchronously loading AWS SSM Parameter Store values into environment variables", | ||
@@ -19,5 +19,14 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"test": "mocha --recursive", | ||
"coverage": "./node_modules/.bin/istanbul cover _mocha -- -R spec --recursive" | ||
"test": "nyc mocha --recursive" | ||
}, | ||
"nyc": { | ||
"check-coverage": true, | ||
"include": [ | ||
"lib/**/*.js" | ||
], | ||
"reporter": [ | ||
"lcov", | ||
"text" | ||
] | ||
}, | ||
"repository": { | ||
@@ -36,9 +45,10 @@ "type": "git", | ||
"env-restorer": "^1.0.0", | ||
"istanbul": "^0.4.5", | ||
"proxyquire": "^1.8.0", | ||
"sinon": "^3.2.1" | ||
"mocha": "^4.0.1", | ||
"nyc": "^11.3.0", | ||
"sinon": "^4.0.0" | ||
}, | ||
"dependencies": { | ||
"aws-param-store": "^1.0.1" | ||
"aws-param-store": "^1.1.0" | ||
} | ||
} |
@@ -30,2 +30,12 @@ [](https://travis-ci.org/vandium-io/aws-param-env) | ||
If your AWS region is not set in your environment variables, then it can be set programmatically by supplying | ||
options when calling `load()`: | ||
```js | ||
const awsParamEnv = require( 'aws-param-env' ); | ||
awsParamEnv.load( '/my-service-path-in-ssm/env', { region: 'us-east-1' } ); | ||
``` | ||
## Feedback | ||
@@ -32,0 +42,0 @@ |
Sorry, the diff of this file is not supported yet
5714
47
7
Updatedaws-param-store@^1.1.0