Skip to content

Commit

Permalink
Bump dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Oct 26, 2021
1 parent af4c012 commit d9caa9c
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 20 deletions.
6 changes: 3 additions & 3 deletions acorn-loose/rollup.config.js
@@ -1,19 +1,19 @@
import buble from "rollup-plugin-buble"
import buble from "@rollup/plugin-buble"

export default {
external: ["acorn"],
input: "./acorn-loose/src/index.js",
output: [
{
file: "acorn-loose/dist/acorn-loose.js",
format: "umd",
name: "acorn.loose",
external: ["acorn"],

globals: {acorn: "acorn"}
},
{
file: "acorn-loose/dist/acorn-loose.mjs",
format: "es",
external: ["acorn"],
globals: {acorn: "acorn"}
}
],
Expand Down
1 change: 1 addition & 0 deletions acorn-loose/src/.eslintrc
Expand Up @@ -20,6 +20,7 @@
"no-var": "error",
"object-curly-spacing": ["error", "never"],
"one-var": "off",
"prefer-const": "off",
"quotes": ["error", "double"],
"semi-spacing": "off",
"space-before-function-paren": ["error", "never"]
Expand Down
2 changes: 1 addition & 1 deletion acorn-walk/rollup.config.js
@@ -1,4 +1,4 @@
import buble from "rollup-plugin-buble"
import buble from "@rollup/plugin-buble"

export default {
input: "acorn-walk/src/index.js",
Expand Down
1 change: 1 addition & 0 deletions acorn-walk/src/.eslintrc
Expand Up @@ -20,6 +20,7 @@
"no-var": "error",
"object-curly-spacing": ["error", "never"],
"one-var": "off",
"prefer-const": "off",
"quotes": ["error", "double"],
"semi-spacing": "off",
"space-before-function-paren": ["error", "never"]
Expand Down
6 changes: 3 additions & 3 deletions acorn/rollup.config.bin.js
@@ -1,12 +1,12 @@
import buble from "rollup-plugin-buble"
import buble from "@rollup/plugin-buble"

export default {
external: ["fs", "path", "acorn"],
input: "acorn/src/bin/acorn.js",
output: {
file: "acorn/dist/bin.js",
format: "cjs",
paths: {acorn: "./acorn.js"},
external: ["fs", "path", "acorn"]
paths: {acorn: "./acorn.js"}
},
plugins: [buble()]
}
2 changes: 1 addition & 1 deletion acorn/rollup.config.js
@@ -1,4 +1,4 @@
import buble from "rollup-plugin-buble"
import buble from "@rollup/plugin-buble"

export default {
input: "acorn/src/index.js",
Expand Down
1 change: 1 addition & 0 deletions acorn/src/.eslintrc
Expand Up @@ -21,6 +21,7 @@
"no-var": "error",
"object-curly-spacing": ["error", "never"],
"one-var": "off",
"prefer-const": "off",
"quotes": ["error", "double"],
"semi-spacing": "off",
"space-before-function-paren": ["error", "never"]
Expand Down
8 changes: 8 additions & 0 deletions acorn/src/state.js
Expand Up @@ -98,8 +98,11 @@ export class Parser {
}

get inFunction() { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 }

get inGenerator() { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit }

get inAsync() { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit }

get canAwait() {
for (let i = this.scopeStack.length - 1; i >= 0; i--) {
let scope = this.scopeStack[i]
Expand All @@ -108,16 +111,21 @@ export class Parser {
}
return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction
}

get allowSuper() {
const {flags, inClassFieldInit} = this.currentThisScope()
return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod
}

get allowDirectSuper() { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 }

get treatFunctionsAsVar() { return this.treatFunctionsAsVarInScope(this.currentScope()) }

get allowNewDotTarget() {
const {flags, inClassFieldInit} = this.currentThisScope()
return (flags & (SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit
}

get inClassStaticBlock() {
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0
}
Expand Down
3 changes: 1 addition & 2 deletions acorn/src/tokenize.js
Expand Up @@ -368,7 +368,6 @@ pp.getTokenFromCode = function(code) {
// often referred to. `finishOp` simply skips the amount of
// characters it is given as second argument, and returns a token
// of the type given by its first argument.

case 47: // '/'
return this.readToken_slash()

Expand Down Expand Up @@ -683,8 +682,8 @@ pp.readInvalidTemplateToken = function() {
if (this.input[this.pos + 1] !== "{") {
break
}
// falls through

// falls through
case "`":
return this.finishToken(tt.invalidTemplate, this.input.slice(this.start, this.pos))

Expand Down
2 changes: 1 addition & 1 deletion bin/generate-identifier-regex.js
Expand Up @@ -3,7 +3,7 @@
// Which Unicode version should be used?
let pkg = require('../package.json')
let dependencies = Object.keys(pkg.devDependencies)
let unicodeVersion = dependencies.find((name) => /^unicode-\d/.test(name))
let unicodeVersion = dependencies.find((name) => /^@unicode\/unicode-\d/.test(name))

let start = require(unicodeVersion + '/Binary_Property/ID_Start/code-points.js').filter(ch => ch > 0x7f)
let last = -1
Expand Down
17 changes: 8 additions & 9 deletions package.json
Expand Up @@ -33,17 +33,16 @@
"lint": "eslint acorn/src/ acorn-walk/src/ acorn-loose/src/"
},
"devDependencies": {
"eslint": "^4.10.0",
"eslint-config-standard": "^10.2.1",
"@rollup/plugin-buble": "^0.21.3",
"@unicode/unicode-13.0.0": "^1.2.1",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"rollup": "^1.7.0",
"rollup-plugin-buble": "^0.19.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"rollup": "^2.58.3",
"test262": "git+https://github.com/tc39/test262.git#afe217b318df5f197e64b30a8b5a4b391c777359",
"test262-parser-runner": "^0.5.0",
"test262-stream": "^1.4.0",
"unicode-13.0.0": "^0.8.0"
"test262-stream": "^1.4.0"
}
}

0 comments on commit d9caa9c

Please sign in to comment.