Skip to content

Commit bf12470

Browse files
committed
feat: add types and ems support
1 parent bb3d5c3 commit bf12470

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ jobs:
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ npm install --save @jwerre/secrets
1313
### Get all secrets
1414

1515
```js
16-
const {configSync} = require('@jwerre/secrets');
16+
import {configSync} from '@jwerre/secrets';
1717

1818
// Retrieve all secrets that begin with 'my-project/production/'
1919
const config = configSync({
@@ -48,7 +48,7 @@ const config = configSync({
4848
Loading _all_ your secrets may not always be the best option. It's much faster to load a single secret like this:
4949

5050
```js
51-
const {secretSync} = require('@jwerre/secrets')
51+
import {secretSync} from '@jwerre/secrets';
5252
const dbCredentials = secretSync({ region: 'us-east-1', id: '/my-project/production/db' });
5353
```
5454

@@ -66,7 +66,7 @@ const dbCredentials = secretSync({ region: 'us-east-1', id: '/my-project/product
6666
In most cases, you'll want to get your configuration object synchronously before your application starts up. But, if you prefer, you can also get your secrets asynchronously like this.
6767

6868
```js
69-
const {config} = require('@jwerre/secrets');
69+
import {config} from '@jwerre/secrets';
7070

7171
( async function(){
7272

@@ -126,7 +126,7 @@ If you plan on using any of the higher level methods or any of the CLI tools in
126126
You may want to access the higher level API which can be done like this:
127127

128128
```js
129-
const { Secrets } = require('@jwerre/secrets');
129+
import { Secrets } from '@jwerre/secrets';
130130
const secret = new Secrets(options);
131131
const config = secrets.configSync();
132132
```
@@ -233,4 +233,4 @@ npm install
233233
npm test
234234
```
235235

236-
NOTE: You must have access to an AWS account with the full access to Secret Manager [additional permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awssecretsmanager.html).
236+
NOTE: You must have access to an AWS account with the full access to Secret Manager [additional permissions](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_awssecretsmanager.html).

0 commit comments

Comments
 (0)