Skip to content

Commit ebb705f

Browse files
chore(deps-dev): bump prettier from 1.19.1 to 2.1.2 (#375)
* chore(deps-dev): bump prettier from 1.19.1 to 2.1.2 Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.1.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](prettier/prettier@1.19.1...2.1.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * chore: run prettier * chore: replace yarn to npm * chore: remove git add from lint-staged * chore: add package-lock.json Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Daniel Sousa <sousa.dfs@gmail.com>
1 parent dee9838 commit ebb705f

20 files changed

+11886
-7203
lines changed

.editorconfig

-13
This file was deleted.

.eslintrc.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,37 @@ module.exports = {
55
'plugin:@typescript-eslint/recommended',
66
'standard',
77
'prettier',
8-
'prettier/@typescript-eslint'
8+
'prettier/@typescript-eslint',
99
],
1010
parserOptions: {
1111
ecmaVersion: 2019,
12-
sourceType: 'module'
12+
sourceType: 'module',
1313
},
1414
env: {
1515
node: true,
16-
jest: true
16+
jest: true,
1717
},
1818
rules: {
1919
'@typescript-eslint/member-delimiter-style': 0,
2020
'no-multi-str': 0,
2121
'no-useless-constructor': 0,
2222
'@typescript-eslint/no-useless-constructor': 1,
23-
'no-dupe-class-members': 0
23+
'no-dupe-class-members': 0,
2424
},
2525
overrides: [
2626
{
2727
files: ['*.js'],
2828
rules: {
2929
'@typescript-eslint/no-var-requires': 0,
30-
'@typescript-eslint/explicit-function-return-type': 0
31-
}
30+
'@typescript-eslint/explicit-function-return-type': 0,
31+
},
3232
},
3333
{
3434
files: ['*.test.ts', '*.mock.ts'],
3535
rules: {
3636
'@typescript-eslint/no-explicit-any': 0,
37-
'@typescript-eslint/explicit-function-return-type': 0
38-
}
39-
}
40-
]
37+
'@typescript-eslint/explicit-function-return-type': 0,
38+
},
39+
},
40+
],
4141
}

.github/workflows/build.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node-version: [10, 12, 13]
17+
node-version: [10, 12, 14, 15]
1818
steps:
1919
- uses: actions/checkout@v1
2020
- name: Use Node.js
@@ -23,29 +23,29 @@ jobs:
2323
node-version: ${{ matrix.node-version }}
2424

2525
- name: Install
26-
run: yarn --frozen-lockfile --ignore-engines
26+
run: npm ci
2727
env:
2828
CI: true
2929

3030
- name: Lint
31-
run: yarn lint
31+
run: npm run lint
3232

3333
- name: Check code format
34-
run: yarn format:check
34+
run: npm run format:check
3535

3636
- name: Test
37-
run: yarn test
37+
run: npm run test
3838
env:
3939
CI: true
4040

4141
- name: Build
42-
run: yarn build
42+
run: npm run build
4343
env:
4444
CI: true
4545

4646
- name: Report coverage
4747
if: startsWith(matrix.node-version, '10') && github.event_name == 'push'
48-
run: yarn codecov
48+
run: npm run codecov
4949
env:
5050
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5151

@@ -59,7 +59,7 @@ jobs:
5959

6060
# - name: Create release
6161
# if: success() && startsWith(matrix.node-version, '10') && github.event_name == 'push'
62-
# run: yarn semantic-release
62+
# run: npm run semantic-release
6363
# env:
6464
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6565
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
2-
package-lock.json
32
coverage
43
.nyc_output
54
.DS_Store

.prettierrc

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
{
2-
"semi": false,
3-
"singleQuote": true,
4-
"printWidth": 120
5-
}
1+
"@danielfsousa/prettier-config"

CHANGELOG.md

+22-35
Original file line numberDiff line numberDiff line change
@@ -5,98 +5,85 @@ All notable changes to this project will be documented in this file. See
55

66
# [1.1.1](https://github.com/jazida-opensource/dotenv-azure/compare/v1.1.0...v1.1.1) (2020-06-12)
77

8-
98
### Changes
109

11-
* update dependencies
10+
- update dependencies
1211

