Skip to content

Commit 57cf063

Browse files
authored
perf(dependencies): update dependencies (#620)
1 parent 237a77e commit 57cf063

File tree

42 files changed

+2017
-1885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2017
-1885
lines changed

.eslintrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
},
66
"extends": [
77
"plugin:@typescript-eslint/recommended",
8-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
9-
"prettier/@typescript-eslint"
8+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
109
],
1110
"parser": "@typescript-eslint/parser",
1211
"parserOptions": {

package-lock.json

Lines changed: 1012 additions & 1295 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,55 +52,55 @@
5252
"author": "Vittorio Guerriero & Giulio Caprino",
5353
"license": "MIT",
5454
"devDependencies": {
55-
"@commitlint/cli": "^11.0.0",
56-
"@commitlint/config-angular": "^11.0.0",
55+
"@commitlint/cli": "^12.0.1",
56+
"@commitlint/config-angular": "^12.0.1",
5757
"@semantic-release/changelog": "^5.0.1",
5858
"@semantic-release/git": "^9.0.0",
5959
"@semantic-release/github": "^7.2.0",
60-
"@types/jasmine": "^3.6.2",
61-
"@types/lodash-es": "^4.17.3",
60+
"@types/jasmine": "^3.6.6",
61+
"@types/lodash-es": "^4.17.4",
6262
"@types/micromatch": "^4.0.1",
63-
"@types/node": "^14.14.12",
64-
"@typescript-eslint/eslint-plugin": "^4.9.1",
65-
"@typescript-eslint/parser": "^4.9.1",
66-
"all-contributors-cli": "6.19.0",
63+
"@types/node": "^14.14.34",
64+
"@typescript-eslint/eslint-plugin": "^4.17.0",
65+
"@typescript-eslint/parser": "^4.17.0",
66+
"all-contributors-cli": "6.20.0",
6767
"clean-webpack-plugin": "^3.0.0",
68-
"commitizen": "^4.2.2",
68+
"commitizen": "^4.2.3",
6969
"conventional-changelog-angular": "^5.0.12",
70-
"copy-webpack-plugin": "^7.0.0",
70+
"copy-webpack-plugin": "^8.0.0",
7171
"cross-env": "^7.0.3",
7272
"cross-var": "^1.1.0",
7373
"cz-customizable": "^6.3.0",
74-
"eslint": "^7.15.0",
75-
"eslint-config-prettier": "^7.0.0",
74+
"eslint": "^7.22.0",
75+
"eslint-config-prettier": "^8.1.0",
7676
"eslint-loader": "^4.0.2",
7777
"eslint-plugin-import": "^2.22.1",
78-
"eslint-plugin-prettier": "^3.2.0",
78+
"eslint-plugin-prettier": "^3.3.1",
7979
"git-branch-is": "^4.0.0",
80-
"husky": "^4.3.5",
81-
"jasmine": "^3.6.3",
80+
"husky": "^5.1.3",
81+
"jasmine": "^3.6.4",
8282
"jasmine-spec-reporter": "^6.0.0",
8383
"prettier": "^2.2.1",
8484
"regenerator-runtime": "^0.13.7",
85-
"semantic-release": "^17.3.0",
86-
"semantic-release-slack-bot": "^1.7.0",
87-
"ts-loader": "^8.0.12",
85+
"semantic-release": "^17.4.2",
86+
"semantic-release-slack-bot": "^2.1.0",
87+
"ts-loader": "^8.0.18",
8888
"ts-node": "^9.1.1",
8989
"tsconfig-paths": "^3.9.0",
9090
"ttypescript": "1.5.12",
91-
"typescript": "^4.1.3",
92-
"webpack": "^5.10.1",
93-
"webpack-cli": "^4.2.0",
94-
"webpack-merge": "^5.7.0",
91+
"typescript": "^4.2.3",
92+
"webpack": "^5.25.0",
93+
"webpack-cli": "^4.5.0",
94+
"webpack-merge": "^5.7.3",
9595
"webpack-node-externals": "^2.5.2"
9696
},
9797
"dependencies": {
98-
"lodash-es": "^4.17.15",
98+
"lodash-es": "^4.17.21",
9999
"micromatch": "^4.0.2",
100100
"winston": "^3.3.3"
101101
},
102102
"peerDependencies": {
103-
"typescript": "^4.0.2"
103+
"typescript": "^4.X.X"
104104
},
105105
"husky": {
106106
"hooks": {

src/transformer/base/base.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { SetProgram } from '../program/program';
66
import { TypescriptHelper } from '../descriptor/helper/helper';
77
import { CustomFunction, isFunctionFromThisLibrary } from '../matcher/matcher';
88
import { GetIsFilesExcludedFromOptions } from '../../options/files';
9+
import { updateSourceFileNode } from '../../typescriptFactory/typescriptFactory';
910

1011
export type Visitor = (
1112
node: ts.CallExpression & { typeArguments: ts.NodeArray<ts.TypeNode> },
@@ -51,7 +52,7 @@ export function baseTransformer(
5152
customFunctions
5253
);
5354

54-
sourceFile = ts.updateSourceFileNode(sourceFile, [
55+
sourceFile = updateSourceFileNode(sourceFile, [
5556
...MockDefiner.instance.getTopStatementsForFile(sourceFile),
5657
...sourceFile.statements,
5758
]);
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as ts from 'typescript';
2+
import { createArrayLiteral } from '../../../typescriptFactory/typescriptFactory';
23

34
export function GetArrayDescriptor(): ts.Expression {
4-
return ts.createArrayLiteral();
5+
return createArrayLiteral();
56
}
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import * as ts from 'typescript';
2-
import { TypescriptCreator } from '../../helper/creator';
2+
import {
3+
createCall,
4+
createIdentifier,
5+
createNumericLiteral,
6+
} from '../../../typescriptFactory/typescriptFactory';
37

48
export function GetBigIntDescriptor(): ts.CallExpression {
5-
return TypescriptCreator.createCall(ts.createIdentifier('BigInt'), [
6-
ts.createNumericLiteral('0'),
7-
]);
9+
return createCall(createIdentifier('BigInt'), [createNumericLiteral('0')]);
810
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import * as ts from 'typescript';
22
import { IsTsAutoMockRandomEnabled } from '../../../options/random';
33
import { RandomPropertyAccessor } from '../random/random';
4+
import { createCall } from '../../../typescriptFactory/typescriptFactory';
45
import { GetBooleanFalseDescriptor } from './booleanFalse';
56

67
export function GetBooleanDescriptor(): ts.Expression {
78
if (IsTsAutoMockRandomEnabled()) {
8-
return ts.createCall(RandomPropertyAccessor('boolean'), [], []);
9+
return createCall(RandomPropertyAccessor('boolean'), []);
910
}
1011
return GetBooleanFalseDescriptor();
1112
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import * as ts from 'typescript';
2+
import {
3+
createLogicalNot,
4+
createNumericLiteral,
5+
} from '../../../typescriptFactory/typescriptFactory';
26

37
export function GetBooleanFalseDescriptor(): ts.Expression {
4-
return ts.createLogicalNot(ts.createLiteral(1));
8+
return createLogicalNot(createNumericLiteral(1));
59
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import * as ts from 'typescript';
2+
import {
3+
createLogicalNot,
4+
createNumericLiteral,
5+
} from '../../../typescriptFactory/typescriptFactory';
26

37
export function GetBooleanTrueDescriptor(): ts.Expression {
4-
return ts.createLogicalNot(ts.createLiteral(0));
8+
return createLogicalNot(createNumericLiteral(0));
59
}
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import * as ts from 'typescript';
2-
import { TypescriptCreator } from '../../helper/creator';
32
import { Scope } from '../../scope/scope';
43
import { GetDescriptor } from '../descriptor';
4+
import { createFunctionExpressionReturn } from '../../../typescriptFactory/typescriptFactory';
55

66
export function GetConstructorTypeDescriptor(
77
node: ts.ConstructorTypeNode,
88
scope: Scope
99
): ts.Expression {
10-
return TypescriptCreator.createFunctionExpressionReturn(
11-
GetDescriptor(node.type, scope)
12-
);
10+
return createFunctionExpressionReturn(GetDescriptor(node.type, scope));
1311
}

0 commit comments

Comments
 (0)