Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Oct 3, 2020
1 parent 49b2ce3 commit 4844742
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 74 deletions.
112 changes: 53 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"devDependencies": {
"@rollup/plugin-alias": "^3.1.1",
"@rollup/plugin-buble": "^0.21.3",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
Expand All @@ -75,7 +75,7 @@
"@types/require-relative": "^0.8.0",
"@types/signal-exit": "^3.0.0",
"@types/yargs-parser": "^15.0.0",
"acorn": "^8.0.1",
"acorn": "^8.0.3",
"acorn-class-fields": "^0.3.7",
"acorn-jsx": "^5.3.1",
"acorn-numeric-separator": "^0.3.6",
Expand All @@ -90,27 +90,27 @@
"date-time": "^3.1.0",
"es5-shim": "^4.5.14",
"es6-shim": "^0.35.5",
"eslint": "^7.9.0",
"eslint-plugin-import": "^2.22.0",
"eslint": "^7.10.0",
"eslint-plugin-import": "^2.22.1",
"execa": "^4.0.3",
"fixturify": "^2.1.0",
"hash.js": "^1.1.7",
"husky": "^4.3.0",
"is-reference": "^1.2.1",
"lint-staged": "^10.3.0",
"lint-staged": "^10.4.0",
"locate-character": "^2.0.5",
"magic-string": "^0.25.7",
"markdownlint-cli": "^0.23.2",
"markdownlint-cli": "^0.24.0",
"micromatch": "^4.0.2",
"mocha": "^8.1.3",
"node-fetch": "^2.6.1",
"nyc": "^15.1.0",
"prettier": "^2.1.2",
"pretty-bytes": "^5.4.1",
"pretty-ms": "^7.0.0",
"pretty-ms": "^7.0.1",
"require-relative": "^0.8.7",
"requirejs": "^2.3.6",
"rollup": "^2.26.11",
"rollup": "^2.28.2",
"rollup-plugin-license": "^2.2.0",
"rollup-plugin-string": "^3.0.0",
"rollup-plugin-terser": "^7.0.2",
Expand All @@ -124,12 +124,12 @@
"source-map-support": "^0.5.19",
"sourcemap-codec": "^1.4.8",
"systemjs": "^6.6.1",
"terser": "^5.3.1",
"terser": "^5.3.4",
"tslib": "^2.0.1",
"tslint": "^6.1.3",
"typescript": "^4.0.2",
"typescript": "^4.0.3",
"url-parse": "^1.4.7",
"yargs-parser": "^20.0.0"
"yargs-parser": "^20.2.1"
},
"files": [
"dist/**/*.js",
Expand Down
4 changes: 2 additions & 2 deletions src/Graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export default class Graph {
for (const key of Object.keys(cache)) cache[key][0]++;
}
}
this.contextParse = (code: string, options: acorn.Options = {}) =>
this.contextParse = (code: string, options: Partial<acorn.Options> = {}) =>
this.acornParser.parse(code, {
...this.options.acorn,
...(this.options.acorn as acorn.Options),
...options
});

Expand Down
2 changes: 1 addition & 1 deletion src/Module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ export default class Module {
if (ast) {
this.esTreeAst = ast;
} else {
this.esTreeAst = tryParse(this, this.graph.acornParser, this.options.acorn);
this.esTreeAst = tryParse(this, this.graph.acornParser, this.options.acorn as acorn.Options);
for (const comment of this.comments) {
if (!comment.block && SOURCEMAPPING_URL_RE.test(comment.text)) {
this.alwaysRemovedCode.push([comment.start, comment.end]);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/options/normalizeInputOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const getOnwarn = (config: GenericConfigObject): WarningHandler => {

const getAcorn = (config: GenericConfigObject): acorn.Options => ({
allowAwaitOutsideFunction: true,
ecmaVersion: 2020,
ecmaVersion: 'latest',
preserveParens: false,
sourceType: 'module',
...(config.acorn as Object)
Expand Down

0 comments on commit 4844742

Please sign in to comment.