1312
# [1.1.0](https://github.com/jazida-opensource/dotenv-azure/compare/v1.0.0-beta.7@beta...v1.1.0) (2020-04-15)
1413

15-
1614
### Changes
1715

18-
* update azure's dependencies [@azure/app-configuration](https://www.npmjs.com/package/@azure/app-configuration),
19-
[@azure/identity](https://www.npmjs.com/package/@azure/identity) and
20-
[@azure/keyvault-secrets](https://www.npmjs.com/package/@azure/keyvault-secrets) to stable versions.
16+
- update azure's dependencies [@azure/app-configuration](https://www.npmjs.com/package/@azure/app-configuration),
17+
[@azure/identity](https://www.npmjs.com/package/@azure/identity) and
18+
[@azure/keyvault-secrets](https://www.npmjs.com/package/@azure/keyvault-secrets) to stable versions.
2119

2220
# [1.0.0-beta.7](https://github.com/jazida-opensource/dotenv-azure/compare/v1.0.0-beta.4@beta...v1.0.0-beta.7@beta) (2019-11-06)
2321

24-
2522
### Changes
2623

27-
* refactor Key Vault references ([#88](https://github.com/jazida-opensource/dotenv-azure/pull/88)) ([f6d1a65](https://github.com/jazida-opensource/dotenv-azure/commit/f6d1a65))
24+
- refactor Key Vault references ([#88](https://github.com/jazida-opensource/dotenv-azure/pull/88)) ([f6d1a65](https://github.com/jazida-opensource/dotenv-azure/commit/f6d1a65))
2825

2926
# [1.0.0-beta.4](https://github.com/jazida-opensource/dotenv-azure/compare/v1.0.0-beta.3@beta...v1.0.0-beta.4@beta) (2019-10-14)
3027

31-
3228
### Bug Fixes
3329

34-
* rate limit requsts by second ([#45](https://github.com/jazida-opensource/dotenv-azure/issues/45)) ([5cb9de3](https://github.com/jazida-opensource/dotenv-azure/commit/5cb9de3))
30+
- rate limit requsts by second ([#45](https://github.com/jazida-opensource/dotenv-azure/issues/45)) ([5cb9de3](https://github.com/jazida-opensource/dotenv-azure/commit/5cb9de3))
3531

3632
# [1.0.0-beta.3](https://github.com/jazida-opensource/dotenv-azure/compare/v1.0.0-beta.2@beta...v1.0.0-beta.3@beta) (2019-10-04)
3733

38-
3934
### Bug Fixes
4035

41-
* bug fixes ([31a2669](https://github.com/jazida-opensource/dotenv-azure/commit/31a2669))
42-
* limit concurrency to avoid Azure AD rate limiting ([#29](https://github.com/jazida-opensource/dotenv-azure/issues/29)) ([c5b2aeb](https://github.com/jazida-opensource/dotenv-azure/commit/c5b2aeb))
43-
* remove console.log ([5efa352](https://github.com/jazida-opensource/dotenv-azure/commit/5efa352))
44-
* semantic-release version ([5d355b2](https://github.com/jazida-opensource/dotenv-azure/commit/5d355b2))
45-
* tests, coverage and changelog ([74c0679](https://github.com/jazida-opensource/dotenv-azure/commit/74c0679))
46-
* update semantic-release dependencies ([7e1c970](https://github.com/jazida-opensource/dotenv-azure/commit/7e1c970))
47-
* version ([9e54cfd](https://github.com/jazida-opensource/dotenv-azure/commit/9e54cfd))
36+
- bug fixes ([31a2669](https://github.com/jazida-opensource/dotenv-azure/commit/31a2669))
37+
- limit concurrency to avoid Azure AD rate limiting ([#29](https://github.com/jazida-opensource/dotenv-azure/issues/29)) ([c5b2aeb](https://github.com/jazida-opensource/dotenv-azure/commit/c5b2aeb))
38+
- remove console.log ([5efa352](https://github.com/jazida-opensource/dotenv-azure/commit/5efa352))
39+
- semantic-release version ([5d355b2](https://github.com/jazida-opensource/dotenv-azure/commit/5d355b2))
40+
- tests, coverage and changelog ([74c0679](https://github.com/jazida-opensource/dotenv-azure/commit/74c0679))
41+
- update semantic-release dependencies ([7e1c970](https://github.com/jazida-opensource/dotenv-azure/commit/7e1c970))
42+
- version ([9e54cfd](https://github.com/jazida-opensource/dotenv-azure/commit/9e54cfd))
4843

4944
# [1.0.0-beta.2](https://github.com/jazida-opensource/dotenv-azure/compare/v1.0.0-beta.1@beta...v1.0.0-beta.2@beta) (2019-10-04)
5045

51-
5246
### Bug Fixes
5347

54-
* limit concurrency to avoid Azure AD rate limiting ([#29](https://github.com/jazida-opensource/dotenv-azure/issues/29)) ([c5b2aeb](https://github.com/jazida-opensource/dotenv-azure/commit/c5b2aeb))
48+
- limit concurrency to avoid Azure AD rate limiting ([#29](https://github.com/jazida-opensource/dotenv-azure/issues/29)) ([c5b2aeb](https://github.com/jazida-opensource/dotenv-azure/commit/c5b2aeb))
5549

5650
# 1.0.0-beta.1 (2019-10-02)
5751

58-
5952
### Bug Fixes
6053

61-
* don't throw on preload ([2abb93b](https://github.com/jazida-opensource/dotenv-azure/commit/2abb93b))
62-
* include config files to support preload ([5785633](https://github.com/jazida-opensource/dotenv-azure/commit/5785633))
63-
54+
- don't throw on preload ([2abb93b](https://github.com/jazida-opensource/dotenv-azure/commit/2abb93b))
55+
- include config files to support preload ([5785633](https://github.com/jazida-opensource/dotenv-azure/commit/5785633))
6456

6557
### Features
6658

67-
* add preload ([223c210](https://github.com/jazida-opensource/dotenv-azure/commit/223c210))
59+
- add preload ([223c210](https://github.com/jazida-opensource/dotenv-azure/commit/223c210))
6860

6961
# [1.0.0-alpha.5](https://github.com/jazida-opensource/dotenv-azure/compare/v1.0.0-alpha.4@alpha...v1.0.0-alpha.5@alpha) (2019-09-19)
7062

71-
7263
### Bug Fixes
7364

74-
* tests, coverage and changelog ([74c0679](https://github.com/jazida-opensource/dotenv-azure/commit/74c0679))
65+
- tests, coverage and changelog ([74c0679](https://github.com/jazida-opensource/dotenv-azure/commit/74c0679))
7566

7667
# [1.0.0-alpha.4](https://github.com/jazida-opensource/dotenv-azure/compare/v1.0.0-alpha.3@alpha...v1.0.0-alpha.4@alpha) (2019-09-19)
7768

78-
7969
### Bug Fixes
8070

81-
* bug fixes ([31a2669](https://github.com/jazida-opensource/dotenv-azure/commit/31a2669))
71+
- bug fixes ([31a2669](https://github.com/jazida-opensource/dotenv-azure/commit/31a2669))
8272

8373
# [1.0.0-alpha.3](https://github.com/jazida-opensource/dotenv-azure/compare/v1.0.0-alpha.2@alpha...v1.0.0-alpha.3@alpha) (2019-09-16)
8474

85-
8675
### Bug Fixes
8776

88-
* don't throw on preload ([2abb93b](https://github.com/jazida-opensource/dotenv-azure/commit/2abb93b))
77+
- don't throw on preload ([2abb93b](https://github.com/jazida-opensource/dotenv-azure/commit/2abb93b))
8978

9079
# [1.0.0-alpha.2](https://github.com/jazida-opensource/dotenv-azure/compare/v1.0.0-alpha.1@alpha...v1.0.0-alpha.2@alpha) (2019-09-16)
9180

92-
9381
### Bug Fixes
9482

95-
* include config files to support preload ([f1d92aa](https://github.com/jazida-opensource/dotenv-azure/commit/f1d92aa))
83+
- include config files to support preload ([f1d92aa](https://github.com/jazida-opensource/dotenv-azure/commit/f1d92aa))
9684

9785
# 1.0.0-alpha.1 (2019-09-16)
9886

99-
10087
### Features
10188

102-
* add preload ([5ba742e](https://github.com/jazida-opensource/dotenv-azure/commit/5ba742e))
89+
- add preload ([5ba742e](https://github.com/jazida-opensource/dotenv-azure/commit/5ba742e))

CODE_OF_CONDUCT.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
2626
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
## Our Responsibilities
@@ -74,4 +74,3 @@ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.ht
7474

7575
For answers to common questions about this code of conduct, see
7676
https://www.contributor-covenant.org/faq
77-

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ These steps will guide you through contributing to this project:
77
- Fork the repo
88
- Clone it and install dependencies
99

10-
git clone https://github.com/jazida-opensource/dotenv-azure
11-
npm install
10+
git clone https://github.com/jazida-opensource/dotenv-azure
11+
npm install
1212

1313
- Create an issue to discuss about the changes you want to do before starting to code.
1414
- Send a [GitHub Pull Request](https://github.com/jazida-opensource/dotenv-azure/compare?expand=1) with a clear list of what you've done (read more [about pull requests](https://help.github.com/articles/about-pull-requests/)). Make sure all of your commits are atomic (one feature per commit).

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ If you would like to know more about App Configuration and Key Vault, you may wa
2424
#### Install the package
2525

2626
Install with npm
27+
2728
```bash
2829
npm install dotenv-azure
2930
```
3031

3132
or with yarn
33+
3234
```bash
3335
yarn add dotenv-azure
3436
```
3537

36-
3738
#### Configuring App Configuration
3839

3940
1. [Create an app configuration store via Azure portal or CLI](https://docs.microsoft.com/en-us/azure/azure-app-configuration/quickstart-aspnet-core-app#create-an-app-configuration-store).
@@ -70,7 +71,7 @@ Now when you call the `.config()` method, the value of your key vault secret wil
7071
```javascript
7172
const { DotenvAzure } = require('dotenv-azure')
7273

73-
async function main () {
74+
async function main() {
7475
await new DotenvAzure().config()
7576
console.log(process.env.DATABASE_URL) // prints your secret value
7677
}
@@ -81,10 +82,11 @@ main()
8182
#### Using dotenv-azure programmatically
8283

8384
You should call `dotenv-azure` before the initialization of your app. Since the method `.config()` returns a promise, you have to call it inside an async function:
85+
8486
```javascript
8587
const { DotenvAzure } = require('dotenv-azure')
8688

87-
async function main () {
89+
async function main() {
8890
const dotenvAzure = new DotenvAzure()
8991
const { parsed } = await dotenvAzure.config()
9092

@@ -138,11 +140,11 @@ You can pass a `safe` option to validate your variables from a `.env.example` fi
138140
const { DotenvAzure } = require('dotenv-azure')
139141
const dotenvAzure = new DotenvAzure()
140142

141-
async function main () {
143+
async function main() {
142144
await dotenvAzure.config({
143145
safe: true,
144146
allowEmptyValues: true,
145-
example: './.my-env-example-filename'
147+
example: './.my-env-example-filename',
146148
})
147149
}
148150

@@ -175,5 +177,3 @@ This project follows the [all-contributors](https://github.com/kentcdodds/all-co
175177
</table>
176178

177179
<!-- ALL-CONTRIBUTORS-LIST:END -->
178-
179-

config-safe.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const configSync = forceSync(require.resolve('./config-rpc'))
44

55
const { parsed } = configSync({
66
safe: true,
7-
allowEmptyValues: true
7+
allowEmptyValues: true,
88
})
99

1010
populateProcessEnv(parsed)

jest.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
transform: {
3-
'.(ts|tsx)': 'ts-jest'
3+
'.(ts|tsx)': 'ts-jest',
44
},
55
testEnvironment: 'node',
66
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$',
@@ -11,8 +11,8 @@ module.exports = {
1111
branches: 88,
1212
functions: 95,
1313
lines: 95,
14-
statements: 95
15-
}
14+
statements: 95,
15+
},
1616
},
17-
collectCoverageFrom: ['src/*.{js,ts}']
17+
collectCoverageFrom: ['src/*.{js,ts}'],
1818
}

0 commit comments

Comments
 (0)