Skip to content

Commit 7298df2

Browse files
authored
fix: security patch (#32)
- Targeting ES2019 (supported by Node.js 12.x). - Most of our dependencies are updated to latest or latest compatible versions. - Closes #28 - Closes #29 - Closes #30
1 parent ee3efbe commit 7298df2

23 files changed

+2382
-6488
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: '@ngworker/angular-versions-action CI'
22

3+
env:
4+
node-version: 12.x
5+
36
on:
47
pull_request:
58
push:
@@ -11,6 +14,10 @@ jobs:
1114
runs-on: ubuntu-latest
1215
steps:
1316
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ env.node-version }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ env.node-version }}
1421
- run: yarn install
1522

1623
- run: yarn build
@@ -19,6 +26,10 @@ jobs:
1926
runs-on: ubuntu-latest
2027
steps:
2128
- uses: actions/checkout@v2
29+
- name: Use Node.js ${{ env.node-version }}
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: ${{ env.node-version }}
2233
- run: yarn install
2334

2435
- run: yarn test
Lines changed: 52 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,60 @@
11
import {AngularJson} from '../../src/types/angular-json';
22

3-
export const lumberjackPreAngular10_1NgPackagrBuilderAngularJson: AngularJson = {
4-
projects: {
5-
'lumberjack-app': {
6-
projectType: 'application',
7-
architect: {
8-
build: {
9-
builder: '@angular-devkit/build-angular:browser'
10-
},
11-
serve: {
12-
builder: '@angular-devkit/build-angular:dev-server'
13-
},
14-
'extract-i18n': {
15-
builder: '@angular-devkit/build-angular:extract-i18n'
3+
export const lumberjackPreAngular10_1NgPackagrBuilderAngularJson: AngularJson =
4+
{
5+
projects: {
6+
'lumberjack-app': {
7+
projectType: 'application',
8+
architect: {
9+
build: {
10+
builder: '@angular-devkit/build-angular:browser'
11+
},
12+
serve: {
13+
builder: '@angular-devkit/build-angular:dev-server'
14+
},
15+
'extract-i18n': {
16+
builder: '@angular-devkit/build-angular:extract-i18n'
17+
}
1618
}
17-
}
18-
},
19-
'ngworker-lumberjack': {
20-
projectType: 'library',
21-
architect: {
22-
buildLib: {
23-
builder: '@angular-devkit/build-ng-packagr:build'
24-
},
25-
test: {
26-
builder: '@angular-builders/jest:run'
27-
},
28-
lint: {
29-
builder: '@angular-devkit/build-angular:tslint'
19+
},
20+
'ngworker-lumberjack': {
21+
projectType: 'library',
22+
architect: {
23+
buildLib: {
24+
builder: '@angular-devkit/build-ng-packagr:build'
25+
},
26+
test: {
27+
builder: '@angular-builders/jest:run'
28+
},
29+
lint: {
30+
builder: '@angular-devkit/build-angular:tslint'
31+
}
3032
}
31-
}
32-
},
33-
'internal-test-util': {
34-
projectType: 'library',
35-
architect: {
36-
build: {
37-
builder: '@angular-devkit/build-ng-packagr:build'
38-
},
39-
test: {
40-
builder: '@angular-builders/jest:run'
41-
},
42-
lint: {
43-
builder: '@angular-devkit/build-angular:tslint'
33+
},
34+
'internal-test-util': {
35+
projectType: 'library',
36+
architect: {
37+
build: {
38+
builder: '@angular-devkit/build-ng-packagr:build'
39+
},
40+
test: {
41+
builder: '@angular-builders/jest:run'
42+
},
43+
lint: {
44+
builder: '@angular-devkit/build-angular:tslint'
45+
}
4446
}
45-
}
46-
},
47-
'internal-console-driver-test-util': {
48-
projectType: 'library',
49-
architect: {
50-
test: {
51-
builder: '@angular-builders/jest:run'
52-
},
53-
lint: {
54-
builder: '@angular-devkit/build-angular:tslint'
47+
},
48+
'internal-console-driver-test-util': {
49+
projectType: 'library',
50+
architect: {
51+
test: {
52+
builder: '@angular-builders/jest:run'
53+
},
54+
lint: {
55+
builder: '@angular-devkit/build-angular:tslint'
56+
}
5557
}
5658
}
5759
}
58-
}
59-
};
60+
};

__tests__/package-json-versions/full-package-json.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const fullPackageJson = {
2424
release:
2525
'cd libs/ngworker/lumberjack && standard-version --infile ../../../CHANGELOG.md',
2626
publish: 'cd dist/ngworker/lumberjack && npm publish',
27-
ci:
28-
'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
27+
ci: 'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
2928
format:
3029
'npx prettier --config prettier.config.js --write "**/*.*" "!dist/**" "!yarn.lock"',
3130
'delete-path-alias': 'node tools/delete-path-alias.js'

__tests__/package-json-versions/full-with-tsickle.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const fullWithTsickleJson = {
2424
release:
2525
'cd libs/ngworker/lumberjack && standard-version --infile ../../../CHANGELOG.md',
2626
publish: 'cd dist/ngworker/lumberjack && npm publish',
27-
ci:
28-
'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
27+
ci: 'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
2928
format:
3029
'npx prettier --config prettier.config.js --write "**/*.*" "!dist/**" "!yarn.lock"',
3130
'delete-path-alias': 'node tools/delete-path-alias.js'

__tests__/package-json-versions/package-unmatching.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const packageUnmatching = {
2424
release:
2525
'cd libs/ngworker/lumberjack && standard-version --infile ../../../CHANGELOG.md',
2626
publish: 'cd dist/ngworker/lumberjack && npm publish',
27-
ci:
28-
'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
27+
ci: 'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
2928
format:
3029
'npx prettier --config prettier.config.js --write "**/*.*" "!dist/**" "!yarn.lock"',
3130
'delete-path-alias': 'node tools/delete-path-alias.js'

__tests__/package-json-versions/package-without-ng-packagr.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const packageJsonWithoutNgPackagr = {
2424
release:
2525
'cd libs/ngworker/lumberjack && standard-version --infile ../../../CHANGELOG.md',
2626
publish: 'cd dist/ngworker/lumberjack && npm publish',
27-
ci:
28-
'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
27+
ci: 'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
2928
format:
3029
'npx prettier --config prettier.config.js --write "**/*.*" "!dist/**" "!yarn.lock"',
3130
'delete-path-alias': 'node tools/delete-path-alias.js'

__tests__/package-json-versions/v11_1-all-override-without-ng-packagr.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const packageJsonWith11_1AllWithoutNgPackagr = {
2424
release:
2525
'cd libs/ngworker/lumberjack && standard-version --infile ../../../CHANGELOG.md',
2626
publish: 'cd dist/ngworker/lumberjack && npm publish',
27-
ci:
28-
'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
27+
ci: 'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
2928
format:
3029
'npx prettier --config prettier.config.js --write "**/*.*" "!dist/**" "!yarn.lock"',
3130
'delete-path-alias': 'node tools/delete-path-alias.js'

__tests__/package-json-versions/v11_1-all-override.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const packageJsonWithV11_1All = {
2424
release:
2525
'cd libs/ngworker/lumberjack && standard-version --infile ../../../CHANGELOG.md',
2626
publish: 'cd dist/ngworker/lumberjack && npm publish',
27-
ci:
28-
'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
27+
ci: 'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
2928
format:
3029
'npx prettier --config prettier.config.js --write "**/*.*" "!dist/**" "!yarn.lock"',
3130
'delete-path-alias': 'node tools/delete-path-alias.js'

__tests__/package-json-versions/v11_1-dep-overrided.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const packageJsonWithV11_1Dependencies = {
2424
release:
2525
'cd libs/ngworker/lumberjack && standard-version --infile ../../../CHANGELOG.md',
2626
publish: 'cd dist/ngworker/lumberjack && npm publish',
27-
ci:
28-
'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
27+
ci: 'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
2928
format:
3029
'npx prettier --config prettier.config.js --write "**/*.*" "!dist/**" "!yarn.lock"',
3130
'delete-path-alias': 'node tools/delete-path-alias.js'

__tests__/package-json-versions/v11_1-devdep-override.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ export const packageJsonWithV11_1DevDependencies = {
2424
release:
2525
'cd libs/ngworker/lumberjack && standard-version --infile ../../../CHANGELOG.md',
2626
publish: 'cd dist/ngworker/lumberjack && npm publish',
27-
ci:
28-
'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
27+
ci: 'yarn install && yarn lint && yarn build:lib && yarn test:internal:ci && yarn test:lib:ci && yarn build && yarn test:ci && yarn e2e',
2928
format:
3029
'npx prettier --config prettier.config.js --write "**/*.*" "!dist/**" "!yarn.lock"',
3130
'delete-path-alias': 'node tools/delete-path-alias.js'

0 commit comments

Comments
 (0)