diff --git a/AuthenticationSDK/node_modules/.bin/_mocha b/AuthenticationSDK/node_modules/.bin/_mocha
deleted file mode 100644
index 549bf0c4..00000000
--- a/AuthenticationSDK/node_modules/.bin/_mocha
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../mocha/bin/_mocha" "$@"
- ret=$?
-else
- node "$basedir/../mocha/bin/_mocha" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/_mocha.cmd b/AuthenticationSDK/node_modules/.bin/_mocha.cmd
deleted file mode 100644
index 098f402a..00000000
--- a/AuthenticationSDK/node_modules/.bin/_mocha.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\mocha\bin\_mocha" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\mocha\bin\_mocha" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/.bin/he b/AuthenticationSDK/node_modules/.bin/he
deleted file mode 100644
index e3e6a0a8..00000000
--- a/AuthenticationSDK/node_modules/.bin/he
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../he/bin/he" "$@"
- ret=$?
-else
- node "$basedir/../he/bin/he" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/he.cmd b/AuthenticationSDK/node_modules/.bin/he.cmd
deleted file mode 100644
index 1630c8ee..00000000
--- a/AuthenticationSDK/node_modules/.bin/he.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\he\bin\he" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\he\bin\he" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/.bin/jsesc b/AuthenticationSDK/node_modules/.bin/jsesc
deleted file mode 100644
index e59ea439..00000000
--- a/AuthenticationSDK/node_modules/.bin/jsesc
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../jsesc/bin/jsesc" "$@"
- ret=$?
-else
- node "$basedir/../jsesc/bin/jsesc" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/jsesc.cmd b/AuthenticationSDK/node_modules/.bin/jsesc.cmd
deleted file mode 100644
index 66206eaa..00000000
--- a/AuthenticationSDK/node_modules/.bin/jsesc.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\jsesc\bin\jsesc" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\jsesc\bin\jsesc" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/.bin/loose-envify b/AuthenticationSDK/node_modules/.bin/loose-envify
deleted file mode 100644
index 0939216f..00000000
--- a/AuthenticationSDK/node_modules/.bin/loose-envify
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../loose-envify/cli.js" "$@"
- ret=$?
-else
- node "$basedir/../loose-envify/cli.js" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/loose-envify.cmd b/AuthenticationSDK/node_modules/.bin/loose-envify.cmd
deleted file mode 100644
index 6238bbb2..00000000
--- a/AuthenticationSDK/node_modules/.bin/loose-envify.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\loose-envify\cli.js" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\loose-envify\cli.js" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/.bin/mkdirp b/AuthenticationSDK/node_modules/.bin/mkdirp
deleted file mode 100644
index 4b004672..00000000
--- a/AuthenticationSDK/node_modules/.bin/mkdirp
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
- ret=$?
-else
- node "$basedir/../mkdirp/bin/cmd.js" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/mkdirp.cmd b/AuthenticationSDK/node_modules/.bin/mkdirp.cmd
deleted file mode 100644
index 0d2cdd7c..00000000
--- a/AuthenticationSDK/node_modules/.bin/mkdirp.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\mkdirp\bin\cmd.js" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\mkdirp\bin\cmd.js" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/.bin/mocha b/AuthenticationSDK/node_modules/.bin/mocha
deleted file mode 100644
index 43aeb744..00000000
--- a/AuthenticationSDK/node_modules/.bin/mocha
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../mocha/bin/mocha" "$@"
- ret=$?
-else
- node "$basedir/../mocha/bin/mocha" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/mocha.cmd b/AuthenticationSDK/node_modules/.bin/mocha.cmd
deleted file mode 100644
index 5a8614ae..00000000
--- a/AuthenticationSDK/node_modules/.bin/mocha.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\mocha\bin\mocha" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\mocha\bin\mocha" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/.bin/nyc b/AuthenticationSDK/node_modules/.bin/nyc
deleted file mode 100644
index abce478e..00000000
--- a/AuthenticationSDK/node_modules/.bin/nyc
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../nyc/bin/nyc.js" "$@"
- ret=$?
-else
- node "$basedir/../nyc/bin/nyc.js" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/nyc.cmd b/AuthenticationSDK/node_modules/.bin/nyc.cmd
deleted file mode 100644
index 6fe7b3f8..00000000
--- a/AuthenticationSDK/node_modules/.bin/nyc.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\nyc\bin\nyc.js" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\nyc\bin\nyc.js" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/.bin/parser b/AuthenticationSDK/node_modules/.bin/parser
deleted file mode 100644
index 59257856..00000000
--- a/AuthenticationSDK/node_modules/.bin/parser
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
- ret=$?
-else
- node "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/parser.cmd b/AuthenticationSDK/node_modules/.bin/parser.cmd
deleted file mode 100644
index bbadb812..00000000
--- a/AuthenticationSDK/node_modules/.bin/parser.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\@babel\parser\bin\babel-parser.js" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\@babel\parser\bin\babel-parser.js" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/.bin/semver b/AuthenticationSDK/node_modules/.bin/semver
deleted file mode 100644
index d592e693..00000000
--- a/AuthenticationSDK/node_modules/.bin/semver
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../semver/bin/semver" "$@"
- ret=$?
-else
- node "$basedir/../semver/bin/semver" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/semver.cmd b/AuthenticationSDK/node_modules/.bin/semver.cmd
deleted file mode 100644
index 37c00a46..00000000
--- a/AuthenticationSDK/node_modules/.bin/semver.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\semver\bin\semver" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\semver\bin\semver" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/.bin/sonar-scanner b/AuthenticationSDK/node_modules/.bin/sonar-scanner
deleted file mode 100644
index 16394027..00000000
--- a/AuthenticationSDK/node_modules/.bin/sonar-scanner
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
-
-case `uname` in
- *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
-esac
-
-if [ -x "$basedir/node" ]; then
- "$basedir/node" "$basedir/../sonar-scanner/index.js" "$@"
- ret=$?
-else
- node "$basedir/../sonar-scanner/index.js" "$@"
- ret=$?
-fi
-exit $ret
diff --git a/AuthenticationSDK/node_modules/.bin/sonar-scanner.cmd b/AuthenticationSDK/node_modules/.bin/sonar-scanner.cmd
deleted file mode 100644
index e65ef602..00000000
--- a/AuthenticationSDK/node_modules/.bin/sonar-scanner.cmd
+++ /dev/null
@@ -1,7 +0,0 @@
-@IF EXIST "%~dp0\node.exe" (
- "%~dp0\node.exe" "%~dp0\..\sonar-scanner\index.js" %*
-) ELSE (
- @SETLOCAL
- @SET PATHEXT=%PATHEXT:;.JS;=;%
- node "%~dp0\..\sonar-scanner\index.js" %*
-)
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/code-frame/README.md b/AuthenticationSDK/node_modules/@babel/code-frame/README.md
deleted file mode 100644
index 443a4bea..00000000
--- a/AuthenticationSDK/node_modules/@babel/code-frame/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/code-frame
-
-> Generate errors that contain a code frame that point to source locations.
-
-See our website [@babel/code-frame](https://new.babeljs.io/docs/en/next/babel-code-frame.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/code-frame
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/code-frame
-```
diff --git a/AuthenticationSDK/node_modules/@babel/code-frame/lib/index.js b/AuthenticationSDK/node_modules/@babel/code-frame/lib/index.js
deleted file mode 100644
index 1f64c6ce..00000000
--- a/AuthenticationSDK/node_modules/@babel/code-frame/lib/index.js
+++ /dev/null
@@ -1,173 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.codeFrameColumns = codeFrameColumns;
-exports.default = _default;
-
-function _highlight() {
- const data = _interopRequireWildcard(require("@babel/highlight"));
-
- _highlight = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-let deprecationWarningShown = false;
-
-function getDefs(chalk) {
- return {
- gutter: chalk.grey,
- marker: chalk.red.bold,
- message: chalk.red.bold
- };
-}
-
-const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
-
-function getMarkerLines(loc, source, opts) {
- const startLoc = Object.assign({
- column: 0,
- line: -1
- }, loc.start);
- const endLoc = Object.assign({}, startLoc, loc.end);
- const {
- linesAbove = 2,
- linesBelow = 3
- } = opts || {};
- const startLine = startLoc.line;
- const startColumn = startLoc.column;
- const endLine = endLoc.line;
- const endColumn = endLoc.column;
- let start = Math.max(startLine - (linesAbove + 1), 0);
- let end = Math.min(source.length, endLine + linesBelow);
-
- if (startLine === -1) {
- start = 0;
- }
-
- if (endLine === -1) {
- end = source.length;
- }
-
- const lineDiff = endLine - startLine;
- const markerLines = {};
-
- if (lineDiff) {
- for (let i = 0; i <= lineDiff; i++) {
- const lineNumber = i + startLine;
-
- if (!startColumn) {
- markerLines[lineNumber] = true;
- } else if (i === 0) {
- const sourceLength = source[lineNumber - 1].length;
- markerLines[lineNumber] = [startColumn, sourceLength - startColumn];
- } else if (i === lineDiff) {
- markerLines[lineNumber] = [0, endColumn];
- } else {
- const sourceLength = source[lineNumber - i].length;
- markerLines[lineNumber] = [0, sourceLength];
- }
- }
- } else {
- if (startColumn === endColumn) {
- if (startColumn) {
- markerLines[startLine] = [startColumn, 0];
- } else {
- markerLines[startLine] = true;
- }
- } else {
- markerLines[startLine] = [startColumn, endColumn - startColumn];
- }
- }
-
- return {
- start,
- end,
- markerLines
- };
-}
-
-function codeFrameColumns(rawLines, loc, opts = {}) {
- const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight().shouldHighlight)(opts);
- const chalk = (0, _highlight().getChalk)(opts);
- const defs = getDefs(chalk);
-
- const maybeHighlight = (chalkFn, string) => {
- return highlighted ? chalkFn(string) : string;
- };
-
- if (highlighted) rawLines = (0, _highlight().default)(rawLines, opts);
- const lines = rawLines.split(NEWLINE);
- const {
- start,
- end,
- markerLines
- } = getMarkerLines(loc, lines, opts);
- const hasColumns = loc.start && typeof loc.start.column === "number";
- const numberMaxWidth = String(end).length;
- let frame = lines.slice(start, end).map((line, index) => {
- const number = start + 1 + index;
- const paddedNumber = ` ${number}`.slice(-numberMaxWidth);
- const gutter = ` ${paddedNumber} | `;
- const hasMarker = markerLines[number];
- const lastMarkerLine = !markerLines[number + 1];
-
- if (hasMarker) {
- let markerLine = "";
-
- if (Array.isArray(hasMarker)) {
- const markerSpacing = line.slice(0, Math.max(hasMarker[0] - 1, 0)).replace(/[^\t]/g, " ");
- const numberOfMarkers = hasMarker[1] || 1;
- markerLine = ["\n ", maybeHighlight(defs.gutter, gutter.replace(/\d/g, " ")), markerSpacing, maybeHighlight(defs.marker, "^").repeat(numberOfMarkers)].join("");
-
- if (lastMarkerLine && opts.message) {
- markerLine += " " + maybeHighlight(defs.message, opts.message);
- }
- }
-
- return [maybeHighlight(defs.marker, ">"), maybeHighlight(defs.gutter, gutter), line, markerLine].join("");
- } else {
- return ` ${maybeHighlight(defs.gutter, gutter)}${line}`;
- }
- }).join("\n");
-
- if (opts.message && !hasColumns) {
- frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
- }
-
- if (highlighted) {
- return chalk.reset(frame);
- } else {
- return frame;
- }
-}
-
-function _default(rawLines, lineNumber, colNumber, opts = {}) {
- if (!deprecationWarningShown) {
- deprecationWarningShown = true;
- const message = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
-
- if (process.emitWarning) {
- process.emitWarning(message, "DeprecationWarning");
- } else {
- const deprecationError = new Error(message);
- deprecationError.name = "DeprecationWarning";
- console.warn(new Error(message));
- }
- }
-
- colNumber = Math.max(colNumber, 0);
- const location = {
- start: {
- column: colNumber,
- line: lineNumber
- }
- };
- return codeFrameColumns(rawLines, location, opts);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/code-frame/package.json b/AuthenticationSDK/node_modules/@babel/code-frame/package.json
deleted file mode 100644
index 2dc55460..00000000
--- a/AuthenticationSDK/node_modules/@babel/code-frame/package.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "_args": [
- [
- "@babel/code-frame@7.0.0-beta.51",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "@babel/code-frame@7.0.0-beta.51",
- "_id": "@babel/code-frame@7.0.0-beta.51",
- "_inBundle": false,
- "_integrity": "sha1-vXHZsZKvl435FYKdOdQJRFZDmgw=",
- "_location": "/@babel/code-frame",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/code-frame@7.0.0-beta.51",
- "name": "@babel/code-frame",
- "escapedName": "@babel%2fcode-frame",
- "scope": "@babel",
- "rawSpec": "7.0.0-beta.51",
- "saveSpec": null,
- "fetchSpec": "7.0.0-beta.51"
- },
- "_requiredBy": [
- "/@babel/template",
- "/@babel/traverse"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.51.tgz",
- "_spec": "7.0.0-beta.51",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "author": {
- "name": "Sebastian McKenzie",
- "email": "sebmck@gmail.com"
- },
- "dependencies": {
- "@babel/highlight": "7.0.0-beta.51"
- },
- "description": "Generate errors that contain a code frame that point to source locations.",
- "devDependencies": {
- "chalk": "^2.0.0",
- "strip-ansi": "^4.0.0"
- },
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/code-frame",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-code-frame"
- },
- "version": "7.0.0-beta.51"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/generator/README.md b/AuthenticationSDK/node_modules/@babel/generator/README.md
deleted file mode 100644
index b7b6087d..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/generator
-
-> Turns an AST into code.
-
-See our website [@babel/generator](https://new.babeljs.io/docs/en/next/babel-generator.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20generator%22+is%3Aopen) associated with this package.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/generator
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/generator
-```
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/buffer.js b/AuthenticationSDK/node_modules/@babel/generator/lib/buffer.js
deleted file mode 100644
index 3cdde47c..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/buffer.js
+++ /dev/null
@@ -1,211 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _trimRight() {
- const data = _interopRequireDefault(require("trim-right"));
-
- _trimRight = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const SPACES_RE = /^[ \t]+$/;
-
-class Buffer {
- constructor(map) {
- this._map = null;
- this._buf = [];
- this._last = "";
- this._queue = [];
- this._position = {
- line: 1,
- column: 0
- };
- this._sourcePosition = {
- identifierName: null,
- line: null,
- column: null,
- filename: null
- };
- this._map = map;
- }
-
- get() {
- this._flush();
-
- const map = this._map;
- const result = {
- code: (0, _trimRight().default)(this._buf.join("")),
- map: null,
- rawMappings: map && map.getRawMappings()
- };
-
- if (map) {
- Object.defineProperty(result, "map", {
- configurable: true,
- enumerable: true,
-
- get() {
- return this.map = map.get();
- },
-
- set(value) {
- Object.defineProperty(this, "map", {
- value,
- writable: true
- });
- }
-
- });
- }
-
- return result;
- }
-
- append(str) {
- this._flush();
-
- const {
- line,
- column,
- filename,
- identifierName
- } = this._sourcePosition;
-
- this._append(str, line, column, identifierName, filename);
- }
-
- queue(str) {
- if (str === "\n") {
- while (this._queue.length > 0 && SPACES_RE.test(this._queue[0][0])) {
- this._queue.shift();
- }
- }
-
- const {
- line,
- column,
- filename,
- identifierName
- } = this._sourcePosition;
-
- this._queue.unshift([str, line, column, identifierName, filename]);
- }
-
- _flush() {
- let item;
-
- while (item = this._queue.pop()) this._append(...item);
- }
-
- _append(str, line, column, identifierName, filename) {
- if (this._map && str[0] !== "\n") {
- this._map.mark(this._position.line, this._position.column, line, column, identifierName, filename);
- }
-
- this._buf.push(str);
-
- this._last = str[str.length - 1];
-
- for (let i = 0; i < str.length; i++) {
- if (str[i] === "\n") {
- this._position.line++;
- this._position.column = 0;
- } else {
- this._position.column++;
- }
- }
- }
-
- removeTrailingNewline() {
- if (this._queue.length > 0 && this._queue[0][0] === "\n") {
- this._queue.shift();
- }
- }
-
- removeLastSemicolon() {
- if (this._queue.length > 0 && this._queue[0][0] === ";") {
- this._queue.shift();
- }
- }
-
- endsWith(suffix) {
- if (suffix.length === 1) {
- let last;
-
- if (this._queue.length > 0) {
- const str = this._queue[0][0];
- last = str[str.length - 1];
- } else {
- last = this._last;
- }
-
- return last === suffix;
- }
-
- const end = this._last + this._queue.reduce((acc, item) => item[0] + acc, "");
-
- if (suffix.length <= end.length) {
- return end.slice(-suffix.length) === suffix;
- }
-
- return false;
- }
-
- hasContent() {
- return this._queue.length > 0 || !!this._last;
- }
-
- source(prop, loc) {
- if (prop && !loc) return;
- const pos = loc ? loc[prop] : null;
- this._sourcePosition.identifierName = loc && loc.identifierName || null;
- this._sourcePosition.line = pos ? pos.line : null;
- this._sourcePosition.column = pos ? pos.column : null;
- this._sourcePosition.filename = loc && loc.filename || null;
- }
-
- withSource(prop, loc, cb) {
- if (!this._map) return cb();
- const originalLine = this._sourcePosition.line;
- const originalColumn = this._sourcePosition.column;
- const originalFilename = this._sourcePosition.filename;
- const originalIdentifierName = this._sourcePosition.identifierName;
- this.source(prop, loc);
- cb();
- this._sourcePosition.line = originalLine;
- this._sourcePosition.column = originalColumn;
- this._sourcePosition.filename = originalFilename;
- this._sourcePosition.identifierName = originalIdentifierName;
- }
-
- getCurrentColumn() {
- const extra = this._queue.reduce((acc, item) => item[0] + acc, "");
-
- const lastIndex = extra.lastIndexOf("\n");
- return lastIndex === -1 ? this._position.column + extra.length : extra.length - 1 - lastIndex;
- }
-
- getCurrentLine() {
- const extra = this._queue.reduce((acc, item) => item[0] + acc, "");
-
- let count = 0;
-
- for (let i = 0; i < extra.length; i++) {
- if (extra[i] === "\n") count++;
- }
-
- return this._position.line + count;
- }
-
-}
-
-exports.default = Buffer;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/base.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/base.js
deleted file mode 100644
index 2104cd10..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/base.js
+++ /dev/null
@@ -1,69 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.File = File;
-exports.Program = Program;
-exports.BlockStatement = BlockStatement;
-exports.Noop = Noop;
-exports.Directive = Directive;
-exports.InterpreterDirective = InterpreterDirective;
-Object.defineProperty(exports, "DirectiveLiteral", {
- enumerable: true,
- get: function () {
- return _types.StringLiteral;
- }
-});
-
-var _types = require("./types");
-
-function File(node) {
- if (node.program) {
- this.print(node.program.interpreter, node);
- }
-
- this.print(node.program, node);
-}
-
-function Program(node) {
- this.printInnerComments(node, false);
- this.printSequence(node.directives, node);
- if (node.directives && node.directives.length) this.newline();
- this.printSequence(node.body, node);
-}
-
-function BlockStatement(node) {
- this.token("{");
- this.printInnerComments(node);
- const hasDirectives = node.directives && node.directives.length;
-
- if (node.body.length || hasDirectives) {
- this.newline();
- this.printSequence(node.directives, node, {
- indent: true
- });
- if (hasDirectives) this.newline();
- this.printSequence(node.body, node, {
- indent: true
- });
- this.removeTrailingNewline();
- this.source("end", node.loc);
- if (!this.endsWith("\n")) this.newline();
- this.rightBrace();
- } else {
- this.source("end", node.loc);
- this.token("}");
- }
-}
-
-function Noop() {}
-
-function Directive(node) {
- this.print(node.value, node);
- this.semicolon();
-}
-
-function InterpreterDirective(node) {
- this.token(`#!${node.value}\n`);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/classes.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/classes.js
deleted file mode 100644
index d8df1e2c..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/classes.js
+++ /dev/null
@@ -1,181 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.ClassExpression = exports.ClassDeclaration = ClassDeclaration;
-exports.ClassBody = ClassBody;
-exports.ClassProperty = ClassProperty;
-exports.ClassPrivateProperty = ClassPrivateProperty;
-exports.ClassMethod = ClassMethod;
-exports._classMethodHead = _classMethodHead;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function ClassDeclaration(node, parent) {
- if (!this.format.decoratorsBeforeExport || !t().isExportDefaultDeclaration(parent) && !t().isExportNamedDeclaration(parent)) {
- this.printJoin(node.decorators, node);
- }
-
- if (node.declare) {
- this.word("declare");
- this.space();
- }
-
- if (node.abstract) {
- this.word("abstract");
- this.space();
- }
-
- this.word("class");
-
- if (node.id) {
- this.space();
- this.print(node.id, node);
- }
-
- this.print(node.typeParameters, node);
-
- if (node.superClass) {
- this.space();
- this.word("extends");
- this.space();
- this.print(node.superClass, node);
- this.print(node.superTypeParameters, node);
- }
-
- if (node.implements) {
- this.space();
- this.word("implements");
- this.space();
- this.printList(node.implements, node);
- }
-
- this.space();
- this.print(node.body, node);
-}
-
-function ClassBody(node) {
- this.token("{");
- this.printInnerComments(node);
-
- if (node.body.length === 0) {
- this.token("}");
- } else {
- this.newline();
- this.indent();
- this.printSequence(node.body, node);
- this.dedent();
- if (!this.endsWith("\n")) this.newline();
- this.rightBrace();
- }
-}
-
-function ClassProperty(node) {
- this.printJoin(node.decorators, node);
-
- if (node.accessibility) {
- this.word(node.accessibility);
- this.space();
- }
-
- if (node.static) {
- this.word("static");
- this.space();
- }
-
- if (node.abstract) {
- this.word("abstract");
- this.space();
- }
-
- if (node.readonly) {
- this.word("readonly");
- this.space();
- }
-
- if (node.computed) {
- this.token("[");
- this.print(node.key, node);
- this.token("]");
- } else {
- this._variance(node);
-
- this.print(node.key, node);
- }
-
- if (node.optional) {
- this.token("?");
- }
-
- if (node.definite) {
- this.token("!");
- }
-
- this.print(node.typeAnnotation, node);
-
- if (node.value) {
- this.space();
- this.token("=");
- this.space();
- this.print(node.value, node);
- }
-
- this.semicolon();
-}
-
-function ClassPrivateProperty(node) {
- if (node.static) {
- this.word("static");
- this.space();
- }
-
- this.print(node.key, node);
-
- if (node.value) {
- this.space();
- this.token("=");
- this.space();
- this.print(node.value, node);
- }
-
- this.semicolon();
-}
-
-function ClassMethod(node) {
- this._classMethodHead(node);
-
- this.space();
- this.print(node.body, node);
-}
-
-function _classMethodHead(node) {
- this.printJoin(node.decorators, node);
-
- if (node.accessibility) {
- this.word(node.accessibility);
- this.space();
- }
-
- if (node.abstract) {
- this.word("abstract");
- this.space();
- }
-
- if (node.static) {
- this.word("static");
- this.space();
- }
-
- this._methodHead(node);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/expressions.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/expressions.js
deleted file mode 100644
index 1332c193..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/expressions.js
+++ /dev/null
@@ -1,292 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.UnaryExpression = UnaryExpression;
-exports.DoExpression = DoExpression;
-exports.ParenthesizedExpression = ParenthesizedExpression;
-exports.UpdateExpression = UpdateExpression;
-exports.ConditionalExpression = ConditionalExpression;
-exports.NewExpression = NewExpression;
-exports.SequenceExpression = SequenceExpression;
-exports.ThisExpression = ThisExpression;
-exports.Super = Super;
-exports.Decorator = Decorator;
-exports.OptionalMemberExpression = OptionalMemberExpression;
-exports.OptionalCallExpression = OptionalCallExpression;
-exports.CallExpression = CallExpression;
-exports.Import = Import;
-exports.EmptyStatement = EmptyStatement;
-exports.ExpressionStatement = ExpressionStatement;
-exports.AssignmentPattern = AssignmentPattern;
-exports.LogicalExpression = exports.BinaryExpression = exports.AssignmentExpression = AssignmentExpression;
-exports.BindExpression = BindExpression;
-exports.MemberExpression = MemberExpression;
-exports.MetaProperty = MetaProperty;
-exports.PrivateName = PrivateName;
-exports.AwaitExpression = exports.YieldExpression = void 0;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-var n = _interopRequireWildcard(require("../node"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function UnaryExpression(node) {
- if (node.operator === "void" || node.operator === "delete" || node.operator === "typeof") {
- this.word(node.operator);
- this.space();
- } else {
- this.token(node.operator);
- }
-
- this.print(node.argument, node);
-}
-
-function DoExpression(node) {
- this.word("do");
- this.space();
- this.print(node.body, node);
-}
-
-function ParenthesizedExpression(node) {
- this.token("(");
- this.print(node.expression, node);
- this.token(")");
-}
-
-function UpdateExpression(node) {
- if (node.prefix) {
- this.token(node.operator);
- this.print(node.argument, node);
- } else {
- this.startTerminatorless(true);
- this.print(node.argument, node);
- this.endTerminatorless();
- this.token(node.operator);
- }
-}
-
-function ConditionalExpression(node) {
- this.print(node.test, node);
- this.space();
- this.token("?");
- this.space();
- this.print(node.consequent, node);
- this.space();
- this.token(":");
- this.space();
- this.print(node.alternate, node);
-}
-
-function NewExpression(node, parent) {
- this.word("new");
- this.space();
- this.print(node.callee, node);
-
- if (this.format.minified && node.arguments.length === 0 && !node.optional && !t().isCallExpression(parent, {
- callee: node
- }) && !t().isMemberExpression(parent) && !t().isNewExpression(parent)) {
- return;
- }
-
- this.print(node.typeArguments, node);
- this.print(node.typeParameters, node);
-
- if (node.optional) {
- this.token("?.");
- }
-
- this.token("(");
- this.printList(node.arguments, node);
- this.token(")");
-}
-
-function SequenceExpression(node) {
- this.printList(node.expressions, node);
-}
-
-function ThisExpression() {
- this.word("this");
-}
-
-function Super() {
- this.word("super");
-}
-
-function Decorator(node) {
- this.token("@");
- this.print(node.expression, node);
- this.newline();
-}
-
-function OptionalMemberExpression(node) {
- this.print(node.object, node);
-
- if (!node.computed && t().isMemberExpression(node.property)) {
- throw new TypeError("Got a MemberExpression for MemberExpression property");
- }
-
- let computed = node.computed;
-
- if (t().isLiteral(node.property) && typeof node.property.value === "number") {
- computed = true;
- }
-
- if (node.optional) {
- this.token("?.");
- }
-
- if (computed) {
- this.token("[");
- this.print(node.property, node);
- this.token("]");
- } else {
- if (!node.optional) {
- this.token(".");
- }
-
- this.print(node.property, node);
- }
-}
-
-function OptionalCallExpression(node) {
- this.print(node.callee, node);
- this.print(node.typeArguments, node);
- this.print(node.typeParameters, node);
-
- if (node.optional) {
- this.token("?.");
- }
-
- this.token("(");
- this.printList(node.arguments, node);
- this.token(")");
-}
-
-function CallExpression(node) {
- this.print(node.callee, node);
- this.print(node.typeArguments, node);
- this.print(node.typeParameters, node);
- this.token("(");
- this.printList(node.arguments, node);
- this.token(")");
-}
-
-function Import() {
- this.word("import");
-}
-
-function buildYieldAwait(keyword) {
- return function (node) {
- this.word(keyword);
-
- if (node.delegate) {
- this.token("*");
- }
-
- if (node.argument) {
- this.space();
- const terminatorState = this.startTerminatorless();
- this.print(node.argument, node);
- this.endTerminatorless(terminatorState);
- }
- };
-}
-
-const YieldExpression = buildYieldAwait("yield");
-exports.YieldExpression = YieldExpression;
-const AwaitExpression = buildYieldAwait("await");
-exports.AwaitExpression = AwaitExpression;
-
-function EmptyStatement() {
- this.semicolon(true);
-}
-
-function ExpressionStatement(node) {
- this.print(node.expression, node);
- this.semicolon();
-}
-
-function AssignmentPattern(node) {
- this.print(node.left, node);
- if (node.left.optional) this.token("?");
- this.print(node.left.typeAnnotation, node);
- this.space();
- this.token("=");
- this.space();
- this.print(node.right, node);
-}
-
-function AssignmentExpression(node, parent) {
- const parens = this.inForStatementInitCounter && node.operator === "in" && !n.needsParens(node, parent);
-
- if (parens) {
- this.token("(");
- }
-
- this.print(node.left, node);
- this.space();
-
- if (node.operator === "in" || node.operator === "instanceof") {
- this.word(node.operator);
- } else {
- this.token(node.operator);
- }
-
- this.space();
- this.print(node.right, node);
-
- if (parens) {
- this.token(")");
- }
-}
-
-function BindExpression(node) {
- this.print(node.object, node);
- this.token("::");
- this.print(node.callee, node);
-}
-
-function MemberExpression(node) {
- this.print(node.object, node);
-
- if (!node.computed && t().isMemberExpression(node.property)) {
- throw new TypeError("Got a MemberExpression for MemberExpression property");
- }
-
- let computed = node.computed;
-
- if (t().isLiteral(node.property) && typeof node.property.value === "number") {
- computed = true;
- }
-
- if (computed) {
- this.token("[");
- this.print(node.property, node);
- this.token("]");
- } else {
- this.token(".");
- this.print(node.property, node);
- }
-}
-
-function MetaProperty(node) {
- this.print(node.meta, node);
- this.token(".");
- this.print(node.property, node);
-}
-
-function PrivateName(node) {
- this.token("#");
- this.print(node.id, node);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/flow.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/flow.js
deleted file mode 100644
index 0b24d2cc..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/flow.js
+++ /dev/null
@@ -1,628 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.AnyTypeAnnotation = AnyTypeAnnotation;
-exports.ArrayTypeAnnotation = ArrayTypeAnnotation;
-exports.BooleanTypeAnnotation = BooleanTypeAnnotation;
-exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation;
-exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation;
-exports.DeclareClass = DeclareClass;
-exports.DeclareFunction = DeclareFunction;
-exports.InferredPredicate = InferredPredicate;
-exports.DeclaredPredicate = DeclaredPredicate;
-exports.DeclareInterface = DeclareInterface;
-exports.DeclareModule = DeclareModule;
-exports.DeclareModuleExports = DeclareModuleExports;
-exports.DeclareTypeAlias = DeclareTypeAlias;
-exports.DeclareOpaqueType = DeclareOpaqueType;
-exports.DeclareVariable = DeclareVariable;
-exports.DeclareExportDeclaration = DeclareExportDeclaration;
-exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration;
-exports.ExistsTypeAnnotation = ExistsTypeAnnotation;
-exports.FunctionTypeAnnotation = FunctionTypeAnnotation;
-exports.FunctionTypeParam = FunctionTypeParam;
-exports.GenericTypeAnnotation = exports.ClassImplements = exports.InterfaceExtends = InterfaceExtends;
-exports._interfaceish = _interfaceish;
-exports._variance = _variance;
-exports.InterfaceDeclaration = InterfaceDeclaration;
-exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation;
-exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation;
-exports.MixedTypeAnnotation = MixedTypeAnnotation;
-exports.EmptyTypeAnnotation = EmptyTypeAnnotation;
-exports.NullableTypeAnnotation = NullableTypeAnnotation;
-exports.NumberTypeAnnotation = NumberTypeAnnotation;
-exports.StringTypeAnnotation = StringTypeAnnotation;
-exports.ThisTypeAnnotation = ThisTypeAnnotation;
-exports.TupleTypeAnnotation = TupleTypeAnnotation;
-exports.TypeofTypeAnnotation = TypeofTypeAnnotation;
-exports.TypeAlias = TypeAlias;
-exports.TypeAnnotation = TypeAnnotation;
-exports.TypeParameterDeclaration = exports.TypeParameterInstantiation = TypeParameterInstantiation;
-exports.TypeParameter = TypeParameter;
-exports.OpaqueType = OpaqueType;
-exports.ObjectTypeAnnotation = ObjectTypeAnnotation;
-exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot;
-exports.ObjectTypeCallProperty = ObjectTypeCallProperty;
-exports.ObjectTypeIndexer = ObjectTypeIndexer;
-exports.ObjectTypeProperty = ObjectTypeProperty;
-exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty;
-exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier;
-exports.UnionTypeAnnotation = UnionTypeAnnotation;
-exports.TypeCastExpression = TypeCastExpression;
-exports.Variance = Variance;
-exports.VoidTypeAnnotation = VoidTypeAnnotation;
-Object.defineProperty(exports, "NumberLiteralTypeAnnotation", {
- enumerable: true,
- get: function () {
- return _types2.NumericLiteral;
- }
-});
-Object.defineProperty(exports, "StringLiteralTypeAnnotation", {
- enumerable: true,
- get: function () {
- return _types2.StringLiteral;
- }
-});
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-var _modules = require("./modules");
-
-var _types2 = require("./types");
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function AnyTypeAnnotation() {
- this.word("any");
-}
-
-function ArrayTypeAnnotation(node) {
- this.print(node.elementType, node);
- this.token("[");
- this.token("]");
-}
-
-function BooleanTypeAnnotation() {
- this.word("boolean");
-}
-
-function BooleanLiteralTypeAnnotation(node) {
- this.word(node.value ? "true" : "false");
-}
-
-function NullLiteralTypeAnnotation() {
- this.word("null");
-}
-
-function DeclareClass(node, parent) {
- if (!t().isDeclareExportDeclaration(parent)) {
- this.word("declare");
- this.space();
- }
-
- this.word("class");
- this.space();
-
- this._interfaceish(node);
-}
-
-function DeclareFunction(node, parent) {
- if (!t().isDeclareExportDeclaration(parent)) {
- this.word("declare");
- this.space();
- }
-
- this.word("function");
- this.space();
- this.print(node.id, node);
- this.print(node.id.typeAnnotation.typeAnnotation, node);
-
- if (node.predicate) {
- this.space();
- this.print(node.predicate, node);
- }
-
- this.semicolon();
-}
-
-function InferredPredicate() {
- this.token("%");
- this.word("checks");
-}
-
-function DeclaredPredicate(node) {
- this.token("%");
- this.word("checks");
- this.token("(");
- this.print(node.value, node);
- this.token(")");
-}
-
-function DeclareInterface(node) {
- this.word("declare");
- this.space();
- this.InterfaceDeclaration(node);
-}
-
-function DeclareModule(node) {
- this.word("declare");
- this.space();
- this.word("module");
- this.space();
- this.print(node.id, node);
- this.space();
- this.print(node.body, node);
-}
-
-function DeclareModuleExports(node) {
- this.word("declare");
- this.space();
- this.word("module");
- this.token(".");
- this.word("exports");
- this.print(node.typeAnnotation, node);
-}
-
-function DeclareTypeAlias(node) {
- this.word("declare");
- this.space();
- this.TypeAlias(node);
-}
-
-function DeclareOpaqueType(node, parent) {
- if (!t().isDeclareExportDeclaration(parent)) {
- this.word("declare");
- this.space();
- }
-
- this.OpaqueType(node);
-}
-
-function DeclareVariable(node, parent) {
- if (!t().isDeclareExportDeclaration(parent)) {
- this.word("declare");
- this.space();
- }
-
- this.word("var");
- this.space();
- this.print(node.id, node);
- this.print(node.id.typeAnnotation, node);
- this.semicolon();
-}
-
-function DeclareExportDeclaration(node) {
- this.word("declare");
- this.space();
- this.word("export");
- this.space();
-
- if (node.default) {
- this.word("default");
- this.space();
- }
-
- FlowExportDeclaration.apply(this, arguments);
-}
-
-function DeclareExportAllDeclaration() {
- this.word("declare");
- this.space();
-
- _modules.ExportAllDeclaration.apply(this, arguments);
-}
-
-function FlowExportDeclaration(node) {
- if (node.declaration) {
- const declar = node.declaration;
- this.print(declar, node);
- if (!t().isStatement(declar)) this.semicolon();
- } else {
- this.token("{");
-
- if (node.specifiers.length) {
- this.space();
- this.printList(node.specifiers, node);
- this.space();
- }
-
- this.token("}");
-
- if (node.source) {
- this.space();
- this.word("from");
- this.space();
- this.print(node.source, node);
- }
-
- this.semicolon();
- }
-}
-
-function ExistsTypeAnnotation() {
- this.token("*");
-}
-
-function FunctionTypeAnnotation(node, parent) {
- this.print(node.typeParameters, node);
- this.token("(");
- this.printList(node.params, node);
-
- if (node.rest) {
- if (node.params.length) {
- this.token(",");
- this.space();
- }
-
- this.token("...");
- this.print(node.rest, node);
- }
-
- this.token(")");
-
- if (parent.type === "ObjectTypeCallProperty" || parent.type === "DeclareFunction" || parent.type === "ObjectTypeProperty" && parent.method) {
- this.token(":");
- } else {
- this.space();
- this.token("=>");
- }
-
- this.space();
- this.print(node.returnType, node);
-}
-
-function FunctionTypeParam(node) {
- this.print(node.name, node);
- if (node.optional) this.token("?");
-
- if (node.name) {
- this.token(":");
- this.space();
- }
-
- this.print(node.typeAnnotation, node);
-}
-
-function InterfaceExtends(node) {
- this.print(node.id, node);
- this.print(node.typeParameters, node);
-}
-
-function _interfaceish(node) {
- this.print(node.id, node);
- this.print(node.typeParameters, node);
-
- if (node.extends.length) {
- this.space();
- this.word("extends");
- this.space();
- this.printList(node.extends, node);
- }
-
- if (node.mixins && node.mixins.length) {
- this.space();
- this.word("mixins");
- this.space();
- this.printList(node.mixins, node);
- }
-
- if (node.implements && node.implements.length) {
- this.space();
- this.word("implements");
- this.space();
- this.printList(node.implements, node);
- }
-
- this.space();
- this.print(node.body, node);
-}
-
-function _variance(node) {
- if (node.variance) {
- if (node.variance.kind === "plus") {
- this.token("+");
- } else if (node.variance.kind === "minus") {
- this.token("-");
- }
- }
-}
-
-function InterfaceDeclaration(node) {
- this.word("interface");
- this.space();
-
- this._interfaceish(node);
-}
-
-function andSeparator() {
- this.space();
- this.token("&");
- this.space();
-}
-
-function InterfaceTypeAnnotation(node) {
- this.word("interface");
-
- if (node.extends && node.extends.length) {
- this.space();
- this.word("extends");
- this.space();
- this.printList(node.extends, node);
- }
-
- this.space();
- this.print(node.body, node);
-}
-
-function IntersectionTypeAnnotation(node) {
- this.printJoin(node.types, node, {
- separator: andSeparator
- });
-}
-
-function MixedTypeAnnotation() {
- this.word("mixed");
-}
-
-function EmptyTypeAnnotation() {
- this.word("empty");
-}
-
-function NullableTypeAnnotation(node) {
- this.token("?");
- this.print(node.typeAnnotation, node);
-}
-
-function NumberTypeAnnotation() {
- this.word("number");
-}
-
-function StringTypeAnnotation() {
- this.word("string");
-}
-
-function ThisTypeAnnotation() {
- this.word("this");
-}
-
-function TupleTypeAnnotation(node) {
- this.token("[");
- this.printList(node.types, node);
- this.token("]");
-}
-
-function TypeofTypeAnnotation(node) {
- this.word("typeof");
- this.space();
- this.print(node.argument, node);
-}
-
-function TypeAlias(node) {
- this.word("type");
- this.space();
- this.print(node.id, node);
- this.print(node.typeParameters, node);
- this.space();
- this.token("=");
- this.space();
- this.print(node.right, node);
- this.semicolon();
-}
-
-function TypeAnnotation(node) {
- this.token(":");
- this.space();
- if (node.optional) this.token("?");
- this.print(node.typeAnnotation, node);
-}
-
-function TypeParameterInstantiation(node) {
- this.token("<");
- this.printList(node.params, node, {});
- this.token(">");
-}
-
-function TypeParameter(node) {
- this._variance(node);
-
- this.word(node.name);
-
- if (node.bound) {
- this.print(node.bound, node);
- }
-
- if (node.default) {
- this.space();
- this.token("=");
- this.space();
- this.print(node.default, node);
- }
-}
-
-function OpaqueType(node) {
- this.word("opaque");
- this.space();
- this.word("type");
- this.space();
- this.print(node.id, node);
- this.print(node.typeParameters, node);
-
- if (node.supertype) {
- this.token(":");
- this.space();
- this.print(node.supertype, node);
- }
-
- if (node.impltype) {
- this.space();
- this.token("=");
- this.space();
- this.print(node.impltype, node);
- }
-
- this.semicolon();
-}
-
-function ObjectTypeAnnotation(node) {
- if (node.exact) {
- this.token("{|");
- } else {
- this.token("{");
- }
-
- const props = node.properties.concat(node.callProperties || [], node.indexers || [], node.internalSlots || []);
-
- if (props.length) {
- this.space();
- this.printJoin(props, node, {
- addNewlines(leading) {
- if (leading && !props[0]) return 1;
- },
-
- indent: true,
- statement: true,
- iterator: () => {
- if (props.length !== 1) {
- this.token(",");
- this.space();
- }
- }
- });
- this.space();
- }
-
- if (node.exact) {
- this.token("|}");
- } else {
- this.token("}");
- }
-}
-
-function ObjectTypeInternalSlot(node) {
- if (node.static) {
- this.word("static");
- this.space();
- }
-
- this.token("[");
- this.token("[");
- this.print(node.id, node);
- this.token("]");
- this.token("]");
- if (node.optional) this.token("?");
-
- if (!node.method) {
- this.token(":");
- this.space();
- }
-
- this.print(node.value, node);
-}
-
-function ObjectTypeCallProperty(node) {
- if (node.static) {
- this.word("static");
- this.space();
- }
-
- this.print(node.value, node);
-}
-
-function ObjectTypeIndexer(node) {
- if (node.static) {
- this.word("static");
- this.space();
- }
-
- this._variance(node);
-
- this.token("[");
-
- if (node.id) {
- this.print(node.id, node);
- this.token(":");
- this.space();
- }
-
- this.print(node.key, node);
- this.token("]");
- this.token(":");
- this.space();
- this.print(node.value, node);
-}
-
-function ObjectTypeProperty(node) {
- if (node.proto) {
- this.word("proto");
- this.space();
- }
-
- if (node.static) {
- this.word("static");
- this.space();
- }
-
- this._variance(node);
-
- this.print(node.key, node);
- if (node.optional) this.token("?");
-
- if (!node.method) {
- this.token(":");
- this.space();
- }
-
- this.print(node.value, node);
-}
-
-function ObjectTypeSpreadProperty(node) {
- this.token("...");
- this.print(node.argument, node);
-}
-
-function QualifiedTypeIdentifier(node) {
- this.print(node.qualification, node);
- this.token(".");
- this.print(node.id, node);
-}
-
-function orSeparator() {
- this.space();
- this.token("|");
- this.space();
-}
-
-function UnionTypeAnnotation(node) {
- this.printJoin(node.types, node, {
- separator: orSeparator
- });
-}
-
-function TypeCastExpression(node) {
- this.token("(");
- this.print(node.expression, node);
- this.print(node.typeAnnotation, node);
- this.token(")");
-}
-
-function Variance(node) {
- if (node.kind === "plus") {
- this.token("+");
- } else {
- this.token("-");
- }
-}
-
-function VoidTypeAnnotation() {
- this.word("void");
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/index.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/index.js
deleted file mode 100644
index f2b4ceca..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/index.js
+++ /dev/null
@@ -1,137 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-var _templateLiterals = require("./template-literals");
-
-Object.keys(_templateLiterals).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _templateLiterals[key];
- }
- });
-});
-
-var _expressions = require("./expressions");
-
-Object.keys(_expressions).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _expressions[key];
- }
- });
-});
-
-var _statements = require("./statements");
-
-Object.keys(_statements).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _statements[key];
- }
- });
-});
-
-var _classes = require("./classes");
-
-Object.keys(_classes).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _classes[key];
- }
- });
-});
-
-var _methods = require("./methods");
-
-Object.keys(_methods).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _methods[key];
- }
- });
-});
-
-var _modules = require("./modules");
-
-Object.keys(_modules).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _modules[key];
- }
- });
-});
-
-var _types = require("./types");
-
-Object.keys(_types).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _types[key];
- }
- });
-});
-
-var _flow = require("./flow");
-
-Object.keys(_flow).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _flow[key];
- }
- });
-});
-
-var _base = require("./base");
-
-Object.keys(_base).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _base[key];
- }
- });
-});
-
-var _jsx = require("./jsx");
-
-Object.keys(_jsx).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _jsx[key];
- }
- });
-});
-
-var _typescript = require("./typescript");
-
-Object.keys(_typescript).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _typescript[key];
- }
- });
-});
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/jsx.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/jsx.js
deleted file mode 100644
index 8dde951d..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/jsx.js
+++ /dev/null
@@ -1,144 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.JSXAttribute = JSXAttribute;
-exports.JSXIdentifier = JSXIdentifier;
-exports.JSXNamespacedName = JSXNamespacedName;
-exports.JSXMemberExpression = JSXMemberExpression;
-exports.JSXSpreadAttribute = JSXSpreadAttribute;
-exports.JSXExpressionContainer = JSXExpressionContainer;
-exports.JSXSpreadChild = JSXSpreadChild;
-exports.JSXText = JSXText;
-exports.JSXElement = JSXElement;
-exports.JSXOpeningElement = JSXOpeningElement;
-exports.JSXClosingElement = JSXClosingElement;
-exports.JSXEmptyExpression = JSXEmptyExpression;
-exports.JSXFragment = JSXFragment;
-exports.JSXOpeningFragment = JSXOpeningFragment;
-exports.JSXClosingFragment = JSXClosingFragment;
-
-function JSXAttribute(node) {
- this.print(node.name, node);
-
- if (node.value) {
- this.token("=");
- this.print(node.value, node);
- }
-}
-
-function JSXIdentifier(node) {
- this.word(node.name);
-}
-
-function JSXNamespacedName(node) {
- this.print(node.namespace, node);
- this.token(":");
- this.print(node.name, node);
-}
-
-function JSXMemberExpression(node) {
- this.print(node.object, node);
- this.token(".");
- this.print(node.property, node);
-}
-
-function JSXSpreadAttribute(node) {
- this.token("{");
- this.token("...");
- this.print(node.argument, node);
- this.token("}");
-}
-
-function JSXExpressionContainer(node) {
- this.token("{");
- this.print(node.expression, node);
- this.token("}");
-}
-
-function JSXSpreadChild(node) {
- this.token("{");
- this.token("...");
- this.print(node.expression, node);
- this.token("}");
-}
-
-function JSXText(node) {
- const raw = this.getPossibleRaw(node);
-
- if (raw != null) {
- this.token(raw);
- } else {
- this.token(node.value);
- }
-}
-
-function JSXElement(node) {
- const open = node.openingElement;
- this.print(open, node);
- if (open.selfClosing) return;
- this.indent();
-
- for (const child of node.children) {
- this.print(child, node);
- }
-
- this.dedent();
- this.print(node.closingElement, node);
-}
-
-function spaceSeparator() {
- this.space();
-}
-
-function JSXOpeningElement(node) {
- this.token("<");
- this.print(node.name, node);
-
- if (node.attributes.length > 0) {
- this.space();
- this.printJoin(node.attributes, node, {
- separator: spaceSeparator
- });
- }
-
- if (node.selfClosing) {
- this.space();
- this.token("/>");
- } else {
- this.token(">");
- }
-}
-
-function JSXClosingElement(node) {
- this.token("");
- this.print(node.name, node);
- this.token(">");
-}
-
-function JSXEmptyExpression(node) {
- this.printInnerComments(node);
-}
-
-function JSXFragment(node) {
- this.print(node.openingFragment, node);
- this.indent();
-
- for (const child of node.children) {
- this.print(child, node);
- }
-
- this.dedent();
- this.print(node.closingFragment, node);
-}
-
-function JSXOpeningFragment() {
- this.token("<");
- this.token(">");
-}
-
-function JSXClosingFragment() {
- this.token("");
- this.token(">");
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/methods.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/methods.js
deleted file mode 100644
index a0ea7400..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/methods.js
+++ /dev/null
@@ -1,151 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports._params = _params;
-exports._parameters = _parameters;
-exports._param = _param;
-exports._methodHead = _methodHead;
-exports._predicate = _predicate;
-exports._functionHead = _functionHead;
-exports.FunctionDeclaration = exports.FunctionExpression = FunctionExpression;
-exports.ArrowFunctionExpression = ArrowFunctionExpression;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _params(node) {
- this.print(node.typeParameters, node);
- this.token("(");
-
- this._parameters(node.params, node);
-
- this.token(")");
- this.print(node.returnType, node);
-}
-
-function _parameters(parameters, parent) {
- for (let i = 0; i < parameters.length; i++) {
- this._param(parameters[i], parent);
-
- if (i < parameters.length - 1) {
- this.token(",");
- this.space();
- }
- }
-}
-
-function _param(parameter, parent) {
- this.printJoin(parameter.decorators, parameter);
- this.print(parameter, parent);
- if (parameter.optional) this.token("?");
- this.print(parameter.typeAnnotation, parameter);
-}
-
-function _methodHead(node) {
- const kind = node.kind;
- const key = node.key;
-
- if (kind === "get" || kind === "set") {
- this.word(kind);
- this.space();
- }
-
- if (node.async) {
- this.word("async");
- this.space();
- }
-
- if (kind === "method" || kind === "init") {
- if (node.generator) {
- this.token("*");
- }
- }
-
- if (node.computed) {
- this.token("[");
- this.print(key, node);
- this.token("]");
- } else {
- this.print(key, node);
- }
-
- if (node.optional) {
- this.token("?");
- }
-
- this._params(node);
-}
-
-function _predicate(node) {
- if (node.predicate) {
- if (!node.returnType) {
- this.token(":");
- }
-
- this.space();
- this.print(node.predicate, node);
- }
-}
-
-function _functionHead(node) {
- if (node.async) {
- this.word("async");
- this.space();
- }
-
- this.word("function");
- if (node.generator) this.token("*");
- this.space();
-
- if (node.id) {
- this.print(node.id, node);
- }
-
- this._params(node);
-
- this._predicate(node);
-}
-
-function FunctionExpression(node) {
- this._functionHead(node);
-
- this.space();
- this.print(node.body, node);
-}
-
-function ArrowFunctionExpression(node) {
- if (node.async) {
- this.word("async");
- this.space();
- }
-
- const firstParam = node.params[0];
-
- if (node.params.length === 1 && t().isIdentifier(firstParam) && !hasTypes(node, firstParam)) {
- this.print(firstParam, node);
- } else {
- this._params(node);
- }
-
- this._predicate(node);
-
- this.space();
- this.token("=>");
- this.space();
- this.print(node.body, node);
-}
-
-function hasTypes(node, param) {
- return node.typeParameters || node.returnType || param.typeAnnotation || param.optional || param.trailingComments;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/modules.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/modules.js
deleted file mode 100644
index af87bd58..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/modules.js
+++ /dev/null
@@ -1,214 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.ImportSpecifier = ImportSpecifier;
-exports.ImportDefaultSpecifier = ImportDefaultSpecifier;
-exports.ExportDefaultSpecifier = ExportDefaultSpecifier;
-exports.ExportSpecifier = ExportSpecifier;
-exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier;
-exports.ExportAllDeclaration = ExportAllDeclaration;
-exports.ExportNamedDeclaration = ExportNamedDeclaration;
-exports.ExportDefaultDeclaration = ExportDefaultDeclaration;
-exports.ImportDeclaration = ImportDeclaration;
-exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function ImportSpecifier(node) {
- if (node.importKind === "type" || node.importKind === "typeof") {
- this.word(node.importKind);
- this.space();
- }
-
- this.print(node.imported, node);
-
- if (node.local && node.local.name !== node.imported.name) {
- this.space();
- this.word("as");
- this.space();
- this.print(node.local, node);
- }
-}
-
-function ImportDefaultSpecifier(node) {
- this.print(node.local, node);
-}
-
-function ExportDefaultSpecifier(node) {
- this.print(node.exported, node);
-}
-
-function ExportSpecifier(node) {
- this.print(node.local, node);
-
- if (node.exported && node.local.name !== node.exported.name) {
- this.space();
- this.word("as");
- this.space();
- this.print(node.exported, node);
- }
-}
-
-function ExportNamespaceSpecifier(node) {
- this.token("*");
- this.space();
- this.word("as");
- this.space();
- this.print(node.exported, node);
-}
-
-function ExportAllDeclaration(node) {
- this.word("export");
- this.space();
-
- if (node.exportKind === "type") {
- this.word("type");
- this.space();
- }
-
- this.token("*");
- this.space();
- this.word("from");
- this.space();
- this.print(node.source, node);
- this.semicolon();
-}
-
-function ExportNamedDeclaration(node) {
- if (this.format.decoratorsBeforeExport && t().isClassDeclaration(node.declaration)) {
- this.printJoin(node.declaration.decorators, node);
- }
-
- this.word("export");
- this.space();
- ExportDeclaration.apply(this, arguments);
-}
-
-function ExportDefaultDeclaration(node) {
- if (this.format.decoratorsBeforeExport && t().isClassDeclaration(node.declaration)) {
- this.printJoin(node.declaration.decorators, node);
- }
-
- this.word("export");
- this.space();
- this.word("default");
- this.space();
- ExportDeclaration.apply(this, arguments);
-}
-
-function ExportDeclaration(node) {
- if (node.declaration) {
- const declar = node.declaration;
- this.print(declar, node);
- if (!t().isStatement(declar)) this.semicolon();
- } else {
- if (node.exportKind === "type") {
- this.word("type");
- this.space();
- }
-
- const specifiers = node.specifiers.slice(0);
- let hasSpecial = false;
-
- while (true) {
- const first = specifiers[0];
-
- if (t().isExportDefaultSpecifier(first) || t().isExportNamespaceSpecifier(first)) {
- hasSpecial = true;
- this.print(specifiers.shift(), node);
-
- if (specifiers.length) {
- this.token(",");
- this.space();
- }
- } else {
- break;
- }
- }
-
- if (specifiers.length || !specifiers.length && !hasSpecial) {
- this.token("{");
-
- if (specifiers.length) {
- this.space();
- this.printList(specifiers, node);
- this.space();
- }
-
- this.token("}");
- }
-
- if (node.source) {
- this.space();
- this.word("from");
- this.space();
- this.print(node.source, node);
- }
-
- this.semicolon();
- }
-}
-
-function ImportDeclaration(node) {
- this.word("import");
- this.space();
-
- if (node.importKind === "type" || node.importKind === "typeof") {
- this.word(node.importKind);
- this.space();
- }
-
- const specifiers = node.specifiers.slice(0);
-
- if (specifiers && specifiers.length) {
- while (true) {
- const first = specifiers[0];
-
- if (t().isImportDefaultSpecifier(first) || t().isImportNamespaceSpecifier(first)) {
- this.print(specifiers.shift(), node);
-
- if (specifiers.length) {
- this.token(",");
- this.space();
- }
- } else {
- break;
- }
- }
-
- if (specifiers.length) {
- this.token("{");
- this.space();
- this.printList(specifiers, node);
- this.space();
- this.token("}");
- }
-
- this.space();
- this.word("from");
- this.space();
- }
-
- this.print(node.source, node);
- this.semicolon();
-}
-
-function ImportNamespaceSpecifier(node) {
- this.token("*");
- this.space();
- this.word("as");
- this.space();
- this.print(node.local, node);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/statements.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/statements.js
deleted file mode 100644
index c74363de..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/statements.js
+++ /dev/null
@@ -1,319 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.WithStatement = WithStatement;
-exports.IfStatement = IfStatement;
-exports.ForStatement = ForStatement;
-exports.WhileStatement = WhileStatement;
-exports.DoWhileStatement = DoWhileStatement;
-exports.LabeledStatement = LabeledStatement;
-exports.TryStatement = TryStatement;
-exports.CatchClause = CatchClause;
-exports.SwitchStatement = SwitchStatement;
-exports.SwitchCase = SwitchCase;
-exports.DebuggerStatement = DebuggerStatement;
-exports.VariableDeclaration = VariableDeclaration;
-exports.VariableDeclarator = VariableDeclarator;
-exports.ThrowStatement = exports.BreakStatement = exports.ReturnStatement = exports.ContinueStatement = exports.ForOfStatement = exports.ForInStatement = void 0;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function WithStatement(node) {
- this.word("with");
- this.space();
- this.token("(");
- this.print(node.object, node);
- this.token(")");
- this.printBlock(node);
-}
-
-function IfStatement(node) {
- this.word("if");
- this.space();
- this.token("(");
- this.print(node.test, node);
- this.token(")");
- this.space();
- const needsBlock = node.alternate && t().isIfStatement(getLastStatement(node.consequent));
-
- if (needsBlock) {
- this.token("{");
- this.newline();
- this.indent();
- }
-
- this.printAndIndentOnComments(node.consequent, node);
-
- if (needsBlock) {
- this.dedent();
- this.newline();
- this.token("}");
- }
-
- if (node.alternate) {
- if (this.endsWith("}")) this.space();
- this.word("else");
- this.space();
- this.printAndIndentOnComments(node.alternate, node);
- }
-}
-
-function getLastStatement(statement) {
- if (!t().isStatement(statement.body)) return statement;
- return getLastStatement(statement.body);
-}
-
-function ForStatement(node) {
- this.word("for");
- this.space();
- this.token("(");
- this.inForStatementInitCounter++;
- this.print(node.init, node);
- this.inForStatementInitCounter--;
- this.token(";");
-
- if (node.test) {
- this.space();
- this.print(node.test, node);
- }
-
- this.token(";");
-
- if (node.update) {
- this.space();
- this.print(node.update, node);
- }
-
- this.token(")");
- this.printBlock(node);
-}
-
-function WhileStatement(node) {
- this.word("while");
- this.space();
- this.token("(");
- this.print(node.test, node);
- this.token(")");
- this.printBlock(node);
-}
-
-const buildForXStatement = function (op) {
- return function (node) {
- this.word("for");
- this.space();
-
- if (op === "of" && node.await) {
- this.word("await");
- this.space();
- }
-
- this.token("(");
- this.print(node.left, node);
- this.space();
- this.word(op);
- this.space();
- this.print(node.right, node);
- this.token(")");
- this.printBlock(node);
- };
-};
-
-const ForInStatement = buildForXStatement("in");
-exports.ForInStatement = ForInStatement;
-const ForOfStatement = buildForXStatement("of");
-exports.ForOfStatement = ForOfStatement;
-
-function DoWhileStatement(node) {
- this.word("do");
- this.space();
- this.print(node.body, node);
- this.space();
- this.word("while");
- this.space();
- this.token("(");
- this.print(node.test, node);
- this.token(")");
- this.semicolon();
-}
-
-function buildLabelStatement(prefix, key = "label") {
- return function (node) {
- this.word(prefix);
- const label = node[key];
-
- if (label) {
- this.space();
- const isLabel = key == "label";
- const terminatorState = this.startTerminatorless(isLabel);
- this.print(label, node);
- this.endTerminatorless(terminatorState);
- }
-
- this.semicolon();
- };
-}
-
-const ContinueStatement = buildLabelStatement("continue");
-exports.ContinueStatement = ContinueStatement;
-const ReturnStatement = buildLabelStatement("return", "argument");
-exports.ReturnStatement = ReturnStatement;
-const BreakStatement = buildLabelStatement("break");
-exports.BreakStatement = BreakStatement;
-const ThrowStatement = buildLabelStatement("throw", "argument");
-exports.ThrowStatement = ThrowStatement;
-
-function LabeledStatement(node) {
- this.print(node.label, node);
- this.token(":");
- this.space();
- this.print(node.body, node);
-}
-
-function TryStatement(node) {
- this.word("try");
- this.space();
- this.print(node.block, node);
- this.space();
-
- if (node.handlers) {
- this.print(node.handlers[0], node);
- } else {
- this.print(node.handler, node);
- }
-
- if (node.finalizer) {
- this.space();
- this.word("finally");
- this.space();
- this.print(node.finalizer, node);
- }
-}
-
-function CatchClause(node) {
- this.word("catch");
- this.space();
-
- if (node.param) {
- this.token("(");
- this.print(node.param, node);
- this.token(")");
- this.space();
- }
-
- this.print(node.body, node);
-}
-
-function SwitchStatement(node) {
- this.word("switch");
- this.space();
- this.token("(");
- this.print(node.discriminant, node);
- this.token(")");
- this.space();
- this.token("{");
- this.printSequence(node.cases, node, {
- indent: true,
-
- addNewlines(leading, cas) {
- if (!leading && node.cases[node.cases.length - 1] === cas) return -1;
- }
-
- });
- this.token("}");
-}
-
-function SwitchCase(node) {
- if (node.test) {
- this.word("case");
- this.space();
- this.print(node.test, node);
- this.token(":");
- } else {
- this.word("default");
- this.token(":");
- }
-
- if (node.consequent.length) {
- this.newline();
- this.printSequence(node.consequent, node, {
- indent: true
- });
- }
-}
-
-function DebuggerStatement() {
- this.word("debugger");
- this.semicolon();
-}
-
-function variableDeclarationIndent() {
- this.token(",");
- this.newline();
- if (this.endsWith("\n")) for (let i = 0; i < 4; i++) this.space(true);
-}
-
-function constDeclarationIndent() {
- this.token(",");
- this.newline();
- if (this.endsWith("\n")) for (let i = 0; i < 6; i++) this.space(true);
-}
-
-function VariableDeclaration(node, parent) {
- if (node.declare) {
- this.word("declare");
- this.space();
- }
-
- this.word(node.kind);
- this.space();
- let hasInits = false;
-
- if (!t().isFor(parent)) {
- for (const declar of node.declarations) {
- if (declar.init) {
- hasInits = true;
- }
- }
- }
-
- let separator;
-
- if (hasInits) {
- separator = node.kind === "const" ? constDeclarationIndent : variableDeclarationIndent;
- }
-
- this.printList(node.declarations, node, {
- separator
- });
-
- if (t().isFor(parent)) {
- if (parent.left === node || parent.init === node) return;
- }
-
- this.semicolon();
-}
-
-function VariableDeclarator(node) {
- this.print(node.id, node);
- if (node.definite) this.token("!");
- this.print(node.id.typeAnnotation, node);
-
- if (node.init) {
- this.space();
- this.token("=");
- this.space();
- this.print(node.init, node);
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/template-literals.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/template-literals.js
deleted file mode 100644
index 16f4d9af..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/template-literals.js
+++ /dev/null
@@ -1,32 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.TaggedTemplateExpression = TaggedTemplateExpression;
-exports.TemplateElement = TemplateElement;
-exports.TemplateLiteral = TemplateLiteral;
-
-function TaggedTemplateExpression(node) {
- this.print(node.tag, node);
- this.print(node.quasi, node);
-}
-
-function TemplateElement(node, parent) {
- const isFirst = parent.quasis[0] === node;
- const isLast = parent.quasis[parent.quasis.length - 1] === node;
- const value = (isFirst ? "`" : "}") + node.value.raw + (isLast ? "`" : "${");
- this.token(value);
-}
-
-function TemplateLiteral(node) {
- const quasis = node.quasis;
-
- for (let i = 0; i < quasis.length; i++) {
- this.print(quasis[i], node);
-
- if (i + 1 < quasis.length) {
- this.print(node.expressions[i], node);
- }
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/types.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/types.js
deleted file mode 100644
index 723dffdb..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/types.js
+++ /dev/null
@@ -1,176 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.Identifier = Identifier;
-exports.SpreadElement = exports.RestElement = RestElement;
-exports.ObjectPattern = exports.ObjectExpression = ObjectExpression;
-exports.ObjectMethod = ObjectMethod;
-exports.ObjectProperty = ObjectProperty;
-exports.ArrayPattern = exports.ArrayExpression = ArrayExpression;
-exports.RegExpLiteral = RegExpLiteral;
-exports.BooleanLiteral = BooleanLiteral;
-exports.NullLiteral = NullLiteral;
-exports.NumericLiteral = NumericLiteral;
-exports.StringLiteral = StringLiteral;
-exports.BigIntLiteral = BigIntLiteral;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _jsesc() {
- const data = _interopRequireDefault(require("jsesc"));
-
- _jsesc = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function Identifier(node) {
- this.word(node.name);
-}
-
-function RestElement(node) {
- this.token("...");
- this.print(node.argument, node);
-}
-
-function ObjectExpression(node) {
- const props = node.properties;
- this.token("{");
- this.printInnerComments(node);
-
- if (props.length) {
- this.space();
- this.printList(props, node, {
- indent: true,
- statement: true
- });
- this.space();
- }
-
- this.token("}");
-}
-
-function ObjectMethod(node) {
- this.printJoin(node.decorators, node);
-
- this._methodHead(node);
-
- this.space();
- this.print(node.body, node);
-}
-
-function ObjectProperty(node) {
- this.printJoin(node.decorators, node);
-
- if (node.computed) {
- this.token("[");
- this.print(node.key, node);
- this.token("]");
- } else {
- if (t().isAssignmentPattern(node.value) && t().isIdentifier(node.key) && node.key.name === node.value.left.name) {
- this.print(node.value, node);
- return;
- }
-
- this.print(node.key, node);
-
- if (node.shorthand && t().isIdentifier(node.key) && t().isIdentifier(node.value) && node.key.name === node.value.name) {
- return;
- }
- }
-
- this.token(":");
- this.space();
- this.print(node.value, node);
-}
-
-function ArrayExpression(node) {
- const elems = node.elements;
- const len = elems.length;
- this.token("[");
- this.printInnerComments(node);
-
- for (let i = 0; i < elems.length; i++) {
- const elem = elems[i];
-
- if (elem) {
- if (i > 0) this.space();
- this.print(elem, node);
- if (i < len - 1) this.token(",");
- } else {
- this.token(",");
- }
- }
-
- this.token("]");
-}
-
-function RegExpLiteral(node) {
- this.word(`/${node.pattern}/${node.flags}`);
-}
-
-function BooleanLiteral(node) {
- this.word(node.value ? "true" : "false");
-}
-
-function NullLiteral() {
- this.word("null");
-}
-
-function NumericLiteral(node) {
- const raw = this.getPossibleRaw(node);
- const value = node.value + "";
-
- if (raw == null) {
- this.number(value);
- } else if (this.format.minified) {
- this.number(raw.length < value.length ? raw : value);
- } else {
- this.number(raw);
- }
-}
-
-function StringLiteral(node) {
- const raw = this.getPossibleRaw(node);
-
- if (!this.format.minified && raw != null) {
- this.token(raw);
- return;
- }
-
- const opts = this.format.jsescOption;
-
- if (this.format.jsonCompatibleStrings) {
- opts.json = true;
- }
-
- const val = (0, _jsesc().default)(node.value, opts);
- return this.token(val);
-}
-
-function BigIntLiteral(node) {
- const raw = this.getPossibleRaw(node);
-
- if (!this.format.minified && raw != null) {
- this.token(raw);
- return;
- }
-
- this.token(node.value);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/typescript.js b/AuthenticationSDK/node_modules/@babel/generator/lib/generators/typescript.js
deleted file mode 100644
index 579e0dd9..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/generators/typescript.js
+++ /dev/null
@@ -1,676 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.TSTypeAnnotation = TSTypeAnnotation;
-exports.TSTypeParameterDeclaration = exports.TSTypeParameterInstantiation = TSTypeParameterInstantiation;
-exports.TSTypeParameter = TSTypeParameter;
-exports.TSParameterProperty = TSParameterProperty;
-exports.TSDeclareFunction = TSDeclareFunction;
-exports.TSDeclareMethod = TSDeclareMethod;
-exports.TSQualifiedName = TSQualifiedName;
-exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration;
-exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration;
-exports.TSPropertySignature = TSPropertySignature;
-exports.tsPrintPropertyOrMethodName = tsPrintPropertyOrMethodName;
-exports.TSMethodSignature = TSMethodSignature;
-exports.TSIndexSignature = TSIndexSignature;
-exports.TSAnyKeyword = TSAnyKeyword;
-exports.TSNumberKeyword = TSNumberKeyword;
-exports.TSObjectKeyword = TSObjectKeyword;
-exports.TSBooleanKeyword = TSBooleanKeyword;
-exports.TSStringKeyword = TSStringKeyword;
-exports.TSSymbolKeyword = TSSymbolKeyword;
-exports.TSVoidKeyword = TSVoidKeyword;
-exports.TSUndefinedKeyword = TSUndefinedKeyword;
-exports.TSNullKeyword = TSNullKeyword;
-exports.TSNeverKeyword = TSNeverKeyword;
-exports.TSThisType = TSThisType;
-exports.TSFunctionType = TSFunctionType;
-exports.TSConstructorType = TSConstructorType;
-exports.tsPrintFunctionOrConstructorType = tsPrintFunctionOrConstructorType;
-exports.TSTypeReference = TSTypeReference;
-exports.TSTypePredicate = TSTypePredicate;
-exports.TSTypeQuery = TSTypeQuery;
-exports.TSTypeLiteral = TSTypeLiteral;
-exports.tsPrintTypeLiteralOrInterfaceBody = tsPrintTypeLiteralOrInterfaceBody;
-exports.tsPrintBraced = tsPrintBraced;
-exports.TSArrayType = TSArrayType;
-exports.TSTupleType = TSTupleType;
-exports.TSUnionType = TSUnionType;
-exports.TSIntersectionType = TSIntersectionType;
-exports.tsPrintUnionOrIntersectionType = tsPrintUnionOrIntersectionType;
-exports.TSConditionalType = TSConditionalType;
-exports.TSInferType = TSInferType;
-exports.TSParenthesizedType = TSParenthesizedType;
-exports.TSTypeOperator = TSTypeOperator;
-exports.TSIndexedAccessType = TSIndexedAccessType;
-exports.TSMappedType = TSMappedType;
-exports.TSLiteralType = TSLiteralType;
-exports.TSExpressionWithTypeArguments = TSExpressionWithTypeArguments;
-exports.TSInterfaceDeclaration = TSInterfaceDeclaration;
-exports.TSInterfaceBody = TSInterfaceBody;
-exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration;
-exports.TSAsExpression = TSAsExpression;
-exports.TSTypeAssertion = TSTypeAssertion;
-exports.TSEnumDeclaration = TSEnumDeclaration;
-exports.TSEnumMember = TSEnumMember;
-exports.TSModuleDeclaration = TSModuleDeclaration;
-exports.TSModuleBlock = TSModuleBlock;
-exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration;
-exports.TSExternalModuleReference = TSExternalModuleReference;
-exports.TSNonNullExpression = TSNonNullExpression;
-exports.TSExportAssignment = TSExportAssignment;
-exports.TSNamespaceExportDeclaration = TSNamespaceExportDeclaration;
-exports.tsPrintSignatureDeclarationBase = tsPrintSignatureDeclarationBase;
-
-function TSTypeAnnotation(node) {
- this.token(":");
- this.space();
- if (node.optional) this.token("?");
- this.print(node.typeAnnotation, node);
-}
-
-function TSTypeParameterInstantiation(node) {
- this.token("<");
- this.printList(node.params, node, {});
- this.token(">");
-}
-
-function TSTypeParameter(node) {
- this.word(node.name);
-
- if (node.constraint) {
- this.space();
- this.word("extends");
- this.space();
- this.print(node.constraint, node);
- }
-
- if (node.default) {
- this.space();
- this.token("=");
- this.space();
- this.print(node.default, node);
- }
-}
-
-function TSParameterProperty(node) {
- if (node.accessibility) {
- this.word(node.accessibility);
- this.space();
- }
-
- if (node.readonly) {
- this.word("readonly");
- this.space();
- }
-
- this._param(node.parameter);
-}
-
-function TSDeclareFunction(node) {
- if (node.declare) {
- this.word("declare");
- this.space();
- }
-
- this._functionHead(node);
-
- this.token(";");
-}
-
-function TSDeclareMethod(node) {
- this._classMethodHead(node);
-
- this.token(";");
-}
-
-function TSQualifiedName(node) {
- this.print(node.left, node);
- this.token(".");
- this.print(node.right, node);
-}
-
-function TSCallSignatureDeclaration(node) {
- this.tsPrintSignatureDeclarationBase(node);
-}
-
-function TSConstructSignatureDeclaration(node) {
- this.word("new");
- this.space();
- this.tsPrintSignatureDeclarationBase(node);
-}
-
-function TSPropertySignature(node) {
- const {
- readonly,
- initializer
- } = node;
-
- if (readonly) {
- this.word("readonly");
- this.space();
- }
-
- this.tsPrintPropertyOrMethodName(node);
- this.print(node.typeAnnotation, node);
-
- if (initializer) {
- this.space();
- this.token("=");
- this.space();
- this.print(initializer, node);
- }
-
- this.token(";");
-}
-
-function tsPrintPropertyOrMethodName(node) {
- if (node.computed) {
- this.token("[");
- }
-
- this.print(node.key, node);
-
- if (node.computed) {
- this.token("]");
- }
-
- if (node.optional) {
- this.token("?");
- }
-}
-
-function TSMethodSignature(node) {
- this.tsPrintPropertyOrMethodName(node);
- this.tsPrintSignatureDeclarationBase(node);
- this.token(";");
-}
-
-function TSIndexSignature(node) {
- const {
- readonly
- } = node;
-
- if (readonly) {
- this.word("readonly");
- this.space();
- }
-
- this.token("[");
-
- this._parameters(node.parameters, node);
-
- this.token("]");
- this.print(node.typeAnnotation, node);
- this.token(";");
-}
-
-function TSAnyKeyword() {
- this.word("any");
-}
-
-function TSNumberKeyword() {
- this.word("number");
-}
-
-function TSObjectKeyword() {
- this.word("object");
-}
-
-function TSBooleanKeyword() {
- this.word("boolean");
-}
-
-function TSStringKeyword() {
- this.word("string");
-}
-
-function TSSymbolKeyword() {
- this.word("symbol");
-}
-
-function TSVoidKeyword() {
- this.word("void");
-}
-
-function TSUndefinedKeyword() {
- this.word("undefined");
-}
-
-function TSNullKeyword() {
- this.word("null");
-}
-
-function TSNeverKeyword() {
- this.word("never");
-}
-
-function TSThisType() {
- this.word("this");
-}
-
-function TSFunctionType(node) {
- this.tsPrintFunctionOrConstructorType(node);
-}
-
-function TSConstructorType(node) {
- this.word("new");
- this.space();
- this.tsPrintFunctionOrConstructorType(node);
-}
-
-function tsPrintFunctionOrConstructorType(node) {
- const {
- typeParameters,
- parameters
- } = node;
- this.print(typeParameters, node);
- this.token("(");
-
- this._parameters(parameters, node);
-
- this.token(")");
- this.space();
- this.token("=>");
- this.space();
- this.print(node.typeAnnotation.typeAnnotation, node);
-}
-
-function TSTypeReference(node) {
- this.print(node.typeName, node);
- this.print(node.typeParameters, node);
-}
-
-function TSTypePredicate(node) {
- this.print(node.parameterName);
- this.space();
- this.word("is");
- this.space();
- this.print(node.typeAnnotation.typeAnnotation);
-}
-
-function TSTypeQuery(node) {
- this.word("typeof");
- this.space();
- this.print(node.exprName);
-}
-
-function TSTypeLiteral(node) {
- this.tsPrintTypeLiteralOrInterfaceBody(node.members, node);
-}
-
-function tsPrintTypeLiteralOrInterfaceBody(members, node) {
- this.tsPrintBraced(members, node);
-}
-
-function tsPrintBraced(members, node) {
- this.token("{");
-
- if (members.length) {
- this.indent();
- this.newline();
-
- for (const member of members) {
- this.print(member, node);
- this.newline();
- }
-
- this.dedent();
- this.rightBrace();
- } else {
- this.token("}");
- }
-}
-
-function TSArrayType(node) {
- this.print(node.elementType);
- this.token("[]");
-}
-
-function TSTupleType(node) {
- this.token("[");
- this.printList(node.elementTypes, node);
- this.token("]");
-}
-
-function TSUnionType(node) {
- this.tsPrintUnionOrIntersectionType(node, "|");
-}
-
-function TSIntersectionType(node) {
- this.tsPrintUnionOrIntersectionType(node, "&");
-}
-
-function tsPrintUnionOrIntersectionType(node, sep) {
- this.printJoin(node.types, node, {
- separator() {
- this.space();
- this.token(sep);
- this.space();
- }
-
- });
-}
-
-function TSConditionalType(node) {
- this.print(node.checkType);
- this.space();
- this.word("extends");
- this.space();
- this.print(node.extendsType);
- this.space();
- this.token("?");
- this.space();
- this.print(node.trueType);
- this.space();
- this.token(":");
- this.space();
- this.print(node.falseType);
-}
-
-function TSInferType(node) {
- this.token("infer");
- this.space();
- this.print(node.typeParameter);
-}
-
-function TSParenthesizedType(node) {
- this.token("(");
- this.print(node.typeAnnotation, node);
- this.token(")");
-}
-
-function TSTypeOperator(node) {
- this.token(node.operator);
- this.space();
- this.print(node.typeAnnotation, node);
-}
-
-function TSIndexedAccessType(node) {
- this.print(node.objectType, node);
- this.token("[");
- this.print(node.indexType, node);
- this.token("]");
-}
-
-function TSMappedType(node) {
- const {
- readonly,
- typeParameter,
- optional
- } = node;
- this.token("{");
- this.space();
-
- if (readonly) {
- tokenIfPlusMinus(this, readonly);
- this.word("readonly");
- this.space();
- }
-
- this.token("[");
- this.word(typeParameter.name);
- this.space();
- this.word("in");
- this.space();
- this.print(typeParameter.constraint, typeParameter);
- this.token("]");
-
- if (optional) {
- tokenIfPlusMinus(this, optional);
- this.token("?");
- }
-
- this.token(":");
- this.space();
- this.print(node.typeAnnotation, node);
- this.space();
- this.token("}");
-}
-
-function tokenIfPlusMinus(self, tok) {
- if (tok !== true) {
- self.token(tok);
- }
-}
-
-function TSLiteralType(node) {
- this.print(node.literal, node);
-}
-
-function TSExpressionWithTypeArguments(node) {
- this.print(node.expression, node);
- this.print(node.typeParameters, node);
-}
-
-function TSInterfaceDeclaration(node) {
- const {
- declare,
- id,
- typeParameters,
- extends: extendz,
- body
- } = node;
-
- if (declare) {
- this.word("declare");
- this.space();
- }
-
- this.word("interface");
- this.space();
- this.print(id, node);
- this.print(typeParameters, node);
-
- if (extendz) {
- this.space();
- this.word("extends");
- this.space();
- this.printList(extendz, node);
- }
-
- this.space();
- this.print(body, node);
-}
-
-function TSInterfaceBody(node) {
- this.tsPrintTypeLiteralOrInterfaceBody(node.body, node);
-}
-
-function TSTypeAliasDeclaration(node) {
- const {
- declare,
- id,
- typeParameters,
- typeAnnotation
- } = node;
-
- if (declare) {
- this.word("declare");
- this.space();
- }
-
- this.word("type");
- this.space();
- this.print(id, node);
- this.print(typeParameters, node);
- this.space();
- this.token("=");
- this.space();
- this.print(typeAnnotation, node);
- this.token(";");
-}
-
-function TSAsExpression(node) {
- const {
- expression,
- typeAnnotation
- } = node;
- this.print(expression, node);
- this.space();
- this.word("as");
- this.space();
- this.print(typeAnnotation, node);
-}
-
-function TSTypeAssertion(node) {
- const {
- typeAnnotation,
- expression
- } = node;
- this.token("<");
- this.print(typeAnnotation, node);
- this.token(">");
- this.space();
- this.print(expression, node);
-}
-
-function TSEnumDeclaration(node) {
- const {
- declare,
- const: isConst,
- id,
- members
- } = node;
-
- if (declare) {
- this.word("declare");
- this.space();
- }
-
- if (isConst) {
- this.word("const");
- this.space();
- }
-
- this.word("enum");
- this.space();
- this.print(id, node);
- this.space();
- this.tsPrintBraced(members, node);
-}
-
-function TSEnumMember(node) {
- const {
- id,
- initializer
- } = node;
- this.print(id, node);
-
- if (initializer) {
- this.space();
- this.token("=");
- this.space();
- this.print(initializer, node);
- }
-
- this.token(",");
-}
-
-function TSModuleDeclaration(node) {
- const {
- declare,
- id
- } = node;
-
- if (declare) {
- this.word("declare");
- this.space();
- }
-
- if (!node.global) {
- this.word(id.type === "Identifier" ? "namespace" : "module");
- this.space();
- }
-
- this.print(id, node);
-
- if (!node.body) {
- this.token(";");
- return;
- }
-
- let body = node.body;
-
- while (body.type === "TSModuleDeclaration") {
- this.token(".");
- this.print(body.id, body);
- body = body.body;
- }
-
- this.space();
- this.print(body, node);
-}
-
-function TSModuleBlock(node) {
- this.tsPrintBraced(node.body, node);
-}
-
-function TSImportEqualsDeclaration(node) {
- const {
- isExport,
- id,
- moduleReference
- } = node;
-
- if (isExport) {
- this.word("export");
- this.space();
- }
-
- this.word("import");
- this.space();
- this.print(id, node);
- this.space();
- this.token("=");
- this.space();
- this.print(moduleReference, node);
- this.token(";");
-}
-
-function TSExternalModuleReference(node) {
- this.token("require(");
- this.print(node.expression, node);
- this.token(")");
-}
-
-function TSNonNullExpression(node) {
- this.print(node.expression, node);
- this.token("!");
-}
-
-function TSExportAssignment(node) {
- this.word("export");
- this.space();
- this.token("=");
- this.space();
- this.print(node.expression, node);
- this.token(";");
-}
-
-function TSNamespaceExportDeclaration(node) {
- this.word("export");
- this.space();
- this.word("as");
- this.space();
- this.word("namespace");
- this.space();
- this.print(node.id, node);
-}
-
-function tsPrintSignatureDeclarationBase(node) {
- const {
- typeParameters,
- parameters
- } = node;
- this.print(typeParameters, node);
- this.token("(");
-
- this._parameters(parameters, node);
-
- this.token(")");
- this.print(node.typeAnnotation, node);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/index.js b/AuthenticationSDK/node_modules/@babel/generator/lib/index.js
deleted file mode 100644
index fcdb288b..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/index.js
+++ /dev/null
@@ -1,92 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-exports.CodeGenerator = void 0;
-
-var _sourceMap = _interopRequireDefault(require("./source-map"));
-
-var _printer = _interopRequireDefault(require("./printer"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-class Generator extends _printer.default {
- constructor(ast, opts = {}, code) {
- const format = normalizeOptions(code, opts);
- const map = opts.sourceMaps ? new _sourceMap.default(opts, code) : null;
- super(format, map);
- this.ast = ast;
- }
-
- generate() {
- return super.generate(this.ast);
- }
-
-}
-
-function normalizeOptions(code, opts) {
- const format = {
- auxiliaryCommentBefore: opts.auxiliaryCommentBefore,
- auxiliaryCommentAfter: opts.auxiliaryCommentAfter,
- shouldPrintComment: opts.shouldPrintComment,
- retainLines: opts.retainLines,
- retainFunctionParens: opts.retainFunctionParens,
- comments: opts.comments == null || opts.comments,
- compact: opts.compact,
- minified: opts.minified,
- concise: opts.concise,
- jsonCompatibleStrings: opts.jsonCompatibleStrings,
- indent: {
- adjustMultilineComment: true,
- style: " ",
- base: 0
- },
- decoratorsBeforeExport: !!opts.decoratorsBeforeExport,
- jsescOption: Object.assign({
- quotes: "double",
- wrap: true
- }, opts.jsescOption)
- };
-
- if (format.minified) {
- format.compact = true;
-
- format.shouldPrintComment = format.shouldPrintComment || (() => format.comments);
- } else {
- format.shouldPrintComment = format.shouldPrintComment || (value => format.comments || value.indexOf("@license") >= 0 || value.indexOf("@preserve") >= 0);
- }
-
- if (format.compact === "auto") {
- format.compact = code.length > 500000;
-
- if (format.compact) {
- console.error("[BABEL] Note: The code generator has deoptimised the styling of " + `${opts.filename} as it exceeds the max of ${"500KB"}.`);
- }
- }
-
- if (format.compact) {
- format.indent.adjustMultilineComment = false;
- }
-
- return format;
-}
-
-class CodeGenerator {
- constructor(ast, opts, code) {
- this._generator = new Generator(ast, opts, code);
- }
-
- generate() {
- return this._generator.generate();
- }
-
-}
-
-exports.CodeGenerator = CodeGenerator;
-
-function _default(ast, opts, code) {
- const gen = new Generator(ast, opts, code);
- return gen.generate();
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/node/index.js b/AuthenticationSDK/node_modules/@babel/generator/lib/node/index.js
deleted file mode 100644
index bef46f0e..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/node/index.js
+++ /dev/null
@@ -1,117 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.needsWhitespace = needsWhitespace;
-exports.needsWhitespaceBefore = needsWhitespaceBefore;
-exports.needsWhitespaceAfter = needsWhitespaceAfter;
-exports.needsParens = needsParens;
-
-var whitespace = _interopRequireWildcard(require("./whitespace"));
-
-var parens = _interopRequireWildcard(require("./parentheses"));
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function expandAliases(obj) {
- const newObj = {};
-
- function add(type, func) {
- const fn = newObj[type];
- newObj[type] = fn ? function (node, parent, stack) {
- const result = fn(node, parent, stack);
- return result == null ? func(node, parent, stack) : result;
- } : func;
- }
-
- for (const type of Object.keys(obj)) {
- const aliases = t().FLIPPED_ALIAS_KEYS[type];
-
- if (aliases) {
- for (const alias of aliases) {
- add(alias, obj[type]);
- }
- } else {
- add(type, obj[type]);
- }
- }
-
- return newObj;
-}
-
-const expandedParens = expandAliases(parens);
-const expandedWhitespaceNodes = expandAliases(whitespace.nodes);
-const expandedWhitespaceList = expandAliases(whitespace.list);
-
-function find(obj, node, parent, printStack) {
- const fn = obj[node.type];
- return fn ? fn(node, parent, printStack) : null;
-}
-
-function isOrHasCallExpression(node) {
- if (t().isCallExpression(node)) {
- return true;
- }
-
- if (t().isMemberExpression(node)) {
- return isOrHasCallExpression(node.object) || !node.computed && isOrHasCallExpression(node.property);
- } else {
- return false;
- }
-}
-
-function needsWhitespace(node, parent, type) {
- if (!node) return 0;
-
- if (t().isExpressionStatement(node)) {
- node = node.expression;
- }
-
- let linesInfo = find(expandedWhitespaceNodes, node, parent);
-
- if (!linesInfo) {
- const items = find(expandedWhitespaceList, node, parent);
-
- if (items) {
- for (let i = 0; i < items.length; i++) {
- linesInfo = needsWhitespace(items[i], node, type);
- if (linesInfo) break;
- }
- }
- }
-
- if (typeof linesInfo === "object" && linesInfo !== null) {
- return linesInfo[type] || 0;
- }
-
- return 0;
-}
-
-function needsWhitespaceBefore(node, parent) {
- return needsWhitespace(node, parent, "before");
-}
-
-function needsWhitespaceAfter(node, parent) {
- return needsWhitespace(node, parent, "after");
-}
-
-function needsParens(node, parent, printStack) {
- if (!parent) return false;
-
- if (t().isNewExpression(parent) && parent.callee === node) {
- if (isOrHasCallExpression(node)) return true;
- }
-
- return find(expandedParens, node, parent, printStack);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/node/parentheses.js b/AuthenticationSDK/node_modules/@babel/generator/lib/node/parentheses.js
deleted file mode 100644
index ecec6d7b..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/node/parentheses.js
+++ /dev/null
@@ -1,238 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.FunctionTypeAnnotation = exports.NullableTypeAnnotation = NullableTypeAnnotation;
-exports.UpdateExpression = UpdateExpression;
-exports.ObjectExpression = ObjectExpression;
-exports.DoExpression = DoExpression;
-exports.Binary = Binary;
-exports.IntersectionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation;
-exports.TSAsExpression = TSAsExpression;
-exports.TSTypeAssertion = TSTypeAssertion;
-exports.BinaryExpression = BinaryExpression;
-exports.SequenceExpression = SequenceExpression;
-exports.AwaitExpression = exports.YieldExpression = YieldExpression;
-exports.ClassExpression = ClassExpression;
-exports.UnaryLike = UnaryLike;
-exports.FunctionExpression = FunctionExpression;
-exports.ArrowFunctionExpression = ArrowFunctionExpression;
-exports.ConditionalExpression = ConditionalExpression;
-exports.AssignmentExpression = AssignmentExpression;
-exports.NewExpression = NewExpression;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const PRECEDENCE = {
- "||": 0,
- "&&": 1,
- "|": 2,
- "^": 3,
- "&": 4,
- "==": 5,
- "===": 5,
- "!=": 5,
- "!==": 5,
- "<": 6,
- ">": 6,
- "<=": 6,
- ">=": 6,
- in: 6,
- instanceof: 6,
- ">>": 7,
- "<<": 7,
- ">>>": 7,
- "+": 8,
- "-": 8,
- "*": 9,
- "/": 9,
- "%": 9,
- "**": 10
-};
-
-const isClassExtendsClause = (node, parent) => (t().isClassDeclaration(parent) || t().isClassExpression(parent)) && parent.superClass === node;
-
-function NullableTypeAnnotation(node, parent) {
- return t().isArrayTypeAnnotation(parent);
-}
-
-function UpdateExpression(node, parent) {
- return t().isMemberExpression(parent, {
- object: node
- }) || t().isCallExpression(parent, {
- callee: node
- }) || t().isNewExpression(parent, {
- callee: node
- }) || isClassExtendsClause(node, parent);
-}
-
-function ObjectExpression(node, parent, printStack) {
- return isFirstInStatement(printStack, {
- considerArrow: true
- });
-}
-
-function DoExpression(node, parent, printStack) {
- return isFirstInStatement(printStack);
-}
-
-function Binary(node, parent) {
- if (node.operator === "**" && t().isBinaryExpression(parent, {
- operator: "**"
- })) {
- return parent.left === node;
- }
-
- if (isClassExtendsClause(node, parent)) {
- return true;
- }
-
- if ((t().isCallExpression(parent) || t().isNewExpression(parent)) && parent.callee === node || t().isUnaryLike(parent) || t().isMemberExpression(parent) && parent.object === node || t().isAwaitExpression(parent)) {
- return true;
- }
-
- if (t().isBinary(parent)) {
- const parentOp = parent.operator;
- const parentPos = PRECEDENCE[parentOp];
- const nodeOp = node.operator;
- const nodePos = PRECEDENCE[nodeOp];
-
- if (parentPos === nodePos && parent.right === node && !t().isLogicalExpression(parent) || parentPos > nodePos) {
- return true;
- }
- }
-
- return false;
-}
-
-function UnionTypeAnnotation(node, parent) {
- return t().isArrayTypeAnnotation(parent) || t().isNullableTypeAnnotation(parent) || t().isIntersectionTypeAnnotation(parent) || t().isUnionTypeAnnotation(parent);
-}
-
-function TSAsExpression() {
- return true;
-}
-
-function TSTypeAssertion() {
- return true;
-}
-
-function BinaryExpression(node, parent) {
- return node.operator === "in" && (t().isVariableDeclarator(parent) || t().isFor(parent));
-}
-
-function SequenceExpression(node, parent) {
- if (t().isForStatement(parent) || t().isThrowStatement(parent) || t().isReturnStatement(parent) || t().isIfStatement(parent) && parent.test === node || t().isWhileStatement(parent) && parent.test === node || t().isForInStatement(parent) && parent.right === node || t().isSwitchStatement(parent) && parent.discriminant === node || t().isExpressionStatement(parent) && parent.expression === node) {
- return false;
- }
-
- return true;
-}
-
-function YieldExpression(node, parent) {
- return t().isBinary(parent) || t().isUnaryLike(parent) || t().isCallExpression(parent) || t().isMemberExpression(parent) || t().isNewExpression(parent) || t().isConditionalExpression(parent) && node === parent.test || isClassExtendsClause(node, parent);
-}
-
-function ClassExpression(node, parent, printStack) {
- return isFirstInStatement(printStack, {
- considerDefaultExports: true
- });
-}
-
-function UnaryLike(node, parent) {
- return t().isMemberExpression(parent, {
- object: node
- }) || t().isCallExpression(parent, {
- callee: node
- }) || t().isNewExpression(parent, {
- callee: node
- }) || t().isBinaryExpression(parent, {
- operator: "**",
- left: node
- }) || isClassExtendsClause(node, parent);
-}
-
-function FunctionExpression(node, parent, printStack) {
- return isFirstInStatement(printStack, {
- considerDefaultExports: true
- });
-}
-
-function ArrowFunctionExpression(node, parent) {
- return t().isExportDeclaration(parent) || ConditionalExpression(node, parent);
-}
-
-function ConditionalExpression(node, parent) {
- if (t().isUnaryLike(parent) || t().isBinary(parent) || t().isConditionalExpression(parent, {
- test: node
- }) || t().isAwaitExpression(parent) || t().isTaggedTemplateExpression(parent) || t().isTSTypeAssertion(parent) || t().isTSAsExpression(parent)) {
- return true;
- }
-
- return UnaryLike(node, parent);
-}
-
-function AssignmentExpression(node) {
- if (t().isObjectPattern(node.left)) {
- return true;
- } else {
- return ConditionalExpression(...arguments);
- }
-}
-
-function NewExpression(node, parent) {
- return isClassExtendsClause(node, parent);
-}
-
-function isFirstInStatement(printStack, {
- considerArrow = false,
- considerDefaultExports = false
-} = {}) {
- let i = printStack.length - 1;
- let node = printStack[i];
- i--;
- let parent = printStack[i];
-
- while (i > 0) {
- if (t().isExpressionStatement(parent, {
- expression: node
- }) || t().isTaggedTemplateExpression(parent) || considerDefaultExports && t().isExportDefaultDeclaration(parent, {
- declaration: node
- }) || considerArrow && t().isArrowFunctionExpression(parent, {
- body: node
- })) {
- return true;
- }
-
- if (t().isCallExpression(parent, {
- callee: node
- }) || t().isSequenceExpression(parent) && parent.expressions[0] === node || t().isMemberExpression(parent, {
- object: node
- }) || t().isConditional(parent, {
- test: node
- }) || t().isBinary(parent, {
- left: node
- }) || t().isAssignmentExpression(parent, {
- left: node
- })) {
- node = parent;
- i--;
- parent = printStack[i];
- } else {
- return false;
- }
- }
-
- return false;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/node/whitespace.js b/AuthenticationSDK/node_modules/@babel/generator/lib/node/whitespace.js
deleted file mode 100644
index 06121860..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/node/whitespace.js
+++ /dev/null
@@ -1,192 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.list = exports.nodes = void 0;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function crawl(node, state = {}) {
- if (t().isMemberExpression(node)) {
- crawl(node.object, state);
- if (node.computed) crawl(node.property, state);
- } else if (t().isBinary(node) || t().isAssignmentExpression(node)) {
- crawl(node.left, state);
- crawl(node.right, state);
- } else if (t().isCallExpression(node)) {
- state.hasCall = true;
- crawl(node.callee, state);
- } else if (t().isFunction(node)) {
- state.hasFunction = true;
- } else if (t().isIdentifier(node)) {
- state.hasHelper = state.hasHelper || isHelper(node.callee);
- }
-
- return state;
-}
-
-function isHelper(node) {
- if (t().isMemberExpression(node)) {
- return isHelper(node.object) || isHelper(node.property);
- } else if (t().isIdentifier(node)) {
- return node.name === "require" || node.name[0] === "_";
- } else if (t().isCallExpression(node)) {
- return isHelper(node.callee);
- } else if (t().isBinary(node) || t().isAssignmentExpression(node)) {
- return t().isIdentifier(node.left) && isHelper(node.left) || isHelper(node.right);
- } else {
- return false;
- }
-}
-
-function isType(node) {
- return t().isLiteral(node) || t().isObjectExpression(node) || t().isArrayExpression(node) || t().isIdentifier(node) || t().isMemberExpression(node);
-}
-
-const nodes = {
- AssignmentExpression(node) {
- const state = crawl(node.right);
-
- if (state.hasCall && state.hasHelper || state.hasFunction) {
- return {
- before: state.hasFunction,
- after: true
- };
- }
- },
-
- SwitchCase(node, parent) {
- return {
- before: node.consequent.length || parent.cases[0] === node,
- after: !node.consequent.length && parent.cases[parent.cases.length - 1] === node
- };
- },
-
- LogicalExpression(node) {
- if (t().isFunction(node.left) || t().isFunction(node.right)) {
- return {
- after: true
- };
- }
- },
-
- Literal(node) {
- if (node.value === "use strict") {
- return {
- after: true
- };
- }
- },
-
- CallExpression(node) {
- if (t().isFunction(node.callee) || isHelper(node)) {
- return {
- before: true,
- after: true
- };
- }
- },
-
- VariableDeclaration(node) {
- for (let i = 0; i < node.declarations.length; i++) {
- const declar = node.declarations[i];
- let enabled = isHelper(declar.id) && !isType(declar.init);
-
- if (!enabled) {
- const state = crawl(declar.init);
- enabled = isHelper(declar.init) && state.hasCall || state.hasFunction;
- }
-
- if (enabled) {
- return {
- before: true,
- after: true
- };
- }
- }
- },
-
- IfStatement(node) {
- if (t().isBlockStatement(node.consequent)) {
- return {
- before: true,
- after: true
- };
- }
- }
-
-};
-exports.nodes = nodes;
-
-nodes.ObjectProperty = nodes.ObjectTypeProperty = nodes.ObjectMethod = function (node, parent) {
- if (parent.properties[0] === node) {
- return {
- before: true
- };
- }
-};
-
-nodes.ObjectTypeCallProperty = function (node, parent) {
- if (parent.callProperties[0] === node && (!parent.properties || !parent.properties.length)) {
- return {
- before: true
- };
- }
-};
-
-nodes.ObjectTypeIndexer = function (node, parent) {
- if (parent.indexers[0] === node && (!parent.properties || !parent.properties.length) && (!parent.callProperties || !parent.callProperties.length)) {
- return {
- before: true
- };
- }
-};
-
-nodes.ObjectTypeInternalSlot = function (node, parent) {
- if (parent.internalSlots[0] === node && (!parent.properties || !parent.properties.length) && (!parent.callProperties || !parent.callProperties.length) && (!parent.indexers || !parent.indexers.length)) {
- return {
- before: true
- };
- }
-};
-
-const list = {
- VariableDeclaration(node) {
- return node.declarations.map(decl => decl.init);
- },
-
- ArrayExpression(node) {
- return node.elements;
- },
-
- ObjectExpression(node) {
- return node.properties;
- }
-
-};
-exports.list = list;
-[["Function", true], ["Class", true], ["Loop", true], ["LabeledStatement", true], ["SwitchStatement", true], ["TryStatement", true]].forEach(function ([type, amounts]) {
- if (typeof amounts === "boolean") {
- amounts = {
- after: amounts,
- before: amounts
- };
- }
-
- [type].concat(t().FLIPPED_ALIAS_KEYS[type] || []).forEach(function (type) {
- nodes[type] = function () {
- return amounts;
- };
- });
-});
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/printer.js b/AuthenticationSDK/node_modules/@babel/generator/lib/printer.js
deleted file mode 100644
index 48f08ae1..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/printer.js
+++ /dev/null
@@ -1,495 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _isInteger() {
- const data = _interopRequireDefault(require("lodash/isInteger"));
-
- _isInteger = function () {
- return data;
- };
-
- return data;
-}
-
-function _repeat() {
- const data = _interopRequireDefault(require("lodash/repeat"));
-
- _repeat = function () {
- return data;
- };
-
- return data;
-}
-
-var _buffer = _interopRequireDefault(require("./buffer"));
-
-var n = _interopRequireWildcard(require("./node"));
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-var generatorFunctions = _interopRequireWildcard(require("./generators"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const SCIENTIFIC_NOTATION = /e/i;
-const ZERO_DECIMAL_INTEGER = /\.0+$/;
-const NON_DECIMAL_LITERAL = /^0[box]/;
-
-class Printer {
- constructor(format, map) {
- this.inForStatementInitCounter = 0;
- this._printStack = [];
- this._indent = 0;
- this._insideAux = false;
- this._printedCommentStarts = {};
- this._parenPushNewlineState = null;
- this._noLineTerminator = false;
- this._printAuxAfterOnNextUserNode = false;
- this._printedComments = new WeakSet();
- this._endsWithInteger = false;
- this._endsWithWord = false;
- this.format = format || {};
- this._buf = new _buffer.default(map);
- }
-
- generate(ast) {
- this.print(ast);
-
- this._maybeAddAuxComment();
-
- return this._buf.get();
- }
-
- indent() {
- if (this.format.compact || this.format.concise) return;
- this._indent++;
- }
-
- dedent() {
- if (this.format.compact || this.format.concise) return;
- this._indent--;
- }
-
- semicolon(force = false) {
- this._maybeAddAuxComment();
-
- this._append(";", !force);
- }
-
- rightBrace() {
- if (this.format.minified) {
- this._buf.removeLastSemicolon();
- }
-
- this.token("}");
- }
-
- space(force = false) {
- if (this.format.compact) return;
-
- if (this._buf.hasContent() && !this.endsWith(" ") && !this.endsWith("\n") || force) {
- this._space();
- }
- }
-
- word(str) {
- if (this._endsWithWord || this.endsWith("/") && str.indexOf("/") === 0) {
- this._space();
- }
-
- this._maybeAddAuxComment();
-
- this._append(str);
-
- this._endsWithWord = true;
- }
-
- number(str) {
- this.word(str);
- this._endsWithInteger = (0, _isInteger().default)(+str) && !NON_DECIMAL_LITERAL.test(str) && !SCIENTIFIC_NOTATION.test(str) && !ZERO_DECIMAL_INTEGER.test(str) && str[str.length - 1] !== ".";
- }
-
- token(str) {
- if (str === "--" && this.endsWith("!") || str[0] === "+" && this.endsWith("+") || str[0] === "-" && this.endsWith("-") || str[0] === "." && this._endsWithInteger) {
- this._space();
- }
-
- this._maybeAddAuxComment();
-
- this._append(str);
- }
-
- newline(i) {
- if (this.format.retainLines || this.format.compact) return;
-
- if (this.format.concise) {
- this.space();
- return;
- }
-
- if (this.endsWith("\n\n")) return;
- if (typeof i !== "number") i = 1;
- i = Math.min(2, i);
- if (this.endsWith("{\n") || this.endsWith(":\n")) i--;
- if (i <= 0) return;
-
- for (let j = 0; j < i; j++) {
- this._newline();
- }
- }
-
- endsWith(str) {
- return this._buf.endsWith(str);
- }
-
- removeTrailingNewline() {
- this._buf.removeTrailingNewline();
- }
-
- source(prop, loc) {
- this._catchUp(prop, loc);
-
- this._buf.source(prop, loc);
- }
-
- withSource(prop, loc, cb) {
- this._catchUp(prop, loc);
-
- this._buf.withSource(prop, loc, cb);
- }
-
- _space() {
- this._append(" ", true);
- }
-
- _newline() {
- this._append("\n", true);
- }
-
- _append(str, queue = false) {
- this._maybeAddParen(str);
-
- this._maybeIndent(str);
-
- if (queue) this._buf.queue(str);else this._buf.append(str);
- this._endsWithWord = false;
- this._endsWithInteger = false;
- }
-
- _maybeIndent(str) {
- if (this._indent && this.endsWith("\n") && str[0] !== "\n") {
- this._buf.queue(this._getIndent());
- }
- }
-
- _maybeAddParen(str) {
- const parenPushNewlineState = this._parenPushNewlineState;
- if (!parenPushNewlineState) return;
- this._parenPushNewlineState = null;
- let i;
-
- for (i = 0; i < str.length && str[i] === " "; i++) continue;
-
- if (i === str.length) return;
- const cha = str[i];
-
- if (cha !== "\n") {
- if (cha !== "/") return;
- if (i + 1 === str.length) return;
- const chaPost = str[i + 1];
- if (chaPost !== "/" && chaPost !== "*") return;
- }
-
- this.token("(");
- this.indent();
- parenPushNewlineState.printed = true;
- }
-
- _catchUp(prop, loc) {
- if (!this.format.retainLines) return;
- const pos = loc ? loc[prop] : null;
-
- if (pos && pos.line !== null) {
- const count = pos.line - this._buf.getCurrentLine();
-
- for (let i = 0; i < count; i++) {
- this._newline();
- }
- }
- }
-
- _getIndent() {
- return (0, _repeat().default)(this.format.indent.style, this._indent);
- }
-
- startTerminatorless(isLabel = false) {
- if (isLabel) {
- this._noLineTerminator = true;
- return null;
- } else {
- return this._parenPushNewlineState = {
- printed: false
- };
- }
- }
-
- endTerminatorless(state) {
- this._noLineTerminator = false;
-
- if (state && state.printed) {
- this.dedent();
- this.newline();
- this.token(")");
- }
- }
-
- print(node, parent) {
- if (!node) return;
- const oldConcise = this.format.concise;
-
- if (node._compact) {
- this.format.concise = true;
- }
-
- const printMethod = this[node.type];
-
- if (!printMethod) {
- throw new ReferenceError(`unknown node of type ${JSON.stringify(node.type)} with constructor ${JSON.stringify(node && node.constructor.name)}`);
- }
-
- this._printStack.push(node);
-
- const oldInAux = this._insideAux;
- this._insideAux = !node.loc;
-
- this._maybeAddAuxComment(this._insideAux && !oldInAux);
-
- let needsParens = n.needsParens(node, parent, this._printStack);
-
- if (this.format.retainFunctionParens && node.type === "FunctionExpression" && node.extra && node.extra.parenthesized) {
- needsParens = true;
- }
-
- if (needsParens) this.token("(");
-
- this._printLeadingComments(node, parent);
-
- const loc = t().isProgram(node) || t().isFile(node) ? null : node.loc;
- this.withSource("start", loc, () => {
- this[node.type](node, parent);
- });
-
- this._printTrailingComments(node, parent);
-
- if (needsParens) this.token(")");
-
- this._printStack.pop();
-
- this.format.concise = oldConcise;
- this._insideAux = oldInAux;
- }
-
- _maybeAddAuxComment(enteredPositionlessNode) {
- if (enteredPositionlessNode) this._printAuxBeforeComment();
- if (!this._insideAux) this._printAuxAfterComment();
- }
-
- _printAuxBeforeComment() {
- if (this._printAuxAfterOnNextUserNode) return;
- this._printAuxAfterOnNextUserNode = true;
- const comment = this.format.auxiliaryCommentBefore;
-
- if (comment) {
- this._printComment({
- type: "CommentBlock",
- value: comment
- });
- }
- }
-
- _printAuxAfterComment() {
- if (!this._printAuxAfterOnNextUserNode) return;
- this._printAuxAfterOnNextUserNode = false;
- const comment = this.format.auxiliaryCommentAfter;
-
- if (comment) {
- this._printComment({
- type: "CommentBlock",
- value: comment
- });
- }
- }
-
- getPossibleRaw(node) {
- const extra = node.extra;
-
- if (extra && extra.raw != null && extra.rawValue != null && node.value === extra.rawValue) {
- return extra.raw;
- }
- }
-
- printJoin(nodes, parent, opts = {}) {
- if (!nodes || !nodes.length) return;
- if (opts.indent) this.indent();
- const newlineOpts = {
- addNewlines: opts.addNewlines
- };
-
- for (let i = 0; i < nodes.length; i++) {
- const node = nodes[i];
- if (!node) continue;
- if (opts.statement) this._printNewline(true, node, parent, newlineOpts);
- this.print(node, parent);
-
- if (opts.iterator) {
- opts.iterator(node, i);
- }
-
- if (opts.separator && i < nodes.length - 1) {
- opts.separator.call(this);
- }
-
- if (opts.statement) this._printNewline(false, node, parent, newlineOpts);
- }
-
- if (opts.indent) this.dedent();
- }
-
- printAndIndentOnComments(node, parent) {
- const indent = node.leadingComments && node.leadingComments.length > 0;
- if (indent) this.indent();
- this.print(node, parent);
- if (indent) this.dedent();
- }
-
- printBlock(parent) {
- const node = parent.body;
-
- if (!t().isEmptyStatement(node)) {
- this.space();
- }
-
- this.print(node, parent);
- }
-
- _printTrailingComments(node, parent) {
- this._printComments(this._getComments(false, node, parent));
- }
-
- _printLeadingComments(node, parent) {
- this._printComments(this._getComments(true, node, parent));
- }
-
- printInnerComments(node, indent = true) {
- if (!node.innerComments || !node.innerComments.length) return;
- if (indent) this.indent();
-
- this._printComments(node.innerComments);
-
- if (indent) this.dedent();
- }
-
- printSequence(nodes, parent, opts = {}) {
- opts.statement = true;
- return this.printJoin(nodes, parent, opts);
- }
-
- printList(items, parent, opts = {}) {
- if (opts.separator == null) {
- opts.separator = commaSeparator;
- }
-
- return this.printJoin(items, parent, opts);
- }
-
- _printNewline(leading, node, parent, opts) {
- if (this.format.retainLines || this.format.compact) return;
-
- if (this.format.concise) {
- this.space();
- return;
- }
-
- let lines = 0;
-
- if (this._buf.hasContent()) {
- if (!leading) lines++;
- if (opts.addNewlines) lines += opts.addNewlines(leading, node) || 0;
- const needs = leading ? n.needsWhitespaceBefore : n.needsWhitespaceAfter;
- if (needs(node, parent)) lines++;
- }
-
- this.newline(lines);
- }
-
- _getComments(leading, node) {
- return node && (leading ? node.leadingComments : node.trailingComments) || [];
- }
-
- _printComment(comment) {
- if (!this.format.shouldPrintComment(comment.value)) return;
- if (comment.ignore) return;
- if (this._printedComments.has(comment)) return;
-
- this._printedComments.add(comment);
-
- if (comment.start != null) {
- if (this._printedCommentStarts[comment.start]) return;
- this._printedCommentStarts[comment.start] = true;
- }
-
- const isBlockComment = comment.type === "CommentBlock";
- this.newline(this._buf.hasContent() && !this._noLineTerminator && isBlockComment ? 1 : 0);
- if (!this.endsWith("[") && !this.endsWith("{")) this.space();
- let val = !isBlockComment && !this._noLineTerminator ? `//${comment.value}\n` : `/*${comment.value}*/`;
-
- if (isBlockComment && this.format.indent.adjustMultilineComment) {
- const offset = comment.loc && comment.loc.start.column;
-
- if (offset) {
- const newlineRegex = new RegExp("\\n\\s{1," + offset + "}", "g");
- val = val.replace(newlineRegex, "\n");
- }
-
- const indentSize = Math.max(this._getIndent().length, this._buf.getCurrentColumn());
- val = val.replace(/\n(?!$)/g, `\n${(0, _repeat().default)(" ", indentSize)}`);
- }
-
- if (this.endsWith("/")) this._space();
- this.withSource("start", comment.loc, () => {
- this._append(val);
- });
- this.newline(isBlockComment && !this._noLineTerminator ? 1 : 0);
- }
-
- _printComments(comments) {
- if (!comments || !comments.length) return;
-
- for (const comment of comments) {
- this._printComment(comment);
- }
- }
-
-}
-
-exports.default = Printer;
-Object.assign(Printer.prototype, generatorFunctions);
-
-function commaSeparator() {
- this.token(",");
- this.space();
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/lib/source-map.js b/AuthenticationSDK/node_modules/@babel/generator/lib/source-map.js
deleted file mode 100644
index 2a00994f..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/lib/source-map.js
+++ /dev/null
@@ -1,81 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _sourceMap() {
- const data = _interopRequireDefault(require("source-map"));
-
- _sourceMap = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-class SourceMap {
- constructor(opts, code) {
- this._cachedMap = null;
- this._code = code;
- this._opts = opts;
- this._rawMappings = [];
- }
-
- get() {
- if (!this._cachedMap) {
- const map = this._cachedMap = new (_sourceMap().default.SourceMapGenerator)({
- sourceRoot: this._opts.sourceRoot
- });
- const code = this._code;
-
- if (typeof code === "string") {
- map.setSourceContent(this._opts.sourceFileName, code);
- } else if (typeof code === "object") {
- Object.keys(code).forEach(sourceFileName => {
- map.setSourceContent(sourceFileName, code[sourceFileName]);
- });
- }
-
- this._rawMappings.forEach(map.addMapping, map);
- }
-
- return this._cachedMap.toJSON();
- }
-
- getRawMappings() {
- return this._rawMappings.slice();
- }
-
- mark(generatedLine, generatedColumn, line, column, identifierName, filename) {
- if (this._lastGenLine !== generatedLine && line === null) return;
-
- if (this._lastGenLine === generatedLine && this._lastSourceLine === line && this._lastSourceColumn === column) {
- return;
- }
-
- this._cachedMap = null;
- this._lastGenLine = generatedLine;
- this._lastSourceLine = line;
- this._lastSourceColumn = column;
-
- this._rawMappings.push({
- name: identifierName || undefined,
- generated: {
- line: generatedLine,
- column: generatedColumn
- },
- source: line == null ? undefined : filename || this._opts.sourceFileName,
- original: line == null ? undefined : {
- line: line,
- column: column
- }
- });
- }
-
-}
-
-exports.default = SourceMap;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/generator/package.json b/AuthenticationSDK/node_modules/@babel/generator/package.json
deleted file mode 100644
index b2403505..00000000
--- a/AuthenticationSDK/node_modules/@babel/generator/package.json
+++ /dev/null
@@ -1,61 +0,0 @@
-{
- "_args": [
- [
- "@babel/generator@7.0.0-beta.51",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "@babel/generator@7.0.0-beta.51",
- "_id": "@babel/generator@7.0.0-beta.51",
- "_inBundle": false,
- "_integrity": "sha1-bHV1/952HQdIXgS67cA5LG2eMPY=",
- "_location": "/@babel/generator",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/generator@7.0.0-beta.51",
- "name": "@babel/generator",
- "escapedName": "@babel%2fgenerator",
- "scope": "@babel",
- "rawSpec": "7.0.0-beta.51",
- "saveSpec": null,
- "fetchSpec": "7.0.0-beta.51"
- },
- "_requiredBy": [
- "/@babel/traverse",
- "/istanbul-lib-instrument"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.51.tgz",
- "_spec": "7.0.0-beta.51",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "author": {
- "name": "Sebastian McKenzie",
- "email": "sebmck@gmail.com"
- },
- "dependencies": {
- "@babel/types": "7.0.0-beta.51",
- "jsesc": "^2.5.1",
- "lodash": "^4.17.5",
- "source-map": "^0.5.0",
- "trim-right": "^1.0.1"
- },
- "description": "Turns an AST into code.",
- "devDependencies": {
- "@babel/helper-fixtures": "7.0.0-beta.51",
- "@babel/parser": "7.0.0-beta.51"
- },
- "files": [
- "lib"
- ],
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/generator",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-generator"
- },
- "version": "7.0.0-beta.51"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/helper-function-name/README.md b/AuthenticationSDK/node_modules/@babel/helper-function-name/README.md
deleted file mode 100644
index 77d8a12e..00000000
--- a/AuthenticationSDK/node_modules/@babel/helper-function-name/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-function-name
-
-> Helper function to change the property 'name' of every function
-
-See our website [@babel/helper-function-name](https://new.babeljs.io/docs/en/next/babel-helper-function-name.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/helper-function-name
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/helper-function-name
-```
diff --git a/AuthenticationSDK/node_modules/@babel/helper-function-name/lib/index.js b/AuthenticationSDK/node_modules/@babel/helper-function-name/lib/index.js
deleted file mode 100644
index c6dd4afb..00000000
--- a/AuthenticationSDK/node_modules/@babel/helper-function-name/lib/index.js
+++ /dev/null
@@ -1,198 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function _helperGetFunctionArity() {
- const data = _interopRequireDefault(require("@babel/helper-get-function-arity"));
-
- _helperGetFunctionArity = function () {
- return data;
- };
-
- return data;
-}
-
-function _template() {
- const data = _interopRequireDefault(require("@babel/template"));
-
- _template = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const buildPropertyMethodAssignmentWrapper = (0, _template().default)(`
- (function (FUNCTION_KEY) {
- function FUNCTION_ID() {
- return FUNCTION_KEY.apply(this, arguments);
- }
-
- FUNCTION_ID.toString = function () {
- return FUNCTION_KEY.toString();
- }
-
- return FUNCTION_ID;
- })(FUNCTION)
-`);
-const buildGeneratorPropertyMethodAssignmentWrapper = (0, _template().default)(`
- (function (FUNCTION_KEY) {
- function* FUNCTION_ID() {
- return yield* FUNCTION_KEY.apply(this, arguments);
- }
-
- FUNCTION_ID.toString = function () {
- return FUNCTION_KEY.toString();
- };
-
- return FUNCTION_ID;
- })(FUNCTION)
-`);
-const visitor = {
- "ReferencedIdentifier|BindingIdentifier"(path, state) {
- if (path.node.name !== state.name) return;
- const localDeclar = path.scope.getBindingIdentifier(state.name);
- if (localDeclar !== state.outerDeclar) return;
- state.selfReference = true;
- path.stop();
- }
-
-};
-
-function getNameFromLiteralId(id) {
- if (t().isNullLiteral(id)) {
- return "null";
- }
-
- if (t().isRegExpLiteral(id)) {
- return `_${id.pattern}_${id.flags}`;
- }
-
- if (t().isTemplateLiteral(id)) {
- return id.quasis.map(quasi => quasi.value.raw).join("");
- }
-
- if (id.value !== undefined) {
- return id.value + "";
- }
-
- return "";
-}
-
-function wrap(state, method, id, scope) {
- if (state.selfReference) {
- if (scope.hasBinding(id.name) && !scope.hasGlobal(id.name)) {
- scope.rename(id.name);
- } else {
- if (!t().isFunction(method)) return;
- let build = buildPropertyMethodAssignmentWrapper;
-
- if (method.generator) {
- build = buildGeneratorPropertyMethodAssignmentWrapper;
- }
-
- const template = build({
- FUNCTION: method,
- FUNCTION_ID: id,
- FUNCTION_KEY: scope.generateUidIdentifier(id.name)
- }).expression;
- const params = template.callee.body.body[0].params;
-
- for (let i = 0, len = (0, _helperGetFunctionArity().default)(method); i < len; i++) {
- params.push(scope.generateUidIdentifier("x"));
- }
-
- return template;
- }
- }
-
- method.id = id;
- scope.getProgramParent().references[id.name] = true;
-}
-
-function visit(node, name, scope) {
- const state = {
- selfAssignment: false,
- selfReference: false,
- outerDeclar: scope.getBindingIdentifier(name),
- references: [],
- name: name
- };
- const binding = scope.getOwnBinding(name);
-
- if (binding) {
- if (binding.kind === "param") {
- state.selfReference = true;
- } else {}
- } else if (state.outerDeclar || scope.hasGlobal(name)) {
- scope.traverse(node, visitor, state);
- }
-
- return state;
-}
-
-function _default({
- node,
- parent,
- scope,
- id
-}, localBinding = false) {
- if (node.id) return;
-
- if ((t().isObjectProperty(parent) || t().isObjectMethod(parent, {
- kind: "method"
- })) && (!parent.computed || t().isLiteral(parent.key))) {
- id = parent.key;
- } else if (t().isVariableDeclarator(parent)) {
- id = parent.id;
-
- if (t().isIdentifier(id) && !localBinding) {
- const binding = scope.parent.getBinding(id.name);
-
- if (binding && binding.constant && scope.getBinding(id.name) === binding) {
- node.id = t().cloneNode(id);
- node.id[t().NOT_LOCAL_BINDING] = true;
- return;
- }
- }
- } else if (t().isAssignmentExpression(parent)) {
- id = parent.left;
- } else if (!id) {
- return;
- }
-
- let name;
-
- if (id && t().isLiteral(id)) {
- name = getNameFromLiteralId(id);
- } else if (id && t().isIdentifier(id)) {
- name = id.name;
- }
-
- if (name === undefined) {
- return;
- }
-
- name = t().toBindingIdentifierName(name);
- id = t().identifier(name);
- id[t().NOT_LOCAL_BINDING] = true;
- const state = visit(node, name, scope);
- return wrap(state, node, id, scope) || node;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/helper-function-name/package.json b/AuthenticationSDK/node_modules/@babel/helper-function-name/package.json
deleted file mode 100644
index 7d0c7257..00000000
--- a/AuthenticationSDK/node_modules/@babel/helper-function-name/package.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-function-name@7.0.0-beta.51",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "@babel/helper-function-name@7.0.0-beta.51",
- "_id": "@babel/helper-function-name@7.0.0-beta.51",
- "_inBundle": false,
- "_integrity": "sha1-IbSHSiJ8+Z7K/MMKkDAtpaJkBWE=",
- "_location": "/@babel/helper-function-name",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-function-name@7.0.0-beta.51",
- "name": "@babel/helper-function-name",
- "escapedName": "@babel%2fhelper-function-name",
- "scope": "@babel",
- "rawSpec": "7.0.0-beta.51",
- "saveSpec": null,
- "fetchSpec": "7.0.0-beta.51"
- },
- "_requiredBy": [
- "/@babel/traverse"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.51.tgz",
- "_spec": "7.0.0-beta.51",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "dependencies": {
- "@babel/helper-get-function-arity": "7.0.0-beta.51",
- "@babel/template": "7.0.0-beta.51",
- "@babel/types": "7.0.0-beta.51"
- },
- "description": "Helper function to change the property 'name' of every function",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-function-name",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-function-name"
- },
- "version": "7.0.0-beta.51"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/helper-get-function-arity/README.md b/AuthenticationSDK/node_modules/@babel/helper-get-function-arity/README.md
deleted file mode 100644
index 7cc3d5a6..00000000
--- a/AuthenticationSDK/node_modules/@babel/helper-get-function-arity/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-get-function-arity
-
-> Helper function to get function arity
-
-See our website [@babel/helper-get-function-arity](https://new.babeljs.io/docs/en/next/babel-helper-get-function-arity.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/helper-get-function-arity
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/helper-get-function-arity
-```
diff --git a/AuthenticationSDK/node_modules/@babel/helper-get-function-arity/lib/index.js b/AuthenticationSDK/node_modules/@babel/helper-get-function-arity/lib/index.js
deleted file mode 100644
index 5723401d..00000000
--- a/AuthenticationSDK/node_modules/@babel/helper-get-function-arity/lib/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _default(node) {
- const params = node.params;
-
- for (let i = 0; i < params.length; i++) {
- const param = params[i];
-
- if (t().isAssignmentPattern(param) || t().isRestElement(param)) {
- return i;
- }
- }
-
- return params.length;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/helper-get-function-arity/package.json b/AuthenticationSDK/node_modules/@babel/helper-get-function-arity/package.json
deleted file mode 100644
index db2e4ee6..00000000
--- a/AuthenticationSDK/node_modules/@babel/helper-get-function-arity/package.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-get-function-arity@7.0.0-beta.51",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "@babel/helper-get-function-arity@7.0.0-beta.51",
- "_id": "@babel/helper-get-function-arity@7.0.0-beta.51",
- "_inBundle": false,
- "_integrity": "sha1-MoGy0EWvlcFyzpGyCCXYXqRnZBE=",
- "_location": "/@babel/helper-get-function-arity",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-get-function-arity@7.0.0-beta.51",
- "name": "@babel/helper-get-function-arity",
- "escapedName": "@babel%2fhelper-get-function-arity",
- "scope": "@babel",
- "rawSpec": "7.0.0-beta.51",
- "saveSpec": null,
- "fetchSpec": "7.0.0-beta.51"
- },
- "_requiredBy": [
- "/@babel/helper-function-name"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.51.tgz",
- "_spec": "7.0.0-beta.51",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "dependencies": {
- "@babel/types": "7.0.0-beta.51"
- },
- "description": "Helper function to get function arity",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-get-function-arity",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-get-function-arity"
- },
- "version": "7.0.0-beta.51"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/helper-split-export-declaration/README.md b/AuthenticationSDK/node_modules/@babel/helper-split-export-declaration/README.md
deleted file mode 100644
index 80d85be1..00000000
--- a/AuthenticationSDK/node_modules/@babel/helper-split-export-declaration/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/helper-split-export-declaration
-
->
-
-See our website [@babel/helper-split-export-declaration](https://new.babeljs.io/docs/en/next/babel-helper-split-export-declaration.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/helper-split-export-declaration
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/helper-split-export-declaration
-```
diff --git a/AuthenticationSDK/node_modules/@babel/helper-split-export-declaration/lib/index.js b/AuthenticationSDK/node_modules/@babel/helper-split-export-declaration/lib/index.js
deleted file mode 100644
index a04a7e4b..00000000
--- a/AuthenticationSDK/node_modules/@babel/helper-split-export-declaration/lib/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = splitExportDeclaration;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function splitExportDeclaration(exportDeclaration) {
- if (!exportDeclaration.isExportDeclaration()) {
- throw new Error("Only export declarations can be splitted.");
- }
-
- const isDefault = exportDeclaration.isExportDefaultDeclaration();
- const declaration = exportDeclaration.get("declaration");
- const isClassDeclaration = declaration.isClassDeclaration();
-
- if (isDefault) {
- const standaloneDeclaration = declaration.isFunctionDeclaration() || isClassDeclaration;
- const scope = declaration.isScope() ? declaration.scope.parent : declaration.scope;
- let id = declaration.node.id;
- let needBindingRegistration = false;
-
- if (!id) {
- needBindingRegistration = true;
- id = scope.generateUidIdentifier("default");
-
- if (standaloneDeclaration || declaration.isFunctionExpression() || declaration.isClassExpression()) {
- declaration.node.id = t().cloneNode(id);
- }
- }
-
- const updatedDeclaration = standaloneDeclaration ? declaration : t().variableDeclaration("var", [t().variableDeclarator(t().cloneNode(id), declaration.node)]);
- const updatedExportDeclaration = t().exportNamedDeclaration(null, [t().exportSpecifier(t().cloneNode(id), t().identifier("default"))]);
- exportDeclaration.insertAfter(updatedExportDeclaration);
- exportDeclaration.replaceWith(updatedDeclaration);
-
- if (needBindingRegistration) {
- scope.registerBinding(isClassDeclaration ? "let" : "var", exportDeclaration);
- }
-
- return exportDeclaration;
- }
-
- if (exportDeclaration.get("specifiers").length > 0) {
- throw new Error("It doesn't make sense to split exported specifiers.");
- }
-
- const bindingIdentifiers = declaration.getOuterBindingIdentifiers();
- const specifiers = Object.keys(bindingIdentifiers).map(name => {
- return t().exportSpecifier(t().identifier(name), t().identifier(name));
- });
- const aliasDeclar = t().exportNamedDeclaration(null, specifiers);
- exportDeclaration.insertAfter(aliasDeclar);
- exportDeclaration.replaceWith(declaration.node);
- return exportDeclaration;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/helper-split-export-declaration/package.json b/AuthenticationSDK/node_modules/@babel/helper-split-export-declaration/package.json
deleted file mode 100644
index 685c4724..00000000
--- a/AuthenticationSDK/node_modules/@babel/helper-split-export-declaration/package.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "_args": [
- [
- "@babel/helper-split-export-declaration@7.0.0-beta.51",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "@babel/helper-split-export-declaration@7.0.0-beta.51",
- "_id": "@babel/helper-split-export-declaration@7.0.0-beta.51",
- "_inBundle": false,
- "_integrity": "sha1-imw/ZsTSZTUvwHdIT59ugKUauXg=",
- "_location": "/@babel/helper-split-export-declaration",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/helper-split-export-declaration@7.0.0-beta.51",
- "name": "@babel/helper-split-export-declaration",
- "escapedName": "@babel%2fhelper-split-export-declaration",
- "scope": "@babel",
- "rawSpec": "7.0.0-beta.51",
- "saveSpec": null,
- "fetchSpec": "7.0.0-beta.51"
- },
- "_requiredBy": [
- "/@babel/traverse"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.51.tgz",
- "_spec": "7.0.0-beta.51",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "dependencies": {
- "@babel/types": "7.0.0-beta.51"
- },
- "description": ">",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/helper-split-export-declaration",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-helper-split-export-declaration"
- },
- "version": "7.0.0-beta.51"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/highlight/README.md b/AuthenticationSDK/node_modules/@babel/highlight/README.md
deleted file mode 100644
index 27623b84..00000000
--- a/AuthenticationSDK/node_modules/@babel/highlight/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/highlight
-
-> Syntax highlight JavaScript strings for output in terminals.
-
-See our website [@babel/highlight](https://new.babeljs.io/docs/en/next/babel-highlight.html) for more information.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/highlight
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/highlight
-```
diff --git a/AuthenticationSDK/node_modules/@babel/highlight/lib/index.js b/AuthenticationSDK/node_modules/@babel/highlight/lib/index.js
deleted file mode 100644
index 6ac5b4a3..00000000
--- a/AuthenticationSDK/node_modules/@babel/highlight/lib/index.js
+++ /dev/null
@@ -1,129 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.shouldHighlight = shouldHighlight;
-exports.getChalk = getChalk;
-exports.default = highlight;
-
-function _jsTokens() {
- const data = _interopRequireWildcard(require("js-tokens"));
-
- _jsTokens = function () {
- return data;
- };
-
- return data;
-}
-
-function _esutils() {
- const data = _interopRequireDefault(require("esutils"));
-
- _esutils = function () {
- return data;
- };
-
- return data;
-}
-
-function _chalk() {
- const data = _interopRequireDefault(require("chalk"));
-
- _chalk = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function getDefs(chalk) {
- return {
- keyword: chalk.cyan,
- capitalized: chalk.yellow,
- jsx_tag: chalk.yellow,
- punctuator: chalk.yellow,
- number: chalk.magenta,
- string: chalk.green,
- regex: chalk.magenta,
- comment: chalk.grey,
- invalid: chalk.white.bgRed.bold
- };
-}
-
-const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
-const JSX_TAG = /^[a-z][\w-]*$/i;
-const BRACKET = /^[()[\]{}]$/;
-
-function getTokenType(match) {
- const [offset, text] = match.slice(-2);
- const token = (0, _jsTokens().matchToToken)(match);
-
- if (token.type === "name") {
- if (_esutils().default.keyword.isReservedWordES6(token.value)) {
- return "keyword";
- }
-
- if (JSX_TAG.test(token.value) && (text[offset - 1] === "<" || text.substr(offset - 2, 2) == "")) {
- return "jsx_tag";
- }
-
- if (token.value[0] !== token.value[0].toLowerCase()) {
- return "capitalized";
- }
- }
-
- if (token.type === "punctuator" && BRACKET.test(token.value)) {
- return "bracket";
- }
-
- if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
- return "punctuator";
- }
-
- return token.type;
-}
-
-function highlightTokens(defs, text) {
- return text.replace(_jsTokens().default, function (...args) {
- const type = getTokenType(args);
- const colorize = defs[type];
-
- if (colorize) {
- return args[0].split(NEWLINE).map(str => colorize(str)).join("\n");
- } else {
- return args[0];
- }
- });
-}
-
-function shouldHighlight(options) {
- return _chalk().default.supportsColor || options.forceColor;
-}
-
-function getChalk(options) {
- let chalk = _chalk().default;
-
- if (options.forceColor) {
- chalk = new (_chalk().default.constructor)({
- enabled: true,
- level: 1
- });
- }
-
- return chalk;
-}
-
-function highlight(code, options = {}) {
- if (shouldHighlight(options)) {
- const chalk = getChalk(options);
- const defs = getDefs(chalk);
- return highlightTokens(defs, code);
- } else {
- return code;
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/highlight/package.json b/AuthenticationSDK/node_modules/@babel/highlight/package.json
deleted file mode 100644
index 2cb9c07d..00000000
--- a/AuthenticationSDK/node_modules/@babel/highlight/package.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "_args": [
- [
- "@babel/highlight@7.0.0-beta.51",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "@babel/highlight@7.0.0-beta.51",
- "_id": "@babel/highlight@7.0.0-beta.51",
- "_inBundle": false,
- "_integrity": "sha1-6IRK4loVlcz9QriWI7Q3bKBtIl0=",
- "_location": "/@babel/highlight",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/highlight@7.0.0-beta.51",
- "name": "@babel/highlight",
- "escapedName": "@babel%2fhighlight",
- "scope": "@babel",
- "rawSpec": "7.0.0-beta.51",
- "saveSpec": null,
- "fetchSpec": "7.0.0-beta.51"
- },
- "_requiredBy": [
- "/@babel/code-frame"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.51.tgz",
- "_spec": "7.0.0-beta.51",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "author": {
- "name": "suchipi",
- "email": "me@suchipi.com"
- },
- "dependencies": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- },
- "description": "Syntax highlight JavaScript strings for output in terminals.",
- "devDependencies": {
- "strip-ansi": "^4.0.0"
- },
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/highlight",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-highlight"
- },
- "version": "7.0.0-beta.51"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/parser/CHANGELOG.md b/AuthenticationSDK/node_modules/@babel/parser/CHANGELOG.md
deleted file mode 100644
index cc96c3f7..00000000
--- a/AuthenticationSDK/node_modules/@babel/parser/CHANGELOG.md
+++ /dev/null
@@ -1,1073 +0,0 @@
-# Changelog
-
-> **Tags:**
-> - :boom: [Breaking Change]
-> - :eyeglasses: [Spec Compliancy]
-> - :rocket: [New Feature]
-> - :bug: [Bug Fix]
-> - :memo: [Documentation]
-> - :house: [Internal]
-> - :nail_care: [Polish]
-
-> Semver Policy: https://github.com/babel/babel/tree/master/packages/babel-parser#semver
-
-_Note: Gaps between patch versions are faulty, broken or test releases._
-
-See the [Babel Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) for the pre-6.8.0 version Changelog.
-
-## 6.17.1 (2017-05-10)
-
-### :bug: Bug Fix
- * Fix typo in flow spread operator error (Brian Ng)
- * Fixed invalid number literal parsing ([#473](https://github.com/babel/babylon/pull/473)) (Alex Kuzmenko)
- * Fix number parser ([#433](https://github.com/babel/babylon/pull/433)) (Alex Kuzmenko)
- * Ensure non pattern shorthand props are checked for reserved words ([#479](https://github.com/babel/babylon/pull/479)) (Brian Ng)
- * Remove jsx context when parsing arrow functions ([#475](https://github.com/babel/babylon/pull/475)) (Brian Ng)
- * Allow super in class properties ([#499](https://github.com/babel/babylon/pull/499)) (Brian Ng)
- * Allow flow class field to be named constructor ([#510](https://github.com/babel/babylon/pull/510)) (Brian Ng)
-
-## 6.17.0 (2017-04-20)
-
-### :bug: Bug Fix
- * Cherry-pick #418 to 6.x ([#476](https://github.com/babel/babylon/pull/476)) (Sebastian McKenzie)
- * Add support for invalid escapes in tagged templates ([#274](https://github.com/babel/babylon/pull/274)) (Kevin Gibbons)
- * Throw error if new.target is used outside of a function ([#402](https://github.com/babel/babylon/pull/402)) (Brian Ng)
- * Fix parsing of class properties ([#351](https://github.com/babel/babylon/pull/351)) (Kevin Gibbons)
- * Fix parsing yield with dynamicImport ([#383](https://github.com/babel/babylon/pull/383)) (Brian Ng)
- * Ensure consistent start args for parseParenItem ([#386](https://github.com/babel/babylon/pull/386)) (Brian Ng)
-
-## 7.0.0-beta.8 (2017-04-04)
-
-### New Feature
-* Add support for flow type spread (#418) (Conrad Buck)
-* Allow statics in flow interfaces (#427) (Brian Ng)
-
-### Bug Fix
-* Fix predicate attachment to match flow parser (#428) (Brian Ng)
-* Add extra.raw back to JSXText and JSXAttribute (#344) (Alex Rattray)
-* Fix rest parameters with array and objects (#424) (Brian Ng)
-* Fix number parser (#433) (Alex Kuzmenko)
-
-### Docs
-* Fix CONTRIBUTING.md [skip ci] (#432) (Alex Kuzmenko)
-
-### Internal
-* Use babel-register script when running babel smoke tests (#442) (Brian Ng)
-
-## 7.0.0-beta.7 (2017-03-22)
-
-### Spec Compliancy
-* Remove babylon plugin for template revision since it's stage-4 (#426) (Henry Zhu)
-
-### Bug Fix
-
-* Fix push-pop logic in flow (#405) (Daniel Tschinder)
-
-## 7.0.0-beta.6 (2017-03-21)
-
-### New Feature
-* Add support for invalid escapes in tagged templates (#274) (Kevin Gibbons)
-
-### Polish
-* Improves error message when super is called outside of constructor (#408) (Arshabh Kumar Agarwal)
-
-### Docs
-
-* [7.0] Moved value field in spec from ObjectMember to ObjectProperty as ObjectMethod's don't have it (#415) [skip ci] (James Browning)
-
-## 7.0.0-beta.5 (2017-03-21)
-
-### Bug Fix
-* Throw error if new.target is used outside of a function (#402) (Brian Ng)
-* Fix parsing of class properties (#351) (Kevin Gibbons)
-
-### Other
- * Test runner: Detect extra property in 'actual' but not in 'expected'. (#407) (Andy)
- * Optimize travis builds (#419) (Daniel Tschinder)
- * Update codecov to 2.0 (#412) (Daniel Tschinder)
- * Fix spec for ClassMethod: It doesn't have a function, it *is* a function. (#406) [skip ci] (Andy)
- * Changed Non-existent RestPattern to RestElement which is what is actually parsed (#409) [skip ci] (James Browning)
- * Upgrade flow to 0.41 (Daniel Tschinder)
- * Fix watch command (#403) (Brian Ng)
- * Update yarn lock (Daniel Tschinder)
- * Fix watch command (#403) (Brian Ng)
- * chore(package): update flow-bin to version 0.41.0 (#395) (greenkeeper[bot])
- * Add estree test for correct order of directives (Daniel Tschinder)
- * Add DoExpression to spec (#364) (Alex Kuzmenko)
- * Mention cloning of repository in CONTRIBUTING.md (#391) [skip ci] (Sumedh Nimkarde)
- * Explain how to run only one test (#389) [skip ci] (Aaron Ang)
-
- ## 7.0.0-beta.4 (2017-03-01)
-
-* Don't consume async when checking for async func decl (#377) (Brian Ng)
-* add `ranges` option [skip ci] (Henry Zhu)
-* Don't parse class properties without initializers when classProperties is disabled and Flow is enabled (#300) (Andrew Levine)
-
-## 7.0.0-beta.3 (2017-02-28)
-
-- [7.0] Change RestProperty/SpreadProperty to RestElement/SpreadElement (#384)
-- Merge changes from 6.x
-
-## 7.0.0-beta.2 (2017-02-20)
-
-- estree: correctly change literals in all cases (#368) (Daniel Tschinder)
-
-## 7.0.0-beta.1 (2017-02-20)
-
-- Fix negative number literal typeannotations (#366) (Daniel Tschinder)
-- Update contributing with more test info [skip ci] (#355) (Brian Ng)
-
-## 7.0.0-beta.0 (2017-02-15)
-
-- Reintroduce Variance node (#333) (Daniel Tschinder)
-- Rename NumericLiteralTypeAnnotation to NumberLiteralTypeAnnotation (#332) (Charles Pick)
-- [7.0] Remove ForAwaitStatement, add await flag to ForOfStatement (#349) (Brandon Dail)
-- chore(package): update ava to version 0.18.0 (#345) (greenkeeper[bot])
-- chore(package): update babel-plugin-istanbul to version 4.0.0 (#350) (greenkeeper[bot])
-- Change location of ObjectTypeIndexer to match flow (#228) (Daniel Tschinder)
-- Rename flow AST Type ExistentialTypeParam to ExistsTypeAnnotation (#322) (Toru Kobayashi)
-- Revert "Temporary rollback for erroring on trailing comma with spread (#154)" (#290) (Daniel Tschinder)
-- Remove classConstructorCall plugin (#291) (Brian Ng)
-- Update yarn.lock (Daniel Tschinder)
-- Update cross-env to 3.x (Daniel Tschinder)
-- [7.0] Remove node 0.10, 0.12 and 5 from Travis (#284) (Sergey Rubanov)
-- Remove `String.fromCodePoint` shim (#279) (Mathias Bynens)
-
-## 6.16.1 (2017-02-23)
-
-### :bug: Regression
-
-- Revert "Fix export default async function to be FunctionDeclaration" ([#375](https://github.com/babel/babylon/pull/375))
-
-Need to modify Babel for this AST node change, so moving to 7.0.
-
-- Revert "Don't parse class properties without initializers when classProperties plugin is disabled, and Flow is enabled" ([#376](https://github.com/babel/babylon/pull/376))
-
-[react-native](https://github.com/facebook/react-native/issues/12542) broke with this so we reverted.
-
-## 6.16.0 (2017-02-23)
-
-### :rocket: New Feature
-
-***ESTree*** compatibility as plugin ([#277](https://github.com/babel/babylon/pull/277)) (Daniel Tschinder)
-
-We finally introduce a new compatibility layer for ESTree. To put babylon into ESTree-compatible mode the new plugin `estree` can be enabled. In this mode the parser will output an AST that is compliant to the specs of [ESTree](https://github.com/estree/estree/)
-
-We highly recommend everyone who uses babylon outside of babel to use this plugin. This will make it much easier for users to switch between different ESTree-compatible parsers. We so far tested several projects with different parsers and exchanged their parser to babylon and in nearly all cases it worked out of the box. Some other estree-compatible parsers include `acorn`, `esprima`, `espree`, `flow-parser`, etc.
-
-To enable `estree` mode simply add the plugin in the config:
-```json
-{
- "plugins": [ "estree" ]
-}
-```
-
-If you want to migrate your project from non-ESTree mode to ESTree, have a look at our [Readme](https://github.com/babel/babylon/#output), where all deviations are mentioned.
-
-Add a parseExpression public method ([#213](https://github.com/babel/babylon/pull/213)) (jeromew)
-
-Babylon exports a new function to parse a single expression
-
-```js
-import { parseExpression } from 'babylon';
-
-const ast = parseExpression('x || y && z', options);
-```
-
-The returned AST will only consist of the expression. The options are the same as for `parse()`
-
-Add startLine option ([#346](https://github.com/babel/babylon/pull/346)) (Raphael Mu)
-
-A new option was added to babylon allowing to change the intial linenumber for the first line which is usually `1`.
-Changing this for example to `100` will make line `1` of the input source to be marked as line `100`, line `2` as `101`, line `3` as `102`, ...
-
-Function predicate declaration ([#103](https://github.com/babel/babylon/pull/103)) (Panagiotis Vekris)
-
-Added support for function predicates which flow introduced in version 0.33.0
-
-```js
-declare function is_number(x: mixed): boolean %checks(typeof x === "number");
-```
-
-Allow imports in declare module ([#315](https://github.com/babel/babylon/pull/315)) (Daniel Tschinder)
-
-Added support for imports within module declarations which flow introduced in version 0.37.0
-
-```js
-declare module "C" {
- import type { DT } from "D";
- declare export type CT = { D: DT };
-}
-```
-
-### :eyeglasses: Spec Compliancy
-
-Forbid semicolons after decorators in classes ([#352](https://github.com/babel/babylon/pull/352)) (Kevin Gibbons)
-
-This example now correctly throws an error when there is a semicolon after the decorator:
-
-```js
-class A {
-@a;
-foo(){}
-}
-```
-
-Keywords are not allowed as local specifier ([#307](https://github.com/babel/babylon/pull/307)) (Daniel Tschinder)
-
-Using keywords in imports is not allowed anymore:
-
-```js
-import { default } from "foo";
-import { a as debugger } from "foo";
-```
-
-Do not allow overwritting of primitive types ([#314](https://github.com/babel/babylon/pull/314)) (Daniel Tschinder)
-
-In flow it is now forbidden to overwrite the primitve types `"any"`, `"mixed"`, `"empty"`, `"bool"`, `"boolean"`, `"number"`, `"string"`, `"void"` and `"null"` with your own type declaration.
-
-Disallow import type { type a } from … ([#305](https://github.com/babel/babylon/pull/305)) (Daniel Tschinder)
-
-The following code now correctly throws an error
-
-```js
-import type { type a } from "foo";
-```
-
-Don't parse class properties without initializers when classProperties is disabled and Flow is enabled ([#300](https://github.com/babel/babylon/pull/300)) (Andrew Levine)
-
-Ensure that you enable the `classProperties` plugin in order to enable correct parsing of class properties. Prior to this version it was possible to parse them by enabling the `flow` plugin but this was not intended the behaviour.
-
-If you enable the flow plugin you can only define the type of the class properties, but not initialize them.
-
-Fix export default async function to be FunctionDeclaration ([#324](https://github.com/babel/babylon/pull/324)) (Daniel Tschinder)
-
-Parsing the following code now returns a `FunctionDeclaration` AST node instead of `FunctionExpression`.
-
-```js
-export default async function bar() {};
-```
-
-### :nail_care: Polish
-
-Improve error message on attempt to destructure named import ([#288](https://github.com/babel/babylon/pull/288)) (Brian Ng)
-
-### :bug: Bug Fix
-
-Fix negative number literal typeannotations ([#366](https://github.com/babel/babylon/pull/366)) (Daniel Tschinder)
-
-Ensure takeDecorators is called on exported class ([#358](https://github.com/babel/babylon/pull/358)) (Brian Ng)
-
-ESTree: correctly change literals in all cases ([#368](https://github.com/babel/babylon/pull/368)) (Daniel Tschinder)
-
-Correctly convert RestProperty to Assignable ([#339](https://github.com/babel/babylon/pull/339)) (Daniel Tschinder)
-
-Fix #321 by allowing question marks in type params ([#338](https://github.com/babel/babylon/pull/338)) (Daniel Tschinder)
-
-Fix #336 by correctly setting arrow-param ([#337](https://github.com/babel/babylon/pull/337)) (Daniel Tschinder)
-
-Fix parse error when destructuring `set` with default value ([#317](https://github.com/babel/babylon/pull/317)) (Brian Ng)
-
-Fix ObjectTypeCallProperty static ([#298](https://github.com/babel/babylon/pull/298)) (Dan Harper)
-
-
-### :house: Internal
-
-Fix generator-method-with-computed-name spec ([#360](https://github.com/babel/babylon/pull/360)) (Alex Rattray)
-
-Fix flow type-parameter-declaration test with unintended semantic ([#361](https://github.com/babel/babylon/pull/361)) (Alex Rattray)
-
-Cleanup and splitup parser functions ([#295](https://github.com/babel/babylon/pull/295)) (Daniel Tschinder)
-
-chore(package): update flow-bin to version 0.38.0 ([#313](https://github.com/babel/babylon/pull/313)) (greenkeeper[bot])
-
-Call inner function instead of 1:1 copy to plugin ([#294](https://github.com/babel/babylon/pull/294)) (Daniel Tschinder)
-
-Update eslint-config-babel to the latest version 🚀 ([#299](https://github.com/babel/babylon/pull/299)) (greenkeeper[bot])
-
-Update eslint-config-babel to the latest version 🚀 ([#293](https://github.com/babel/babylon/pull/293)) (greenkeeper[bot])
-
-devDeps: remove eslint-plugin-babel ([#292](https://github.com/babel/babylon/pull/292)) (Kai Cataldo)
-
-Correct indent eslint rule config ([#276](https://github.com/babel/babylon/pull/276)) (Daniel Tschinder)
-
-Fail tests that have expected.json and throws-option ([#285](https://github.com/babel/babylon/pull/285)) (Daniel Tschinder)
-
-### :memo: Documentation
-
-Update contributing with more test info [skip ci] ([#355](https://github.com/babel/babylon/pull/355)) (Brian Ng)
-
-Update API documentation ([#330](https://github.com/babel/babylon/pull/330)) (Timothy Gu)
-
-Added keywords to package.json ([#323](https://github.com/babel/babylon/pull/323)) (Dmytro)
-
-AST spec: fix casing of `RegExpLiteral` ([#318](https://github.com/babel/babylon/pull/318)) (Mathias Bynens)
-
-## 6.15.0 (2017-01-10)
-
-### :eyeglasses: Spec Compliancy
-
-Add support for Flow shorthand import type ([#267](https://github.com/babel/babylon/pull/267)) (Jeff Morrison)
-
-This change implements flows new shorthand import syntax
-and where previously you had to write this code:
-
-```js
-import {someValue} from "blah";
-import type {someType} from "blah";
-import typeof {someOtherValue} from "blah";
-```
-
-you can now write it like this:
-
-```js
-import {
- someValue,
- type someType,
- typeof someOtherValue,
-} from "blah";
-```
-
-For more information look at [this](https://github.com/facebook/flow/pull/2890) pull request.
-
-flow: allow leading pipes in all positions ([#256](https://github.com/babel/babylon/pull/256)) (Vladimir Kurchatkin)
-
-This change now allows a leading pipe everywhere types can be used:
-```js
-var f = (x): | 1 | 2 => 1;
-```
-
-Throw error when exporting non-declaration ([#241](https://github.com/babel/babylon/pull/241)) (Kai Cataldo)
-
-Previously babylon parsed the following exports, although they are not valid:
-```js
-export typeof foo;
-export new Foo();
-export function() {};
-export for (;;);
-export while(foo);
-```
-
-### :bug: Bug Fix
-
-Don't set inType flag when parsing property names ([#266](https://github.com/babel/babylon/pull/266)) (Vladimir Kurchatkin)
-
-This fixes parsing of this case:
-
-```js
-const map = {
- [age <= 17] : 'Too young'
-};
-```
-
-Fix source location for JSXEmptyExpression nodes (fixes #248) ([#249](https://github.com/babel/babylon/pull/249)) (James Long)
-
-The following case produced an invalid AST
-```js
-
{/* foo */}
-```
-
-Use fromCodePoint to convert high value unicode entities ([#243](https://github.com/babel/babylon/pull/243)) (Ryan Duffy)
-
-When high value unicode entities (e.g. 💩) were used in the input source code they are now correctly encoded in the resulting AST.
-
-Rename folder to avoid Windows-illegal characters ([#281](https://github.com/babel/babylon/pull/281)) (Ryan Plant)
-
-Allow this.state.clone() when parsing decorators ([#262](https://github.com/babel/babylon/pull/262)) (Alex Rattray)
-
-### :house: Internal
-
-User external-helpers ([#254](https://github.com/babel/babylon/pull/254)) (Daniel Tschinder)
-
-Add watch script for dev ([#234](https://github.com/babel/babylon/pull/234)) (Kai Cataldo)
-
-Freeze current plugins list for "*" option, and remove from README.md ([#245](https://github.com/babel/babylon/pull/245)) (Andrew Levine)
-
-Prepare tests for multiple fixture runners. ([#240](https://github.com/babel/babylon/pull/240)) (Daniel Tschinder)
-
-Add some test coverage for decorators stage-0 plugin ([#250](https://github.com/babel/babylon/pull/250)) (Andrew Levine)
-
-Refactor tokenizer types file ([#263](https://github.com/babel/babylon/pull/263)) (Sven SAULEAU)
-
-Update eslint-config-babel to the latest version 🚀 ([#273](https://github.com/babel/babylon/pull/273)) (greenkeeper[bot])
-
-chore(package): update rollup to version 0.41.0 ([#272](https://github.com/babel/babylon/pull/272)) (greenkeeper[bot])
-
-chore(package): update flow-bin to version 0.37.0 ([#255](https://github.com/babel/babylon/pull/255)) (greenkeeper[bot])
-
-## 6.14.1 (2016-11-17)
-
-### :bug: Bug Fix
-
-Allow `"plugins": ["*"]` ([#229](https://github.com/babel/babylon/pull/229)) (Daniel Tschinder)
-
-```js
-{
- "plugins": ["*"]
-}
-```
-
-Will include all parser plugins instead of specifying each one individually. Useful for tools like babel-eslint, jscodeshift, and ast-explorer.
-
-## 6.14.0 (2016-11-16)
-
-### :eyeglasses: Spec Compliancy
-
-Throw error for reserved words `enum` and `await` ([#195](https://github.com/babel/babylon/pull/195)) (Kai Cataldo)
-
-[11.6.2.2 Future Reserved Words](http://www.ecma-international.org/ecma-262/6.0/#sec-future-reserved-words)
-
-Babylon will throw for more reserved words such as `enum` or `await` (in strict mode).
-
-```
-class enum {} // throws
-class await {} // throws in strict mode (module)
-```
-
-Optional names for function types and object type indexers ([#197](https://github.com/babel/babylon/pull/197)) (Gabe Levi)
-
-So where you used to have to write
-
-```js
-type A = (x: string, y: boolean) => number;
-type B = (z: string) => number;
-type C = { [key: string]: number };
-```
-
-you can now write (with flow 0.34.0)
-
-```js
-type A = (string, boolean) => number;
-type B = string => number;
-type C = { [string]: number };
-```
-
-Parse flow nested array type annotations like `number[][]` ([#219](https://github.com/babel/babylon/pull/219)) (Bernhard Häussner)
-
-Supports these form now of specifying array types:
-
-```js
-var a: number[][][][];
-var b: string[][];
-```
-
-### :bug: Bug Fix
-
-Correctly eat semicolon at the end of `DelcareModuleExports` ([#223](https://github.com/babel/babylon/pull/223)) (Daniel Tschinder)
-
-```
-declare module "foo" { declare module.exports: number }
-declare module "foo" { declare module.exports: number; } // also allowed now
-```
-
-### :house: Internal
-
- * Count Babel tests towards Babylon code coverage ([#182](https://github.com/babel/babylon/pull/182)) (Moti Zilberman)
- * Fix strange line endings ([#214](https://github.com/babel/babylon/pull/214)) (Thomas Grainger)
- * Add node 7 (Daniel Tschinder)
- * chore(package): update flow-bin to version 0.34.0 ([#204](https://github.com/babel/babylon/pull/204)) (Greenkeeper)
-
-## v6.13.1 (2016-10-26)
-
-### :nail_care: Polish
-
-- Use rollup for bundling to speed up startup time ([#190](https://github.com/babel/babylon/pull/190)) ([@drewml](https://github.com/DrewML))
-
-```js
-const babylon = require('babylon');
-const ast = babylon.parse('var foo = "lol";');
-```
-
-With that test case, there was a ~95ms savings by removing the need for node to build/traverse the dependency graph.
-
-**Without bundling**
-
-
-**With bundling**
-
-
-- add clean command [skip ci] ([#201](https://github.com/babel/babylon/pull/201)) (Henry Zhu)
-- add ForAwaitStatement (async generator already added) [skip ci] ([#196](https://github.com/babel/babylon/pull/196)) (Henry Zhu)
-
-## v6.13.0 (2016-10-21)
-
-### :eyeglasses: Spec Compliancy
-
-Property variance type annotations for Flow plugin ([#161](https://github.com/babel/babylon/pull/161)) (Sam Goldman)
-
-> See https://flowtype.org/docs/variance.html for more information
-
-```js
-type T = { +p: T };
-interface T { -p: T };
-declare class T { +[k:K]: V };
-class T { -[k:K]: V };
-class C2 { +p: T = e };
-```
-
-Raise error on duplicate definition of __proto__ ([#183](https://github.com/babel/babylon/pull/183)) (Moti Zilberman)
-
-```js
-({ __proto__: 1, __proto__: 2 }) // Throws an error now
-```
-
-### :bug: Bug Fix
-
-Flow: Allow class properties to be named `static` ([#184](https://github.com/babel/babylon/pull/184)) (Moti Zilberman)
-
-```js
-declare class A {
- static: T;
-}
-```
-
-Allow "async" as identifier for object literal property shorthand ([#187](https://github.com/babel/babylon/pull/187)) (Andrew Levine)
-
-```js
-var foo = { async, bar };
-```
-
-### :nail_care: Polish
-
-Fix flowtype and add inType to state ([#189](https://github.com/babel/babylon/pull/189)) (Daniel Tschinder)
-
-> This improves the performance slightly (because of hidden classes)
-
-### :house: Internal
-
-Fix .gitattributes line ending setting ([#191](https://github.com/babel/babylon/pull/191)) (Moti Zilberman)
-
-Increase test coverage ([#175](https://github.com/babel/babylon/pull/175) (Moti Zilberman)
-
-Readd missin .eslinignore for IDEs (Daniel Tschinder)
-
-Error on missing expected.json fixture in CI ([#188](https://github.com/babel/babylon/pull/188)) (Moti Zilberman)
-
-Add .gitattributes and .editorconfig for LF line endings ([#179](https://github.com/babel/babylon/pull/179)) (Moti Zilberman)
-
-Fixes two tests that are failing after the merge of #172 ([#177](https://github.com/babel/babylon/pull/177)) (Moti Zilberman)
-
-## v6.12.0 (2016-10-14)
-
-### :eyeglasses: Spec Compliancy
-
-Implement import() syntax ([#163](https://github.com/babel/babylon/pull/163)) (Jordan Gensler)
-
-#### Dynamic Import
-
-- Proposal Repo: https://github.com/domenic/proposal-dynamic-import
-- Championed by [@domenic](https://github.com/domenic)
-- stage-2
-- [sept-28 tc39 notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2016-09/sept-28.md#113a-import)
-
-> This repository contains a proposal for adding a "function-like" import() module loading syntactic form to JavaScript
-
-```js
-import(`./section-modules/${link.dataset.entryModule}.js`)
-.then(module => {
- module.loadPageInto(main);
-})
-```
-
-Add EmptyTypeAnnotation ([#171](https://github.com/babel/babylon/pull/171)) (Sam Goldman)
-
-#### EmptyTypeAnnotation
-
-Just wasn't covered before.
-
-```js
-type T = empty;
-```
-
-### :bug: Bug Fix
-
-Fix crash when exporting with destructuring and sparse array ([#170](https://github.com/babel/babylon/pull/170)) (Jeroen Engels)
-
-```js
-// was failing due to sparse array
-export const { foo: [ ,, qux7 ] } = bar;
-```
-
-Allow keyword in Flow object declaration property names with type parameters ([#146](https://github.com/babel/babylon/pull/146)) (Dan Harper)
-
-```js
-declare class X {
- foobar(): void;
- static foobar(): void;
-}
-```
-
-Allow keyword in object/class property names with Flow type parameters ([#145](https://github.com/babel/babylon/pull/145)) (Dan Harper)
-
-```js
-class Foo {
- delete(item: T): T {
- return item;
- }
-}
-```
-
-Allow typeAnnotations for yield expressions ([#174](https://github.com/babel/babylon/pull/174))) (Daniel Tschinder)
-
-```js
-function *foo() {
- const x = (yield 5: any);
-}
-```
-
-### :nail_care: Polish
-
-Annotate more errors with expected token ([#172](https://github.com/babel/babylon/pull/172))) (Moti Zilberman)
-
-```js
-// Unexpected token, expected ; (1:6)
-{ set 1 }
-```
-
-### :house: Internal
-
-Remove kcheck ([#173](https://github.com/babel/babylon/pull/173))) (Daniel Tschinder)
-
-Also run flow, linting, babel tests on seperate instances (add back node 0.10)
-
-## v6.11.6 (2016-10-12)
-
-### :bug: Bug Fix/Regression
-
-Fix crash when exporting with destructuring and sparse array ([#170](https://github.com/babel/babylon/pull/170)) (Jeroen Engels)
-
-```js
-// was failing with `Cannot read property 'type' of null` because of null identifiers
-export const { foo: [ ,, qux7 ] } = bar;
-```
-
-## v6.11.5 (2016-10-12)
-
-### :eyeglasses: Spec Compliancy
-
-Fix: Check for duplicate named exports in exported destructuring assignments ([#144](https://github.com/babel/babylon/pull/144)) (Kai Cataldo)
-
-```js
-// `foo` has already been exported. Exported identifiers must be unique. (2:20)
-export function foo() {};
-export const { a: [{foo}] } = bar;
-```
-
-Fix: Check for duplicate named exports in exported rest elements/properties ([#164](https://github.com/babel/babylon/pull/164)) (Kai Cataldo)
-
-```js
-// `foo` has already been exported. Exported identifiers must be unique. (2:22)
-export const foo = 1;
-export const [bar, ...foo] = baz;
-```
-
-### :bug: Bug Fix
-
-Fix: Allow identifier `async` for default param in arrow expression ([#165](https://github.com/babel/babylon/pull/165)) (Kai Cataldo)
-
-```js
-// this is ok now
-const test = ({async = true}) => {};
-```
-
-### :nail_care: Polish
-
-Babylon will now print out the token it's expecting if there's a `SyntaxError` ([#150](https://github.com/babel/babylon/pull/150)) (Daniel Tschinder)
-
-```bash
-# So in the case of a missing ending curly (`}`)
-Module build failed: SyntaxError: Unexpected token, expected } (30:0)
- 28 | }
- 29 |
-> 30 |
- | ^
-```
-
-## v6.11.4 (2016-10-03)
-
-Temporary rollback for erroring on trailing comma with spread (#154) (Henry Zhu)
-
-## v6.11.3 (2016-10-01)
-
-### :eyeglasses: Spec Compliancy
-
-Add static errors for object rest (#149) ([@danez](https://github.com/danez))
-
-> https://github.com/sebmarkbage/ecmascript-rest-spread
-
-Object rest copies the *rest* of properties from the right hand side `obj` starting from the left to right.
-
-```js
-let { x, y, ...z } = { x: 1, y: 2, z: 3 };
-// x = 1
-// y = 2
-// z = { z: 3 }
-```
-
-#### New Syntax Errors:
-
-**SyntaxError**: The rest element has to be the last element when destructuring (1:10)
-```bash
-> 1 | let { ...x, y, z } = { x: 1, y: 2, z: 3};
- | ^
-# Previous behavior:
-# x = { x: 1, y: 2, z: 3 }
-# y = 2
-# z = 3
-```
-
-Before, this was just a more verbose way of shallow copying `obj` since it doesn't actually do what you think.
-
-**SyntaxError**: Cannot have multiple rest elements when destructuring (1:13)
-
-```bash
-> 1 | let { x, ...y, ...z } = { x: 1, y: 2, z: 3};
- | ^
-# Previous behavior:
-# x = 1
-# y = { y: 2, z: 3 }
-# z = { y: 2, z: 3 }
-```
-
-Before y and z would just be the same value anyway so there is no reason to need to have both.
-
-**SyntaxError**: A trailing comma is not permitted after the rest element (1:16)
-
-```js
-let { x, y, ...z, } = obj;
-```
-
-The rationale for this is that the use case for trailing comma is that you can add something at the end without affecting the line above. Since a RestProperty always has to be the last property it doesn't make sense.
-
----
-
-get / set are valid property names in default assignment (#142) ([@jezell](https://github.com/jezell))
-
-```js
-// valid
-function something({ set = null, get = null }) {}
-```
-
-## v6.11.2 (2016-09-23)
-
-### Bug Fix
-
-- [#139](https://github.com/babel/babylon/issues/139) Don't do the duplicate check if not an identifier (#140) @hzoo
-
-```js
-// regression with duplicate export check
-SyntaxError: ./typography.js: `undefined` has already been exported. Exported identifiers must be unique. (22:13)
- 20 |
- 21 | export const { rhythm } = typography;
-> 22 | export const { TypographyStyle } = typography
-```
-
-Bail out for now, and make a change to account for destructuring in the next release.
-
-## 6.11.1 (2016-09-22)
-
-### Bug Fix
-- [#137](https://github.com/babel/babylon/pull/137) - Fix a regression with duplicate exports - it was erroring on all keys in `Object.prototype`. @danez
-
-```javascript
-export toString from './toString';
-```
-
-```bash
-`toString` has already been exported. Exported identifiers must be unique. (1:7)
-> 1 | export toString from './toString';
- | ^
- 2 |
-```
-
-## 6.11.0 (2016-09-22)
-
-### Spec Compliancy (will break CI)
-
-- Disallow duplicate named exports ([#107](https://github.com/babel/babylon/pull/107)) @kaicataldo
-
-```js
-// Only one default export allowed per module. (2:9)
-export default function() {};
-export { foo as default };
-
-// Only one default export allowed per module. (2:0)
-export default {};
-export default function() {};
-
-// `Foo` has already been exported. Exported identifiers must be unique. (2:0)
-export { Foo };
-export class Foo {};
-```
-
-### New Feature (Syntax)
-
-- Add support for computed class property names ([#121](https://github.com/babel/babylon/pull/121)) @motiz88
-
-```js
-// AST
-interface ClassProperty <: Node {
- type: "ClassProperty";
- key: Identifier;
- value: Expression;
- computed: boolean; // added
-}
-```
-
-```js
-// with "plugins": ["classProperties"]
-class Foo {
- [x]
- ['y']
-}
-
-class Bar {
- [p]
- [m] () {}
-}
- ```
-
-### Bug Fix
-
-- Fix `static` property falling through in the declare class Flow AST ([#135](https://github.com/babel/babylon/pull/135)) @danharper
-
-```js
-declare class X {
- a: number;
- static b: number; // static
- c: number; // this was being marked as static in the AST as well
-}
-```
-
-### Polish
-
-- Rephrase "assigning/binding to rvalue" errors to include context ([#119](https://github.com/babel/babylon/pull/119)) @motiz88
-
-```js
-// Used to error with:
-// SyntaxError: Assigning to rvalue (1:0)
-
-// Now:
-// Invalid left-hand side in assignment expression (1:0)
-3 = 4
-
-// Invalid left-hand side in for-in statement (1:5)
-for (+i in {});
-```
-
-### Internal
-
-- Fix call to `this.parseMaybeAssign` with correct arguments ([#133](https://github.com/babel/babylon/pull/133)) @danez
-- Add semver note to changelog ([#131](https://github.com/babel/babylon/pull/131)) @hzoo
-
-## 6.10.0 (2016-09-19)
-
-> We plan to include some spec compliancy bugs in patch versions. An example was the multiple default exports issue.
-
-### Spec Compliancy
-
-* Implement ES2016 check for simple parameter list in strict mode ([#106](https://github.com/babel/babylon/pull/106)) (Timothy Gu)
-
-> It is a Syntax Error if ContainsUseStrict of FunctionBody is true and IsSimpleParameterList of FormalParameters is false. https://tc39.github.io/ecma262/2016/#sec-function-definitions-static-semantics-early-errors
-
-More Context: [tc39-notes](https://github.com/rwaldron/tc39-notes/blob/master/es7/2015-07/july-29.md#611-the-scope-of-use-strict-with-respect-to-destructuring-in-parameter-lists)
-
-For example:
-
-```js
-// this errors because it uses destructuring and default parameters
-// in a function with a "use strict" directive
-function a([ option1, option2 ] = []) {
- "use strict";
-}
- ```
-
-The solution would be to use a top level "use strict" or to remove the destructuring or default parameters when using a function + "use strict" or to.
-
-### New Feature
-
-* Exact object type annotations for Flow plugin ([#104](https://github.com/babel/babylon/pull/104)) (Basil Hosmer)
-
-Added to flow in https://github.com/facebook/flow/commit/c710c40aa2a115435098d6c0dfeaadb023cd39b8
-
-Looks like:
-
-```js
-var a : {| x: number, y: string |} = { x: 0, y: 'foo' };
-```
-
-### Bug Fixes
-
-* Include `typeParameter` location in `ArrowFunctionExpression` ([#126](https://github.com/babel/babylon/pull/126)) (Daniel Tschinder)
-* Error on invalid flow type annotation with default assignment ([#122](https://github.com/babel/babylon/pull/122)) (Dan Harper)
-* Fix Flow return types on arrow functions ([#124](https://github.com/babel/babylon/pull/124)) (Dan Harper)
-
-### Misc
-
-* Add tests for export extensions ([#127](https://github.com/babel/babylon/pull/127)) (Daniel Tschinder)
-* Fix Contributing guidelines [skip ci] (Daniel Tschinder)
-
-## 6.9.2 (2016-09-09)
-
-The only change is to remove the `babel-runtime` dependency by compiling with Babel's ES2015 loose mode. So using babylon standalone should be smaller.
-
-## 6.9.1 (2016-08-23)
-
-This release contains mainly small bugfixes but also updates babylons default mode to es2017. The features for `exponentiationOperator`, `asyncFunctions` and `trailingFunctionCommas` which previously needed to be activated via plugin are now enabled by default and the plugins are now no-ops.
-
-### Bug Fixes
-
-- Fix issues with default object params in async functions ([#96](https://github.com/babel/babylon/pull/96)) @danez
-- Fix issues with flow-types and async function ([#95](https://github.com/babel/babylon/pull/95)) @danez
-- Fix arrow functions with destructuring, types & default value ([#94](https://github.com/babel/babylon/pull/94)) @danharper
-- Fix declare class with qualified type identifier ([#97](https://github.com/babel/babylon/pull/97)) @danez
-- Remove exponentiationOperator, asyncFunctions, trailingFunctionCommas plugins and enable them by default ([#98](https://github.com/babel/babylon/pull/98)) @danez
-
-## 6.9.0 (2016-08-16)
-
-### New syntax support
-
-- Add JSX spread children ([#42](https://github.com/babel/babylon/pull/42)) @calebmer
-
-(Be aware that React is not going to support this syntax)
-
-```js
-
- {...todos.map(todo => )}
-
-```
-
-- Add support for declare module.exports ([#72](https://github.com/babel/babylon/pull/72)) @danez
-
-```js
-declare module "foo" {
- declare module.exports: {}
-}
-```
-
-### New Features
-
-- If supplied, attach filename property to comment node loc. ([#80](https://github.com/babel/babylon/pull/80)) @divmain
-- Add identifier name to node loc field ([#90](https://github.com/babel/babylon/pull/90)) @kittens
-
-### Bug Fixes
-
-- Fix exponential operator to behave according to spec ([#75](https://github.com/babel/babylon/pull/75)) @danez
-- Fix lookahead to not add comments to arrays which are not cloned ([#76](https://github.com/babel/babylon/pull/76)) @danez
-- Fix accidental fall-through in Flow type parsing. ([#82](https://github.com/babel/babylon/pull/82)) @xiemaisi
-- Only allow declares inside declare module ([#73](https://github.com/babel/babylon/pull/73)) @danez
-- Small fix for parsing type parameter declarations ([#83](https://github.com/babel/babylon/pull/83)) @gabelevi
-- Fix arrow param locations with flow types ([#57](https://github.com/babel/babylon/pull/57)) @danez
-- Fixes SyntaxError position with flow optional type ([#65](https://github.com/babel/babylon/pull/65)) @danez
-
-### Internal
-
-- Add codecoverage to tests @danez
-- Fix tests to not save expected output if we expect the test to fail @danez
-- Make a shallow clone of babel for testing @danez
-- chore(package): update cross-env to version 2.0.0 ([#77](https://github.com/babel/babylon/pull/77)) @greenkeeperio-bot
-- chore(package): update ava to version 0.16.0 ([#86](https://github.com/babel/babylon/pull/86)) @greenkeeperio-bot
-- chore(package): update babel-plugin-istanbul to version 2.0.0 ([#89](https://github.com/babel/babylon/pull/89)) @greenkeeperio-bot
-- chore(package): update nyc to version 8.0.0 ([#88](https://github.com/babel/babylon/pull/88)) @greenkeeperio-bot
-
-## 6.8.4 (2016-07-06)
-
-### Bug Fixes
-
-- Fix the location of params, when flow and default value used ([#68](https://github.com/babel/babylon/pull/68)) @danez
-
-## 6.8.3 (2016-07-02)
-
-### Bug Fixes
-
-- Fix performance regression introduced in 6.8.2 with conditionals ([#63](https://github.com/babel/babylon/pull/63)) @danez
-
-## 6.8.2 (2016-06-24)
-
-### Bug Fixes
-
-- Fix parse error with yielding jsx elements in generators `function* it() { yield ; }` ([#31](https://github.com/babel/babylon/pull/31)) @eldereal
-- When cloning nodes do not clone its comments ([#24](https://github.com/babel/babylon/pull/24)) @danez
-- Fix parse errors when using arrow functions with an spread element and return type `(...props): void => {}` ([#10](https://github.com/babel/babylon/pull/10)) @danez
-- Fix leading comments added from previous node ([#23](https://github.com/babel/babylon/pull/23)) @danez
-- Fix parse errors with flow's optional arguments `(arg?) => {}` ([#19](https://github.com/babel/babylon/pull/19)) @danez
-- Support negative numeric type literals @kittens
-- Remove line terminator restriction after await keyword @kittens
-- Remove grouped type arrow restriction as it seems flow no longer has it @kittens
-- Fix parse error with generic methods that have the name `get` or `set` `class foo { get() {} }` ([#55](https://github.com/babel/babylon/pull/55)) @vkurchatkin
-- Fix parse error with arrow functions that have flow type parameter declarations `(x: T): T => x;` ([#54](https://github.com/babel/babylon/pull/54)) @gabelevi
-
-### Documentation
-
-- Document AST differences from ESTree ([#41](https://github.com/babel/babylon/pull/41)) @nene
-- Move ast spec from babel/babel ([#46](https://github.com/babel/babylon/pull/46)) @hzoo
-
-### Internal
-
-- Enable skipped tests ([#16](https://github.com/babel/babylon/pull/16)) @danez
-- Add script to test latest version of babylon with babel ([#21](https://github.com/babel/babylon/pull/21)) @danez
-- Upgrade test runner ava @kittens
-- Add missing generate-identifier-regex script @kittens
-- Rename parser context types @kittens
-- Add node v6 to travis testing @hzoo
-- Update to Unicode v9 ([#45](https://github.com/babel/babylon/pull/45)) @mathiasbynens
-
-## 6.8.1 (2016-06-06)
-
-### New Feature
-
-- Parse type parameter declarations with defaults like `type Foo = T`
-
-### Bug Fixes
-- Type parameter declarations need 1 or more type parameters.
-- The existential type `*` is not a valid type parameter.
-- The existential type `*` is a primary type
-
-### Spec Compliancy
-- The param list for type parameter declarations now consists of `TypeParameter` nodes
-- New `TypeParameter` AST Node (replaces using the `Identifier` node before)
-
-```
-interface TypeParameter <: Node {
- bound: TypeAnnotation;
- default: TypeAnnotation;
- name: string;
- variance: "plus" | "minus";
-}
-```
-
-## 6.8.0 (2016-05-02)
-
-#### New Feature
-
-##### Parse Method Parameter Decorators ([#12](https://github.com/babel/babylon/pull/12))
-
-> [Method Parameter Decorators](https://goo.gl/8MmCMG) is now a TC39 [stage 0 proposal](https://github.com/tc39/ecma262/blob/master/stage0.md).
-
-Examples:
-
-```js
-class Foo {
- constructor(@foo() x, @bar({ a: 123 }) @baz() y) {}
-}
-
-export default function func(@foo() x, @bar({ a: 123 }) @baz() y) {}
-
-var obj = {
- method(@foo() x, @bar({ a: 123 }) @baz() y) {}
-};
-```
-
-##### Parse for-await statements (w/ `asyncGenerators` plugin) ([#17](https://github.com/babel/babylon/pull/17))
-
-There is also a new node type, `ForAwaitStatement`.
-
-> [Async generators and for-await](https://github.com/tc39/proposal-async-iteration) are now a [stage 2 proposal](https://github.com/tc39/ecma262#current-proposals).
-
-Example:
-
-```js
-async function f() {
- for await (let x of y);
-}
-```
diff --git a/AuthenticationSDK/node_modules/@babel/parser/LICENSE b/AuthenticationSDK/node_modules/@babel/parser/LICENSE
deleted file mode 100644
index d4c7fc58..00000000
--- a/AuthenticationSDK/node_modules/@babel/parser/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) 2012-2014 by various contributors (see AUTHORS)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/AuthenticationSDK/node_modules/@babel/parser/README.md b/AuthenticationSDK/node_modules/@babel/parser/README.md
deleted file mode 100644
index 0f127f95..00000000
--- a/AuthenticationSDK/node_modules/@babel/parser/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/parser
-
-> A JavaScript parser
-
-See our website [@babel/parser](https://new.babeljs.io/docs/en/next/babel-parser.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20babylon%22+is%3Aopen) associated with this package.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/parser
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/parser
-```
diff --git a/AuthenticationSDK/node_modules/@babel/parser/bin/babel-parser.js b/AuthenticationSDK/node_modules/@babel/parser/bin/babel-parser.js
deleted file mode 100644
index 58f00b84..00000000
--- a/AuthenticationSDK/node_modules/@babel/parser/bin/babel-parser.js
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env node
-/* eslint no-var: 0 */
-
-var parser = require("..");
-var fs = require("fs");
-
-var filename = process.argv[2];
-if (!filename) {
- console.error("no filename specified");
- process.exit(0);
-}
-
-var file = fs.readFileSync(filename, "utf8");
-var ast = parser.parse(file);
-
-console.log(JSON.stringify(ast, null, " "));
diff --git a/AuthenticationSDK/node_modules/@babel/parser/lib/index.js b/AuthenticationSDK/node_modules/@babel/parser/lib/index.js
deleted file mode 100644
index 7eef6e41..00000000
--- a/AuthenticationSDK/node_modules/@babel/parser/lib/index.js
+++ /dev/null
@@ -1,10408 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-function _AwaitValue(value) {
- this.wrapped = value;
-}
-
-function _AsyncGenerator(gen) {
- var front, back;
-
- function send(key, arg) {
- return new Promise(function (resolve, reject) {
- var request = {
- key: key,
- arg: arg,
- resolve: resolve,
- reject: reject,
- next: null
- };
-
- if (back) {
- back = back.next = request;
- } else {
- front = back = request;
- resume(key, arg);
- }
- });
- }
-
- function resume(key, arg) {
- try {
- var result = gen[key](arg);
- var value = result.value;
- var wrappedAwait = value instanceof _AwaitValue;
- Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) {
- if (wrappedAwait) {
- resume("next", arg);
- return;
- }
-
- settle(result.done ? "return" : "normal", arg);
- }, function (err) {
- resume("throw", err);
- });
- } catch (err) {
- settle("throw", err);
- }
- }
-
- function settle(type, value) {
- switch (type) {
- case "return":
- front.resolve({
- value: value,
- done: true
- });
- break;
-
- case "throw":
- front.reject(value);
- break;
-
- default:
- front.resolve({
- value: value,
- done: false
- });
- break;
- }
-
- front = front.next;
-
- if (front) {
- resume(front.key, front.arg);
- } else {
- back = null;
- }
- }
-
- this._invoke = send;
-
- if (typeof gen.return !== "function") {
- this.return = undefined;
- }
-}
-
-if (typeof Symbol === "function" && Symbol.asyncIterator) {
- _AsyncGenerator.prototype[Symbol.asyncIterator] = function () {
- return this;
- };
-}
-
-_AsyncGenerator.prototype.next = function (arg) {
- return this._invoke("next", arg);
-};
-
-_AsyncGenerator.prototype.throw = function (arg) {
- return this._invoke("throw", arg);
-};
-
-_AsyncGenerator.prototype.return = function (arg) {
- return this._invoke("return", arg);
-};
-
-function _inheritsLoose(subClass, superClass) {
- subClass.prototype = Object.create(superClass.prototype);
- subClass.prototype.constructor = subClass;
- subClass.__proto__ = superClass;
-}
-
-var beforeExpr = true;
-var startsExpr = true;
-var isLoop = true;
-var isAssign = true;
-var prefix = true;
-var postfix = true;
-var TokenType = function TokenType(label, conf) {
- if (conf === void 0) {
- conf = {};
- }
-
- this.label = label;
- this.keyword = conf.keyword;
- this.beforeExpr = !!conf.beforeExpr;
- this.startsExpr = !!conf.startsExpr;
- this.rightAssociative = !!conf.rightAssociative;
- this.isLoop = !!conf.isLoop;
- this.isAssign = !!conf.isAssign;
- this.prefix = !!conf.prefix;
- this.postfix = !!conf.postfix;
- this.binop = conf.binop === 0 ? 0 : conf.binop || null;
- this.updateContext = null;
-};
-
-var KeywordTokenType = function (_TokenType) {
- _inheritsLoose(KeywordTokenType, _TokenType);
-
- function KeywordTokenType(name, options) {
- if (options === void 0) {
- options = {};
- }
-
- options.keyword = name;
- return _TokenType.call(this, name, options) || this;
- }
-
- return KeywordTokenType;
-}(TokenType);
-
-var BinopTokenType = function (_TokenType2) {
- _inheritsLoose(BinopTokenType, _TokenType2);
-
- function BinopTokenType(name, prec) {
- return _TokenType2.call(this, name, {
- beforeExpr: beforeExpr,
- binop: prec
- }) || this;
- }
-
- return BinopTokenType;
-}(TokenType);
-var types = {
- num: new TokenType("num", {
- startsExpr: startsExpr
- }),
- bigint: new TokenType("bigint", {
- startsExpr: startsExpr
- }),
- regexp: new TokenType("regexp", {
- startsExpr: startsExpr
- }),
- string: new TokenType("string", {
- startsExpr: startsExpr
- }),
- name: new TokenType("name", {
- startsExpr: startsExpr
- }),
- eof: new TokenType("eof"),
- bracketL: new TokenType("[", {
- beforeExpr: beforeExpr,
- startsExpr: startsExpr
- }),
- bracketR: new TokenType("]"),
- braceL: new TokenType("{", {
- beforeExpr: beforeExpr,
- startsExpr: startsExpr
- }),
- braceBarL: new TokenType("{|", {
- beforeExpr: beforeExpr,
- startsExpr: startsExpr
- }),
- braceR: new TokenType("}"),
- braceBarR: new TokenType("|}"),
- parenL: new TokenType("(", {
- beforeExpr: beforeExpr,
- startsExpr: startsExpr
- }),
- parenR: new TokenType(")"),
- comma: new TokenType(",", {
- beforeExpr: beforeExpr
- }),
- semi: new TokenType(";", {
- beforeExpr: beforeExpr
- }),
- colon: new TokenType(":", {
- beforeExpr: beforeExpr
- }),
- doubleColon: new TokenType("::", {
- beforeExpr: beforeExpr
- }),
- dot: new TokenType("."),
- question: new TokenType("?", {
- beforeExpr: beforeExpr
- }),
- questionDot: new TokenType("?."),
- arrow: new TokenType("=>", {
- beforeExpr: beforeExpr
- }),
- template: new TokenType("template"),
- ellipsis: new TokenType("...", {
- beforeExpr: beforeExpr
- }),
- backQuote: new TokenType("`", {
- startsExpr: startsExpr
- }),
- dollarBraceL: new TokenType("${", {
- beforeExpr: beforeExpr,
- startsExpr: startsExpr
- }),
- at: new TokenType("@"),
- hash: new TokenType("#"),
- interpreterDirective: new TokenType("#!..."),
- eq: new TokenType("=", {
- beforeExpr: beforeExpr,
- isAssign: isAssign
- }),
- assign: new TokenType("_=", {
- beforeExpr: beforeExpr,
- isAssign: isAssign
- }),
- incDec: new TokenType("++/--", {
- prefix: prefix,
- postfix: postfix,
- startsExpr: startsExpr
- }),
- bang: new TokenType("!", {
- beforeExpr: beforeExpr,
- prefix: prefix,
- startsExpr: startsExpr
- }),
- tilde: new TokenType("~", {
- beforeExpr: beforeExpr,
- prefix: prefix,
- startsExpr: startsExpr
- }),
- pipeline: new BinopTokenType("|>", 0),
- nullishCoalescing: new BinopTokenType("??", 1),
- logicalOR: new BinopTokenType("||", 1),
- logicalAND: new BinopTokenType("&&", 2),
- bitwiseOR: new BinopTokenType("|", 3),
- bitwiseXOR: new BinopTokenType("^", 4),
- bitwiseAND: new BinopTokenType("&", 5),
- equality: new BinopTokenType("==/!=", 6),
- relational: new BinopTokenType(">", 7),
- bitShift: new BinopTokenType("<>>", 8),
- plusMin: new TokenType("+/-", {
- beforeExpr: beforeExpr,
- binop: 9,
- prefix: prefix,
- startsExpr: startsExpr
- }),
- modulo: new BinopTokenType("%", 10),
- star: new BinopTokenType("*", 10),
- slash: new BinopTokenType("/", 10),
- exponent: new TokenType("**", {
- beforeExpr: beforeExpr,
- binop: 11,
- rightAssociative: true
- })
-};
-var keywords = {
- break: new KeywordTokenType("break"),
- case: new KeywordTokenType("case", {
- beforeExpr: beforeExpr
- }),
- catch: new KeywordTokenType("catch"),
- continue: new KeywordTokenType("continue"),
- debugger: new KeywordTokenType("debugger"),
- default: new KeywordTokenType("default", {
- beforeExpr: beforeExpr
- }),
- do: new KeywordTokenType("do", {
- isLoop: isLoop,
- beforeExpr: beforeExpr
- }),
- else: new KeywordTokenType("else", {
- beforeExpr: beforeExpr
- }),
- finally: new KeywordTokenType("finally"),
- for: new KeywordTokenType("for", {
- isLoop: isLoop
- }),
- function: new KeywordTokenType("function", {
- startsExpr: startsExpr
- }),
- if: new KeywordTokenType("if"),
- return: new KeywordTokenType("return", {
- beforeExpr: beforeExpr
- }),
- switch: new KeywordTokenType("switch"),
- throw: new KeywordTokenType("throw", {
- beforeExpr: beforeExpr,
- prefix: prefix,
- startsExpr: startsExpr
- }),
- try: new KeywordTokenType("try"),
- var: new KeywordTokenType("var"),
- let: new KeywordTokenType("let"),
- const: new KeywordTokenType("const"),
- while: new KeywordTokenType("while", {
- isLoop: isLoop
- }),
- with: new KeywordTokenType("with"),
- new: new KeywordTokenType("new", {
- beforeExpr: beforeExpr,
- startsExpr: startsExpr
- }),
- this: new KeywordTokenType("this", {
- startsExpr: startsExpr
- }),
- super: new KeywordTokenType("super", {
- startsExpr: startsExpr
- }),
- class: new KeywordTokenType("class"),
- extends: new KeywordTokenType("extends", {
- beforeExpr: beforeExpr
- }),
- export: new KeywordTokenType("export"),
- import: new KeywordTokenType("import", {
- startsExpr: startsExpr
- }),
- yield: new KeywordTokenType("yield", {
- beforeExpr: beforeExpr,
- startsExpr: startsExpr
- }),
- null: new KeywordTokenType("null", {
- startsExpr: startsExpr
- }),
- true: new KeywordTokenType("true", {
- startsExpr: startsExpr
- }),
- false: new KeywordTokenType("false", {
- startsExpr: startsExpr
- }),
- in: new KeywordTokenType("in", {
- beforeExpr: beforeExpr,
- binop: 7
- }),
- instanceof: new KeywordTokenType("instanceof", {
- beforeExpr: beforeExpr,
- binop: 7
- }),
- typeof: new KeywordTokenType("typeof", {
- beforeExpr: beforeExpr,
- prefix: prefix,
- startsExpr: startsExpr
- }),
- void: new KeywordTokenType("void", {
- beforeExpr: beforeExpr,
- prefix: prefix,
- startsExpr: startsExpr
- }),
- delete: new KeywordTokenType("delete", {
- beforeExpr: beforeExpr,
- prefix: prefix,
- startsExpr: startsExpr
- })
-};
-Object.keys(keywords).forEach(function (name) {
- types["_" + name] = keywords[name];
-});
-
-function isSimpleProperty(node) {
- return node != null && node.type === "Property" && node.kind === "init" && node.method === false;
-}
-
-var estree = (function (superClass) {
- return function (_superClass) {
- _inheritsLoose(_class, _superClass);
-
- function _class() {
- return _superClass.apply(this, arguments) || this;
- }
-
- var _proto = _class.prototype;
-
- _proto.estreeParseRegExpLiteral = function estreeParseRegExpLiteral(_ref) {
- var pattern = _ref.pattern,
- flags = _ref.flags;
- var regex = null;
-
- try {
- regex = new RegExp(pattern, flags);
- } catch (e) {}
-
- var node = this.estreeParseLiteral(regex);
- node.regex = {
- pattern: pattern,
- flags: flags
- };
- return node;
- };
-
- _proto.estreeParseLiteral = function estreeParseLiteral(value) {
- return this.parseLiteral(value, "Literal");
- };
-
- _proto.directiveToStmt = function directiveToStmt(directive) {
- var directiveLiteral = directive.value;
- var stmt = this.startNodeAt(directive.start, directive.loc.start);
- var expression = this.startNodeAt(directiveLiteral.start, directiveLiteral.loc.start);
- expression.value = directiveLiteral.value;
- expression.raw = directiveLiteral.extra.raw;
- stmt.expression = this.finishNodeAt(expression, "Literal", directiveLiteral.end, directiveLiteral.loc.end);
- stmt.directive = directiveLiteral.extra.raw.slice(1, -1);
- return this.finishNodeAt(stmt, "ExpressionStatement", directive.end, directive.loc.end);
- };
-
- _proto.initFunction = function initFunction(node, isAsync) {
- _superClass.prototype.initFunction.call(this, node, isAsync);
-
- node.expression = false;
- };
-
- _proto.checkDeclaration = function checkDeclaration(node) {
- if (isSimpleProperty(node)) {
- this.checkDeclaration(node.value);
- } else {
- _superClass.prototype.checkDeclaration.call(this, node);
- }
- };
-
- _proto.checkGetterSetterParams = function checkGetterSetterParams(method) {
- var prop = method;
- var paramCount = prop.kind === "get" ? 0 : 1;
- var start = prop.start;
-
- if (prop.value.params.length !== paramCount) {
- if (prop.kind === "get") {
- this.raise(start, "getter must not have any formal parameters");
- } else {
- this.raise(start, "setter must have exactly one formal parameter");
- }
- }
-
- if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
- this.raise(start, "setter function argument must not be a rest parameter");
- }
- };
-
- _proto.checkLVal = function checkLVal(expr, isBinding, checkClashes, contextDescription) {
- var _this = this;
-
- switch (expr.type) {
- case "ObjectPattern":
- expr.properties.forEach(function (prop) {
- _this.checkLVal(prop.type === "Property" ? prop.value : prop, isBinding, checkClashes, "object destructuring pattern");
- });
- break;
-
- default:
- _superClass.prototype.checkLVal.call(this, expr, isBinding, checkClashes, contextDescription);
-
- }
- };
-
- _proto.checkPropClash = function checkPropClash(prop, propHash) {
- if (prop.computed || !isSimpleProperty(prop)) return;
- var key = prop.key;
- var name = key.type === "Identifier" ? key.name : String(key.value);
-
- if (name === "__proto__") {
- if (propHash.proto) {
- this.raise(key.start, "Redefinition of __proto__ property");
- }
-
- propHash.proto = true;
- }
- };
-
- _proto.isStrictBody = function isStrictBody(node) {
- var isBlockStatement = node.body.type === "BlockStatement";
-
- if (isBlockStatement && node.body.body.length > 0) {
- for (var _i2 = 0, _node$body$body2 = node.body.body; _i2 < _node$body$body2.length; _i2++) {
- var directive = _node$body$body2[_i2];
-
- if (directive.type === "ExpressionStatement" && directive.expression.type === "Literal") {
- if (directive.expression.value === "use strict") return true;
- } else {
- break;
- }
- }
- }
-
- return false;
- };
-
- _proto.isValidDirective = function isValidDirective(stmt) {
- return stmt.type === "ExpressionStatement" && stmt.expression.type === "Literal" && typeof stmt.expression.value === "string" && (!stmt.expression.extra || !stmt.expression.extra.parenthesized);
- };
-
- _proto.stmtToDirective = function stmtToDirective(stmt) {
- var directive = _superClass.prototype.stmtToDirective.call(this, stmt);
-
- var value = stmt.expression.value;
- directive.value.value = value;
- return directive;
- };
-
- _proto.parseBlockBody = function parseBlockBody(node, allowDirectives, topLevel, end) {
- var _this2 = this;
-
- _superClass.prototype.parseBlockBody.call(this, node, allowDirectives, topLevel, end);
-
- var directiveStatements = node.directives.map(function (d) {
- return _this2.directiveToStmt(d);
- });
- node.body = directiveStatements.concat(node.body);
- delete node.directives;
- };
-
- _proto.pushClassMethod = function pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor) {
- this.parseMethod(method, isGenerator, isAsync, isConstructor, "MethodDefinition");
-
- if (method.typeParameters) {
- method.value.typeParameters = method.typeParameters;
- delete method.typeParameters;
- }
-
- classBody.body.push(method);
- };
-
- _proto.parseExprAtom = function parseExprAtom(refShorthandDefaultPos) {
- switch (this.state.type) {
- case types.regexp:
- return this.estreeParseRegExpLiteral(this.state.value);
-
- case types.num:
- case types.string:
- return this.estreeParseLiteral(this.state.value);
-
- case types._null:
- return this.estreeParseLiteral(null);
-
- case types._true:
- return this.estreeParseLiteral(true);
-
- case types._false:
- return this.estreeParseLiteral(false);
-
- default:
- return _superClass.prototype.parseExprAtom.call(this, refShorthandDefaultPos);
- }
- };
-
- _proto.parseLiteral = function parseLiteral(value, type, startPos, startLoc) {
- var node = _superClass.prototype.parseLiteral.call(this, value, type, startPos, startLoc);
-
- node.raw = node.extra.raw;
- delete node.extra;
- return node;
- };
-
- _proto.parseFunctionBody = function parseFunctionBody(node, allowExpression) {
- _superClass.prototype.parseFunctionBody.call(this, node, allowExpression);
-
- node.expression = node.body.type !== "BlockStatement";
- };
-
- _proto.parseMethod = function parseMethod(node, isGenerator, isAsync, isConstructor, type) {
- var funcNode = this.startNode();
- funcNode.kind = node.kind;
- funcNode = _superClass.prototype.parseMethod.call(this, funcNode, isGenerator, isAsync, isConstructor, "FunctionExpression");
- delete funcNode.kind;
- node.value = funcNode;
- return this.finishNode(node, type);
- };
-
- _proto.parseObjectMethod = function parseObjectMethod(prop, isGenerator, isAsync, isPattern, containsEsc) {
- var node = _superClass.prototype.parseObjectMethod.call(this, prop, isGenerator, isAsync, isPattern, containsEsc);
-
- if (node) {
- node.type = "Property";
- if (node.kind === "method") node.kind = "init";
- node.shorthand = false;
- }
-
- return node;
- };
-
- _proto.parseObjectProperty = function parseObjectProperty(prop, startPos, startLoc, isPattern, refShorthandDefaultPos) {
- var node = _superClass.prototype.parseObjectProperty.call(this, prop, startPos, startLoc, isPattern, refShorthandDefaultPos);
-
- if (node) {
- node.kind = "init";
- node.type = "Property";
- }
-
- return node;
- };
-
- _proto.toAssignable = function toAssignable(node, isBinding, contextDescription) {
- if (isSimpleProperty(node)) {
- this.toAssignable(node.value, isBinding, contextDescription);
- return node;
- }
-
- return _superClass.prototype.toAssignable.call(this, node, isBinding, contextDescription);
- };
-
- _proto.toAssignableObjectExpressionProp = function toAssignableObjectExpressionProp(prop, isBinding, isLast) {
- if (prop.kind === "get" || prop.kind === "set") {
- this.raise(prop.key.start, "Object pattern can't contain getter or setter");
- } else if (prop.method) {
- this.raise(prop.key.start, "Object pattern can't contain methods");
- } else {
- _superClass.prototype.toAssignableObjectExpressionProp.call(this, prop, isBinding, isLast);
- }
- };
-
- return _class;
- }(superClass);
-});
-
-function makePredicate(words) {
- var wordsArr = words.split(" ");
- return function (str) {
- return wordsArr.indexOf(str) >= 0;
- };
-}
-
-var reservedWords = {
- "6": makePredicate("enum await"),
- strict: makePredicate("implements interface let package private protected public static yield"),
- strictBind: makePredicate("eval arguments")
-};
-var isKeyword = makePredicate("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super");
-var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
-var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F";
-var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
-var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
-nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
-var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 157, 310, 10, 21, 11, 7, 153, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 477, 28, 11, 0, 9, 21, 190, 52, 76, 44, 33, 24, 27, 35, 30, 0, 12, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 85, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 54, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 86, 26, 230, 43, 117, 63, 32, 0, 257, 0, 11, 39, 8, 0, 22, 0, 12, 39, 3, 3, 20, 0, 35, 56, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 270, 921, 103, 110, 18, 195, 2749, 1070, 4050, 582, 8634, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 68, 12, 0, 67, 12, 65, 1, 31, 6129, 15, 754, 9486, 286, 82, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 4149, 196, 60, 67, 1213, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42710, 42, 4148, 12, 221, 3, 5761, 15, 7472, 3104, 541];
-var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 525, 10, 176, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 4, 9, 83, 11, 7, 0, 161, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 280, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 19306, 9, 135, 4, 60, 6, 26, 9, 1016, 45, 17, 3, 19723, 1, 5319, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 2214, 6, 110, 6, 6, 9, 792487, 239];
-
-function isInAstralSet(code, set) {
- var pos = 0x10000;
-
- for (var i = 0; i < set.length; i += 2) {
- pos += set[i];
- if (pos > code) return false;
- pos += set[i + 1];
- if (pos >= code) return true;
- }
-
- return false;
-}
-
-function isIdentifierStart(code) {
- if (code < 65) return code === 36;
- if (code < 91) return true;
- if (code < 97) return code === 95;
- if (code < 123) return true;
-
- if (code <= 0xffff) {
- return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));
- }
-
- return isInAstralSet(code, astralIdentifierStartCodes);
-}
-function isIteratorStart(current, next) {
- return current === 64 && next === 64;
-}
-function isIdentifierChar(code) {
- if (code < 48) return code === 36;
- if (code < 58) return true;
- if (code < 65) return false;
- if (code < 91) return true;
- if (code < 97) return code === 95;
- if (code < 123) return true;
-
- if (code <= 0xffff) {
- return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));
- }
-
- return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
-}
-
-var primitiveTypes = ["any", "bool", "boolean", "empty", "false", "mixed", "null", "number", "static", "string", "true", "typeof", "void"];
-
-function isEsModuleType(bodyElement) {
- return bodyElement.type === "DeclareExportAllDeclaration" || bodyElement.type === "DeclareExportDeclaration" && (!bodyElement.declaration || bodyElement.declaration.type !== "TypeAlias" && bodyElement.declaration.type !== "InterfaceDeclaration");
-}
-
-function hasTypeImportKind(node) {
- return node.importKind === "type" || node.importKind === "typeof";
-}
-
-function isMaybeDefaultImport(state) {
- return (state.type === types.name || !!state.type.keyword) && state.value !== "from";
-}
-
-var exportSuggestions = {
- const: "declare export var",
- let: "declare export var",
- type: "export type",
- interface: "export interface"
-};
-
-function partition(list, test) {
- var list1 = [];
- var list2 = [];
-
- for (var i = 0; i < list.length; i++) {
- (test(list[i], i, list) ? list1 : list2).push(list[i]);
- }
-
- return [list1, list2];
-}
-
-var FLOW_PRAGMA_REGEX = /\*?\s*@((?:no)?flow)\b/;
-var flow = (function (superClass) {
- return function (_superClass) {
- _inheritsLoose(_class, _superClass);
-
- function _class(options, input) {
- var _this;
-
- _this = _superClass.call(this, options, input) || this;
- _this.flowPragma = undefined;
- return _this;
- }
-
- var _proto = _class.prototype;
-
- _proto.shouldParseTypes = function shouldParseTypes() {
- return this.getPluginOption("flow", "all") || this.flowPragma === "flow";
- };
-
- _proto.addComment = function addComment(comment) {
- if (this.flowPragma === undefined) {
- var matches = FLOW_PRAGMA_REGEX.exec(comment.value);
-
- if (!matches) {
- this.flowPragma = null;
- } else if (matches[1] === "flow") {
- this.flowPragma = "flow";
- } else if (matches[1] === "noflow") {
- this.flowPragma = "noflow";
- } else {
- throw new Error("Unexpected flow pragma");
- }
- }
-
- return _superClass.prototype.addComment.call(this, comment);
- };
-
- _proto.flowParseTypeInitialiser = function flowParseTypeInitialiser(tok) {
- var oldInType = this.state.inType;
- this.state.inType = true;
- this.expect(tok || types.colon);
- var type = this.flowParseType();
- this.state.inType = oldInType;
- return type;
- };
-
- _proto.flowParsePredicate = function flowParsePredicate() {
- var node = this.startNode();
- var moduloLoc = this.state.startLoc;
- var moduloPos = this.state.start;
- this.expect(types.modulo);
- var checksLoc = this.state.startLoc;
- this.expectContextual("checks");
-
- if (moduloLoc.line !== checksLoc.line || moduloLoc.column !== checksLoc.column - 1) {
- this.raise(moduloPos, "Spaces between ´%´ and ´checks´ are not allowed here.");
- }
-
- if (this.eat(types.parenL)) {
- node.value = this.parseExpression();
- this.expect(types.parenR);
- return this.finishNode(node, "DeclaredPredicate");
- } else {
- return this.finishNode(node, "InferredPredicate");
- }
- };
-
- _proto.flowParseTypeAndPredicateInitialiser = function flowParseTypeAndPredicateInitialiser() {
- var oldInType = this.state.inType;
- this.state.inType = true;
- this.expect(types.colon);
- var type = null;
- var predicate = null;
-
- if (this.match(types.modulo)) {
- this.state.inType = oldInType;
- predicate = this.flowParsePredicate();
- } else {
- type = this.flowParseType();
- this.state.inType = oldInType;
-
- if (this.match(types.modulo)) {
- predicate = this.flowParsePredicate();
- }
- }
-
- return [type, predicate];
- };
-
- _proto.flowParseDeclareClass = function flowParseDeclareClass(node) {
- this.next();
- this.flowParseInterfaceish(node, true);
- return this.finishNode(node, "DeclareClass");
- };
-
- _proto.flowParseDeclareFunction = function flowParseDeclareFunction(node) {
- this.next();
- var id = node.id = this.parseIdentifier();
- var typeNode = this.startNode();
- var typeContainer = this.startNode();
-
- if (this.isRelational("<")) {
- typeNode.typeParameters = this.flowParseTypeParameterDeclaration();
- } else {
- typeNode.typeParameters = null;
- }
-
- this.expect(types.parenL);
- var tmp = this.flowParseFunctionTypeParams();
- typeNode.params = tmp.params;
- typeNode.rest = tmp.rest;
- this.expect(types.parenR);
-
- var _this$flowParseTypeAn = this.flowParseTypeAndPredicateInitialiser();
-
- typeNode.returnType = _this$flowParseTypeAn[0];
- node.predicate = _this$flowParseTypeAn[1];
- typeContainer.typeAnnotation = this.finishNode(typeNode, "FunctionTypeAnnotation");
- id.typeAnnotation = this.finishNode(typeContainer, "TypeAnnotation");
- this.finishNode(id, id.type);
- this.semicolon();
- return this.finishNode(node, "DeclareFunction");
- };
-
- _proto.flowParseDeclare = function flowParseDeclare(node, insideModule) {
- if (this.match(types._class)) {
- return this.flowParseDeclareClass(node);
- } else if (this.match(types._function)) {
- return this.flowParseDeclareFunction(node);
- } else if (this.match(types._var)) {
- return this.flowParseDeclareVariable(node);
- } else if (this.isContextual("module")) {
- if (this.lookahead().type === types.dot) {
- return this.flowParseDeclareModuleExports(node);
- } else {
- if (insideModule) {
- this.unexpected(null, "`declare module` cannot be used inside another `declare module`");
- }
-
- return this.flowParseDeclareModule(node);
- }
- } else if (this.isContextual("type")) {
- return this.flowParseDeclareTypeAlias(node);
- } else if (this.isContextual("opaque")) {
- return this.flowParseDeclareOpaqueType(node);
- } else if (this.isContextual("interface")) {
- return this.flowParseDeclareInterface(node);
- } else if (this.match(types._export)) {
- return this.flowParseDeclareExportDeclaration(node, insideModule);
- } else {
- throw this.unexpected();
- }
- };
-
- _proto.flowParseDeclareVariable = function flowParseDeclareVariable(node) {
- this.next();
- node.id = this.flowParseTypeAnnotatableIdentifier(true);
- this.semicolon();
- return this.finishNode(node, "DeclareVariable");
- };
-
- _proto.flowParseDeclareModule = function flowParseDeclareModule(node) {
- var _this2 = this;
-
- this.next();
-
- if (this.match(types.string)) {
- node.id = this.parseExprAtom();
- } else {
- node.id = this.parseIdentifier();
- }
-
- var bodyNode = node.body = this.startNode();
- var body = bodyNode.body = [];
- this.expect(types.braceL);
-
- while (!this.match(types.braceR)) {
- var _bodyNode = this.startNode();
-
- if (this.match(types._import)) {
- var lookahead = this.lookahead();
-
- if (lookahead.value !== "type" && lookahead.value !== "typeof") {
- this.unexpected(null, "Imports within a `declare module` body must always be `import type` or `import typeof`");
- }
-
- this.next();
- this.parseImport(_bodyNode);
- } else {
- this.expectContextual("declare", "Only declares and type imports are allowed inside declare module");
- _bodyNode = this.flowParseDeclare(_bodyNode, true);
- }
-
- body.push(_bodyNode);
- }
-
- this.expect(types.braceR);
- this.finishNode(bodyNode, "BlockStatement");
- var kind = null;
- var hasModuleExport = false;
- var errorMessage = "Found both `declare module.exports` and `declare export` in the same module. " + "Modules can only have 1 since they are either an ES module or they are a CommonJS module";
- body.forEach(function (bodyElement) {
- if (isEsModuleType(bodyElement)) {
- if (kind === "CommonJS") {
- _this2.unexpected(bodyElement.start, errorMessage);
- }
-
- kind = "ES";
- } else if (bodyElement.type === "DeclareModuleExports") {
- if (hasModuleExport) {
- _this2.unexpected(bodyElement.start, "Duplicate `declare module.exports` statement");
- }
-
- if (kind === "ES") _this2.unexpected(bodyElement.start, errorMessage);
- kind = "CommonJS";
- hasModuleExport = true;
- }
- });
- node.kind = kind || "CommonJS";
- return this.finishNode(node, "DeclareModule");
- };
-
- _proto.flowParseDeclareExportDeclaration = function flowParseDeclareExportDeclaration(node, insideModule) {
- this.expect(types._export);
-
- if (this.eat(types._default)) {
- if (this.match(types._function) || this.match(types._class)) {
- node.declaration = this.flowParseDeclare(this.startNode());
- } else {
- node.declaration = this.flowParseType();
- this.semicolon();
- }
-
- node.default = true;
- return this.finishNode(node, "DeclareExportDeclaration");
- } else {
- if (this.match(types._const) || this.match(types._let) || (this.isContextual("type") || this.isContextual("interface")) && !insideModule) {
- var label = this.state.value;
- var suggestion = exportSuggestions[label];
- this.unexpected(this.state.start, "`declare export " + label + "` is not supported. Use `" + suggestion + "` instead");
- }
-
- if (this.match(types._var) || this.match(types._function) || this.match(types._class) || this.isContextual("opaque")) {
- node.declaration = this.flowParseDeclare(this.startNode());
- node.default = false;
- return this.finishNode(node, "DeclareExportDeclaration");
- } else if (this.match(types.star) || this.match(types.braceL) || this.isContextual("interface") || this.isContextual("type") || this.isContextual("opaque")) {
- node = this.parseExport(node);
-
- if (node.type === "ExportNamedDeclaration") {
- node.type = "ExportDeclaration";
- node.default = false;
- delete node.exportKind;
- }
-
- node.type = "Declare" + node.type;
- return node;
- }
- }
-
- throw this.unexpected();
- };
-
- _proto.flowParseDeclareModuleExports = function flowParseDeclareModuleExports(node) {
- this.expectContextual("module");
- this.expect(types.dot);
- this.expectContextual("exports");
- node.typeAnnotation = this.flowParseTypeAnnotation();
- this.semicolon();
- return this.finishNode(node, "DeclareModuleExports");
- };
-
- _proto.flowParseDeclareTypeAlias = function flowParseDeclareTypeAlias(node) {
- this.next();
- this.flowParseTypeAlias(node);
- return this.finishNode(node, "DeclareTypeAlias");
- };
-
- _proto.flowParseDeclareOpaqueType = function flowParseDeclareOpaqueType(node) {
- this.next();
- this.flowParseOpaqueType(node, true);
- return this.finishNode(node, "DeclareOpaqueType");
- };
-
- _proto.flowParseDeclareInterface = function flowParseDeclareInterface(node) {
- this.next();
- this.flowParseInterfaceish(node);
- return this.finishNode(node, "DeclareInterface");
- };
-
- _proto.flowParseInterfaceish = function flowParseInterfaceish(node, isClass) {
- if (isClass === void 0) {
- isClass = false;
- }
-
- node.id = this.flowParseRestrictedIdentifier(!isClass);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- } else {
- node.typeParameters = null;
- }
-
- node.extends = [];
- node.implements = [];
- node.mixins = [];
-
- if (this.eat(types._extends)) {
- do {
- node.extends.push(this.flowParseInterfaceExtends());
- } while (!isClass && this.eat(types.comma));
- }
-
- if (this.isContextual("mixins")) {
- this.next();
-
- do {
- node.mixins.push(this.flowParseInterfaceExtends());
- } while (this.eat(types.comma));
- }
-
- if (this.isContextual("implements")) {
- this.next();
-
- do {
- node.implements.push(this.flowParseInterfaceExtends());
- } while (this.eat(types.comma));
- }
-
- node.body = this.flowParseObjectType(true, false, false, isClass);
- };
-
- _proto.flowParseInterfaceExtends = function flowParseInterfaceExtends() {
- var node = this.startNode();
- node.id = this.flowParseQualifiedTypeIdentifier();
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterInstantiation();
- } else {
- node.typeParameters = null;
- }
-
- return this.finishNode(node, "InterfaceExtends");
- };
-
- _proto.flowParseInterface = function flowParseInterface(node) {
- this.flowParseInterfaceish(node);
- return this.finishNode(node, "InterfaceDeclaration");
- };
-
- _proto.checkReservedType = function checkReservedType(word, startLoc) {
- if (primitiveTypes.indexOf(word) > -1) {
- this.raise(startLoc, "Cannot overwrite primitive type " + word);
- }
- };
-
- _proto.flowParseRestrictedIdentifier = function flowParseRestrictedIdentifier(liberal) {
- this.checkReservedType(this.state.value, this.state.start);
- return this.parseIdentifier(liberal);
- };
-
- _proto.flowParseTypeAlias = function flowParseTypeAlias(node) {
- node.id = this.flowParseRestrictedIdentifier();
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- } else {
- node.typeParameters = null;
- }
-
- node.right = this.flowParseTypeInitialiser(types.eq);
- this.semicolon();
- return this.finishNode(node, "TypeAlias");
- };
-
- _proto.flowParseOpaqueType = function flowParseOpaqueType(node, declare) {
- this.expectContextual("type");
- node.id = this.flowParseRestrictedIdentifier(true);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- } else {
- node.typeParameters = null;
- }
-
- node.supertype = null;
-
- if (this.match(types.colon)) {
- node.supertype = this.flowParseTypeInitialiser(types.colon);
- }
-
- node.impltype = null;
-
- if (!declare) {
- node.impltype = this.flowParseTypeInitialiser(types.eq);
- }
-
- this.semicolon();
- return this.finishNode(node, "OpaqueType");
- };
-
- _proto.flowParseTypeParameter = function flowParseTypeParameter(allowDefault, requireDefault) {
- if (allowDefault === void 0) {
- allowDefault = true;
- }
-
- if (requireDefault === void 0) {
- requireDefault = false;
- }
-
- if (!allowDefault && requireDefault) {
- throw new Error("Cannot disallow a default value (`allowDefault`) while also requiring it (`requireDefault`).");
- }
-
- var nodeStart = this.state.start;
- var node = this.startNode();
- var variance = this.flowParseVariance();
- var ident = this.flowParseTypeAnnotatableIdentifier();
- node.name = ident.name;
- node.variance = variance;
- node.bound = ident.typeAnnotation;
-
- if (this.match(types.eq)) {
- if (allowDefault) {
- this.eat(types.eq);
- node.default = this.flowParseType();
- } else {
- this.unexpected();
- }
- } else {
- if (requireDefault) {
- this.unexpected(nodeStart, "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.");
- }
- }
-
- return this.finishNode(node, "TypeParameter");
- };
-
- _proto.flowParseTypeParameterDeclaration = function flowParseTypeParameterDeclaration(allowDefault) {
- if (allowDefault === void 0) {
- allowDefault = true;
- }
-
- var oldInType = this.state.inType;
- var node = this.startNode();
- node.params = [];
- this.state.inType = true;
-
- if (this.isRelational("<") || this.match(types.jsxTagStart)) {
- this.next();
- } else {
- this.unexpected();
- }
-
- var defaultRequired = false;
-
- do {
- var typeParameter = this.flowParseTypeParameter(allowDefault, defaultRequired);
- node.params.push(typeParameter);
-
- if (typeParameter.default) {
- defaultRequired = true;
- }
-
- if (!this.isRelational(">")) {
- this.expect(types.comma);
- }
- } while (!this.isRelational(">"));
-
- this.expectRelational(">");
- this.state.inType = oldInType;
- return this.finishNode(node, "TypeParameterDeclaration");
- };
-
- _proto.flowParseTypeParameterInstantiation = function flowParseTypeParameterInstantiation() {
- var node = this.startNode();
- var oldInType = this.state.inType;
- node.params = [];
- this.state.inType = true;
- this.expectRelational("<");
-
- while (!this.isRelational(">")) {
- node.params.push(this.flowParseType());
-
- if (!this.isRelational(">")) {
- this.expect(types.comma);
- }
- }
-
- this.expectRelational(">");
- this.state.inType = oldInType;
- return this.finishNode(node, "TypeParameterInstantiation");
- };
-
- _proto.flowParseInterfaceType = function flowParseInterfaceType() {
- var node = this.startNode();
- this.expectContextual("interface");
- node.extends = [];
-
- if (this.eat(types._extends)) {
- do {
- node.extends.push(this.flowParseInterfaceExtends());
- } while (this.eat(types.comma));
- }
-
- node.body = this.flowParseObjectType(true, false, false, false);
- return this.finishNode(node, "InterfaceTypeAnnotation");
- };
-
- _proto.flowParseObjectPropertyKey = function flowParseObjectPropertyKey() {
- return this.match(types.num) || this.match(types.string) ? this.parseExprAtom() : this.parseIdentifier(true);
- };
-
- _proto.flowParseObjectTypeIndexer = function flowParseObjectTypeIndexer(node, isStatic, variance) {
- node.static = isStatic;
-
- if (this.lookahead().type === types.colon) {
- node.id = this.flowParseObjectPropertyKey();
- node.key = this.flowParseTypeInitialiser();
- } else {
- node.id = null;
- node.key = this.flowParseType();
- }
-
- this.expect(types.bracketR);
- node.value = this.flowParseTypeInitialiser();
- node.variance = variance;
- return this.finishNode(node, "ObjectTypeIndexer");
- };
-
- _proto.flowParseObjectTypeInternalSlot = function flowParseObjectTypeInternalSlot(node, isStatic) {
- node.static = isStatic;
- node.id = this.flowParseObjectPropertyKey();
- this.expect(types.bracketR);
- this.expect(types.bracketR);
-
- if (this.isRelational("<") || this.match(types.parenL)) {
- node.method = true;
- node.optional = false;
- node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.start, node.loc.start));
- } else {
- node.method = false;
-
- if (this.eat(types.question)) {
- node.optional = true;
- }
-
- node.value = this.flowParseTypeInitialiser();
- }
-
- return this.finishNode(node, "ObjectTypeInternalSlot");
- };
-
- _proto.flowParseObjectTypeMethodish = function flowParseObjectTypeMethodish(node) {
- node.params = [];
- node.rest = null;
- node.typeParameters = null;
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration(false);
- }
-
- this.expect(types.parenL);
-
- while (!this.match(types.parenR) && !this.match(types.ellipsis)) {
- node.params.push(this.flowParseFunctionTypeParam());
-
- if (!this.match(types.parenR)) {
- this.expect(types.comma);
- }
- }
-
- if (this.eat(types.ellipsis)) {
- node.rest = this.flowParseFunctionTypeParam();
- }
-
- this.expect(types.parenR);
- node.returnType = this.flowParseTypeInitialiser();
- return this.finishNode(node, "FunctionTypeAnnotation");
- };
-
- _proto.flowParseObjectTypeCallProperty = function flowParseObjectTypeCallProperty(node, isStatic) {
- var valueNode = this.startNode();
- node.static = isStatic;
- node.value = this.flowParseObjectTypeMethodish(valueNode);
- return this.finishNode(node, "ObjectTypeCallProperty");
- };
-
- _proto.flowParseObjectType = function flowParseObjectType(allowStatic, allowExact, allowSpread, allowProto) {
- var oldInType = this.state.inType;
- this.state.inType = true;
- var nodeStart = this.startNode();
- nodeStart.callProperties = [];
- nodeStart.properties = [];
- nodeStart.indexers = [];
- nodeStart.internalSlots = [];
- var endDelim;
- var exact;
-
- if (allowExact && this.match(types.braceBarL)) {
- this.expect(types.braceBarL);
- endDelim = types.braceBarR;
- exact = true;
- } else {
- this.expect(types.braceL);
- endDelim = types.braceR;
- exact = false;
- }
-
- nodeStart.exact = exact;
-
- while (!this.match(endDelim)) {
- var isStatic = false;
- var protoStart = null;
- var node = this.startNode();
-
- if (allowProto && this.isContextual("proto")) {
- var lookahead = this.lookahead();
-
- if (lookahead.type !== types.colon && lookahead.type !== types.question) {
- this.next();
- protoStart = this.state.start;
- allowStatic = false;
- }
- }
-
- if (allowStatic && this.isContextual("static")) {
- var _lookahead = this.lookahead();
-
- if (_lookahead.type !== types.colon && _lookahead.type !== types.question) {
- this.next();
- isStatic = true;
- }
- }
-
- var variance = this.flowParseVariance();
-
- if (this.eat(types.bracketL)) {
- if (protoStart != null) {
- this.unexpected(protoStart);
- }
-
- if (this.eat(types.bracketL)) {
- if (variance) {
- this.unexpected(variance.start);
- }
-
- nodeStart.internalSlots.push(this.flowParseObjectTypeInternalSlot(node, isStatic));
- } else {
- nodeStart.indexers.push(this.flowParseObjectTypeIndexer(node, isStatic, variance));
- }
- } else if (this.match(types.parenL) || this.isRelational("<")) {
- if (protoStart != null) {
- this.unexpected(protoStart);
- }
-
- if (variance) {
- this.unexpected(variance.start);
- }
-
- nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node, isStatic));
- } else {
- var kind = "init";
-
- if (this.isContextual("get") || this.isContextual("set")) {
- var _lookahead2 = this.lookahead();
-
- if (_lookahead2.type === types.name || _lookahead2.type === types.string || _lookahead2.type === types.num) {
- kind = this.state.value;
- this.next();
- }
- }
-
- nodeStart.properties.push(this.flowParseObjectTypeProperty(node, isStatic, protoStart, variance, kind, allowSpread));
- }
-
- this.flowObjectTypeSemicolon();
- }
-
- this.expect(endDelim);
- var out = this.finishNode(nodeStart, "ObjectTypeAnnotation");
- this.state.inType = oldInType;
- return out;
- };
-
- _proto.flowParseObjectTypeProperty = function flowParseObjectTypeProperty(node, isStatic, protoStart, variance, kind, allowSpread) {
- if (this.match(types.ellipsis)) {
- if (!allowSpread) {
- this.unexpected(null, "Spread operator cannot appear in class or interface definitions");
- }
-
- if (protoStart != null) {
- this.unexpected(protoStart);
- }
-
- if (variance) {
- this.unexpected(variance.start, "Spread properties cannot have variance");
- }
-
- this.expect(types.ellipsis);
- node.argument = this.flowParseType();
- return this.finishNode(node, "ObjectTypeSpreadProperty");
- } else {
- node.key = this.flowParseObjectPropertyKey();
- node.static = isStatic;
- node.proto = protoStart != null;
- node.kind = kind;
- var optional = false;
-
- if (this.isRelational("<") || this.match(types.parenL)) {
- node.method = true;
-
- if (protoStart != null) {
- this.unexpected(protoStart);
- }
-
- if (variance) {
- this.unexpected(variance.start);
- }
-
- node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(node.start, node.loc.start));
-
- if (kind === "get" || kind === "set") {
- this.flowCheckGetterSetterParams(node);
- }
- } else {
- if (kind !== "init") this.unexpected();
- node.method = false;
-
- if (this.eat(types.question)) {
- optional = true;
- }
-
- node.value = this.flowParseTypeInitialiser();
- node.variance = variance;
- }
-
- node.optional = optional;
- return this.finishNode(node, "ObjectTypeProperty");
- }
- };
-
- _proto.flowCheckGetterSetterParams = function flowCheckGetterSetterParams(property) {
- var paramCount = property.kind === "get" ? 0 : 1;
- var start = property.start;
- var length = property.value.params.length + (property.value.rest ? 1 : 0);
-
- if (length !== paramCount) {
- if (property.kind === "get") {
- this.raise(start, "getter must not have any formal parameters");
- } else {
- this.raise(start, "setter must have exactly one formal parameter");
- }
- }
-
- if (property.kind === "set" && property.value.rest) {
- this.raise(start, "setter function argument must not be a rest parameter");
- }
- };
-
- _proto.flowObjectTypeSemicolon = function flowObjectTypeSemicolon() {
- if (!this.eat(types.semi) && !this.eat(types.comma) && !this.match(types.braceR) && !this.match(types.braceBarR)) {
- this.unexpected();
- }
- };
-
- _proto.flowParseQualifiedTypeIdentifier = function flowParseQualifiedTypeIdentifier(startPos, startLoc, id) {
- startPos = startPos || this.state.start;
- startLoc = startLoc || this.state.startLoc;
- var node = id || this.parseIdentifier();
-
- while (this.eat(types.dot)) {
- var node2 = this.startNodeAt(startPos, startLoc);
- node2.qualification = node;
- node2.id = this.parseIdentifier();
- node = this.finishNode(node2, "QualifiedTypeIdentifier");
- }
-
- return node;
- };
-
- _proto.flowParseGenericType = function flowParseGenericType(startPos, startLoc, id) {
- var node = this.startNodeAt(startPos, startLoc);
- node.typeParameters = null;
- node.id = this.flowParseQualifiedTypeIdentifier(startPos, startLoc, id);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterInstantiation();
- }
-
- return this.finishNode(node, "GenericTypeAnnotation");
- };
-
- _proto.flowParseTypeofType = function flowParseTypeofType() {
- var node = this.startNode();
- this.expect(types._typeof);
- node.argument = this.flowParsePrimaryType();
- return this.finishNode(node, "TypeofTypeAnnotation");
- };
-
- _proto.flowParseTupleType = function flowParseTupleType() {
- var node = this.startNode();
- node.types = [];
- this.expect(types.bracketL);
-
- while (this.state.pos < this.input.length && !this.match(types.bracketR)) {
- node.types.push(this.flowParseType());
- if (this.match(types.bracketR)) break;
- this.expect(types.comma);
- }
-
- this.expect(types.bracketR);
- return this.finishNode(node, "TupleTypeAnnotation");
- };
-
- _proto.flowParseFunctionTypeParam = function flowParseFunctionTypeParam() {
- var name = null;
- var optional = false;
- var typeAnnotation = null;
- var node = this.startNode();
- var lh = this.lookahead();
-
- if (lh.type === types.colon || lh.type === types.question) {
- name = this.parseIdentifier();
-
- if (this.eat(types.question)) {
- optional = true;
- }
-
- typeAnnotation = this.flowParseTypeInitialiser();
- } else {
- typeAnnotation = this.flowParseType();
- }
-
- node.name = name;
- node.optional = optional;
- node.typeAnnotation = typeAnnotation;
- return this.finishNode(node, "FunctionTypeParam");
- };
-
- _proto.reinterpretTypeAsFunctionTypeParam = function reinterpretTypeAsFunctionTypeParam(type) {
- var node = this.startNodeAt(type.start, type.loc.start);
- node.name = null;
- node.optional = false;
- node.typeAnnotation = type;
- return this.finishNode(node, "FunctionTypeParam");
- };
-
- _proto.flowParseFunctionTypeParams = function flowParseFunctionTypeParams(params) {
- if (params === void 0) {
- params = [];
- }
-
- var rest = null;
-
- while (!this.match(types.parenR) && !this.match(types.ellipsis)) {
- params.push(this.flowParseFunctionTypeParam());
-
- if (!this.match(types.parenR)) {
- this.expect(types.comma);
- }
- }
-
- if (this.eat(types.ellipsis)) {
- rest = this.flowParseFunctionTypeParam();
- }
-
- return {
- params: params,
- rest: rest
- };
- };
-
- _proto.flowIdentToTypeAnnotation = function flowIdentToTypeAnnotation(startPos, startLoc, node, id) {
- switch (id.name) {
- case "any":
- return this.finishNode(node, "AnyTypeAnnotation");
-
- case "void":
- return this.finishNode(node, "VoidTypeAnnotation");
-
- case "bool":
- case "boolean":
- return this.finishNode(node, "BooleanTypeAnnotation");
-
- case "mixed":
- return this.finishNode(node, "MixedTypeAnnotation");
-
- case "empty":
- return this.finishNode(node, "EmptyTypeAnnotation");
-
- case "number":
- return this.finishNode(node, "NumberTypeAnnotation");
-
- case "string":
- return this.finishNode(node, "StringTypeAnnotation");
-
- default:
- return this.flowParseGenericType(startPos, startLoc, id);
- }
- };
-
- _proto.flowParsePrimaryType = function flowParsePrimaryType() {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var node = this.startNode();
- var tmp;
- var type;
- var isGroupedType = false;
- var oldNoAnonFunctionType = this.state.noAnonFunctionType;
-
- switch (this.state.type) {
- case types.name:
- if (this.isContextual("interface")) {
- return this.flowParseInterfaceType();
- }
-
- return this.flowIdentToTypeAnnotation(startPos, startLoc, node, this.parseIdentifier());
-
- case types.braceL:
- return this.flowParseObjectType(false, false, true, false);
-
- case types.braceBarL:
- return this.flowParseObjectType(false, true, true, false);
-
- case types.bracketL:
- return this.flowParseTupleType();
-
- case types.relational:
- if (this.state.value === "<") {
- node.typeParameters = this.flowParseTypeParameterDeclaration(false);
- this.expect(types.parenL);
- tmp = this.flowParseFunctionTypeParams();
- node.params = tmp.params;
- node.rest = tmp.rest;
- this.expect(types.parenR);
- this.expect(types.arrow);
- node.returnType = this.flowParseType();
- return this.finishNode(node, "FunctionTypeAnnotation");
- }
-
- break;
-
- case types.parenL:
- this.next();
-
- if (!this.match(types.parenR) && !this.match(types.ellipsis)) {
- if (this.match(types.name)) {
- var token = this.lookahead().type;
- isGroupedType = token !== types.question && token !== types.colon;
- } else {
- isGroupedType = true;
- }
- }
-
- if (isGroupedType) {
- this.state.noAnonFunctionType = false;
- type = this.flowParseType();
- this.state.noAnonFunctionType = oldNoAnonFunctionType;
-
- if (this.state.noAnonFunctionType || !(this.match(types.comma) || this.match(types.parenR) && this.lookahead().type === types.arrow)) {
- this.expect(types.parenR);
- return type;
- } else {
- this.eat(types.comma);
- }
- }
-
- if (type) {
- tmp = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(type)]);
- } else {
- tmp = this.flowParseFunctionTypeParams();
- }
-
- node.params = tmp.params;
- node.rest = tmp.rest;
- this.expect(types.parenR);
- this.expect(types.arrow);
- node.returnType = this.flowParseType();
- node.typeParameters = null;
- return this.finishNode(node, "FunctionTypeAnnotation");
-
- case types.string:
- return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation");
-
- case types._true:
- case types._false:
- node.value = this.match(types._true);
- this.next();
- return this.finishNode(node, "BooleanLiteralTypeAnnotation");
-
- case types.plusMin:
- if (this.state.value === "-") {
- this.next();
-
- if (!this.match(types.num)) {
- this.unexpected(null, "Unexpected token, expected \"number\"");
- }
-
- return this.parseLiteral(-this.state.value, "NumberLiteralTypeAnnotation", node.start, node.loc.start);
- }
-
- this.unexpected();
-
- case types.num:
- return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");
-
- case types._null:
- this.next();
- return this.finishNode(node, "NullLiteralTypeAnnotation");
-
- case types._this:
- this.next();
- return this.finishNode(node, "ThisTypeAnnotation");
-
- case types.star:
- this.next();
- return this.finishNode(node, "ExistsTypeAnnotation");
-
- default:
- if (this.state.type.keyword === "typeof") {
- return this.flowParseTypeofType();
- }
-
- }
-
- throw this.unexpected();
- };
-
- _proto.flowParsePostfixType = function flowParsePostfixType() {
- var startPos = this.state.start,
- startLoc = this.state.startLoc;
- var type = this.flowParsePrimaryType();
-
- while (!this.canInsertSemicolon() && this.match(types.bracketL)) {
- var node = this.startNodeAt(startPos, startLoc);
- node.elementType = type;
- this.expect(types.bracketL);
- this.expect(types.bracketR);
- type = this.finishNode(node, "ArrayTypeAnnotation");
- }
-
- return type;
- };
-
- _proto.flowParsePrefixType = function flowParsePrefixType() {
- var node = this.startNode();
-
- if (this.eat(types.question)) {
- node.typeAnnotation = this.flowParsePrefixType();
- return this.finishNode(node, "NullableTypeAnnotation");
- } else {
- return this.flowParsePostfixType();
- }
- };
-
- _proto.flowParseAnonFunctionWithoutParens = function flowParseAnonFunctionWithoutParens() {
- var param = this.flowParsePrefixType();
-
- if (!this.state.noAnonFunctionType && this.eat(types.arrow)) {
- var node = this.startNodeAt(param.start, param.loc.start);
- node.params = [this.reinterpretTypeAsFunctionTypeParam(param)];
- node.rest = null;
- node.returnType = this.flowParseType();
- node.typeParameters = null;
- return this.finishNode(node, "FunctionTypeAnnotation");
- }
-
- return param;
- };
-
- _proto.flowParseIntersectionType = function flowParseIntersectionType() {
- var node = this.startNode();
- this.eat(types.bitwiseAND);
- var type = this.flowParseAnonFunctionWithoutParens();
- node.types = [type];
-
- while (this.eat(types.bitwiseAND)) {
- node.types.push(this.flowParseAnonFunctionWithoutParens());
- }
-
- return node.types.length === 1 ? type : this.finishNode(node, "IntersectionTypeAnnotation");
- };
-
- _proto.flowParseUnionType = function flowParseUnionType() {
- var node = this.startNode();
- this.eat(types.bitwiseOR);
- var type = this.flowParseIntersectionType();
- node.types = [type];
-
- while (this.eat(types.bitwiseOR)) {
- node.types.push(this.flowParseIntersectionType());
- }
-
- return node.types.length === 1 ? type : this.finishNode(node, "UnionTypeAnnotation");
- };
-
- _proto.flowParseType = function flowParseType() {
- var oldInType = this.state.inType;
- this.state.inType = true;
- var type = this.flowParseUnionType();
- this.state.inType = oldInType;
- this.state.exprAllowed = this.state.exprAllowed || this.state.noAnonFunctionType;
- return type;
- };
-
- _proto.flowParseTypeAnnotation = function flowParseTypeAnnotation() {
- var node = this.startNode();
- node.typeAnnotation = this.flowParseTypeInitialiser();
- return this.finishNode(node, "TypeAnnotation");
- };
-
- _proto.flowParseTypeAnnotatableIdentifier = function flowParseTypeAnnotatableIdentifier(allowPrimitiveOverride) {
- var ident = allowPrimitiveOverride ? this.parseIdentifier() : this.flowParseRestrictedIdentifier();
-
- if (this.match(types.colon)) {
- ident.typeAnnotation = this.flowParseTypeAnnotation();
- this.finishNode(ident, ident.type);
- }
-
- return ident;
- };
-
- _proto.typeCastToParameter = function typeCastToParameter(node) {
- node.expression.typeAnnotation = node.typeAnnotation;
- return this.finishNodeAt(node.expression, node.expression.type, node.typeAnnotation.end, node.typeAnnotation.loc.end);
- };
-
- _proto.flowParseVariance = function flowParseVariance() {
- var variance = null;
-
- if (this.match(types.plusMin)) {
- variance = this.startNode();
-
- if (this.state.value === "+") {
- variance.kind = "plus";
- } else {
- variance.kind = "minus";
- }
-
- this.next();
- this.finishNode(variance, "Variance");
- }
-
- return variance;
- };
-
- _proto.parseFunctionBody = function parseFunctionBody(node, allowExpressionBody) {
- var _this3 = this;
-
- if (allowExpressionBody) {
- return this.forwardNoArrowParamsConversionAt(node, function () {
- return _superClass.prototype.parseFunctionBody.call(_this3, node, true);
- });
- }
-
- return _superClass.prototype.parseFunctionBody.call(this, node, false);
- };
-
- _proto.parseFunctionBodyAndFinish = function parseFunctionBodyAndFinish(node, type, allowExpressionBody) {
- if (!allowExpressionBody && this.match(types.colon)) {
- var typeNode = this.startNode();
-
- var _this$flowParseTypeAn2 = this.flowParseTypeAndPredicateInitialiser();
-
- typeNode.typeAnnotation = _this$flowParseTypeAn2[0];
- node.predicate = _this$flowParseTypeAn2[1];
- node.returnType = typeNode.typeAnnotation ? this.finishNode(typeNode, "TypeAnnotation") : null;
- }
-
- _superClass.prototype.parseFunctionBodyAndFinish.call(this, node, type, allowExpressionBody);
- };
-
- _proto.parseStatement = function parseStatement(declaration, topLevel) {
- if (this.state.strict && this.match(types.name) && this.state.value === "interface") {
- var node = this.startNode();
- this.next();
- return this.flowParseInterface(node);
- } else {
- var stmt = _superClass.prototype.parseStatement.call(this, declaration, topLevel);
-
- if (this.flowPragma === undefined && !this.isValidDirective(stmt)) {
- this.flowPragma = null;
- }
-
- return stmt;
- }
- };
-
- _proto.parseExpressionStatement = function parseExpressionStatement(node, expr) {
- if (expr.type === "Identifier") {
- if (expr.name === "declare") {
- if (this.match(types._class) || this.match(types.name) || this.match(types._function) || this.match(types._var) || this.match(types._export)) {
- return this.flowParseDeclare(node);
- }
- } else if (this.match(types.name)) {
- if (expr.name === "interface") {
- return this.flowParseInterface(node);
- } else if (expr.name === "type") {
- return this.flowParseTypeAlias(node);
- } else if (expr.name === "opaque") {
- return this.flowParseOpaqueType(node, false);
- }
- }
- }
-
- return _superClass.prototype.parseExpressionStatement.call(this, node, expr);
- };
-
- _proto.shouldParseExportDeclaration = function shouldParseExportDeclaration() {
- return this.isContextual("type") || this.isContextual("interface") || this.isContextual("opaque") || _superClass.prototype.shouldParseExportDeclaration.call(this);
- };
-
- _proto.isExportDefaultSpecifier = function isExportDefaultSpecifier() {
- if (this.match(types.name) && (this.state.value === "type" || this.state.value === "interface" || this.state.value == "opaque")) {
- return false;
- }
-
- return _superClass.prototype.isExportDefaultSpecifier.call(this);
- };
-
- _proto.parseConditional = function parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos) {
- var _this4 = this;
-
- if (!this.match(types.question)) return expr;
-
- if (refNeedsArrowPos) {
- var _state = this.state.clone();
-
- try {
- return _superClass.prototype.parseConditional.call(this, expr, noIn, startPos, startLoc);
- } catch (err) {
- if (err instanceof SyntaxError) {
- this.state = _state;
- refNeedsArrowPos.start = err.pos || this.state.start;
- return expr;
- } else {
- throw err;
- }
- }
- }
-
- this.expect(types.question);
- var state = this.state.clone();
- var originalNoArrowAt = this.state.noArrowAt;
- var node = this.startNodeAt(startPos, startLoc);
-
- var _this$tryParseConditi = this.tryParseConditionalConsequent(),
- consequent = _this$tryParseConditi.consequent,
- failed = _this$tryParseConditi.failed;
-
- var _this$getArrowLikeExp = this.getArrowLikeExpressions(consequent),
- valid = _this$getArrowLikeExp[0],
- invalid = _this$getArrowLikeExp[1];
-
- if (failed || invalid.length > 0) {
- var noArrowAt = originalNoArrowAt.concat();
-
- if (invalid.length > 0) {
- this.state = state;
- this.state.noArrowAt = noArrowAt;
-
- for (var i = 0; i < invalid.length; i++) {
- noArrowAt.push(invalid[i].start);
- }
-
- var _this$tryParseConditi2 = this.tryParseConditionalConsequent();
-
- consequent = _this$tryParseConditi2.consequent;
- failed = _this$tryParseConditi2.failed;
-
- var _this$getArrowLikeExp2 = this.getArrowLikeExpressions(consequent);
-
- valid = _this$getArrowLikeExp2[0];
- invalid = _this$getArrowLikeExp2[1];
- }
-
- if (failed && valid.length > 1) {
- this.raise(state.start, "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.");
- }
-
- if (failed && valid.length === 1) {
- this.state = state;
- this.state.noArrowAt = noArrowAt.concat(valid[0].start);
-
- var _this$tryParseConditi3 = this.tryParseConditionalConsequent();
-
- consequent = _this$tryParseConditi3.consequent;
- failed = _this$tryParseConditi3.failed;
- }
-
- this.getArrowLikeExpressions(consequent, true);
- }
-
- this.state.noArrowAt = originalNoArrowAt;
- this.expect(types.colon);
- node.test = expr;
- node.consequent = consequent;
- node.alternate = this.forwardNoArrowParamsConversionAt(node, function () {
- return _this4.parseMaybeAssign(noIn, undefined, undefined, undefined);
- });
- return this.finishNode(node, "ConditionalExpression");
- };
-
- _proto.tryParseConditionalConsequent = function tryParseConditionalConsequent() {
- this.state.noArrowParamsConversionAt.push(this.state.start);
- var consequent = this.parseMaybeAssign();
- var failed = !this.match(types.colon);
- this.state.noArrowParamsConversionAt.pop();
- return {
- consequent: consequent,
- failed: failed
- };
- };
-
- _proto.getArrowLikeExpressions = function getArrowLikeExpressions(node, disallowInvalid) {
- var _this5 = this;
-
- var stack = [node];
- var arrows = [];
-
- while (stack.length !== 0) {
- var _node = stack.pop();
-
- if (_node.type === "ArrowFunctionExpression") {
- if (_node.typeParameters || !_node.returnType) {
- this.toAssignableList(_node.params, true, "arrow function parameters");
-
- _superClass.prototype.checkFunctionNameAndParams.call(this, _node, true);
- } else {
- arrows.push(_node);
- }
-
- stack.push(_node.body);
- } else if (_node.type === "ConditionalExpression") {
- stack.push(_node.consequent);
- stack.push(_node.alternate);
- }
- }
-
- if (disallowInvalid) {
- for (var i = 0; i < arrows.length; i++) {
- this.toAssignableList(node.params, true, "arrow function parameters");
- }
-
- return [arrows, []];
- }
-
- return partition(arrows, function (node) {
- try {
- _this5.toAssignableList(node.params, true, "arrow function parameters");
-
- return true;
- } catch (err) {
- return false;
- }
- });
- };
-
- _proto.forwardNoArrowParamsConversionAt = function forwardNoArrowParamsConversionAt(node, parse) {
- var result;
-
- if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
- this.state.noArrowParamsConversionAt.push(this.state.start);
- result = parse();
- this.state.noArrowParamsConversionAt.pop();
- } else {
- result = parse();
- }
-
- return result;
- };
-
- _proto.parseParenItem = function parseParenItem(node, startPos, startLoc) {
- node = _superClass.prototype.parseParenItem.call(this, node, startPos, startLoc);
-
- if (this.eat(types.question)) {
- node.optional = true;
- }
-
- if (this.match(types.colon)) {
- var typeCastNode = this.startNodeAt(startPos, startLoc);
- typeCastNode.expression = node;
- typeCastNode.typeAnnotation = this.flowParseTypeAnnotation();
- return this.finishNode(typeCastNode, "TypeCastExpression");
- }
-
- return node;
- };
-
- _proto.assertModuleNodeAllowed = function assertModuleNodeAllowed(node) {
- if (node.type === "ImportDeclaration" && (node.importKind === "type" || node.importKind === "typeof") || node.type === "ExportNamedDeclaration" && node.exportKind === "type" || node.type === "ExportAllDeclaration" && node.exportKind === "type") {
- return;
- }
-
- _superClass.prototype.assertModuleNodeAllowed.call(this, node);
- };
-
- _proto.parseExport = function parseExport(node) {
- node = _superClass.prototype.parseExport.call(this, node);
-
- if (node.type === "ExportNamedDeclaration" || node.type === "ExportAllDeclaration") {
- node.exportKind = node.exportKind || "value";
- }
-
- return node;
- };
-
- _proto.parseExportDeclaration = function parseExportDeclaration(node) {
- if (this.isContextual("type")) {
- node.exportKind = "type";
- var declarationNode = this.startNode();
- this.next();
-
- if (this.match(types.braceL)) {
- node.specifiers = this.parseExportSpecifiers();
- this.parseExportFrom(node);
- return null;
- } else {
- return this.flowParseTypeAlias(declarationNode);
- }
- } else if (this.isContextual("opaque")) {
- node.exportKind = "type";
-
- var _declarationNode = this.startNode();
-
- this.next();
- return this.flowParseOpaqueType(_declarationNode, false);
- } else if (this.isContextual("interface")) {
- node.exportKind = "type";
-
- var _declarationNode2 = this.startNode();
-
- this.next();
- return this.flowParseInterface(_declarationNode2);
- } else {
- return _superClass.prototype.parseExportDeclaration.call(this, node);
- }
- };
-
- _proto.shouldParseExportStar = function shouldParseExportStar() {
- return _superClass.prototype.shouldParseExportStar.call(this) || this.isContextual("type") && this.lookahead().type === types.star;
- };
-
- _proto.parseExportStar = function parseExportStar(node) {
- if (this.eatContextual("type")) {
- node.exportKind = "type";
- }
-
- return _superClass.prototype.parseExportStar.call(this, node);
- };
-
- _proto.parseExportNamespace = function parseExportNamespace(node) {
- if (node.exportKind === "type") {
- this.unexpected();
- }
-
- return _superClass.prototype.parseExportNamespace.call(this, node);
- };
-
- _proto.parseClassId = function parseClassId(node, isStatement, optionalId) {
- _superClass.prototype.parseClassId.call(this, node, isStatement, optionalId);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration();
- }
- };
-
- _proto.isKeyword = function isKeyword$$1(name) {
- if (this.state.inType && name === "void") {
- return false;
- } else {
- return _superClass.prototype.isKeyword.call(this, name);
- }
- };
-
- _proto.readToken = function readToken(code) {
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (this.state.inType && (code === 62 || code === 60)) {
- return this.finishOp(types.relational, 1);
- } else if (isIteratorStart(code, next)) {
- this.state.isIterator = true;
- return _superClass.prototype.readWord.call(this);
- } else {
- return _superClass.prototype.readToken.call(this, code);
- }
- };
-
- _proto.toAssignable = function toAssignable(node, isBinding, contextDescription) {
- if (node.type === "TypeCastExpression") {
- return _superClass.prototype.toAssignable.call(this, this.typeCastToParameter(node), isBinding, contextDescription);
- } else {
- return _superClass.prototype.toAssignable.call(this, node, isBinding, contextDescription);
- }
- };
-
- _proto.toAssignableList = function toAssignableList(exprList, isBinding, contextDescription) {
- for (var i = 0; i < exprList.length; i++) {
- var expr = exprList[i];
-
- if (expr && expr.type === "TypeCastExpression") {
- exprList[i] = this.typeCastToParameter(expr);
- }
- }
-
- return _superClass.prototype.toAssignableList.call(this, exprList, isBinding, contextDescription);
- };
-
- _proto.toReferencedList = function toReferencedList(exprList) {
- for (var i = 0; i < exprList.length; i++) {
- var expr = exprList[i];
-
- if (expr && expr._exprListItem && expr.type === "TypeCastExpression") {
- this.raise(expr.start, "Unexpected type cast");
- }
- }
-
- return exprList;
- };
-
- _proto.parseExprListItem = function parseExprListItem(allowEmpty, refShorthandDefaultPos, refNeedsArrowPos) {
- var container = this.startNode();
-
- var node = _superClass.prototype.parseExprListItem.call(this, allowEmpty, refShorthandDefaultPos, refNeedsArrowPos);
-
- if (this.match(types.colon)) {
- container._exprListItem = true;
- container.expression = node;
- container.typeAnnotation = this.flowParseTypeAnnotation();
- return this.finishNode(container, "TypeCastExpression");
- } else {
- return node;
- }
- };
-
- _proto.checkLVal = function checkLVal(expr, isBinding, checkClashes, contextDescription) {
- if (expr.type !== "TypeCastExpression") {
- return _superClass.prototype.checkLVal.call(this, expr, isBinding, checkClashes, contextDescription);
- }
- };
-
- _proto.parseClassProperty = function parseClassProperty(node) {
- if (this.match(types.colon)) {
- node.typeAnnotation = this.flowParseTypeAnnotation();
- }
-
- return _superClass.prototype.parseClassProperty.call(this, node);
- };
-
- _proto.isClassMethod = function isClassMethod() {
- return this.isRelational("<") || _superClass.prototype.isClassMethod.call(this);
- };
-
- _proto.isClassProperty = function isClassProperty() {
- return this.match(types.colon) || _superClass.prototype.isClassProperty.call(this);
- };
-
- _proto.isNonstaticConstructor = function isNonstaticConstructor(method) {
- return !this.match(types.colon) && _superClass.prototype.isNonstaticConstructor.call(this, method);
- };
-
- _proto.pushClassMethod = function pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor) {
- if (method.variance) {
- this.unexpected(method.variance.start);
- }
-
- delete method.variance;
-
- if (this.isRelational("<")) {
- method.typeParameters = this.flowParseTypeParameterDeclaration(false);
- }
-
- _superClass.prototype.pushClassMethod.call(this, classBody, method, isGenerator, isAsync, isConstructor);
- };
-
- _proto.pushClassPrivateMethod = function pushClassPrivateMethod(classBody, method, isGenerator, isAsync) {
- if (method.variance) {
- this.unexpected(method.variance.start);
- }
-
- delete method.variance;
-
- if (this.isRelational("<")) {
- method.typeParameters = this.flowParseTypeParameterDeclaration();
- }
-
- _superClass.prototype.pushClassPrivateMethod.call(this, classBody, method, isGenerator, isAsync);
- };
-
- _proto.parseClassSuper = function parseClassSuper(node) {
- _superClass.prototype.parseClassSuper.call(this, node);
-
- if (node.superClass && this.isRelational("<")) {
- node.superTypeParameters = this.flowParseTypeParameterInstantiation();
- }
-
- if (this.isContextual("implements")) {
- this.next();
- var implemented = node.implements = [];
-
- do {
- var _node2 = this.startNode();
-
- _node2.id = this.flowParseRestrictedIdentifier(true);
-
- if (this.isRelational("<")) {
- _node2.typeParameters = this.flowParseTypeParameterInstantiation();
- } else {
- _node2.typeParameters = null;
- }
-
- implemented.push(this.finishNode(_node2, "ClassImplements"));
- } while (this.eat(types.comma));
- }
- };
-
- _proto.parsePropertyName = function parsePropertyName(node) {
- var variance = this.flowParseVariance();
-
- var key = _superClass.prototype.parsePropertyName.call(this, node);
-
- node.variance = variance;
- return key;
- };
-
- _proto.parseObjPropValue = function parseObjPropValue(prop, startPos, startLoc, isGenerator, isAsync, isPattern, refShorthandDefaultPos, containsEsc) {
- if (prop.variance) {
- this.unexpected(prop.variance.start);
- }
-
- delete prop.variance;
- var typeParameters;
-
- if (this.isRelational("<")) {
- typeParameters = this.flowParseTypeParameterDeclaration(false);
- if (!this.match(types.parenL)) this.unexpected();
- }
-
- _superClass.prototype.parseObjPropValue.call(this, prop, startPos, startLoc, isGenerator, isAsync, isPattern, refShorthandDefaultPos, containsEsc);
-
- if (typeParameters) {
- (prop.value || prop).typeParameters = typeParameters;
- }
- };
-
- _proto.parseAssignableListItemTypes = function parseAssignableListItemTypes(param) {
- if (this.eat(types.question)) {
- if (param.type !== "Identifier") {
- throw this.raise(param.start, "A binding pattern parameter cannot be optional in an implementation signature.");
- }
-
- param.optional = true;
- }
-
- if (this.match(types.colon)) {
- param.typeAnnotation = this.flowParseTypeAnnotation();
- }
-
- this.finishNode(param, param.type);
- return param;
- };
-
- _proto.parseMaybeDefault = function parseMaybeDefault(startPos, startLoc, left) {
- var node = _superClass.prototype.parseMaybeDefault.call(this, startPos, startLoc, left);
-
- if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) {
- this.raise(node.typeAnnotation.start, "Type annotations must come before default assignments, " + "e.g. instead of `age = 25: number` use `age: number = 25`");
- }
-
- return node;
- };
-
- _proto.shouldParseDefaultImport = function shouldParseDefaultImport(node) {
- if (!hasTypeImportKind(node)) {
- return _superClass.prototype.shouldParseDefaultImport.call(this, node);
- }
-
- return isMaybeDefaultImport(this.state);
- };
-
- _proto.parseImportSpecifierLocal = function parseImportSpecifierLocal(node, specifier, type, contextDescription) {
- specifier.local = hasTypeImportKind(node) ? this.flowParseRestrictedIdentifier(true) : this.parseIdentifier();
- this.checkLVal(specifier.local, true, undefined, contextDescription);
- node.specifiers.push(this.finishNode(specifier, type));
- };
-
- _proto.parseImportSpecifiers = function parseImportSpecifiers(node) {
- node.importKind = "value";
- var kind = null;
-
- if (this.match(types._typeof)) {
- kind = "typeof";
- } else if (this.isContextual("type")) {
- kind = "type";
- }
-
- if (kind) {
- var lh = this.lookahead();
-
- if (kind === "type" && lh.type === types.star) {
- this.unexpected(lh.start);
- }
-
- if (isMaybeDefaultImport(lh) || lh.type === types.braceL || lh.type === types.star) {
- this.next();
- node.importKind = kind;
- }
- }
-
- _superClass.prototype.parseImportSpecifiers.call(this, node);
- };
-
- _proto.parseImportSpecifier = function parseImportSpecifier(node) {
- var specifier = this.startNode();
- var firstIdentLoc = this.state.start;
- var firstIdent = this.parseIdentifier(true);
- var specifierTypeKind = null;
-
- if (firstIdent.name === "type") {
- specifierTypeKind = "type";
- } else if (firstIdent.name === "typeof") {
- specifierTypeKind = "typeof";
- }
-
- var isBinding = false;
-
- if (this.isContextual("as") && !this.isLookaheadContextual("as")) {
- var as_ident = this.parseIdentifier(true);
-
- if (specifierTypeKind !== null && !this.match(types.name) && !this.state.type.keyword) {
- specifier.imported = as_ident;
- specifier.importKind = specifierTypeKind;
- specifier.local = as_ident.__clone();
- } else {
- specifier.imported = firstIdent;
- specifier.importKind = null;
- specifier.local = this.parseIdentifier();
- }
- } else if (specifierTypeKind !== null && (this.match(types.name) || this.state.type.keyword)) {
- specifier.imported = this.parseIdentifier(true);
- specifier.importKind = specifierTypeKind;
-
- if (this.eatContextual("as")) {
- specifier.local = this.parseIdentifier();
- } else {
- isBinding = true;
- specifier.local = specifier.imported.__clone();
- }
- } else {
- isBinding = true;
- specifier.imported = firstIdent;
- specifier.importKind = null;
- specifier.local = specifier.imported.__clone();
- }
-
- var nodeIsTypeImport = hasTypeImportKind(node);
- var specifierIsTypeImport = hasTypeImportKind(specifier);
-
- if (nodeIsTypeImport && specifierIsTypeImport) {
- this.raise(firstIdentLoc, "The `type` and `typeof` keywords on named imports can only be used on regular " + "`import` statements. It cannot be used with `import type` or `import typeof` statements");
- }
-
- if (nodeIsTypeImport || specifierIsTypeImport) {
- this.checkReservedType(specifier.local.name, specifier.local.start);
- }
-
- if (isBinding && !nodeIsTypeImport && !specifierIsTypeImport) {
- this.checkReservedWord(specifier.local.name, specifier.start, true, true);
- }
-
- this.checkLVal(specifier.local, true, undefined, "import specifier");
- node.specifiers.push(this.finishNode(specifier, "ImportSpecifier"));
- };
-
- _proto.parseFunctionParams = function parseFunctionParams(node) {
- var kind = node.kind;
-
- if (kind !== "get" && kind !== "set" && this.isRelational("<")) {
- node.typeParameters = this.flowParseTypeParameterDeclaration(false);
- }
-
- _superClass.prototype.parseFunctionParams.call(this, node);
- };
-
- _proto.parseVarHead = function parseVarHead(decl) {
- _superClass.prototype.parseVarHead.call(this, decl);
-
- if (this.match(types.colon)) {
- decl.id.typeAnnotation = this.flowParseTypeAnnotation();
- this.finishNode(decl.id, decl.id.type);
- }
- };
-
- _proto.parseAsyncArrowFromCallExpression = function parseAsyncArrowFromCallExpression(node, call) {
- if (this.match(types.colon)) {
- var oldNoAnonFunctionType = this.state.noAnonFunctionType;
- this.state.noAnonFunctionType = true;
- node.returnType = this.flowParseTypeAnnotation();
- this.state.noAnonFunctionType = oldNoAnonFunctionType;
- }
-
- return _superClass.prototype.parseAsyncArrowFromCallExpression.call(this, node, call);
- };
-
- _proto.shouldParseAsyncArrow = function shouldParseAsyncArrow() {
- return this.match(types.colon) || _superClass.prototype.shouldParseAsyncArrow.call(this);
- };
-
- _proto.parseMaybeAssign = function parseMaybeAssign(noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos) {
- var _this6 = this;
-
- var jsxError = null;
-
- if (types.jsxTagStart && this.match(types.jsxTagStart)) {
- var state = this.state.clone();
-
- try {
- return _superClass.prototype.parseMaybeAssign.call(this, noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos);
- } catch (err) {
- if (err instanceof SyntaxError) {
- this.state = state;
- this.state.context.length -= 2;
- jsxError = err;
- } else {
- throw err;
- }
- }
- }
-
- if (jsxError != null || this.isRelational("<")) {
- var arrowExpression;
- var typeParameters;
-
- try {
- typeParameters = this.flowParseTypeParameterDeclaration();
- arrowExpression = this.forwardNoArrowParamsConversionAt(typeParameters, function () {
- return _superClass.prototype.parseMaybeAssign.call(_this6, noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos);
- });
- arrowExpression.typeParameters = typeParameters;
- this.resetStartLocationFromNode(arrowExpression, typeParameters);
- } catch (err) {
- throw jsxError || err;
- }
-
- if (arrowExpression.type === "ArrowFunctionExpression") {
- return arrowExpression;
- } else if (jsxError != null) {
- throw jsxError;
- } else {
- this.raise(typeParameters.start, "Expected an arrow function after this type parameter declaration");
- }
- }
-
- return _superClass.prototype.parseMaybeAssign.call(this, noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos);
- };
-
- _proto.parseArrow = function parseArrow(node) {
- if (this.match(types.colon)) {
- var state = this.state.clone();
-
- try {
- var oldNoAnonFunctionType = this.state.noAnonFunctionType;
- this.state.noAnonFunctionType = true;
- var typeNode = this.startNode();
-
- var _this$flowParseTypeAn3 = this.flowParseTypeAndPredicateInitialiser();
-
- typeNode.typeAnnotation = _this$flowParseTypeAn3[0];
- node.predicate = _this$flowParseTypeAn3[1];
- this.state.noAnonFunctionType = oldNoAnonFunctionType;
- if (this.canInsertSemicolon()) this.unexpected();
- if (!this.match(types.arrow)) this.unexpected();
- node.returnType = typeNode.typeAnnotation ? this.finishNode(typeNode, "TypeAnnotation") : null;
- } catch (err) {
- if (err instanceof SyntaxError) {
- this.state = state;
- } else {
- throw err;
- }
- }
- }
-
- return _superClass.prototype.parseArrow.call(this, node);
- };
-
- _proto.shouldParseArrow = function shouldParseArrow() {
- return this.match(types.colon) || _superClass.prototype.shouldParseArrow.call(this);
- };
-
- _proto.setArrowFunctionParameters = function setArrowFunctionParameters(node, params) {
- if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
- node.params = params;
- } else {
- _superClass.prototype.setArrowFunctionParameters.call(this, node, params);
- }
- };
-
- _proto.checkFunctionNameAndParams = function checkFunctionNameAndParams(node, isArrowFunction) {
- if (isArrowFunction && this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
- return;
- }
-
- return _superClass.prototype.checkFunctionNameAndParams.call(this, node, isArrowFunction);
- };
-
- _proto.parseParenAndDistinguishExpression = function parseParenAndDistinguishExpression(canBeArrow) {
- return _superClass.prototype.parseParenAndDistinguishExpression.call(this, canBeArrow && this.state.noArrowAt.indexOf(this.state.start) === -1);
- };
-
- _proto.parseSubscripts = function parseSubscripts(base, startPos, startLoc, noCalls) {
- if (base.type === "Identifier" && base.name === "async" && this.state.noArrowAt.indexOf(startPos) !== -1) {
- this.next();
- var node = this.startNodeAt(startPos, startLoc);
- node.callee = base;
- node.arguments = this.parseCallExpressionArguments(types.parenR, false);
- base = this.finishNode(node, "CallExpression");
- } else if (base.type === "Identifier" && base.name === "async" && this.isRelational("<")) {
- var state = this.state.clone();
- var error;
-
- try {
- var _node3 = this.parseAsyncArrowWithTypeParameters(startPos, startLoc);
-
- if (_node3) return _node3;
- } catch (e) {
- error = e;
- }
-
- this.state = state;
-
- try {
- return _superClass.prototype.parseSubscripts.call(this, base, startPos, startLoc, noCalls);
- } catch (e) {
- throw error || e;
- }
- }
-
- return _superClass.prototype.parseSubscripts.call(this, base, startPos, startLoc, noCalls);
- };
-
- _proto.parseSubscript = function parseSubscript(base, startPos, startLoc, noCalls, subscriptState) {
- if (this.match(types.questionDot) && this.isLookaheadRelational("<")) {
- this.expectPlugin("optionalChaining");
- subscriptState.optionalChainMember = true;
-
- if (noCalls) {
- subscriptState.stop = true;
- return base;
- }
-
- this.next();
- var node = this.startNodeAt(startPos, startLoc);
- node.callee = base;
- node.typeArguments = this.flowParseTypeParameterInstantiation();
- this.expect(types.parenL);
- node.arguments = this.parseCallExpressionArguments(types.parenR, false);
- node.optional = true;
- return this.finishNode(node, "OptionalCallExpression");
- } else if (!noCalls && this.shouldParseTypes() && this.isRelational("<")) {
- var _node4 = this.startNodeAt(startPos, startLoc);
-
- _node4.callee = base;
- var state = this.state.clone();
-
- try {
- _node4.typeArguments = this.flowParseTypeParameterInstantiation();
- this.expect(types.parenL);
- _node4.arguments = this.parseCallExpressionArguments(types.parenR, false);
-
- if (subscriptState.optionalChainMember) {
- _node4.optional = false;
- return this.finishNode(_node4, "OptionalCallExpression");
- }
-
- return this.finishNode(_node4, "CallExpression");
- } catch (e) {
- if (e instanceof SyntaxError) {
- this.state = state;
- } else {
- throw e;
- }
- }
- }
-
- return _superClass.prototype.parseSubscript.call(this, base, startPos, startLoc, noCalls, subscriptState);
- };
-
- _proto.parseNewArguments = function parseNewArguments(node) {
- var targs = null;
-
- if (this.shouldParseTypes() && this.isRelational("<")) {
- var state = this.state.clone();
-
- try {
- targs = this.flowParseTypeParameterInstantiation();
- } catch (e) {
- if (e instanceof SyntaxError) {
- this.state = state;
- } else {
- throw e;
- }
- }
- }
-
- node.typeArguments = targs;
-
- _superClass.prototype.parseNewArguments.call(this, node);
- };
-
- _proto.parseAsyncArrowWithTypeParameters = function parseAsyncArrowWithTypeParameters(startPos, startLoc) {
- var node = this.startNodeAt(startPos, startLoc);
- this.parseFunctionParams(node);
- if (!this.parseArrow(node)) return;
- return this.parseArrowExpression(node, undefined, true);
- };
-
- _proto.readToken_mult_modulo = function readToken_mult_modulo(code) {
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (code === 42 && next === 47 && this.state.hasFlowComment) {
- this.state.hasFlowComment = false;
- this.state.pos += 2;
- this.nextToken();
- return;
- }
-
- _superClass.prototype.readToken_mult_modulo.call(this, code);
- };
-
- _proto.skipBlockComment = function skipBlockComment() {
- if (this.hasPlugin("flow") && this.hasPlugin("flowComments") && this.skipFlowComment()) {
- this.hasFlowCommentCompletion();
- this.state.pos += this.skipFlowComment();
- this.state.hasFlowComment = true;
- return;
- }
-
- var end;
-
- if (this.hasPlugin("flow") && this.state.hasFlowComment) {
- end = this.input.indexOf("*-/", this.state.pos += 2);
- if (end === -1) this.raise(this.state.pos - 2, "Unterminated comment");
- this.state.pos = end + 3;
- return;
- }
-
- _superClass.prototype.skipBlockComment.call(this);
- };
-
- _proto.skipFlowComment = function skipFlowComment() {
- var ch2 = this.input.charCodeAt(this.state.pos + 2);
- var ch3 = this.input.charCodeAt(this.state.pos + 3);
-
- if (ch2 === 58 && ch3 === 58) {
- return 4;
- }
-
- if (this.input.slice(this.state.pos + 2, 14) === "flow-include") {
- return 14;
- }
-
- if (ch2 === 58 && ch3 !== 58 && 2) {
- return 2;
- }
-
- return false;
- };
-
- _proto.hasFlowCommentCompletion = function hasFlowCommentCompletion() {
- var end = this.input.indexOf("*/", this.state.pos);
-
- if (end === -1) {
- this.raise(this.state.pos, "Unterminated comment");
- }
- };
-
- return _class;
- }(superClass);
-});
-
-var entities = {
- quot: "\"",
- amp: "&",
- apos: "'",
- lt: "<",
- gt: ">",
- nbsp: "\xA0",
- iexcl: "\xA1",
- cent: "\xA2",
- pound: "\xA3",
- curren: "\xA4",
- yen: "\xA5",
- brvbar: "\xA6",
- sect: "\xA7",
- uml: "\xA8",
- copy: "\xA9",
- ordf: "\xAA",
- laquo: "\xAB",
- not: "\xAC",
- shy: "\xAD",
- reg: "\xAE",
- macr: "\xAF",
- deg: "\xB0",
- plusmn: "\xB1",
- sup2: "\xB2",
- sup3: "\xB3",
- acute: "\xB4",
- micro: "\xB5",
- para: "\xB6",
- middot: "\xB7",
- cedil: "\xB8",
- sup1: "\xB9",
- ordm: "\xBA",
- raquo: "\xBB",
- frac14: "\xBC",
- frac12: "\xBD",
- frac34: "\xBE",
- iquest: "\xBF",
- Agrave: "\xC0",
- Aacute: "\xC1",
- Acirc: "\xC2",
- Atilde: "\xC3",
- Auml: "\xC4",
- Aring: "\xC5",
- AElig: "\xC6",
- Ccedil: "\xC7",
- Egrave: "\xC8",
- Eacute: "\xC9",
- Ecirc: "\xCA",
- Euml: "\xCB",
- Igrave: "\xCC",
- Iacute: "\xCD",
- Icirc: "\xCE",
- Iuml: "\xCF",
- ETH: "\xD0",
- Ntilde: "\xD1",
- Ograve: "\xD2",
- Oacute: "\xD3",
- Ocirc: "\xD4",
- Otilde: "\xD5",
- Ouml: "\xD6",
- times: "\xD7",
- Oslash: "\xD8",
- Ugrave: "\xD9",
- Uacute: "\xDA",
- Ucirc: "\xDB",
- Uuml: "\xDC",
- Yacute: "\xDD",
- THORN: "\xDE",
- szlig: "\xDF",
- agrave: "\xE0",
- aacute: "\xE1",
- acirc: "\xE2",
- atilde: "\xE3",
- auml: "\xE4",
- aring: "\xE5",
- aelig: "\xE6",
- ccedil: "\xE7",
- egrave: "\xE8",
- eacute: "\xE9",
- ecirc: "\xEA",
- euml: "\xEB",
- igrave: "\xEC",
- iacute: "\xED",
- icirc: "\xEE",
- iuml: "\xEF",
- eth: "\xF0",
- ntilde: "\xF1",
- ograve: "\xF2",
- oacute: "\xF3",
- ocirc: "\xF4",
- otilde: "\xF5",
- ouml: "\xF6",
- divide: "\xF7",
- oslash: "\xF8",
- ugrave: "\xF9",
- uacute: "\xFA",
- ucirc: "\xFB",
- uuml: "\xFC",
- yacute: "\xFD",
- thorn: "\xFE",
- yuml: "\xFF",
- OElig: "\u0152",
- oelig: "\u0153",
- Scaron: "\u0160",
- scaron: "\u0161",
- Yuml: "\u0178",
- fnof: "\u0192",
- circ: "\u02C6",
- tilde: "\u02DC",
- Alpha: "\u0391",
- Beta: "\u0392",
- Gamma: "\u0393",
- Delta: "\u0394",
- Epsilon: "\u0395",
- Zeta: "\u0396",
- Eta: "\u0397",
- Theta: "\u0398",
- Iota: "\u0399",
- Kappa: "\u039A",
- Lambda: "\u039B",
- Mu: "\u039C",
- Nu: "\u039D",
- Xi: "\u039E",
- Omicron: "\u039F",
- Pi: "\u03A0",
- Rho: "\u03A1",
- Sigma: "\u03A3",
- Tau: "\u03A4",
- Upsilon: "\u03A5",
- Phi: "\u03A6",
- Chi: "\u03A7",
- Psi: "\u03A8",
- Omega: "\u03A9",
- alpha: "\u03B1",
- beta: "\u03B2",
- gamma: "\u03B3",
- delta: "\u03B4",
- epsilon: "\u03B5",
- zeta: "\u03B6",
- eta: "\u03B7",
- theta: "\u03B8",
- iota: "\u03B9",
- kappa: "\u03BA",
- lambda: "\u03BB",
- mu: "\u03BC",
- nu: "\u03BD",
- xi: "\u03BE",
- omicron: "\u03BF",
- pi: "\u03C0",
- rho: "\u03C1",
- sigmaf: "\u03C2",
- sigma: "\u03C3",
- tau: "\u03C4",
- upsilon: "\u03C5",
- phi: "\u03C6",
- chi: "\u03C7",
- psi: "\u03C8",
- omega: "\u03C9",
- thetasym: "\u03D1",
- upsih: "\u03D2",
- piv: "\u03D6",
- ensp: "\u2002",
- emsp: "\u2003",
- thinsp: "\u2009",
- zwnj: "\u200C",
- zwj: "\u200D",
- lrm: "\u200E",
- rlm: "\u200F",
- ndash: "\u2013",
- mdash: "\u2014",
- lsquo: "\u2018",
- rsquo: "\u2019",
- sbquo: "\u201A",
- ldquo: "\u201C",
- rdquo: "\u201D",
- bdquo: "\u201E",
- dagger: "\u2020",
- Dagger: "\u2021",
- bull: "\u2022",
- hellip: "\u2026",
- permil: "\u2030",
- prime: "\u2032",
- Prime: "\u2033",
- lsaquo: "\u2039",
- rsaquo: "\u203A",
- oline: "\u203E",
- frasl: "\u2044",
- euro: "\u20AC",
- image: "\u2111",
- weierp: "\u2118",
- real: "\u211C",
- trade: "\u2122",
- alefsym: "\u2135",
- larr: "\u2190",
- uarr: "\u2191",
- rarr: "\u2192",
- darr: "\u2193",
- harr: "\u2194",
- crarr: "\u21B5",
- lArr: "\u21D0",
- uArr: "\u21D1",
- rArr: "\u21D2",
- dArr: "\u21D3",
- hArr: "\u21D4",
- forall: "\u2200",
- part: "\u2202",
- exist: "\u2203",
- empty: "\u2205",
- nabla: "\u2207",
- isin: "\u2208",
- notin: "\u2209",
- ni: "\u220B",
- prod: "\u220F",
- sum: "\u2211",
- minus: "\u2212",
- lowast: "\u2217",
- radic: "\u221A",
- prop: "\u221D",
- infin: "\u221E",
- ang: "\u2220",
- and: "\u2227",
- or: "\u2228",
- cap: "\u2229",
- cup: "\u222A",
- int: "\u222B",
- there4: "\u2234",
- sim: "\u223C",
- cong: "\u2245",
- asymp: "\u2248",
- ne: "\u2260",
- equiv: "\u2261",
- le: "\u2264",
- ge: "\u2265",
- sub: "\u2282",
- sup: "\u2283",
- nsub: "\u2284",
- sube: "\u2286",
- supe: "\u2287",
- oplus: "\u2295",
- otimes: "\u2297",
- perp: "\u22A5",
- sdot: "\u22C5",
- lceil: "\u2308",
- rceil: "\u2309",
- lfloor: "\u230A",
- rfloor: "\u230B",
- lang: "\u2329",
- rang: "\u232A",
- loz: "\u25CA",
- spades: "\u2660",
- clubs: "\u2663",
- hearts: "\u2665",
- diams: "\u2666"
-};
-
-var lineBreak = /\r\n?|\n|\u2028|\u2029/;
-var lineBreakG = new RegExp(lineBreak.source, "g");
-function isNewLine(code) {
- return code === 10 || code === 13 || code === 0x2028 || code === 0x2029;
-}
-var nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
-
-var TokContext = function TokContext(token, isExpr, preserveSpace, override) {
- this.token = token;
- this.isExpr = !!isExpr;
- this.preserveSpace = !!preserveSpace;
- this.override = override;
-};
-var types$1 = {
- braceStatement: new TokContext("{", false),
- braceExpression: new TokContext("{", true),
- templateQuasi: new TokContext("${", true),
- parenStatement: new TokContext("(", false),
- parenExpression: new TokContext("(", true),
- template: new TokContext("`", true, true, function (p) {
- return p.readTmplToken();
- }),
- functionExpression: new TokContext("function", true)
-};
-
-types.parenR.updateContext = types.braceR.updateContext = function () {
- if (this.state.context.length === 1) {
- this.state.exprAllowed = true;
- return;
- }
-
- var out = this.state.context.pop();
-
- if (out === types$1.braceStatement && this.curContext() === types$1.functionExpression) {
- this.state.context.pop();
- this.state.exprAllowed = false;
- } else if (out === types$1.templateQuasi) {
- this.state.exprAllowed = true;
- } else {
- this.state.exprAllowed = !out.isExpr;
- }
-};
-
-types.name.updateContext = function (prevType) {
- if (this.state.value === "of" && this.curContext() === types$1.parenStatement) {
- this.state.exprAllowed = !prevType.beforeExpr;
- return;
- }
-
- this.state.exprAllowed = false;
-
- if (prevType === types._let || prevType === types._const || prevType === types._var) {
- if (lineBreak.test(this.input.slice(this.state.end))) {
- this.state.exprAllowed = true;
- }
- }
-
- if (this.state.isIterator) {
- this.state.isIterator = false;
- }
-};
-
-types.braceL.updateContext = function (prevType) {
- this.state.context.push(this.braceIsBlock(prevType) ? types$1.braceStatement : types$1.braceExpression);
- this.state.exprAllowed = true;
-};
-
-types.dollarBraceL.updateContext = function () {
- this.state.context.push(types$1.templateQuasi);
- this.state.exprAllowed = true;
-};
-
-types.parenL.updateContext = function (prevType) {
- var statementParens = prevType === types._if || prevType === types._for || prevType === types._with || prevType === types._while;
- this.state.context.push(statementParens ? types$1.parenStatement : types$1.parenExpression);
- this.state.exprAllowed = true;
-};
-
-types.incDec.updateContext = function () {};
-
-types._function.updateContext = function (prevType) {
- if (this.state.exprAllowed && !this.braceIsBlock(prevType)) {
- this.state.context.push(types$1.functionExpression);
- }
-
- this.state.exprAllowed = false;
-};
-
-types.backQuote.updateContext = function () {
- if (this.curContext() === types$1.template) {
- this.state.context.pop();
- } else {
- this.state.context.push(types$1.template);
- }
-
- this.state.exprAllowed = false;
-};
-
-var HEX_NUMBER = /^[\da-fA-F]+$/;
-var DECIMAL_NUMBER = /^\d+$/;
-types$1.j_oTag = new TokContext("...", true, true);
-types.jsxName = new TokenType("jsxName");
-types.jsxText = new TokenType("jsxText", {
- beforeExpr: true
-});
-types.jsxTagStart = new TokenType("jsxTagStart", {
- startsExpr: true
-});
-types.jsxTagEnd = new TokenType("jsxTagEnd");
-
-types.jsxTagStart.updateContext = function () {
- this.state.context.push(types$1.j_expr);
- this.state.context.push(types$1.j_oTag);
- this.state.exprAllowed = false;
-};
-
-types.jsxTagEnd.updateContext = function (prevType) {
- var out = this.state.context.pop();
-
- if (out === types$1.j_oTag && prevType === types.slash || out === types$1.j_cTag) {
- this.state.context.pop();
- this.state.exprAllowed = this.curContext() === types$1.j_expr;
- } else {
- this.state.exprAllowed = true;
- }
-};
-
-function isFragment(object) {
- return object ? object.type === "JSXOpeningFragment" || object.type === "JSXClosingFragment" : false;
-}
-
-function getQualifiedJSXName(object) {
- if (object.type === "JSXIdentifier") {
- return object.name;
- }
-
- if (object.type === "JSXNamespacedName") {
- return object.namespace.name + ":" + object.name.name;
- }
-
- if (object.type === "JSXMemberExpression") {
- return getQualifiedJSXName(object.object) + "." + getQualifiedJSXName(object.property);
- }
-
- throw new Error("Node had unexpected type: " + object.type);
-}
-
-var jsx = (function (superClass) {
- return function (_superClass) {
- _inheritsLoose(_class, _superClass);
-
- function _class() {
- return _superClass.apply(this, arguments) || this;
- }
-
- var _proto = _class.prototype;
-
- _proto.jsxReadToken = function jsxReadToken() {
- var out = "";
- var chunkStart = this.state.pos;
-
- for (;;) {
- if (this.state.pos >= this.input.length) {
- this.raise(this.state.start, "Unterminated JSX contents");
- }
-
- var ch = this.input.charCodeAt(this.state.pos);
-
- switch (ch) {
- case 60:
- case 123:
- if (this.state.pos === this.state.start) {
- if (ch === 60 && this.state.exprAllowed) {
- ++this.state.pos;
- return this.finishToken(types.jsxTagStart);
- }
-
- return this.getTokenFromCode(ch);
- }
-
- out += this.input.slice(chunkStart, this.state.pos);
- return this.finishToken(types.jsxText, out);
-
- case 38:
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.jsxReadEntity();
- chunkStart = this.state.pos;
- break;
-
- default:
- if (isNewLine(ch)) {
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.jsxReadNewLine(true);
- chunkStart = this.state.pos;
- } else {
- ++this.state.pos;
- }
-
- }
- }
- };
-
- _proto.jsxReadNewLine = function jsxReadNewLine(normalizeCRLF) {
- var ch = this.input.charCodeAt(this.state.pos);
- var out;
- ++this.state.pos;
-
- if (ch === 13 && this.input.charCodeAt(this.state.pos) === 10) {
- ++this.state.pos;
- out = normalizeCRLF ? "\n" : "\r\n";
- } else {
- out = String.fromCharCode(ch);
- }
-
- ++this.state.curLine;
- this.state.lineStart = this.state.pos;
- return out;
- };
-
- _proto.jsxReadString = function jsxReadString(quote) {
- var out = "";
- var chunkStart = ++this.state.pos;
-
- for (;;) {
- if (this.state.pos >= this.input.length) {
- this.raise(this.state.start, "Unterminated string constant");
- }
-
- var ch = this.input.charCodeAt(this.state.pos);
- if (ch === quote) break;
-
- if (ch === 38) {
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.jsxReadEntity();
- chunkStart = this.state.pos;
- } else if (isNewLine(ch)) {
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.jsxReadNewLine(false);
- chunkStart = this.state.pos;
- } else {
- ++this.state.pos;
- }
- }
-
- out += this.input.slice(chunkStart, this.state.pos++);
- return this.finishToken(types.string, out);
- };
-
- _proto.jsxReadEntity = function jsxReadEntity() {
- var str = "";
- var count = 0;
- var entity;
- var ch = this.input[this.state.pos];
- var startPos = ++this.state.pos;
-
- while (this.state.pos < this.input.length && count++ < 10) {
- ch = this.input[this.state.pos++];
-
- if (ch === ";") {
- if (str[0] === "#") {
- if (str[1] === "x") {
- str = str.substr(2);
-
- if (HEX_NUMBER.test(str)) {
- entity = String.fromCodePoint(parseInt(str, 16));
- }
- } else {
- str = str.substr(1);
-
- if (DECIMAL_NUMBER.test(str)) {
- entity = String.fromCodePoint(parseInt(str, 10));
- }
- }
- } else {
- entity = entities[str];
- }
-
- break;
- }
-
- str += ch;
- }
-
- if (!entity) {
- this.state.pos = startPos;
- return "&";
- }
-
- return entity;
- };
-
- _proto.jsxReadWord = function jsxReadWord() {
- var ch;
- var start = this.state.pos;
-
- do {
- ch = this.input.charCodeAt(++this.state.pos);
- } while (isIdentifierChar(ch) || ch === 45);
-
- return this.finishToken(types.jsxName, this.input.slice(start, this.state.pos));
- };
-
- _proto.jsxParseIdentifier = function jsxParseIdentifier() {
- var node = this.startNode();
-
- if (this.match(types.jsxName)) {
- node.name = this.state.value;
- } else if (this.state.type.keyword) {
- node.name = this.state.type.keyword;
- } else {
- this.unexpected();
- }
-
- this.next();
- return this.finishNode(node, "JSXIdentifier");
- };
-
- _proto.jsxParseNamespacedName = function jsxParseNamespacedName() {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var name = this.jsxParseIdentifier();
- if (!this.eat(types.colon)) return name;
- var node = this.startNodeAt(startPos, startLoc);
- node.namespace = name;
- node.name = this.jsxParseIdentifier();
- return this.finishNode(node, "JSXNamespacedName");
- };
-
- _proto.jsxParseElementName = function jsxParseElementName() {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var node = this.jsxParseNamespacedName();
-
- while (this.eat(types.dot)) {
- var newNode = this.startNodeAt(startPos, startLoc);
- newNode.object = node;
- newNode.property = this.jsxParseIdentifier();
- node = this.finishNode(newNode, "JSXMemberExpression");
- }
-
- return node;
- };
-
- _proto.jsxParseAttributeValue = function jsxParseAttributeValue() {
- var node;
-
- switch (this.state.type) {
- case types.braceL:
- node = this.jsxParseExpressionContainer();
-
- if (node.expression.type === "JSXEmptyExpression") {
- throw this.raise(node.start, "JSX attributes must only be assigned a non-empty expression");
- } else {
- return node;
- }
-
- case types.jsxTagStart:
- case types.string:
- return this.parseExprAtom();
-
- default:
- throw this.raise(this.state.start, "JSX value should be either an expression or a quoted JSX text");
- }
- };
-
- _proto.jsxParseEmptyExpression = function jsxParseEmptyExpression() {
- var node = this.startNodeAt(this.state.lastTokEnd, this.state.lastTokEndLoc);
- return this.finishNodeAt(node, "JSXEmptyExpression", this.state.start, this.state.startLoc);
- };
-
- _proto.jsxParseSpreadChild = function jsxParseSpreadChild() {
- var node = this.startNode();
- this.expect(types.braceL);
- this.expect(types.ellipsis);
- node.expression = this.parseExpression();
- this.expect(types.braceR);
- return this.finishNode(node, "JSXSpreadChild");
- };
-
- _proto.jsxParseExpressionContainer = function jsxParseExpressionContainer() {
- var node = this.startNode();
- this.next();
-
- if (this.match(types.braceR)) {
- node.expression = this.jsxParseEmptyExpression();
- } else {
- node.expression = this.parseExpression();
- }
-
- this.expect(types.braceR);
- return this.finishNode(node, "JSXExpressionContainer");
- };
-
- _proto.jsxParseAttribute = function jsxParseAttribute() {
- var node = this.startNode();
-
- if (this.eat(types.braceL)) {
- this.expect(types.ellipsis);
- node.argument = this.parseMaybeAssign();
- this.expect(types.braceR);
- return this.finishNode(node, "JSXSpreadAttribute");
- }
-
- node.name = this.jsxParseNamespacedName();
- node.value = this.eat(types.eq) ? this.jsxParseAttributeValue() : null;
- return this.finishNode(node, "JSXAttribute");
- };
-
- _proto.jsxParseOpeningElementAt = function jsxParseOpeningElementAt(startPos, startLoc) {
- var node = this.startNodeAt(startPos, startLoc);
-
- if (this.match(types.jsxTagEnd)) {
- this.expect(types.jsxTagEnd);
- return this.finishNode(node, "JSXOpeningFragment");
- }
-
- node.attributes = [];
- node.name = this.jsxParseElementName();
-
- while (!this.match(types.slash) && !this.match(types.jsxTagEnd)) {
- node.attributes.push(this.jsxParseAttribute());
- }
-
- node.selfClosing = this.eat(types.slash);
- this.expect(types.jsxTagEnd);
- return this.finishNode(node, "JSXOpeningElement");
- };
-
- _proto.jsxParseClosingElementAt = function jsxParseClosingElementAt(startPos, startLoc) {
- var node = this.startNodeAt(startPos, startLoc);
-
- if (this.match(types.jsxTagEnd)) {
- this.expect(types.jsxTagEnd);
- return this.finishNode(node, "JSXClosingFragment");
- }
-
- node.name = this.jsxParseElementName();
- this.expect(types.jsxTagEnd);
- return this.finishNode(node, "JSXClosingElement");
- };
-
- _proto.jsxParseElementAt = function jsxParseElementAt(startPos, startLoc) {
- var node = this.startNodeAt(startPos, startLoc);
- var children = [];
- var openingElement = this.jsxParseOpeningElementAt(startPos, startLoc);
- var closingElement = null;
-
- if (!openingElement.selfClosing) {
- contents: for (;;) {
- switch (this.state.type) {
- case types.jsxTagStart:
- startPos = this.state.start;
- startLoc = this.state.startLoc;
- this.next();
-
- if (this.eat(types.slash)) {
- closingElement = this.jsxParseClosingElementAt(startPos, startLoc);
- break contents;
- }
-
- children.push(this.jsxParseElementAt(startPos, startLoc));
- break;
-
- case types.jsxText:
- children.push(this.parseExprAtom());
- break;
-
- case types.braceL:
- if (this.lookahead().type === types.ellipsis) {
- children.push(this.jsxParseSpreadChild());
- } else {
- children.push(this.jsxParseExpressionContainer());
- }
-
- break;
-
- default:
- throw this.unexpected();
- }
- }
-
- if (isFragment(openingElement) && !isFragment(closingElement)) {
- this.raise(closingElement.start, "Expected corresponding JSX closing tag for <>");
- } else if (!isFragment(openingElement) && isFragment(closingElement)) {
- this.raise(closingElement.start, "Expected corresponding JSX closing tag for <" + getQualifiedJSXName(openingElement.name) + ">");
- } else if (!isFragment(openingElement) && !isFragment(closingElement)) {
- if (getQualifiedJSXName(closingElement.name) !== getQualifiedJSXName(openingElement.name)) {
- this.raise(closingElement.start, "Expected corresponding JSX closing tag for <" + getQualifiedJSXName(openingElement.name) + ">");
- }
- }
- }
-
- if (isFragment(openingElement)) {
- node.openingFragment = openingElement;
- node.closingFragment = closingElement;
- } else {
- node.openingElement = openingElement;
- node.closingElement = closingElement;
- }
-
- node.children = children;
-
- if (this.match(types.relational) && this.state.value === "<") {
- this.raise(this.state.start, "Adjacent JSX elements must be wrapped in an enclosing tag. " + "Did you want a JSX fragment <>...>?");
- }
-
- return isFragment(openingElement) ? this.finishNode(node, "JSXFragment") : this.finishNode(node, "JSXElement");
- };
-
- _proto.jsxParseElement = function jsxParseElement() {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- this.next();
- return this.jsxParseElementAt(startPos, startLoc);
- };
-
- _proto.parseExprAtom = function parseExprAtom(refShortHandDefaultPos) {
- if (this.match(types.jsxText)) {
- return this.parseLiteral(this.state.value, "JSXText");
- } else if (this.match(types.jsxTagStart)) {
- return this.jsxParseElement();
- } else {
- return _superClass.prototype.parseExprAtom.call(this, refShortHandDefaultPos);
- }
- };
-
- _proto.readToken = function readToken(code) {
- if (this.state.inPropertyName) return _superClass.prototype.readToken.call(this, code);
- var context = this.curContext();
-
- if (context === types$1.j_expr) {
- return this.jsxReadToken();
- }
-
- if (context === types$1.j_oTag || context === types$1.j_cTag) {
- if (isIdentifierStart(code)) {
- return this.jsxReadWord();
- }
-
- if (code === 62) {
- ++this.state.pos;
- return this.finishToken(types.jsxTagEnd);
- }
-
- if ((code === 34 || code === 39) && context === types$1.j_oTag) {
- return this.jsxReadString(code);
- }
- }
-
- if (code === 60 && this.state.exprAllowed) {
- ++this.state.pos;
- return this.finishToken(types.jsxTagStart);
- }
-
- return _superClass.prototype.readToken.call(this, code);
- };
-
- _proto.updateContext = function updateContext(prevType) {
- if (this.match(types.braceL)) {
- var curContext = this.curContext();
-
- if (curContext === types$1.j_oTag) {
- this.state.context.push(types$1.braceExpression);
- } else if (curContext === types$1.j_expr) {
- this.state.context.push(types$1.templateQuasi);
- } else {
- _superClass.prototype.updateContext.call(this, prevType);
- }
-
- this.state.exprAllowed = true;
- } else if (this.match(types.slash) && prevType === types.jsxTagStart) {
- this.state.context.length -= 2;
- this.state.context.push(types$1.j_cTag);
- this.state.exprAllowed = false;
- } else {
- return _superClass.prototype.updateContext.call(this, prevType);
- }
- };
-
- return _class;
- }(superClass);
-});
-
-var defaultOptions = {
- sourceType: "script",
- sourceFilename: undefined,
- startLine: 1,
- allowAwaitOutsideFunction: false,
- allowReturnOutsideFunction: false,
- allowImportExportEverywhere: false,
- allowSuperOutsideMethod: false,
- plugins: [],
- strictMode: null,
- ranges: false,
- tokens: false
-};
-function getOptions(opts) {
- var options = {};
-
- for (var key in defaultOptions) {
- options[key] = opts && opts[key] != null ? opts[key] : defaultOptions[key];
- }
-
- return options;
-}
-
-var Position = function Position(line, col) {
- this.line = line;
- this.column = col;
-};
-var SourceLocation = function SourceLocation(start, end) {
- this.start = start;
- this.end = end;
-};
-function getLineInfo(input, offset) {
- for (var line = 1, cur = 0;;) {
- lineBreakG.lastIndex = cur;
- var match = lineBreakG.exec(input);
-
- if (match && match.index < offset) {
- ++line;
- cur = match.index + match[0].length;
- } else {
- return new Position(line, offset - cur);
- }
- }
-
- throw new Error("Unreachable");
-}
-
-var BaseParser = function () {
- function BaseParser() {
- this.sawUnambiguousESM = false;
- }
-
- var _proto = BaseParser.prototype;
-
- _proto.isReservedWord = function isReservedWord(word) {
- if (word === "await") {
- return this.inModule;
- } else {
- return reservedWords[6](word);
- }
- };
-
- _proto.hasPlugin = function hasPlugin(name) {
- return Object.hasOwnProperty.call(this.plugins, name);
- };
-
- _proto.getPluginOption = function getPluginOption(plugin, name) {
- if (this.hasPlugin(plugin)) return this.plugins[plugin][name];
- };
-
- return BaseParser;
-}();
-
-function last(stack) {
- return stack[stack.length - 1];
-}
-
-var CommentsParser = function (_BaseParser) {
- _inheritsLoose(CommentsParser, _BaseParser);
-
- function CommentsParser() {
- return _BaseParser.apply(this, arguments) || this;
- }
-
- var _proto = CommentsParser.prototype;
-
- _proto.addComment = function addComment(comment) {
- if (this.filename) comment.loc.filename = this.filename;
- this.state.trailingComments.push(comment);
- this.state.leadingComments.push(comment);
- };
-
- _proto.processComment = function processComment(node) {
- if (node.type === "Program" && node.body.length > 0) return;
- var stack = this.state.commentStack;
- var firstChild, lastChild, trailingComments, i, j;
-
- if (this.state.trailingComments.length > 0) {
- if (this.state.trailingComments[0].start >= node.end) {
- trailingComments = this.state.trailingComments;
- this.state.trailingComments = [];
- } else {
- this.state.trailingComments.length = 0;
- }
- } else if (stack.length > 0) {
- var lastInStack = last(stack);
-
- if (lastInStack.trailingComments && lastInStack.trailingComments[0].start >= node.end) {
- trailingComments = lastInStack.trailingComments;
- delete lastInStack.trailingComments;
- }
- }
-
- if (stack.length > 0 && last(stack).start >= node.start) {
- firstChild = stack.pop();
- }
-
- while (stack.length > 0 && last(stack).start >= node.start) {
- lastChild = stack.pop();
- }
-
- if (!lastChild && firstChild) lastChild = firstChild;
-
- if (firstChild && this.state.leadingComments.length > 0) {
- var lastComment = last(this.state.leadingComments);
-
- if (firstChild.type === "ObjectProperty") {
- if (lastComment.start >= node.start) {
- if (this.state.commentPreviousNode) {
- for (j = 0; j < this.state.leadingComments.length; j++) {
- if (this.state.leadingComments[j].end < this.state.commentPreviousNode.end) {
- this.state.leadingComments.splice(j, 1);
- j--;
- }
- }
-
- if (this.state.leadingComments.length > 0) {
- firstChild.trailingComments = this.state.leadingComments;
- this.state.leadingComments = [];
- }
- }
- }
- } else if (node.type === "CallExpression" && node.arguments && node.arguments.length) {
- var lastArg = last(node.arguments);
-
- if (lastArg && lastComment.start >= lastArg.start && lastComment.end <= node.end) {
- if (this.state.commentPreviousNode) {
- if (this.state.leadingComments.length > 0) {
- lastArg.trailingComments = this.state.leadingComments;
- this.state.leadingComments = [];
- }
- }
- }
- }
- }
-
- if (lastChild) {
- if (lastChild.leadingComments) {
- if (lastChild !== node && lastChild.leadingComments.length > 0 && last(lastChild.leadingComments).end <= node.start) {
- node.leadingComments = lastChild.leadingComments;
- delete lastChild.leadingComments;
- } else {
- for (i = lastChild.leadingComments.length - 2; i >= 0; --i) {
- if (lastChild.leadingComments[i].end <= node.start) {
- node.leadingComments = lastChild.leadingComments.splice(0, i + 1);
- break;
- }
- }
- }
- }
- } else if (this.state.leadingComments.length > 0) {
- if (last(this.state.leadingComments).end <= node.start) {
- if (this.state.commentPreviousNode) {
- for (j = 0; j < this.state.leadingComments.length; j++) {
- if (this.state.leadingComments[j].end < this.state.commentPreviousNode.end) {
- this.state.leadingComments.splice(j, 1);
- j--;
- }
- }
- }
-
- if (this.state.leadingComments.length > 0) {
- node.leadingComments = this.state.leadingComments;
- this.state.leadingComments = [];
- }
- } else {
- for (i = 0; i < this.state.leadingComments.length; i++) {
- if (this.state.leadingComments[i].end > node.start) {
- break;
- }
- }
-
- var leadingComments = this.state.leadingComments.slice(0, i);
-
- if (leadingComments.length) {
- node.leadingComments = leadingComments;
- }
-
- trailingComments = this.state.leadingComments.slice(i);
-
- if (trailingComments.length === 0) {
- trailingComments = null;
- }
- }
- }
-
- this.state.commentPreviousNode = node;
-
- if (trailingComments) {
- if (trailingComments.length && trailingComments[0].start >= node.start && last(trailingComments).end <= node.end) {
- node.innerComments = trailingComments;
- } else {
- node.trailingComments = trailingComments;
- }
- }
-
- stack.push(node);
- };
-
- return CommentsParser;
-}(BaseParser);
-
-var LocationParser = function (_CommentsParser) {
- _inheritsLoose(LocationParser, _CommentsParser);
-
- function LocationParser() {
- return _CommentsParser.apply(this, arguments) || this;
- }
-
- var _proto = LocationParser.prototype;
-
- _proto.raise = function raise(pos, message, _temp) {
- var _ref = _temp === void 0 ? {} : _temp,
- missingPluginNames = _ref.missingPluginNames,
- code = _ref.code;
-
- var loc = getLineInfo(this.input, pos);
- message += " (" + loc.line + ":" + loc.column + ")";
- var err = new SyntaxError(message);
- err.pos = pos;
- err.loc = loc;
-
- if (missingPluginNames) {
- err.missingPlugin = missingPluginNames;
- }
-
- if (code !== undefined) {
- err.code = code;
- }
-
- throw err;
- };
-
- return LocationParser;
-}(CommentsParser);
-
-var State = function () {
- function State() {}
-
- var _proto = State.prototype;
-
- _proto.init = function init(options, input) {
- this.strict = options.strictMode === false ? false : options.sourceType === "module";
- this.input = input;
- this.potentialArrowAt = -1;
- this.noArrowAt = [];
- this.noArrowParamsConversionAt = [];
- this.inMethod = false;
- this.inFunction = false;
- this.inParameters = false;
- this.maybeInArrowParameters = false;
- this.inGenerator = false;
- this.inAsync = false;
- this.inPropertyName = false;
- this.inType = false;
- this.inClassProperty = false;
- this.noAnonFunctionType = false;
- this.hasFlowComment = false;
- this.isIterator = false;
- this.classLevel = 0;
- this.labels = [];
- this.decoratorStack = [[]];
- this.yieldInPossibleArrowParameters = null;
- this.tokens = [];
- this.comments = [];
- this.trailingComments = [];
- this.leadingComments = [];
- this.commentStack = [];
- this.commentPreviousNode = null;
- this.pos = this.lineStart = 0;
- this.curLine = options.startLine;
- this.type = types.eof;
- this.value = null;
- this.start = this.end = this.pos;
- this.startLoc = this.endLoc = this.curPosition();
- this.lastTokEndLoc = this.lastTokStartLoc = null;
- this.lastTokStart = this.lastTokEnd = this.pos;
- this.context = [types$1.braceStatement];
- this.exprAllowed = true;
- this.containsEsc = this.containsOctal = false;
- this.octalPosition = null;
- this.invalidTemplateEscapePosition = null;
- this.exportedIdentifiers = [];
- };
-
- _proto.curPosition = function curPosition() {
- return new Position(this.curLine, this.pos - this.lineStart);
- };
-
- _proto.clone = function clone(skipArrays) {
- var _this = this;
-
- var state = new State();
- Object.keys(this).forEach(function (key) {
- var val = _this[key];
-
- if ((!skipArrays || key === "context") && Array.isArray(val)) {
- val = val.slice();
- }
-
- state[key] = val;
- });
- return state;
- };
-
- return State;
-}();
-
-var _isDigit = function isDigit(code) {
- return code >= 48 && code <= 57;
-};
-
-var VALID_REGEX_FLAGS = "gmsiyu";
-var forbiddenNumericSeparatorSiblings = {
- decBinOct: [46, 66, 69, 79, 95, 98, 101, 111],
- hex: [46, 88, 95, 120]
-};
-var allowedNumericSeparatorSiblings = {};
-allowedNumericSeparatorSiblings.bin = [48, 49];
-allowedNumericSeparatorSiblings.oct = allowedNumericSeparatorSiblings.bin.concat([50, 51, 52, 53, 54, 55]);
-allowedNumericSeparatorSiblings.dec = allowedNumericSeparatorSiblings.oct.concat([56, 57]);
-allowedNumericSeparatorSiblings.hex = allowedNumericSeparatorSiblings.dec.concat([65, 66, 67, 68, 69, 70, 97, 98, 99, 100, 101, 102]);
-var Token = function Token(state) {
- this.type = state.type;
- this.value = state.value;
- this.start = state.start;
- this.end = state.end;
- this.loc = new SourceLocation(state.startLoc, state.endLoc);
-};
-
-function codePointToString(code) {
- if (code <= 0xffff) {
- return String.fromCharCode(code);
- } else {
- return String.fromCharCode((code - 0x10000 >> 10) + 0xd800, (code - 0x10000 & 1023) + 0xdc00);
- }
-}
-
-var Tokenizer = function (_LocationParser) {
- _inheritsLoose(Tokenizer, _LocationParser);
-
- function Tokenizer(options, input) {
- var _this;
-
- _this = _LocationParser.call(this) || this;
- _this.state = new State();
-
- _this.state.init(options, input);
-
- _this.isLookahead = false;
- return _this;
- }
-
- var _proto = Tokenizer.prototype;
-
- _proto.next = function next() {
- if (this.options.tokens && !this.isLookahead) {
- this.state.tokens.push(new Token(this.state));
- }
-
- this.state.lastTokEnd = this.state.end;
- this.state.lastTokStart = this.state.start;
- this.state.lastTokEndLoc = this.state.endLoc;
- this.state.lastTokStartLoc = this.state.startLoc;
- this.nextToken();
- };
-
- _proto.eat = function eat(type) {
- if (this.match(type)) {
- this.next();
- return true;
- } else {
- return false;
- }
- };
-
- _proto.match = function match(type) {
- return this.state.type === type;
- };
-
- _proto.isKeyword = function isKeyword$$1(word) {
- return isKeyword(word);
- };
-
- _proto.lookahead = function lookahead() {
- var old = this.state;
- this.state = old.clone(true);
- this.isLookahead = true;
- this.next();
- this.isLookahead = false;
- var curr = this.state;
- this.state = old;
- return curr;
- };
-
- _proto.setStrict = function setStrict(strict) {
- this.state.strict = strict;
- if (!this.match(types.num) && !this.match(types.string)) return;
- this.state.pos = this.state.start;
-
- while (this.state.pos < this.state.lineStart) {
- this.state.lineStart = this.input.lastIndexOf("\n", this.state.lineStart - 2) + 1;
- --this.state.curLine;
- }
-
- this.nextToken();
- };
-
- _proto.curContext = function curContext() {
- return this.state.context[this.state.context.length - 1];
- };
-
- _proto.nextToken = function nextToken() {
- var curContext = this.curContext();
- if (!curContext || !curContext.preserveSpace) this.skipSpace();
- this.state.containsOctal = false;
- this.state.octalPosition = null;
- this.state.start = this.state.pos;
- this.state.startLoc = this.state.curPosition();
-
- if (this.state.pos >= this.input.length) {
- this.finishToken(types.eof);
- return;
- }
-
- if (curContext.override) {
- curContext.override(this);
- } else {
- this.readToken(this.fullCharCodeAtPos());
- }
- };
-
- _proto.readToken = function readToken(code) {
- if (isIdentifierStart(code) || code === 92) {
- this.readWord();
- } else {
- this.getTokenFromCode(code);
- }
- };
-
- _proto.fullCharCodeAtPos = function fullCharCodeAtPos() {
- var code = this.input.charCodeAt(this.state.pos);
- if (code <= 0xd7ff || code >= 0xe000) return code;
- var next = this.input.charCodeAt(this.state.pos + 1);
- return (code << 10) + next - 0x35fdc00;
- };
-
- _proto.pushComment = function pushComment(block, text, start, end, startLoc, endLoc) {
- var comment = {
- type: block ? "CommentBlock" : "CommentLine",
- value: text,
- start: start,
- end: end,
- loc: new SourceLocation(startLoc, endLoc)
- };
-
- if (!this.isLookahead) {
- if (this.options.tokens) this.state.tokens.push(comment);
- this.state.comments.push(comment);
- this.addComment(comment);
- }
- };
-
- _proto.skipBlockComment = function skipBlockComment() {
- var startLoc = this.state.curPosition();
- var start = this.state.pos;
- var end = this.input.indexOf("*/", this.state.pos += 2);
- if (end === -1) this.raise(this.state.pos - 2, "Unterminated comment");
- this.state.pos = end + 2;
- lineBreakG.lastIndex = start;
- var match;
-
- while ((match = lineBreakG.exec(this.input)) && match.index < this.state.pos) {
- ++this.state.curLine;
- this.state.lineStart = match.index + match[0].length;
- }
-
- this.pushComment(true, this.input.slice(start + 2, end), start, this.state.pos, startLoc, this.state.curPosition());
- };
-
- _proto.skipLineComment = function skipLineComment(startSkip) {
- var start = this.state.pos;
- var startLoc = this.state.curPosition();
- var ch = this.input.charCodeAt(this.state.pos += startSkip);
-
- if (this.state.pos < this.input.length) {
- while (ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233 && ++this.state.pos < this.input.length) {
- ch = this.input.charCodeAt(this.state.pos);
- }
- }
-
- this.pushComment(false, this.input.slice(start + startSkip, this.state.pos), start, this.state.pos, startLoc, this.state.curPosition());
- };
-
- _proto.skipSpace = function skipSpace() {
- loop: while (this.state.pos < this.input.length) {
- var ch = this.input.charCodeAt(this.state.pos);
-
- switch (ch) {
- case 32:
- case 160:
- ++this.state.pos;
- break;
-
- case 13:
- if (this.input.charCodeAt(this.state.pos + 1) === 10) {
- ++this.state.pos;
- }
-
- case 10:
- case 8232:
- case 8233:
- ++this.state.pos;
- ++this.state.curLine;
- this.state.lineStart = this.state.pos;
- break;
-
- case 47:
- switch (this.input.charCodeAt(this.state.pos + 1)) {
- case 42:
- this.skipBlockComment();
- break;
-
- case 47:
- this.skipLineComment(2);
- break;
-
- default:
- break loop;
- }
-
- break;
-
- default:
- if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {
- ++this.state.pos;
- } else {
- break loop;
- }
-
- }
- }
- };
-
- _proto.finishToken = function finishToken(type, val) {
- this.state.end = this.state.pos;
- this.state.endLoc = this.state.curPosition();
- var prevType = this.state.type;
- this.state.type = type;
- this.state.value = val;
- this.updateContext(prevType);
- };
-
- _proto.readToken_dot = function readToken_dot() {
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next >= 48 && next <= 57) {
- this.readNumber(true);
- return;
- }
-
- var next2 = this.input.charCodeAt(this.state.pos + 2);
-
- if (next === 46 && next2 === 46) {
- this.state.pos += 3;
- this.finishToken(types.ellipsis);
- } else {
- ++this.state.pos;
- this.finishToken(types.dot);
- }
- };
-
- _proto.readToken_slash = function readToken_slash() {
- if (this.state.exprAllowed) {
- ++this.state.pos;
- this.readRegexp();
- return;
- }
-
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === 61) {
- this.finishOp(types.assign, 2);
- } else {
- this.finishOp(types.slash, 1);
- }
- };
-
- _proto.readToken_interpreter = function readToken_interpreter() {
- if (this.state.pos !== 0 || this.state.input.length < 2) return false;
- var start = this.state.pos;
- this.state.pos += 1;
- var ch = this.input.charCodeAt(this.state.pos);
- if (ch !== 33) return false;
-
- while (ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233 && ++this.state.pos < this.input.length) {
- ch = this.input.charCodeAt(this.state.pos);
- }
-
- var value = this.input.slice(start + 2, this.state.pos);
- this.finishToken(types.interpreterDirective, value);
- return true;
- };
-
- _proto.readToken_mult_modulo = function readToken_mult_modulo(code) {
- var type = code === 42 ? types.star : types.modulo;
- var width = 1;
- var next = this.input.charCodeAt(this.state.pos + 1);
- var exprAllowed = this.state.exprAllowed;
-
- if (code === 42 && next === 42) {
- width++;
- next = this.input.charCodeAt(this.state.pos + 2);
- type = types.exponent;
- }
-
- if (next === 61 && !exprAllowed) {
- width++;
- type = types.assign;
- }
-
- this.finishOp(type, width);
- };
-
- _proto.readToken_pipe_amp = function readToken_pipe_amp(code) {
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === code) {
- if (this.input.charCodeAt(this.state.pos + 2) === 61) {
- this.finishOp(types.assign, 3);
- } else {
- this.finishOp(code === 124 ? types.logicalOR : types.logicalAND, 2);
- }
-
- return;
- }
-
- if (code === 124) {
- if (next === 62) {
- this.finishOp(types.pipeline, 2);
- return;
- } else if (next === 125 && this.hasPlugin("flow")) {
- this.finishOp(types.braceBarR, 2);
- return;
- }
- }
-
- if (next === 61) {
- this.finishOp(types.assign, 2);
- return;
- }
-
- this.finishOp(code === 124 ? types.bitwiseOR : types.bitwiseAND, 1);
- };
-
- _proto.readToken_caret = function readToken_caret() {
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === 61) {
- this.finishOp(types.assign, 2);
- } else {
- this.finishOp(types.bitwiseXOR, 1);
- }
- };
-
- _proto.readToken_plus_min = function readToken_plus_min(code) {
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === code) {
- if (next === 45 && !this.inModule && this.input.charCodeAt(this.state.pos + 2) === 62 && lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.pos))) {
- this.skipLineComment(3);
- this.skipSpace();
- this.nextToken();
- return;
- }
-
- this.finishOp(types.incDec, 2);
- return;
- }
-
- if (next === 61) {
- this.finishOp(types.assign, 2);
- } else {
- this.finishOp(types.plusMin, 1);
- }
- };
-
- _proto.readToken_lt_gt = function readToken_lt_gt(code) {
- var next = this.input.charCodeAt(this.state.pos + 1);
- var size = 1;
-
- if (next === code) {
- size = code === 62 && this.input.charCodeAt(this.state.pos + 2) === 62 ? 3 : 2;
-
- if (this.input.charCodeAt(this.state.pos + size) === 61) {
- this.finishOp(types.assign, size + 1);
- return;
- }
-
- this.finishOp(types.bitShift, size);
- return;
- }
-
- if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.state.pos + 2) === 45 && this.input.charCodeAt(this.state.pos + 3) === 45) {
- this.skipLineComment(4);
- this.skipSpace();
- this.nextToken();
- return;
- }
-
- if (next === 61) {
- size = 2;
- }
-
- this.finishOp(types.relational, size);
- };
-
- _proto.readToken_eq_excl = function readToken_eq_excl(code) {
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === 61) {
- this.finishOp(types.equality, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2);
- return;
- }
-
- if (code === 61 && next === 62) {
- this.state.pos += 2;
- this.finishToken(types.arrow);
- return;
- }
-
- this.finishOp(code === 61 ? types.eq : types.bang, 1);
- };
-
- _proto.readToken_question = function readToken_question() {
- var next = this.input.charCodeAt(this.state.pos + 1);
- var next2 = this.input.charCodeAt(this.state.pos + 2);
-
- if (next === 63 && !this.state.inType) {
- if (next2 === 61) {
- this.finishOp(types.assign, 3);
- } else {
- this.finishOp(types.nullishCoalescing, 2);
- }
- } else if (next === 46 && !(next2 >= 48 && next2 <= 57)) {
- this.state.pos += 2;
- this.finishToken(types.questionDot);
- } else {
- ++this.state.pos;
- this.finishToken(types.question);
- }
- };
-
- _proto.getTokenFromCode = function getTokenFromCode(code) {
- switch (code) {
- case 35:
- if (this.state.pos === 0 && this.readToken_interpreter()) {
- return;
- }
-
- if ((this.hasPlugin("classPrivateProperties") || this.hasPlugin("classPrivateMethods")) && this.state.classLevel > 0) {
- ++this.state.pos;
- this.finishToken(types.hash);
- return;
- } else {
- this.raise(this.state.pos, "Unexpected character '" + codePointToString(code) + "'");
- }
-
- case 46:
- this.readToken_dot();
- return;
-
- case 40:
- ++this.state.pos;
- this.finishToken(types.parenL);
- return;
-
- case 41:
- ++this.state.pos;
- this.finishToken(types.parenR);
- return;
-
- case 59:
- ++this.state.pos;
- this.finishToken(types.semi);
- return;
-
- case 44:
- ++this.state.pos;
- this.finishToken(types.comma);
- return;
-
- case 91:
- ++this.state.pos;
- this.finishToken(types.bracketL);
- return;
-
- case 93:
- ++this.state.pos;
- this.finishToken(types.bracketR);
- return;
-
- case 123:
- if (this.hasPlugin("flow") && this.input.charCodeAt(this.state.pos + 1) === 124) {
- this.finishOp(types.braceBarL, 2);
- } else {
- ++this.state.pos;
- this.finishToken(types.braceL);
- }
-
- return;
-
- case 125:
- ++this.state.pos;
- this.finishToken(types.braceR);
- return;
-
- case 58:
- if (this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58) {
- this.finishOp(types.doubleColon, 2);
- } else {
- ++this.state.pos;
- this.finishToken(types.colon);
- }
-
- return;
-
- case 63:
- this.readToken_question();
- return;
-
- case 64:
- ++this.state.pos;
- this.finishToken(types.at);
- return;
-
- case 96:
- ++this.state.pos;
- this.finishToken(types.backQuote);
- return;
-
- case 48:
- {
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (next === 120 || next === 88) {
- this.readRadixNumber(16);
- return;
- }
-
- if (next === 111 || next === 79) {
- this.readRadixNumber(8);
- return;
- }
-
- if (next === 98 || next === 66) {
- this.readRadixNumber(2);
- return;
- }
- }
-
- case 49:
- case 50:
- case 51:
- case 52:
- case 53:
- case 54:
- case 55:
- case 56:
- case 57:
- this.readNumber(false);
- return;
-
- case 34:
- case 39:
- this.readString(code);
- return;
-
- case 47:
- this.readToken_slash();
- return;
-
- case 37:
- case 42:
- this.readToken_mult_modulo(code);
- return;
-
- case 124:
- case 38:
- this.readToken_pipe_amp(code);
- return;
-
- case 94:
- this.readToken_caret();
- return;
-
- case 43:
- case 45:
- this.readToken_plus_min(code);
- return;
-
- case 60:
- case 62:
- this.readToken_lt_gt(code);
- return;
-
- case 61:
- case 33:
- this.readToken_eq_excl(code);
- return;
-
- case 126:
- this.finishOp(types.tilde, 1);
- return;
- }
-
- this.raise(this.state.pos, "Unexpected character '" + codePointToString(code) + "'");
- };
-
- _proto.finishOp = function finishOp(type, size) {
- var str = this.input.slice(this.state.pos, this.state.pos + size);
- this.state.pos += size;
- this.finishToken(type, str);
- };
-
- _proto.readRegexp = function readRegexp() {
- var start = this.state.pos;
- var escaped, inClass;
-
- for (;;) {
- if (this.state.pos >= this.input.length) {
- this.raise(start, "Unterminated regular expression");
- }
-
- var ch = this.input.charAt(this.state.pos);
-
- if (lineBreak.test(ch)) {
- this.raise(start, "Unterminated regular expression");
- }
-
- if (escaped) {
- escaped = false;
- } else {
- if (ch === "[") {
- inClass = true;
- } else if (ch === "]" && inClass) {
- inClass = false;
- } else if (ch === "/" && !inClass) {
- break;
- }
-
- escaped = ch === "\\";
- }
-
- ++this.state.pos;
- }
-
- var content = this.input.slice(start, this.state.pos);
- ++this.state.pos;
- var mods = "";
-
- while (this.state.pos < this.input.length) {
- var char = this.input[this.state.pos];
- var charCode = this.fullCharCodeAtPos();
-
- if (VALID_REGEX_FLAGS.indexOf(char) > -1) {
- if (mods.indexOf(char) > -1) {
- this.raise(this.state.pos + 1, "Duplicate regular expression flag");
- }
-
- ++this.state.pos;
- mods += char;
- } else if (isIdentifierChar(charCode) || charCode === 92) {
- this.raise(this.state.pos + 1, "Invalid regular expression flag");
- } else {
- break;
- }
- }
-
- this.finishToken(types.regexp, {
- pattern: content,
- flags: mods
- });
- };
-
- _proto.readInt = function readInt(radix, len) {
- var start = this.state.pos;
- var forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
- var allowedSiblings = radix === 16 ? allowedNumericSeparatorSiblings.hex : radix === 10 ? allowedNumericSeparatorSiblings.dec : radix === 8 ? allowedNumericSeparatorSiblings.oct : allowedNumericSeparatorSiblings.bin;
- var total = 0;
-
- for (var i = 0, e = len == null ? Infinity : len; i < e; ++i) {
- var code = this.input.charCodeAt(this.state.pos);
- var val = void 0;
-
- if (this.hasPlugin("numericSeparator")) {
- var prev = this.input.charCodeAt(this.state.pos - 1);
- var next = this.input.charCodeAt(this.state.pos + 1);
-
- if (code === 95) {
- if (allowedSiblings.indexOf(next) === -1) {
- this.raise(this.state.pos, "Invalid or unexpected token");
- }
-
- if (forbiddenSiblings.indexOf(prev) > -1 || forbiddenSiblings.indexOf(next) > -1 || Number.isNaN(next)) {
- this.raise(this.state.pos, "Invalid or unexpected token");
- }
-
- ++this.state.pos;
- continue;
- }
- }
-
- if (code >= 97) {
- val = code - 97 + 10;
- } else if (code >= 65) {
- val = code - 65 + 10;
- } else if (_isDigit(code)) {
- val = code - 48;
- } else {
- val = Infinity;
- }
-
- if (val >= radix) break;
- ++this.state.pos;
- total = total * radix + val;
- }
-
- if (this.state.pos === start || len != null && this.state.pos - start !== len) {
- return null;
- }
-
- return total;
- };
-
- _proto.readRadixNumber = function readRadixNumber(radix) {
- var start = this.state.pos;
- var isBigInt = false;
- this.state.pos += 2;
- var val = this.readInt(radix);
-
- if (val == null) {
- this.raise(this.state.start + 2, "Expected number in radix " + radix);
- }
-
- if (this.hasPlugin("bigInt")) {
- if (this.input.charCodeAt(this.state.pos) === 110) {
- ++this.state.pos;
- isBigInt = true;
- }
- }
-
- if (isIdentifierStart(this.fullCharCodeAtPos())) {
- this.raise(this.state.pos, "Identifier directly after number");
- }
-
- if (isBigInt) {
- var str = this.input.slice(start, this.state.pos).replace(/[_n]/g, "");
- this.finishToken(types.bigint, str);
- return;
- }
-
- this.finishToken(types.num, val);
- };
-
- _proto.readNumber = function readNumber(startsWithDot) {
- var start = this.state.pos;
- var octal = this.input.charCodeAt(start) === 48;
- var isFloat = false;
- var isBigInt = false;
-
- if (!startsWithDot && this.readInt(10) === null) {
- this.raise(start, "Invalid number");
- }
-
- if (octal && this.state.pos == start + 1) octal = false;
- var next = this.input.charCodeAt(this.state.pos);
-
- if (next === 46 && !octal) {
- ++this.state.pos;
- this.readInt(10);
- isFloat = true;
- next = this.input.charCodeAt(this.state.pos);
- }
-
- if ((next === 69 || next === 101) && !octal) {
- next = this.input.charCodeAt(++this.state.pos);
-
- if (next === 43 || next === 45) {
- ++this.state.pos;
- }
-
- if (this.readInt(10) === null) this.raise(start, "Invalid number");
- isFloat = true;
- next = this.input.charCodeAt(this.state.pos);
- }
-
- if (this.hasPlugin("bigInt")) {
- if (next === 110) {
- if (isFloat || octal) this.raise(start, "Invalid BigIntLiteral");
- ++this.state.pos;
- isBigInt = true;
- }
- }
-
- if (isIdentifierStart(this.fullCharCodeAtPos())) {
- this.raise(this.state.pos, "Identifier directly after number");
- }
-
- var str = this.input.slice(start, this.state.pos).replace(/[_n]/g, "");
-
- if (isBigInt) {
- this.finishToken(types.bigint, str);
- return;
- }
-
- var val;
-
- if (isFloat) {
- val = parseFloat(str);
- } else if (!octal || str.length === 1) {
- val = parseInt(str, 10);
- } else if (this.state.strict) {
- this.raise(start, "Invalid number");
- } else if (/[89]/.test(str)) {
- val = parseInt(str, 10);
- } else {
- val = parseInt(str, 8);
- }
-
- this.finishToken(types.num, val);
- };
-
- _proto.readCodePoint = function readCodePoint(throwOnInvalid) {
- var ch = this.input.charCodeAt(this.state.pos);
- var code;
-
- if (ch === 123) {
- var codePos = ++this.state.pos;
- code = this.readHexChar(this.input.indexOf("}", this.state.pos) - this.state.pos, throwOnInvalid);
- ++this.state.pos;
-
- if (code === null) {
- --this.state.invalidTemplateEscapePosition;
- } else if (code > 0x10ffff) {
- if (throwOnInvalid) {
- this.raise(codePos, "Code point out of bounds");
- } else {
- this.state.invalidTemplateEscapePosition = codePos - 2;
- return null;
- }
- }
- } else {
- code = this.readHexChar(4, throwOnInvalid);
- }
-
- return code;
- };
-
- _proto.readString = function readString(quote) {
- var out = "",
- chunkStart = ++this.state.pos;
- var hasJsonStrings = this.hasPlugin("jsonStrings");
-
- for (;;) {
- if (this.state.pos >= this.input.length) {
- this.raise(this.state.start, "Unterminated string constant");
- }
-
- var ch = this.input.charCodeAt(this.state.pos);
- if (ch === quote) break;
-
- if (ch === 92) {
- out += this.input.slice(chunkStart, this.state.pos);
- out += this.readEscapedChar(false);
- chunkStart = this.state.pos;
- } else if (hasJsonStrings && (ch === 8232 || ch === 8233)) {
- ++this.state.pos;
- } else if (isNewLine(ch)) {
- this.raise(this.state.start, "Unterminated string constant");
- } else {
- ++this.state.pos;
- }
- }
-
- out += this.input.slice(chunkStart, this.state.pos++);
- this.finishToken(types.string, out);
- };
-
- _proto.readTmplToken = function readTmplToken() {
- var out = "",
- chunkStart = this.state.pos,
- containsInvalid = false;
-
- for (;;) {
- if (this.state.pos >= this.input.length) {
- this.raise(this.state.start, "Unterminated template");
- }
-
- var ch = this.input.charCodeAt(this.state.pos);
-
- if (ch === 96 || ch === 36 && this.input.charCodeAt(this.state.pos + 1) === 123) {
- if (this.state.pos === this.state.start && this.match(types.template)) {
- if (ch === 36) {
- this.state.pos += 2;
- this.finishToken(types.dollarBraceL);
- return;
- } else {
- ++this.state.pos;
- this.finishToken(types.backQuote);
- return;
- }
- }
-
- out += this.input.slice(chunkStart, this.state.pos);
- this.finishToken(types.template, containsInvalid ? null : out);
- return;
- }
-
- if (ch === 92) {
- out += this.input.slice(chunkStart, this.state.pos);
- var escaped = this.readEscapedChar(true);
-
- if (escaped === null) {
- containsInvalid = true;
- } else {
- out += escaped;
- }
-
- chunkStart = this.state.pos;
- } else if (isNewLine(ch)) {
- out += this.input.slice(chunkStart, this.state.pos);
- ++this.state.pos;
-
- switch (ch) {
- case 13:
- if (this.input.charCodeAt(this.state.pos) === 10) {
- ++this.state.pos;
- }
-
- case 10:
- out += "\n";
- break;
-
- default:
- out += String.fromCharCode(ch);
- break;
- }
-
- ++this.state.curLine;
- this.state.lineStart = this.state.pos;
- chunkStart = this.state.pos;
- } else {
- ++this.state.pos;
- }
- }
- };
-
- _proto.readEscapedChar = function readEscapedChar(inTemplate) {
- var throwOnInvalid = !inTemplate;
- var ch = this.input.charCodeAt(++this.state.pos);
- ++this.state.pos;
-
- switch (ch) {
- case 110:
- return "\n";
-
- case 114:
- return "\r";
-
- case 120:
- {
- var code = this.readHexChar(2, throwOnInvalid);
- return code === null ? null : String.fromCharCode(code);
- }
-
- case 117:
- {
- var _code = this.readCodePoint(throwOnInvalid);
-
- return _code === null ? null : codePointToString(_code);
- }
-
- case 116:
- return "\t";
-
- case 98:
- return "\b";
-
- case 118:
- return "\x0B";
-
- case 102:
- return "\f";
-
- case 13:
- if (this.input.charCodeAt(this.state.pos) === 10) {
- ++this.state.pos;
- }
-
- case 10:
- this.state.lineStart = this.state.pos;
- ++this.state.curLine;
- return "";
-
- default:
- if (ch >= 48 && ch <= 55) {
- var codePos = this.state.pos - 1;
- var octalStr = this.input.substr(this.state.pos - 1, 3).match(/^[0-7]+/)[0];
- var octal = parseInt(octalStr, 8);
-
- if (octal > 255) {
- octalStr = octalStr.slice(0, -1);
- octal = parseInt(octalStr, 8);
- }
-
- if (octal > 0) {
- if (inTemplate) {
- this.state.invalidTemplateEscapePosition = codePos;
- return null;
- } else if (this.state.strict) {
- this.raise(codePos, "Octal literal in strict mode");
- } else if (!this.state.containsOctal) {
- this.state.containsOctal = true;
- this.state.octalPosition = codePos;
- }
- }
-
- this.state.pos += octalStr.length - 1;
- return String.fromCharCode(octal);
- }
-
- return String.fromCharCode(ch);
- }
- };
-
- _proto.readHexChar = function readHexChar(len, throwOnInvalid) {
- var codePos = this.state.pos;
- var n = this.readInt(16, len);
-
- if (n === null) {
- if (throwOnInvalid) {
- this.raise(codePos, "Bad character escape sequence");
- } else {
- this.state.pos = codePos - 1;
- this.state.invalidTemplateEscapePosition = codePos - 1;
- }
- }
-
- return n;
- };
-
- _proto.readWord1 = function readWord1() {
- this.state.containsEsc = false;
- var word = "",
- first = true,
- chunkStart = this.state.pos;
-
- while (this.state.pos < this.input.length) {
- var ch = this.fullCharCodeAtPos();
-
- if (isIdentifierChar(ch)) {
- this.state.pos += ch <= 0xffff ? 1 : 2;
- } else if (this.state.isIterator && ch === 64) {
- this.state.pos += 1;
- } else if (ch === 92) {
- this.state.containsEsc = true;
- word += this.input.slice(chunkStart, this.state.pos);
- var escStart = this.state.pos;
-
- if (this.input.charCodeAt(++this.state.pos) !== 117) {
- this.raise(this.state.pos, "Expecting Unicode escape sequence \\uXXXX");
- }
-
- ++this.state.pos;
- var esc = this.readCodePoint(true);
-
- if (!(first ? isIdentifierStart : isIdentifierChar)(esc, true)) {
- this.raise(escStart, "Invalid Unicode escape");
- }
-
- word += codePointToString(esc);
- chunkStart = this.state.pos;
- } else {
- break;
- }
-
- first = false;
- }
-
- return word + this.input.slice(chunkStart, this.state.pos);
- };
-
- _proto.isIterator = function isIterator(word) {
- return word === "@@iterator" || word === "@@asyncIterator";
- };
-
- _proto.readWord = function readWord() {
- var word = this.readWord1();
- var type = types.name;
-
- if (this.isKeyword(word)) {
- if (this.state.containsEsc) {
- this.raise(this.state.pos, "Escape sequence in keyword " + word);
- }
-
- type = keywords[word];
- }
-
- if (this.state.isIterator && (!this.isIterator(word) || !this.state.inType)) {
- this.raise(this.state.pos, "Invalid identifier " + word);
- }
-
- this.finishToken(type, word);
- };
-
- _proto.braceIsBlock = function braceIsBlock(prevType) {
- if (prevType === types.colon) {
- var parent = this.curContext();
-
- if (parent === types$1.braceStatement || parent === types$1.braceExpression) {
- return !parent.isExpr;
- }
- }
-
- if (prevType === types._return) {
- return lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.start));
- }
-
- if (prevType === types._else || prevType === types.semi || prevType === types.eof || prevType === types.parenR) {
- return true;
- }
-
- if (prevType === types.braceL) {
- return this.curContext() === types$1.braceStatement;
- }
-
- if (prevType === types.relational) {
- return true;
- }
-
- return !this.state.exprAllowed;
- };
-
- _proto.updateContext = function updateContext(prevType) {
- var type = this.state.type;
- var update;
-
- if (type.keyword && (prevType === types.dot || prevType === types.questionDot)) {
- this.state.exprAllowed = false;
- } else if (update = type.updateContext) {
- update.call(this, prevType);
- } else {
- this.state.exprAllowed = type.beforeExpr;
- }
- };
-
- return Tokenizer;
-}(LocationParser);
-
-var UtilParser = function (_Tokenizer) {
- _inheritsLoose(UtilParser, _Tokenizer);
-
- function UtilParser() {
- return _Tokenizer.apply(this, arguments) || this;
- }
-
- var _proto = UtilParser.prototype;
-
- _proto.addExtra = function addExtra(node, key, val) {
- if (!node) return;
- var extra = node.extra = node.extra || {};
- extra[key] = val;
- };
-
- _proto.isRelational = function isRelational(op) {
- return this.match(types.relational) && this.state.value === op;
- };
-
- _proto.isLookaheadRelational = function isLookaheadRelational(op) {
- var l = this.lookahead();
- return l.type == types.relational && l.value == op;
- };
-
- _proto.expectRelational = function expectRelational(op) {
- if (this.isRelational(op)) {
- this.next();
- } else {
- this.unexpected(null, types.relational);
- }
- };
-
- _proto.eatRelational = function eatRelational(op) {
- if (this.isRelational(op)) {
- this.next();
- return true;
- }
-
- return false;
- };
-
- _proto.isContextual = function isContextual(name) {
- return this.match(types.name) && this.state.value === name && !this.state.containsEsc;
- };
-
- _proto.isLookaheadContextual = function isLookaheadContextual(name) {
- var l = this.lookahead();
- return l.type === types.name && l.value === name;
- };
-
- _proto.eatContextual = function eatContextual(name) {
- return this.isContextual(name) && this.eat(types.name);
- };
-
- _proto.expectContextual = function expectContextual(name, message) {
- if (!this.eatContextual(name)) this.unexpected(null, message);
- };
-
- _proto.canInsertSemicolon = function canInsertSemicolon() {
- return this.match(types.eof) || this.match(types.braceR) || this.hasPrecedingLineBreak();
- };
-
- _proto.hasPrecedingLineBreak = function hasPrecedingLineBreak() {
- return lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.start));
- };
-
- _proto.isLineTerminator = function isLineTerminator() {
- return this.eat(types.semi) || this.canInsertSemicolon();
- };
-
- _proto.semicolon = function semicolon() {
- if (!this.isLineTerminator()) this.unexpected(null, types.semi);
- };
-
- _proto.expect = function expect(type, pos) {
- this.eat(type) || this.unexpected(pos, type);
- };
-
- _proto.unexpected = function unexpected(pos, messageOrType) {
- if (messageOrType === void 0) {
- messageOrType = "Unexpected token";
- }
-
- if (typeof messageOrType !== "string") {
- messageOrType = "Unexpected token, expected \"" + messageOrType.label + "\"";
- }
-
- throw this.raise(pos != null ? pos : this.state.start, messageOrType);
- };
-
- _proto.expectPlugin = function expectPlugin(name, pos) {
- if (!this.hasPlugin(name)) {
- throw this.raise(pos != null ? pos : this.state.start, "This experimental syntax requires enabling the parser plugin: '" + name + "'", {
- missingPluginNames: [name]
- });
- }
-
- return true;
- };
-
- _proto.expectOnePlugin = function expectOnePlugin(names, pos) {
- var _this = this;
-
- if (!names.some(function (n) {
- return _this.hasPlugin(n);
- })) {
- throw this.raise(pos != null ? pos : this.state.start, "This experimental syntax requires enabling one of the following parser plugin(s): '" + names.join(", ") + "'", {
- missingPluginNames: names
- });
- }
- };
-
- return UtilParser;
-}(Tokenizer);
-
-var commentKeys = ["leadingComments", "trailingComments", "innerComments"];
-
-var Node = function () {
- function Node(parser, pos, loc) {
- this.type = "";
- this.start = pos;
- this.end = 0;
- this.loc = new SourceLocation(loc);
- if (parser && parser.options.ranges) this.range = [pos, 0];
- if (parser && parser.filename) this.loc.filename = parser.filename;
- }
-
- var _proto = Node.prototype;
-
- _proto.__clone = function __clone() {
- var _this = this;
-
- var node2 = new Node();
- Object.keys(this).forEach(function (key) {
- if (commentKeys.indexOf(key) < 0) {
- node2[key] = _this[key];
- }
- });
- return node2;
- };
-
- return Node;
-}();
-
-var NodeUtils = function (_UtilParser) {
- _inheritsLoose(NodeUtils, _UtilParser);
-
- function NodeUtils() {
- return _UtilParser.apply(this, arguments) || this;
- }
-
- var _proto2 = NodeUtils.prototype;
-
- _proto2.startNode = function startNode() {
- return new Node(this, this.state.start, this.state.startLoc);
- };
-
- _proto2.startNodeAt = function startNodeAt(pos, loc) {
- return new Node(this, pos, loc);
- };
-
- _proto2.startNodeAtNode = function startNodeAtNode(type) {
- return this.startNodeAt(type.start, type.loc.start);
- };
-
- _proto2.finishNode = function finishNode(node, type) {
- return this.finishNodeAt(node, type, this.state.lastTokEnd, this.state.lastTokEndLoc);
- };
-
- _proto2.finishNodeAt = function finishNodeAt(node, type, pos, loc) {
- node.type = type;
- node.end = pos;
- node.loc.end = loc;
- if (this.options.ranges) node.range[1] = pos;
- this.processComment(node);
- return node;
- };
-
- _proto2.resetStartLocationFromNode = function resetStartLocationFromNode(node, locationNode) {
- node.start = locationNode.start;
- node.loc.start = locationNode.loc.start;
- if (this.options.ranges) node.range[0] = locationNode.range[0];
- };
-
- return NodeUtils;
-}(UtilParser);
-
-var LValParser = function (_NodeUtils) {
- _inheritsLoose(LValParser, _NodeUtils);
-
- function LValParser() {
- return _NodeUtils.apply(this, arguments) || this;
- }
-
- var _proto = LValParser.prototype;
-
- _proto.toAssignable = function toAssignable(node, isBinding, contextDescription) {
- if (node) {
- switch (node.type) {
- case "Identifier":
- case "ObjectPattern":
- case "ArrayPattern":
- case "AssignmentPattern":
- break;
-
- case "ObjectExpression":
- node.type = "ObjectPattern";
-
- for (var index = 0; index < node.properties.length; index++) {
- var prop = node.properties[index];
- var isLast = index === node.properties.length - 1;
- this.toAssignableObjectExpressionProp(prop, isBinding, isLast);
- }
-
- break;
-
- case "ObjectProperty":
- this.toAssignable(node.value, isBinding, contextDescription);
- break;
-
- case "SpreadElement":
- {
- this.checkToRestConversion(node);
- node.type = "RestElement";
- var arg = node.argument;
- this.toAssignable(arg, isBinding, contextDescription);
- break;
- }
-
- case "ArrayExpression":
- node.type = "ArrayPattern";
- this.toAssignableList(node.elements, isBinding, contextDescription);
- break;
-
- case "AssignmentExpression":
- if (node.operator === "=") {
- node.type = "AssignmentPattern";
- delete node.operator;
- } else {
- this.raise(node.left.end, "Only '=' operator can be used for specifying default value.");
- }
-
- break;
-
- case "MemberExpression":
- if (!isBinding) break;
-
- default:
- {
- var message = "Invalid left-hand side" + (contextDescription ? " in " + contextDescription : "expression");
- this.raise(node.start, message);
- }
- }
- }
-
- return node;
- };
-
- _proto.toAssignableObjectExpressionProp = function toAssignableObjectExpressionProp(prop, isBinding, isLast) {
- if (prop.type === "ObjectMethod") {
- var error = prop.kind === "get" || prop.kind === "set" ? "Object pattern can't contain getter or setter" : "Object pattern can't contain methods";
- this.raise(prop.key.start, error);
- } else if (prop.type === "SpreadElement" && !isLast) {
- this.raise(prop.start, "The rest element has to be the last element when destructuring");
- } else {
- this.toAssignable(prop, isBinding, "object destructuring pattern");
- }
- };
-
- _proto.toAssignableList = function toAssignableList(exprList, isBinding, contextDescription) {
- var end = exprList.length;
-
- if (end) {
- var last = exprList[end - 1];
-
- if (last && last.type === "RestElement") {
- --end;
- } else if (last && last.type === "SpreadElement") {
- last.type = "RestElement";
- var arg = last.argument;
- this.toAssignable(arg, isBinding, contextDescription);
-
- if (["Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern"].indexOf(arg.type) === -1) {
- this.unexpected(arg.start);
- }
-
- --end;
- }
- }
-
- for (var i = 0; i < end; i++) {
- var elt = exprList[i];
-
- if (elt && elt.type === "SpreadElement") {
- this.raise(elt.start, "The rest element has to be the last element when destructuring");
- }
-
- if (elt) this.toAssignable(elt, isBinding, contextDescription);
- }
-
- return exprList;
- };
-
- _proto.toReferencedList = function toReferencedList(exprList) {
- return exprList;
- };
-
- _proto.parseSpread = function parseSpread(refShorthandDefaultPos, refNeedsArrowPos) {
- var node = this.startNode();
- this.next();
- node.argument = this.parseMaybeAssign(false, refShorthandDefaultPos, undefined, refNeedsArrowPos);
- return this.finishNode(node, "SpreadElement");
- };
-
- _proto.parseRest = function parseRest() {
- var node = this.startNode();
- this.next();
- node.argument = this.parseBindingAtom();
- return this.finishNode(node, "RestElement");
- };
-
- _proto.shouldAllowYieldIdentifier = function shouldAllowYieldIdentifier() {
- return this.match(types._yield) && !this.state.strict && !this.state.inGenerator;
- };
-
- _proto.parseBindingIdentifier = function parseBindingIdentifier() {
- return this.parseIdentifier(this.shouldAllowYieldIdentifier());
- };
-
- _proto.parseBindingAtom = function parseBindingAtom() {
- switch (this.state.type) {
- case types._yield:
- case types.name:
- return this.parseBindingIdentifier();
-
- case types.bracketL:
- {
- var node = this.startNode();
- this.next();
- node.elements = this.parseBindingList(types.bracketR, true);
- return this.finishNode(node, "ArrayPattern");
- }
-
- case types.braceL:
- return this.parseObj(true);
-
- default:
- throw this.unexpected();
- }
- };
-
- _proto.parseBindingList = function parseBindingList(close, allowEmpty, allowModifiers) {
- var elts = [];
- var first = true;
-
- while (!this.eat(close)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
- }
-
- if (allowEmpty && this.match(types.comma)) {
- elts.push(null);
- } else if (this.eat(close)) {
- break;
- } else if (this.match(types.ellipsis)) {
- elts.push(this.parseAssignableListItemTypes(this.parseRest()));
- this.expect(close);
- break;
- } else {
- var decorators = [];
-
- if (this.match(types.at) && this.hasPlugin("decorators")) {
- this.raise(this.state.start, "Stage 2 decorators cannot be used to decorate parameters");
- }
-
- while (this.match(types.at)) {
- decorators.push(this.parseDecorator());
- }
-
- elts.push(this.parseAssignableListItem(allowModifiers, decorators));
- }
- }
-
- return elts;
- };
-
- _proto.parseAssignableListItem = function parseAssignableListItem(allowModifiers, decorators) {
- var left = this.parseMaybeDefault();
- this.parseAssignableListItemTypes(left);
- var elt = this.parseMaybeDefault(left.start, left.loc.start, left);
-
- if (decorators.length) {
- left.decorators = decorators;
- }
-
- return elt;
- };
-
- _proto.parseAssignableListItemTypes = function parseAssignableListItemTypes(param) {
- return param;
- };
-
- _proto.parseMaybeDefault = function parseMaybeDefault(startPos, startLoc, left) {
- startLoc = startLoc || this.state.startLoc;
- startPos = startPos || this.state.start;
- left = left || this.parseBindingAtom();
- if (!this.eat(types.eq)) return left;
- var node = this.startNodeAt(startPos, startLoc);
- node.left = left;
- node.right = this.parseMaybeAssign();
- return this.finishNode(node, "AssignmentPattern");
- };
-
- _proto.checkLVal = function checkLVal(expr, isBinding, checkClashes, contextDescription) {
- switch (expr.type) {
- case "Identifier":
- this.checkReservedWord(expr.name, expr.start, false, true);
-
- if (checkClashes) {
- var _key = "_" + expr.name;
-
- if (checkClashes[_key]) {
- this.raise(expr.start, "Argument name clash in strict mode");
- } else {
- checkClashes[_key] = true;
- }
- }
-
- break;
-
- case "MemberExpression":
- if (isBinding) this.raise(expr.start, "Binding member expression");
- break;
-
- case "ObjectPattern":
- for (var _i2 = 0, _expr$properties2 = expr.properties; _i2 < _expr$properties2.length; _i2++) {
- var prop = _expr$properties2[_i2];
- if (prop.type === "ObjectProperty") prop = prop.value;
- this.checkLVal(prop, isBinding, checkClashes, "object destructuring pattern");
- }
-
- break;
-
- case "ArrayPattern":
- for (var _i4 = 0, _expr$elements2 = expr.elements; _i4 < _expr$elements2.length; _i4++) {
- var elem = _expr$elements2[_i4];
-
- if (elem) {
- this.checkLVal(elem, isBinding, checkClashes, "array destructuring pattern");
- }
- }
-
- break;
-
- case "AssignmentPattern":
- this.checkLVal(expr.left, isBinding, checkClashes, "assignment pattern");
- break;
-
- case "RestElement":
- this.checkLVal(expr.argument, isBinding, checkClashes, "rest element");
- break;
-
- default:
- {
- var message = (isBinding ? "Binding invalid" : "Invalid") + " left-hand side" + (contextDescription ? " in " + contextDescription : "expression");
- this.raise(expr.start, message);
- }
- }
- };
-
- _proto.checkToRestConversion = function checkToRestConversion(node) {
- var validArgumentTypes = ["Identifier", "MemberExpression"];
-
- if (validArgumentTypes.indexOf(node.argument.type) !== -1) {
- return;
- }
-
- this.raise(node.argument.start, "Invalid rest operator's argument");
- };
-
- return LValParser;
-}(NodeUtils);
-
-var ExpressionParser = function (_LValParser) {
- _inheritsLoose(ExpressionParser, _LValParser);
-
- function ExpressionParser() {
- return _LValParser.apply(this, arguments) || this;
- }
-
- var _proto = ExpressionParser.prototype;
-
- _proto.checkPropClash = function checkPropClash(prop, propHash) {
- if (prop.computed || prop.kind) return;
- var key = prop.key;
- var name = key.type === "Identifier" ? key.name : String(key.value);
-
- if (name === "__proto__") {
- if (propHash.proto) {
- this.raise(key.start, "Redefinition of __proto__ property");
- }
-
- propHash.proto = true;
- }
- };
-
- _proto.getExpression = function getExpression() {
- this.nextToken();
- var expr = this.parseExpression();
-
- if (!this.match(types.eof)) {
- this.unexpected();
- }
-
- expr.comments = this.state.comments;
- return expr;
- };
-
- _proto.parseExpression = function parseExpression(noIn, refShorthandDefaultPos) {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var expr = this.parseMaybeAssign(noIn, refShorthandDefaultPos);
-
- if (this.match(types.comma)) {
- var _node = this.startNodeAt(startPos, startLoc);
-
- _node.expressions = [expr];
-
- while (this.eat(types.comma)) {
- _node.expressions.push(this.parseMaybeAssign(noIn, refShorthandDefaultPos));
- }
-
- this.toReferencedList(_node.expressions);
- return this.finishNode(_node, "SequenceExpression");
- }
-
- return expr;
- };
-
- _proto.parseMaybeAssign = function parseMaybeAssign(noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos) {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
-
- if (this.match(types._yield) && this.state.inGenerator) {
- var _left = this.parseYield();
-
- if (afterLeftParse) {
- _left = afterLeftParse.call(this, _left, startPos, startLoc);
- }
-
- return _left;
- }
-
- var failOnShorthandAssign;
-
- if (refShorthandDefaultPos) {
- failOnShorthandAssign = false;
- } else {
- refShorthandDefaultPos = {
- start: 0
- };
- failOnShorthandAssign = true;
- }
-
- if (this.match(types.parenL) || this.match(types.name) || this.match(types._yield)) {
- this.state.potentialArrowAt = this.state.start;
- }
-
- var left = this.parseMaybeConditional(noIn, refShorthandDefaultPos, refNeedsArrowPos);
-
- if (afterLeftParse) {
- left = afterLeftParse.call(this, left, startPos, startLoc);
- }
-
- if (this.state.type.isAssign) {
- var _node2 = this.startNodeAt(startPos, startLoc);
-
- var operator = this.state.value;
- _node2.operator = operator;
-
- if (operator === "??=") {
- this.expectPlugin("nullishCoalescingOperator");
- this.expectPlugin("logicalAssignment");
- }
-
- if (operator === "||=" || operator === "&&=") {
- this.expectPlugin("logicalAssignment");
- }
-
- _node2.left = this.match(types.eq) ? this.toAssignable(left, undefined, "assignment expression") : left;
- refShorthandDefaultPos.start = 0;
- this.checkLVal(left, undefined, undefined, "assignment expression");
-
- if (left.extra && left.extra.parenthesized) {
- var errorMsg;
-
- if (left.type === "ObjectPattern") {
- errorMsg = "`({a}) = 0` use `({a} = 0)`";
- } else if (left.type === "ArrayPattern") {
- errorMsg = "`([a]) = 0` use `([a] = 0)`";
- }
-
- if (errorMsg) {
- this.raise(left.start, "You're trying to assign to a parenthesized expression, eg. instead of " + errorMsg);
- }
- }
-
- this.next();
- _node2.right = this.parseMaybeAssign(noIn);
- return this.finishNode(_node2, "AssignmentExpression");
- } else if (failOnShorthandAssign && refShorthandDefaultPos.start) {
- this.unexpected(refShorthandDefaultPos.start);
- }
-
- return left;
- };
-
- _proto.parseMaybeConditional = function parseMaybeConditional(noIn, refShorthandDefaultPos, refNeedsArrowPos) {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var potentialArrowAt = this.state.potentialArrowAt;
- var expr = this.parseExprOps(noIn, refShorthandDefaultPos);
-
- if (expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt) {
- return expr;
- }
-
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) return expr;
- return this.parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos);
- };
-
- _proto.parseConditional = function parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos) {
- if (this.eat(types.question)) {
- var _node3 = this.startNodeAt(startPos, startLoc);
-
- _node3.test = expr;
- _node3.consequent = this.parseMaybeAssign();
- this.expect(types.colon);
- _node3.alternate = this.parseMaybeAssign(noIn);
- return this.finishNode(_node3, "ConditionalExpression");
- }
-
- return expr;
- };
-
- _proto.parseExprOps = function parseExprOps(noIn, refShorthandDefaultPos) {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var potentialArrowAt = this.state.potentialArrowAt;
- var expr = this.parseMaybeUnary(refShorthandDefaultPos);
-
- if (expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt) {
- return expr;
- }
-
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) {
- return expr;
- }
-
- return this.parseExprOp(expr, startPos, startLoc, -1, noIn);
- };
-
- _proto.parseExprOp = function parseExprOp(left, leftStartPos, leftStartLoc, minPrec, noIn) {
- var prec = this.state.type.binop;
-
- if (prec != null && (!noIn || !this.match(types._in))) {
- if (prec > minPrec) {
- var _node4 = this.startNodeAt(leftStartPos, leftStartLoc);
-
- var operator = this.state.value;
- _node4.left = left;
- _node4.operator = operator;
-
- if (operator === "**" && left.type === "UnaryExpression" && !(left.extra && left.extra.parenthesized)) {
- this.raise(left.argument.start, "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");
- }
-
- var op = this.state.type;
-
- if (op === types.nullishCoalescing) {
- this.expectPlugin("nullishCoalescingOperator");
- } else if (op === types.pipeline) {
- this.expectPlugin("pipelineOperator");
- }
-
- this.next();
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
-
- if (op === types.pipeline) {
- if (this.match(types.name) && this.state.value === "await" && this.state.inAsync) {
- throw this.raise(this.state.start, "Unexpected \"await\" after pipeline body; await must have parentheses in minimal proposal");
- }
- }
-
- _node4.right = this.parseExprOp(this.parseMaybeUnary(), startPos, startLoc, op.rightAssociative ? prec - 1 : prec, noIn);
- this.finishNode(_node4, op === types.logicalOR || op === types.logicalAND || op === types.nullishCoalescing ? "LogicalExpression" : "BinaryExpression");
- return this.parseExprOp(_node4, leftStartPos, leftStartLoc, minPrec, noIn);
- }
- }
-
- return left;
- };
-
- _proto.parseMaybeUnary = function parseMaybeUnary(refShorthandDefaultPos) {
- if (this.state.type.prefix) {
- var _node5 = this.startNode();
-
- var update = this.match(types.incDec);
- _node5.operator = this.state.value;
- _node5.prefix = true;
-
- if (_node5.operator === "throw") {
- this.expectPlugin("throwExpressions");
- }
-
- this.next();
- _node5.argument = this.parseMaybeUnary();
-
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) {
- this.unexpected(refShorthandDefaultPos.start);
- }
-
- if (update) {
- this.checkLVal(_node5.argument, undefined, undefined, "prefix operation");
- } else if (this.state.strict && _node5.operator === "delete") {
- var arg = _node5.argument;
-
- if (arg.type === "Identifier") {
- this.raise(_node5.start, "Deleting local variable in strict mode");
- } else if (arg.type === "MemberExpression" && arg.property.type === "PrivateName") {
- this.raise(_node5.start, "Deleting a private field is not allowed");
- }
- }
-
- return this.finishNode(_node5, update ? "UpdateExpression" : "UnaryExpression");
- }
-
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var expr = this.parseExprSubscripts(refShorthandDefaultPos);
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) return expr;
-
- while (this.state.type.postfix && !this.canInsertSemicolon()) {
- var _node6 = this.startNodeAt(startPos, startLoc);
-
- _node6.operator = this.state.value;
- _node6.prefix = false;
- _node6.argument = expr;
- this.checkLVal(expr, undefined, undefined, "postfix operation");
- this.next();
- expr = this.finishNode(_node6, "UpdateExpression");
- }
-
- return expr;
- };
-
- _proto.parseExprSubscripts = function parseExprSubscripts(refShorthandDefaultPos) {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var potentialArrowAt = this.state.potentialArrowAt;
- var expr = this.parseExprAtom(refShorthandDefaultPos);
-
- if (expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt) {
- return expr;
- }
-
- if (refShorthandDefaultPos && refShorthandDefaultPos.start) {
- return expr;
- }
-
- return this.parseSubscripts(expr, startPos, startLoc);
- };
-
- _proto.parseSubscripts = function parseSubscripts(base, startPos, startLoc, noCalls) {
- var state = {
- optionalChainMember: false,
- stop: false
- };
-
- do {
- base = this.parseSubscript(base, startPos, startLoc, noCalls, state);
- } while (!state.stop);
-
- return base;
- };
-
- _proto.parseSubscript = function parseSubscript(base, startPos, startLoc, noCalls, state) {
- if (!noCalls && this.eat(types.doubleColon)) {
- var _node7 = this.startNodeAt(startPos, startLoc);
-
- _node7.object = base;
- _node7.callee = this.parseNoCallExpr();
- state.stop = true;
- return this.parseSubscripts(this.finishNode(_node7, "BindExpression"), startPos, startLoc, noCalls);
- } else if (this.match(types.questionDot)) {
- this.expectPlugin("optionalChaining");
- state.optionalChainMember = true;
-
- if (noCalls && this.lookahead().type == types.parenL) {
- state.stop = true;
- return base;
- }
-
- this.next();
-
- var _node8 = this.startNodeAt(startPos, startLoc);
-
- if (this.eat(types.bracketL)) {
- _node8.object = base;
- _node8.property = this.parseExpression();
- _node8.computed = true;
- _node8.optional = true;
- this.expect(types.bracketR);
- return this.finishNode(_node8, "OptionalMemberExpression");
- } else if (this.eat(types.parenL)) {
- var possibleAsync = this.atPossibleAsync(base);
- _node8.callee = base;
- _node8.arguments = this.parseCallExpressionArguments(types.parenR, possibleAsync);
- _node8.optional = true;
- return this.finishNode(_node8, "OptionalCallExpression");
- } else {
- _node8.object = base;
- _node8.property = this.parseIdentifier(true);
- _node8.computed = false;
- _node8.optional = true;
- return this.finishNode(_node8, "OptionalMemberExpression");
- }
- } else if (this.eat(types.dot)) {
- var _node9 = this.startNodeAt(startPos, startLoc);
-
- _node9.object = base;
- _node9.property = this.parseMaybePrivateName();
- _node9.computed = false;
-
- if (state.optionalChainMember) {
- _node9.optional = false;
- return this.finishNode(_node9, "OptionalMemberExpression");
- }
-
- return this.finishNode(_node9, "MemberExpression");
- } else if (this.eat(types.bracketL)) {
- var _node10 = this.startNodeAt(startPos, startLoc);
-
- _node10.object = base;
- _node10.property = this.parseExpression();
- _node10.computed = true;
- this.expect(types.bracketR);
-
- if (state.optionalChainMember) {
- _node10.optional = false;
- return this.finishNode(_node10, "OptionalMemberExpression");
- }
-
- return this.finishNode(_node10, "MemberExpression");
- } else if (!noCalls && this.match(types.parenL)) {
- var _possibleAsync = this.atPossibleAsync(base);
-
- this.next();
-
- var _node11 = this.startNodeAt(startPos, startLoc);
-
- _node11.callee = base;
- var refTrailingCommaPos = {
- start: -1
- };
- _node11.arguments = this.parseCallExpressionArguments(types.parenR, _possibleAsync, refTrailingCommaPos);
-
- if (!state.optionalChainMember) {
- this.finishCallExpression(_node11);
- } else {
- this.finishOptionalCallExpression(_node11);
- }
-
- if (_possibleAsync && this.shouldParseAsyncArrow()) {
- state.stop = true;
-
- if (refTrailingCommaPos.start > -1) {
- this.raise(refTrailingCommaPos.start, "A trailing comma is not permitted after the rest element");
- }
-
- return this.parseAsyncArrowFromCallExpression(this.startNodeAt(startPos, startLoc), _node11);
- } else {
- this.toReferencedList(_node11.arguments);
- }
-
- return _node11;
- } else if (this.match(types.backQuote)) {
- var _node12 = this.startNodeAt(startPos, startLoc);
-
- _node12.tag = base;
- _node12.quasi = this.parseTemplate(true);
-
- if (state.optionalChainMember) {
- this.raise(startPos, "Tagged Template Literals are not allowed in optionalChain");
- }
-
- return this.finishNode(_node12, "TaggedTemplateExpression");
- } else {
- state.stop = true;
- return base;
- }
- };
-
- _proto.atPossibleAsync = function atPossibleAsync(base) {
- return !this.state.containsEsc && this.state.potentialArrowAt === base.start && base.type === "Identifier" && base.name === "async" && !this.canInsertSemicolon();
- };
-
- _proto.finishCallExpression = function finishCallExpression(node) {
- if (node.callee.type === "Import") {
- if (node.arguments.length !== 1) {
- this.raise(node.start, "import() requires exactly one argument");
- }
-
- var importArg = node.arguments[0];
-
- if (importArg && importArg.type === "SpreadElement") {
- this.raise(importArg.start, "... is not allowed in import()");
- }
- }
-
- return this.finishNode(node, "CallExpression");
- };
-
- _proto.finishOptionalCallExpression = function finishOptionalCallExpression(node) {
- if (node.callee.type === "Import") {
- if (node.arguments.length !== 1) {
- this.raise(node.start, "import() requires exactly one argument");
- }
-
- var importArg = node.arguments[0];
-
- if (importArg && importArg.type === "SpreadElement") {
- this.raise(importArg.start, "... is not allowed in import()");
- }
- }
-
- return this.finishNode(node, "OptionalCallExpression");
- };
-
- _proto.parseCallExpressionArguments = function parseCallExpressionArguments(close, possibleAsyncArrow, refTrailingCommaPos) {
- var elts = [];
- var innerParenStart;
- var first = true;
-
- while (!this.eat(close)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
- if (this.eat(close)) break;
- }
-
- if (this.match(types.parenL) && !innerParenStart) {
- innerParenStart = this.state.start;
- }
-
- elts.push(this.parseExprListItem(false, possibleAsyncArrow ? {
- start: 0
- } : undefined, possibleAsyncArrow ? {
- start: 0
- } : undefined, possibleAsyncArrow ? refTrailingCommaPos : undefined));
- }
-
- if (possibleAsyncArrow && innerParenStart && this.shouldParseAsyncArrow()) {
- this.unexpected();
- }
-
- return elts;
- };
-
- _proto.shouldParseAsyncArrow = function shouldParseAsyncArrow() {
- return this.match(types.arrow);
- };
-
- _proto.parseAsyncArrowFromCallExpression = function parseAsyncArrowFromCallExpression(node, call) {
- var oldYield = this.state.yieldInPossibleArrowParameters;
- this.state.yieldInPossibleArrowParameters = null;
- this.expect(types.arrow);
- this.parseArrowExpression(node, call.arguments, true);
- this.state.yieldInPossibleArrowParameters = oldYield;
- return node;
- };
-
- _proto.parseNoCallExpr = function parseNoCallExpr() {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- return this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true);
- };
-
- _proto.parseExprAtom = function parseExprAtom(refShorthandDefaultPos) {
- var canBeArrow = this.state.potentialArrowAt === this.state.start;
- var node;
-
- switch (this.state.type) {
- case types._super:
- if (!this.state.inMethod && !this.state.inClassProperty && !this.options.allowSuperOutsideMethod) {
- this.raise(this.state.start, "super is only allowed in object methods and classes");
- }
-
- node = this.startNode();
- this.next();
-
- if (!this.match(types.parenL) && !this.match(types.bracketL) && !this.match(types.dot)) {
- this.unexpected();
- }
-
- if (this.match(types.parenL) && this.state.inMethod !== "constructor" && !this.options.allowSuperOutsideMethod) {
- this.raise(node.start, "super() is only valid inside a class constructor. " + "Make sure the method name is spelled exactly as 'constructor'.");
- }
-
- return this.finishNode(node, "Super");
-
- case types._import:
- if (this.lookahead().type === types.dot) {
- return this.parseImportMetaProperty();
- }
-
- this.expectPlugin("dynamicImport");
- node = this.startNode();
- this.next();
-
- if (!this.match(types.parenL)) {
- this.unexpected(null, types.parenL);
- }
-
- return this.finishNode(node, "Import");
-
- case types._this:
- node = this.startNode();
- this.next();
- return this.finishNode(node, "ThisExpression");
-
- case types._yield:
- if (this.state.inGenerator) this.unexpected();
-
- case types.name:
- {
- node = this.startNode();
- var allowAwait = this.state.value === "await" && (this.state.inAsync || !this.state.inFunction && this.options.allowAwaitOutsideFunction);
- var containsEsc = this.state.containsEsc;
- var allowYield = this.shouldAllowYieldIdentifier();
- var id = this.parseIdentifier(allowAwait || allowYield);
-
- if (id.name === "await") {
- if (this.state.inAsync || this.inModule || !this.state.inFunction && this.options.allowAwaitOutsideFunction) {
- return this.parseAwait(node);
- }
- } else if (!containsEsc && id.name === "async" && this.match(types._function) && !this.canInsertSemicolon()) {
- this.next();
- return this.parseFunction(node, false, false, true);
- } else if (canBeArrow && id.name === "async" && this.match(types.name)) {
- var oldYield = this.state.yieldInPossibleArrowParameters;
- this.state.yieldInPossibleArrowParameters = null;
- var params = [this.parseIdentifier()];
- this.expect(types.arrow);
- this.parseArrowExpression(node, params, true);
- this.state.yieldInPossibleArrowParameters = oldYield;
- return node;
- }
-
- if (canBeArrow && !this.canInsertSemicolon() && this.eat(types.arrow)) {
- var _oldYield = this.state.yieldInPossibleArrowParameters;
- this.state.yieldInPossibleArrowParameters = null;
- this.parseArrowExpression(node, [id]);
- this.state.yieldInPossibleArrowParameters = _oldYield;
- return node;
- }
-
- return id;
- }
-
- case types._do:
- {
- this.expectPlugin("doExpressions");
-
- var _node13 = this.startNode();
-
- this.next();
- var oldInFunction = this.state.inFunction;
- var oldLabels = this.state.labels;
- this.state.labels = [];
- this.state.inFunction = false;
- _node13.body = this.parseBlock(false);
- this.state.inFunction = oldInFunction;
- this.state.labels = oldLabels;
- return this.finishNode(_node13, "DoExpression");
- }
-
- case types.regexp:
- {
- var value = this.state.value;
- node = this.parseLiteral(value.value, "RegExpLiteral");
- node.pattern = value.pattern;
- node.flags = value.flags;
- return node;
- }
-
- case types.num:
- return this.parseLiteral(this.state.value, "NumericLiteral");
-
- case types.bigint:
- return this.parseLiteral(this.state.value, "BigIntLiteral");
-
- case types.string:
- return this.parseLiteral(this.state.value, "StringLiteral");
-
- case types._null:
- node = this.startNode();
- this.next();
- return this.finishNode(node, "NullLiteral");
-
- case types._true:
- case types._false:
- return this.parseBooleanLiteral();
-
- case types.parenL:
- return this.parseParenAndDistinguishExpression(canBeArrow);
-
- case types.bracketL:
- node = this.startNode();
- this.next();
- node.elements = this.parseExprList(types.bracketR, true, refShorthandDefaultPos);
- this.toReferencedList(node.elements);
- return this.finishNode(node, "ArrayExpression");
-
- case types.braceL:
- return this.parseObj(false, refShorthandDefaultPos);
-
- case types._function:
- return this.parseFunctionExpression();
-
- case types.at:
- this.parseDecorators();
-
- case types._class:
- node = this.startNode();
- this.takeDecorators(node);
- return this.parseClass(node, false);
-
- case types._new:
- return this.parseNew();
-
- case types.backQuote:
- return this.parseTemplate(false);
-
- case types.doubleColon:
- {
- node = this.startNode();
- this.next();
- node.object = null;
- var callee = node.callee = this.parseNoCallExpr();
-
- if (callee.type === "MemberExpression") {
- return this.finishNode(node, "BindExpression");
- } else {
- throw this.raise(callee.start, "Binding should be performed on object property.");
- }
- }
-
- default:
- throw this.unexpected();
- }
- };
-
- _proto.parseBooleanLiteral = function parseBooleanLiteral() {
- var node = this.startNode();
- node.value = this.match(types._true);
- this.next();
- return this.finishNode(node, "BooleanLiteral");
- };
-
- _proto.parseMaybePrivateName = function parseMaybePrivateName() {
- var isPrivate = this.match(types.hash);
-
- if (isPrivate) {
- this.expectOnePlugin(["classPrivateProperties", "classPrivateMethods"]);
-
- var _node14 = this.startNode();
-
- this.next();
- _node14.id = this.parseIdentifier(true);
- return this.finishNode(_node14, "PrivateName");
- } else {
- return this.parseIdentifier(true);
- }
- };
-
- _proto.parseFunctionExpression = function parseFunctionExpression() {
- var node = this.startNode();
- var meta = this.parseIdentifier(true);
-
- if (this.state.inGenerator && this.eat(types.dot)) {
- return this.parseMetaProperty(node, meta, "sent");
- }
-
- return this.parseFunction(node, false);
- };
-
- _proto.parseMetaProperty = function parseMetaProperty(node, meta, propertyName) {
- node.meta = meta;
-
- if (meta.name === "function" && propertyName === "sent") {
- if (this.isContextual(propertyName)) {
- this.expectPlugin("functionSent");
- } else if (!this.hasPlugin("functionSent")) {
- this.unexpected();
- }
- }
-
- var containsEsc = this.state.containsEsc;
- node.property = this.parseIdentifier(true);
-
- if (node.property.name !== propertyName || containsEsc) {
- this.raise(node.property.start, "The only valid meta property for " + meta.name + " is " + meta.name + "." + propertyName);
- }
-
- return this.finishNode(node, "MetaProperty");
- };
-
- _proto.parseImportMetaProperty = function parseImportMetaProperty() {
- var node = this.startNode();
- var id = this.parseIdentifier(true);
- this.expect(types.dot);
-
- if (id.name === "import") {
- if (this.isContextual("meta")) {
- this.expectPlugin("importMeta");
- } else if (!this.hasPlugin("importMeta")) {
- this.raise(id.start, "Dynamic imports require a parameter: import('a.js').then");
- }
- }
-
- if (!this.inModule) {
- this.raise(id.start, "import.meta may appear only with 'sourceType: \"module\"'", {
- code: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"
- });
- }
-
- this.sawUnambiguousESM = true;
- return this.parseMetaProperty(node, id, "meta");
- };
-
- _proto.parseLiteral = function parseLiteral(value, type, startPos, startLoc) {
- startPos = startPos || this.state.start;
- startLoc = startLoc || this.state.startLoc;
- var node = this.startNodeAt(startPos, startLoc);
- this.addExtra(node, "rawValue", value);
- this.addExtra(node, "raw", this.input.slice(startPos, this.state.end));
- node.value = value;
- this.next();
- return this.finishNode(node, type);
- };
-
- _proto.parseParenExpression = function parseParenExpression() {
- this.expect(types.parenL);
- var val = this.parseExpression();
- this.expect(types.parenR);
- return val;
- };
-
- _proto.parseParenAndDistinguishExpression = function parseParenAndDistinguishExpression(canBeArrow) {
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var val;
- this.expect(types.parenL);
- var oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
- var oldYield = this.state.yieldInPossibleArrowParameters;
- this.state.maybeInArrowParameters = true;
- this.state.yieldInPossibleArrowParameters = null;
- var innerStartPos = this.state.start;
- var innerStartLoc = this.state.startLoc;
- var exprList = [];
- var refShorthandDefaultPos = {
- start: 0
- };
- var refNeedsArrowPos = {
- start: 0
- };
- var first = true;
- var spreadStart;
- var optionalCommaStart;
-
- while (!this.match(types.parenR)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma, refNeedsArrowPos.start || null);
-
- if (this.match(types.parenR)) {
- optionalCommaStart = this.state.start;
- break;
- }
- }
-
- if (this.match(types.ellipsis)) {
- var spreadNodeStartPos = this.state.start;
- var spreadNodeStartLoc = this.state.startLoc;
- spreadStart = this.state.start;
- exprList.push(this.parseParenItem(this.parseRest(), spreadNodeStartPos, spreadNodeStartLoc));
-
- if (this.match(types.comma) && this.lookahead().type === types.parenR) {
- this.raise(this.state.start, "A trailing comma is not permitted after the rest element");
- }
-
- break;
- } else {
- exprList.push(this.parseMaybeAssign(false, refShorthandDefaultPos, this.parseParenItem, refNeedsArrowPos));
- }
- }
-
- var innerEndPos = this.state.start;
- var innerEndLoc = this.state.startLoc;
- this.expect(types.parenR);
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
- var arrowNode = this.startNodeAt(startPos, startLoc);
-
- if (canBeArrow && this.shouldParseArrow() && (arrowNode = this.parseArrow(arrowNode))) {
- for (var _i2 = 0; _i2 < exprList.length; _i2++) {
- var param = exprList[_i2];
-
- if (param.extra && param.extra.parenthesized) {
- this.unexpected(param.extra.parenStart);
- }
- }
-
- this.parseArrowExpression(arrowNode, exprList);
- this.state.yieldInPossibleArrowParameters = oldYield;
- return arrowNode;
- }
-
- this.state.yieldInPossibleArrowParameters = oldYield;
-
- if (!exprList.length) {
- this.unexpected(this.state.lastTokStart);
- }
-
- if (optionalCommaStart) this.unexpected(optionalCommaStart);
- if (spreadStart) this.unexpected(spreadStart);
-
- if (refShorthandDefaultPos.start) {
- this.unexpected(refShorthandDefaultPos.start);
- }
-
- if (refNeedsArrowPos.start) this.unexpected(refNeedsArrowPos.start);
-
- if (exprList.length > 1) {
- val = this.startNodeAt(innerStartPos, innerStartLoc);
- val.expressions = exprList;
- this.toReferencedList(val.expressions);
- this.finishNodeAt(val, "SequenceExpression", innerEndPos, innerEndLoc);
- } else {
- val = exprList[0];
- }
-
- this.addExtra(val, "parenthesized", true);
- this.addExtra(val, "parenStart", startPos);
- return val;
- };
-
- _proto.shouldParseArrow = function shouldParseArrow() {
- return !this.canInsertSemicolon();
- };
-
- _proto.parseArrow = function parseArrow(node) {
- if (this.eat(types.arrow)) {
- return node;
- }
- };
-
- _proto.parseParenItem = function parseParenItem(node, startPos, startLoc) {
- return node;
- };
-
- _proto.parseNew = function parseNew() {
- var node = this.startNode();
- var meta = this.parseIdentifier(true);
-
- if (this.eat(types.dot)) {
- var metaProp = this.parseMetaProperty(node, meta, "target");
-
- if (!this.state.inFunction && !this.state.inClassProperty) {
- var error = "new.target can only be used in functions";
-
- if (this.hasPlugin("classProperties")) {
- error += " or class properties";
- }
-
- this.raise(metaProp.start, error);
- }
-
- return metaProp;
- }
-
- node.callee = this.parseNoCallExpr();
-
- if (node.callee.type === "OptionalMemberExpression" || node.callee.type === "OptionalCallExpression") {
- this.raise(this.state.lastTokEnd, "constructors in/after an Optional Chain are not allowed");
- }
-
- if (this.eat(types.questionDot)) {
- this.raise(this.state.start, "constructors in/after an Optional Chain are not allowed");
- }
-
- this.parseNewArguments(node);
- return this.finishNode(node, "NewExpression");
- };
-
- _proto.parseNewArguments = function parseNewArguments(node) {
- if (this.eat(types.parenL)) {
- var args = this.parseExprList(types.parenR);
- this.toReferencedList(args);
- node.arguments = args;
- } else {
- node.arguments = [];
- }
- };
-
- _proto.parseTemplateElement = function parseTemplateElement(isTagged) {
- var elem = this.startNode();
-
- if (this.state.value === null) {
- if (!isTagged) {
- this.raise(this.state.invalidTemplateEscapePosition || 0, "Invalid escape sequence in template");
- } else {
- this.state.invalidTemplateEscapePosition = null;
- }
- }
-
- elem.value = {
- raw: this.input.slice(this.state.start, this.state.end).replace(/\r\n?/g, "\n"),
- cooked: this.state.value
- };
- this.next();
- elem.tail = this.match(types.backQuote);
- return this.finishNode(elem, "TemplateElement");
- };
-
- _proto.parseTemplate = function parseTemplate(isTagged) {
- var node = this.startNode();
- this.next();
- node.expressions = [];
- var curElt = this.parseTemplateElement(isTagged);
- node.quasis = [curElt];
-
- while (!curElt.tail) {
- this.expect(types.dollarBraceL);
- node.expressions.push(this.parseExpression());
- this.expect(types.braceR);
- node.quasis.push(curElt = this.parseTemplateElement(isTagged));
- }
-
- this.next();
- return this.finishNode(node, "TemplateLiteral");
- };
-
- _proto.parseObj = function parseObj(isPattern, refShorthandDefaultPos) {
- var decorators = [];
- var propHash = Object.create(null);
- var first = true;
- var node = this.startNode();
- node.properties = [];
- this.next();
- var firstRestLocation = null;
-
- while (!this.eat(types.braceR)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
- if (this.eat(types.braceR)) break;
- }
-
- if (this.match(types.at)) {
- if (this.hasPlugin("decorators")) {
- this.raise(this.state.start, "Stage 2 decorators disallow object literal property decorators");
- } else {
- while (this.match(types.at)) {
- decorators.push(this.parseDecorator());
- }
- }
- }
-
- var prop = this.startNode(),
- isGenerator = false,
- _isAsync = false,
- startPos = void 0,
- startLoc = void 0;
-
- if (decorators.length) {
- prop.decorators = decorators;
- decorators = [];
- }
-
- if (this.match(types.ellipsis)) {
- this.expectPlugin("objectRestSpread");
- prop = this.parseSpread(isPattern ? {
- start: 0
- } : undefined);
-
- if (isPattern) {
- this.toAssignable(prop, true, "object pattern");
- }
-
- node.properties.push(prop);
-
- if (isPattern) {
- var position = this.state.start;
-
- if (firstRestLocation !== null) {
- this.unexpected(firstRestLocation, "Cannot have multiple rest elements when destructuring");
- } else if (this.eat(types.braceR)) {
- break;
- } else if (this.match(types.comma) && this.lookahead().type === types.braceR) {
- this.unexpected(position, "A trailing comma is not permitted after the rest element");
- } else {
- firstRestLocation = position;
- continue;
- }
- } else {
- continue;
- }
- }
-
- prop.method = false;
-
- if (isPattern || refShorthandDefaultPos) {
- startPos = this.state.start;
- startLoc = this.state.startLoc;
- }
-
- if (!isPattern) {
- isGenerator = this.eat(types.star);
- }
-
- var containsEsc = this.state.containsEsc;
-
- if (!isPattern && this.isContextual("async")) {
- if (isGenerator) this.unexpected();
- var asyncId = this.parseIdentifier();
-
- if (this.match(types.colon) || this.match(types.parenL) || this.match(types.braceR) || this.match(types.eq) || this.match(types.comma)) {
- prop.key = asyncId;
- prop.computed = false;
- } else {
- _isAsync = true;
-
- if (this.match(types.star)) {
- this.expectPlugin("asyncGenerators");
- this.next();
- isGenerator = true;
- }
-
- this.parsePropertyName(prop);
- }
- } else {
- this.parsePropertyName(prop);
- }
-
- this.parseObjPropValue(prop, startPos, startLoc, isGenerator, _isAsync, isPattern, refShorthandDefaultPos, containsEsc);
- this.checkPropClash(prop, propHash);
-
- if (prop.shorthand) {
- this.addExtra(prop, "shorthand", true);
- }
-
- node.properties.push(prop);
- }
-
- if (firstRestLocation !== null) {
- this.unexpected(firstRestLocation, "The rest element has to be the last element when destructuring");
- }
-
- if (decorators.length) {
- this.raise(this.state.start, "You have trailing decorators with no property");
- }
-
- return this.finishNode(node, isPattern ? "ObjectPattern" : "ObjectExpression");
- };
-
- _proto.isGetterOrSetterMethod = function isGetterOrSetterMethod(prop, isPattern) {
- return !isPattern && !prop.computed && prop.key.type === "Identifier" && (prop.key.name === "get" || prop.key.name === "set") && (this.match(types.string) || this.match(types.num) || this.match(types.bracketL) || this.match(types.name) || !!this.state.type.keyword);
- };
-
- _proto.checkGetterSetterParams = function checkGetterSetterParams(method) {
- var paramCount = method.kind === "get" ? 0 : 1;
- var start = method.start;
-
- if (method.params.length !== paramCount) {
- if (method.kind === "get") {
- this.raise(start, "getter must not have any formal parameters");
- } else {
- this.raise(start, "setter must have exactly one formal parameter");
- }
- }
-
- if (method.kind === "set" && method.params[0].type === "RestElement") {
- this.raise(start, "setter function argument must not be a rest parameter");
- }
- };
-
- _proto.parseObjectMethod = function parseObjectMethod(prop, isGenerator, isAsync, isPattern, containsEsc) {
- if (isAsync || isGenerator || this.match(types.parenL)) {
- if (isPattern) this.unexpected();
- prop.kind = "method";
- prop.method = true;
- return this.parseMethod(prop, isGenerator, isAsync, false, "ObjectMethod");
- }
-
- if (!containsEsc && this.isGetterOrSetterMethod(prop, isPattern)) {
- if (isGenerator || isAsync) this.unexpected();
- prop.kind = prop.key.name;
- this.parsePropertyName(prop);
- this.parseMethod(prop, false, false, false, "ObjectMethod");
- this.checkGetterSetterParams(prop);
- return prop;
- }
- };
-
- _proto.parseObjectProperty = function parseObjectProperty(prop, startPos, startLoc, isPattern, refShorthandDefaultPos) {
- prop.shorthand = false;
-
- if (this.eat(types.colon)) {
- prop.value = isPattern ? this.parseMaybeDefault(this.state.start, this.state.startLoc) : this.parseMaybeAssign(false, refShorthandDefaultPos);
- return this.finishNode(prop, "ObjectProperty");
- }
-
- if (!prop.computed && prop.key.type === "Identifier") {
- this.checkReservedWord(prop.key.name, prop.key.start, true, true);
-
- if (isPattern) {
- prop.value = this.parseMaybeDefault(startPos, startLoc, prop.key.__clone());
- } else if (this.match(types.eq) && refShorthandDefaultPos) {
- if (!refShorthandDefaultPos.start) {
- refShorthandDefaultPos.start = this.state.start;
- }
-
- prop.value = this.parseMaybeDefault(startPos, startLoc, prop.key.__clone());
- } else {
- prop.value = prop.key.__clone();
- }
-
- prop.shorthand = true;
- return this.finishNode(prop, "ObjectProperty");
- }
- };
-
- _proto.parseObjPropValue = function parseObjPropValue(prop, startPos, startLoc, isGenerator, isAsync, isPattern, refShorthandDefaultPos, containsEsc) {
- var node = this.parseObjectMethod(prop, isGenerator, isAsync, isPattern, containsEsc) || this.parseObjectProperty(prop, startPos, startLoc, isPattern, refShorthandDefaultPos);
- if (!node) this.unexpected();
- return node;
- };
-
- _proto.parsePropertyName = function parsePropertyName(prop) {
- if (this.eat(types.bracketL)) {
- prop.computed = true;
- prop.key = this.parseMaybeAssign();
- this.expect(types.bracketR);
- } else {
- var oldInPropertyName = this.state.inPropertyName;
- this.state.inPropertyName = true;
- prop.key = this.match(types.num) || this.match(types.string) ? this.parseExprAtom() : this.parseMaybePrivateName();
-
- if (prop.key.type !== "PrivateName") {
- prop.computed = false;
- }
-
- this.state.inPropertyName = oldInPropertyName;
- }
-
- return prop.key;
- };
-
- _proto.initFunction = function initFunction(node, isAsync) {
- node.id = null;
- node.generator = false;
- node.async = !!isAsync;
- };
-
- _proto.parseMethod = function parseMethod(node, isGenerator, isAsync, isConstructor, type) {
- var oldInFunc = this.state.inFunction;
- var oldInMethod = this.state.inMethod;
- var oldInGenerator = this.state.inGenerator;
- this.state.inFunction = true;
- this.state.inMethod = node.kind || true;
- this.state.inGenerator = isGenerator;
- this.initFunction(node, isAsync);
- node.generator = !!isGenerator;
- var allowModifiers = isConstructor;
- this.parseFunctionParams(node, allowModifiers);
- this.parseFunctionBodyAndFinish(node, type);
- this.state.inFunction = oldInFunc;
- this.state.inMethod = oldInMethod;
- this.state.inGenerator = oldInGenerator;
- return node;
- };
-
- _proto.parseArrowExpression = function parseArrowExpression(node, params, isAsync) {
- if (this.state.yieldInPossibleArrowParameters) {
- this.raise(this.state.yieldInPossibleArrowParameters.start, "yield is not allowed in the parameters of an arrow function" + " inside a generator");
- }
-
- var oldInFunc = this.state.inFunction;
- this.state.inFunction = true;
- this.initFunction(node, isAsync);
- if (params) this.setArrowFunctionParameters(node, params);
- var oldInGenerator = this.state.inGenerator;
- var oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
- this.state.inGenerator = false;
- this.state.maybeInArrowParameters = false;
- this.parseFunctionBody(node, true);
- this.state.inGenerator = oldInGenerator;
- this.state.inFunction = oldInFunc;
- this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
- return this.finishNode(node, "ArrowFunctionExpression");
- };
-
- _proto.setArrowFunctionParameters = function setArrowFunctionParameters(node, params) {
- node.params = this.toAssignableList(params, true, "arrow function parameters");
- };
-
- _proto.isStrictBody = function isStrictBody(node) {
- var isBlockStatement = node.body.type === "BlockStatement";
-
- if (isBlockStatement && node.body.directives.length) {
- for (var _i4 = 0, _node$body$directives2 = node.body.directives; _i4 < _node$body$directives2.length; _i4++) {
- var directive = _node$body$directives2[_i4];
-
- if (directive.value.value === "use strict") {
- return true;
- }
- }
- }
-
- return false;
- };
-
- _proto.parseFunctionBodyAndFinish = function parseFunctionBodyAndFinish(node, type, allowExpressionBody) {
- this.parseFunctionBody(node, allowExpressionBody);
- this.finishNode(node, type);
- };
-
- _proto.parseFunctionBody = function parseFunctionBody(node, allowExpression) {
- var isExpression = allowExpression && !this.match(types.braceL);
- var oldInParameters = this.state.inParameters;
- var oldInAsync = this.state.inAsync;
- this.state.inParameters = false;
- this.state.inAsync = node.async;
-
- if (isExpression) {
- node.body = this.parseMaybeAssign();
- } else {
- var oldInGen = this.state.inGenerator;
- var oldInFunc = this.state.inFunction;
- var oldLabels = this.state.labels;
- this.state.inGenerator = node.generator;
- this.state.inFunction = true;
- this.state.labels = [];
- node.body = this.parseBlock(true);
- this.state.inFunction = oldInFunc;
- this.state.inGenerator = oldInGen;
- this.state.labels = oldLabels;
- }
-
- this.state.inAsync = oldInAsync;
- this.checkFunctionNameAndParams(node, allowExpression);
- this.state.inParameters = oldInParameters;
- };
-
- _proto.checkFunctionNameAndParams = function checkFunctionNameAndParams(node, isArrowFunction) {
- var isStrict = this.isStrictBody(node);
- var checkLVal = this.state.strict || isStrict || isArrowFunction;
- var oldStrict = this.state.strict;
- if (isStrict) this.state.strict = isStrict;
-
- if (checkLVal) {
- var nameHash = Object.create(null);
-
- if (node.id) {
- this.checkLVal(node.id, true, undefined, "function name");
- }
-
- for (var _i6 = 0, _node$params2 = node.params; _i6 < _node$params2.length; _i6++) {
- var param = _node$params2[_i6];
-
- if (isStrict && param.type !== "Identifier") {
- this.raise(param.start, "Non-simple parameter in strict mode");
- }
-
- this.checkLVal(param, true, nameHash, "function parameter list");
- }
- }
-
- this.state.strict = oldStrict;
- };
-
- _proto.parseExprList = function parseExprList(close, allowEmpty, refShorthandDefaultPos) {
- var elts = [];
- var first = true;
-
- while (!this.eat(close)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
- if (this.eat(close)) break;
- }
-
- elts.push(this.parseExprListItem(allowEmpty, refShorthandDefaultPos));
- }
-
- return elts;
- };
-
- _proto.parseExprListItem = function parseExprListItem(allowEmpty, refShorthandDefaultPos, refNeedsArrowPos, refTrailingCommaPos) {
- var elt;
-
- if (allowEmpty && this.match(types.comma)) {
- elt = null;
- } else if (this.match(types.ellipsis)) {
- var spreadNodeStartPos = this.state.start;
- var spreadNodeStartLoc = this.state.startLoc;
- elt = this.parseParenItem(this.parseSpread(refShorthandDefaultPos, refNeedsArrowPos), spreadNodeStartPos, spreadNodeStartLoc);
-
- if (refTrailingCommaPos && this.match(types.comma)) {
- refTrailingCommaPos.start = this.state.start;
- }
- } else {
- elt = this.parseMaybeAssign(false, refShorthandDefaultPos, this.parseParenItem, refNeedsArrowPos);
- }
-
- return elt;
- };
-
- _proto.parseIdentifier = function parseIdentifier(liberal) {
- var node = this.startNode();
- var name = this.parseIdentifierName(node.start, liberal);
- node.name = name;
- node.loc.identifierName = name;
- return this.finishNode(node, "Identifier");
- };
-
- _proto.parseIdentifierName = function parseIdentifierName(pos, liberal) {
- if (!liberal) {
- this.checkReservedWord(this.state.value, this.state.start, !!this.state.type.keyword, false);
- }
-
- var name;
-
- if (this.match(types.name)) {
- name = this.state.value;
- } else if (this.state.type.keyword) {
- name = this.state.type.keyword;
- } else {
- throw this.unexpected();
- }
-
- if (!liberal && name === "await" && this.state.inAsync) {
- this.raise(pos, "invalid use of await inside of an async function");
- }
-
- this.next();
- return name;
- };
-
- _proto.checkReservedWord = function checkReservedWord(word, startLoc, checkKeywords, isBinding) {
- if (this.state.strict && (reservedWords.strict(word) || isBinding && reservedWords.strictBind(word))) {
- this.raise(startLoc, word + " is a reserved word in strict mode");
- }
-
- if (this.state.inGenerator && word === "yield") {
- this.raise(startLoc, "yield is a reserved word inside generator functions");
- }
-
- if (this.state.inClassProperty && word === "arguments") {
- this.raise(startLoc, "'arguments' is not allowed in class field initializer");
- }
-
- if (this.isReservedWord(word) || checkKeywords && this.isKeyword(word)) {
- this.raise(startLoc, word + " is a reserved word");
- }
- };
-
- _proto.parseAwait = function parseAwait(node) {
- if (!this.state.inAsync && (this.state.inFunction || !this.options.allowAwaitOutsideFunction)) {
- this.unexpected();
- }
-
- if (this.match(types.star)) {
- this.raise(node.start, "await* has been removed from the async functions proposal. Use Promise.all() instead.");
- }
-
- node.argument = this.parseMaybeUnary();
- return this.finishNode(node, "AwaitExpression");
- };
-
- _proto.parseYield = function parseYield() {
- var node = this.startNode();
-
- if (this.state.inParameters) {
- this.raise(node.start, "yield is not allowed in generator parameters");
- }
-
- if (this.state.maybeInArrowParameters && !this.state.yieldInPossibleArrowParameters) {
- this.state.yieldInPossibleArrowParameters = node;
- }
-
- this.next();
-
- if (this.match(types.semi) || this.canInsertSemicolon() || !this.match(types.star) && !this.state.type.startsExpr) {
- node.delegate = false;
- node.argument = null;
- } else {
- node.delegate = this.eat(types.star);
- node.argument = this.parseMaybeAssign();
- }
-
- return this.finishNode(node, "YieldExpression");
- };
-
- return ExpressionParser;
-}(LValParser);
-
-var empty = [];
-var loopLabel = {
- kind: "loop"
-};
-var switchLabel = {
- kind: "switch"
-};
-
-var StatementParser = function (_ExpressionParser) {
- _inheritsLoose(StatementParser, _ExpressionParser);
-
- function StatementParser() {
- return _ExpressionParser.apply(this, arguments) || this;
- }
-
- var _proto = StatementParser.prototype;
-
- _proto.parseTopLevel = function parseTopLevel(file, program) {
- program.sourceType = this.options.sourceType;
- program.interpreter = this.parseInterpreterDirective();
- this.parseBlockBody(program, true, true, types.eof);
- file.program = this.finishNode(program, "Program");
- file.comments = this.state.comments;
- if (this.options.tokens) file.tokens = this.state.tokens;
- return this.finishNode(file, "File");
- };
-
- _proto.stmtToDirective = function stmtToDirective(stmt) {
- var expr = stmt.expression;
- var directiveLiteral = this.startNodeAt(expr.start, expr.loc.start);
- var directive = this.startNodeAt(stmt.start, stmt.loc.start);
- var raw = this.input.slice(expr.start, expr.end);
- var val = directiveLiteral.value = raw.slice(1, -1);
- this.addExtra(directiveLiteral, "raw", raw);
- this.addExtra(directiveLiteral, "rawValue", val);
- directive.value = this.finishNodeAt(directiveLiteral, "DirectiveLiteral", expr.end, expr.loc.end);
- return this.finishNodeAt(directive, "Directive", stmt.end, stmt.loc.end);
- };
-
- _proto.parseInterpreterDirective = function parseInterpreterDirective() {
- if (!this.match(types.interpreterDirective)) {
- return null;
- }
-
- var node = this.startNode();
- node.value = this.state.value;
- this.next();
- return this.finishNode(node, "InterpreterDirective");
- };
-
- _proto.parseStatement = function parseStatement(declaration, topLevel) {
- if (this.match(types.at)) {
- this.parseDecorators(true);
- }
-
- return this.parseStatementContent(declaration, topLevel);
- };
-
- _proto.parseStatementContent = function parseStatementContent(declaration, topLevel) {
- var starttype = this.state.type;
- var node = this.startNode();
-
- switch (starttype) {
- case types._break:
- case types._continue:
- return this.parseBreakContinueStatement(node, starttype.keyword);
-
- case types._debugger:
- return this.parseDebuggerStatement(node);
-
- case types._do:
- return this.parseDoStatement(node);
-
- case types._for:
- return this.parseForStatement(node);
-
- case types._function:
- if (this.lookahead().type === types.dot) break;
- if (!declaration) this.unexpected();
- return this.parseFunctionStatement(node);
-
- case types._class:
- if (!declaration) this.unexpected();
- return this.parseClass(node, true);
-
- case types._if:
- return this.parseIfStatement(node);
-
- case types._return:
- return this.parseReturnStatement(node);
-
- case types._switch:
- return this.parseSwitchStatement(node);
-
- case types._throw:
- return this.parseThrowStatement(node);
-
- case types._try:
- return this.parseTryStatement(node);
-
- case types._let:
- case types._const:
- if (!declaration) this.unexpected();
-
- case types._var:
- return this.parseVarStatement(node, starttype);
-
- case types._while:
- return this.parseWhileStatement(node);
-
- case types._with:
- return this.parseWithStatement(node);
-
- case types.braceL:
- return this.parseBlock();
-
- case types.semi:
- return this.parseEmptyStatement(node);
-
- case types._export:
- case types._import:
- {
- var nextToken = this.lookahead();
-
- if (nextToken.type === types.parenL || nextToken.type === types.dot) {
- break;
- }
-
- if (!this.options.allowImportExportEverywhere && !topLevel) {
- this.raise(this.state.start, "'import' and 'export' may only appear at the top level");
- }
-
- this.next();
- var result;
-
- if (starttype == types._import) {
- result = this.parseImport(node);
-
- if (result.type === "ImportDeclaration" && (!result.importKind || result.importKind === "value")) {
- this.sawUnambiguousESM = true;
- }
- } else {
- result = this.parseExport(node);
-
- if (result.type === "ExportNamedDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportAllDeclaration" && (!result.exportKind || result.exportKind === "value") || result.type === "ExportDefaultDeclaration") {
- this.sawUnambiguousESM = true;
- }
- }
-
- this.assertModuleNodeAllowed(node);
- return result;
- }
-
- case types.name:
- if (this.isContextual("async")) {
- var state = this.state.clone();
- this.next();
-
- if (this.match(types._function) && !this.canInsertSemicolon()) {
- this.expect(types._function);
- return this.parseFunction(node, true, false, true);
- } else {
- this.state = state;
- }
- }
-
- }
-
- var maybeName = this.state.value;
- var expr = this.parseExpression();
-
- if (starttype === types.name && expr.type === "Identifier" && this.eat(types.colon)) {
- return this.parseLabeledStatement(node, maybeName, expr);
- } else {
- return this.parseExpressionStatement(node, expr);
- }
- };
-
- _proto.assertModuleNodeAllowed = function assertModuleNodeAllowed(node) {
- if (!this.options.allowImportExportEverywhere && !this.inModule) {
- this.raise(node.start, "'import' and 'export' may appear only with 'sourceType: \"module\"'", {
- code: "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"
- });
- }
- };
-
- _proto.takeDecorators = function takeDecorators(node) {
- var decorators = this.state.decoratorStack[this.state.decoratorStack.length - 1];
-
- if (decorators.length) {
- node.decorators = decorators;
- this.resetStartLocationFromNode(node, decorators[0]);
- this.state.decoratorStack[this.state.decoratorStack.length - 1] = [];
- }
- };
-
- _proto.canHaveLeadingDecorator = function canHaveLeadingDecorator() {
- return this.match(types._class);
- };
-
- _proto.parseDecorators = function parseDecorators(allowExport) {
- var currentContextDecorators = this.state.decoratorStack[this.state.decoratorStack.length - 1];
-
- while (this.match(types.at)) {
- var decorator = this.parseDecorator();
- currentContextDecorators.push(decorator);
- }
-
- if (this.match(types._export)) {
- if (!allowExport) {
- this.unexpected();
- }
-
- if (this.hasPlugin("decorators") && !this.getPluginOption("decorators", "decoratorsBeforeExport")) {
- this.raise(this.state.start, "Using the export keyword between a decorator and a class is not allowed. " + "Please use `export @dec class` instead.");
- }
- } else if (!this.canHaveLeadingDecorator()) {
- this.raise(this.state.start, "Leading decorators must be attached to a class declaration");
- }
- };
-
- _proto.parseDecorator = function parseDecorator() {
- this.expectOnePlugin(["decorators-legacy", "decorators"]);
- var node = this.startNode();
- this.next();
-
- if (this.hasPlugin("decorators")) {
- this.state.decoratorStack.push([]);
- var startPos = this.state.start;
- var startLoc = this.state.startLoc;
- var expr;
-
- if (this.eat(types.parenL)) {
- expr = this.parseExpression();
- this.expect(types.parenR);
- } else {
- expr = this.parseIdentifier(false);
-
- while (this.eat(types.dot)) {
- var _node = this.startNodeAt(startPos, startLoc);
-
- _node.object = expr;
- _node.property = this.parseIdentifier(true);
- _node.computed = false;
- expr = this.finishNode(_node, "MemberExpression");
- }
- }
-
- if (this.eat(types.parenL)) {
- var _node2 = this.startNodeAt(startPos, startLoc);
-
- _node2.callee = expr;
- _node2.arguments = this.parseCallExpressionArguments(types.parenR, false);
- this.toReferencedList(_node2.arguments);
- expr = this.finishNode(_node2, "CallExpression");
- }
-
- node.expression = expr;
- this.state.decoratorStack.pop();
- } else {
- node.expression = this.parseMaybeAssign();
- }
-
- return this.finishNode(node, "Decorator");
- };
-
- _proto.parseBreakContinueStatement = function parseBreakContinueStatement(node, keyword) {
- var isBreak = keyword === "break";
- this.next();
-
- if (this.isLineTerminator()) {
- node.label = null;
- } else if (!this.match(types.name)) {
- this.unexpected();
- } else {
- node.label = this.parseIdentifier();
- this.semicolon();
- }
-
- var i;
-
- for (i = 0; i < this.state.labels.length; ++i) {
- var lab = this.state.labels[i];
-
- if (node.label == null || lab.name === node.label.name) {
- if (lab.kind != null && (isBreak || lab.kind === "loop")) break;
- if (node.label && isBreak) break;
- }
- }
-
- if (i === this.state.labels.length) {
- this.raise(node.start, "Unsyntactic " + keyword);
- }
-
- return this.finishNode(node, isBreak ? "BreakStatement" : "ContinueStatement");
- };
-
- _proto.parseDebuggerStatement = function parseDebuggerStatement(node) {
- this.next();
- this.semicolon();
- return this.finishNode(node, "DebuggerStatement");
- };
-
- _proto.parseDoStatement = function parseDoStatement(node) {
- this.next();
- this.state.labels.push(loopLabel);
- node.body = this.parseStatement(false);
- this.state.labels.pop();
- this.expect(types._while);
- node.test = this.parseParenExpression();
- this.eat(types.semi);
- return this.finishNode(node, "DoWhileStatement");
- };
-
- _proto.parseForStatement = function parseForStatement(node) {
- this.next();
- this.state.labels.push(loopLabel);
- var forAwait = false;
-
- if (this.state.inAsync && this.isContextual("await")) {
- this.expectPlugin("asyncGenerators");
- forAwait = true;
- this.next();
- }
-
- this.expect(types.parenL);
-
- if (this.match(types.semi)) {
- if (forAwait) {
- this.unexpected();
- }
-
- return this.parseFor(node, null);
- }
-
- if (this.match(types._var) || this.match(types._let) || this.match(types._const)) {
- var _init = this.startNode();
-
- var varKind = this.state.type;
- this.next();
- this.parseVar(_init, true, varKind);
- this.finishNode(_init, "VariableDeclaration");
-
- if (this.match(types._in) || this.isContextual("of")) {
- if (_init.declarations.length === 1) {
- var declaration = _init.declarations[0];
- var isForInInitializer = varKind === types._var && declaration.init && declaration.id.type != "ObjectPattern" && declaration.id.type != "ArrayPattern" && !this.isContextual("of");
-
- if (this.state.strict && isForInInitializer) {
- this.raise(this.state.start, "for-in initializer in strict mode");
- } else if (isForInInitializer || !declaration.init) {
- return this.parseForIn(node, _init, forAwait);
- }
- }
- }
-
- if (forAwait) {
- this.unexpected();
- }
-
- return this.parseFor(node, _init);
- }
-
- var refShorthandDefaultPos = {
- start: 0
- };
- var init = this.parseExpression(true, refShorthandDefaultPos);
-
- if (this.match(types._in) || this.isContextual("of")) {
- var description = this.isContextual("of") ? "for-of statement" : "for-in statement";
- this.toAssignable(init, undefined, description);
- this.checkLVal(init, undefined, undefined, description);
- return this.parseForIn(node, init, forAwait);
- } else if (refShorthandDefaultPos.start) {
- this.unexpected(refShorthandDefaultPos.start);
- }
-
- if (forAwait) {
- this.unexpected();
- }
-
- return this.parseFor(node, init);
- };
-
- _proto.parseFunctionStatement = function parseFunctionStatement(node) {
- this.next();
- return this.parseFunction(node, true);
- };
-
- _proto.parseIfStatement = function parseIfStatement(node) {
- this.next();
- node.test = this.parseParenExpression();
- node.consequent = this.parseStatement(false);
- node.alternate = this.eat(types._else) ? this.parseStatement(false) : null;
- return this.finishNode(node, "IfStatement");
- };
-
- _proto.parseReturnStatement = function parseReturnStatement(node) {
- if (!this.state.inFunction && !this.options.allowReturnOutsideFunction) {
- this.raise(this.state.start, "'return' outside of function");
- }
-
- this.next();
-
- if (this.isLineTerminator()) {
- node.argument = null;
- } else {
- node.argument = this.parseExpression();
- this.semicolon();
- }
-
- return this.finishNode(node, "ReturnStatement");
- };
-
- _proto.parseSwitchStatement = function parseSwitchStatement(node) {
- this.next();
- node.discriminant = this.parseParenExpression();
- var cases = node.cases = [];
- this.expect(types.braceL);
- this.state.labels.push(switchLabel);
- var cur;
-
- for (var sawDefault; !this.match(types.braceR);) {
- if (this.match(types._case) || this.match(types._default)) {
- var isCase = this.match(types._case);
- if (cur) this.finishNode(cur, "SwitchCase");
- cases.push(cur = this.startNode());
- cur.consequent = [];
- this.next();
-
- if (isCase) {
- cur.test = this.parseExpression();
- } else {
- if (sawDefault) {
- this.raise(this.state.lastTokStart, "Multiple default clauses");
- }
-
- sawDefault = true;
- cur.test = null;
- }
-
- this.expect(types.colon);
- } else {
- if (cur) {
- cur.consequent.push(this.parseStatement(true));
- } else {
- this.unexpected();
- }
- }
- }
-
- if (cur) this.finishNode(cur, "SwitchCase");
- this.next();
- this.state.labels.pop();
- return this.finishNode(node, "SwitchStatement");
- };
-
- _proto.parseThrowStatement = function parseThrowStatement(node) {
- this.next();
-
- if (lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.start))) {
- this.raise(this.state.lastTokEnd, "Illegal newline after throw");
- }
-
- node.argument = this.parseExpression();
- this.semicolon();
- return this.finishNode(node, "ThrowStatement");
- };
-
- _proto.parseTryStatement = function parseTryStatement(node) {
- this.next();
- node.block = this.parseBlock();
- node.handler = null;
-
- if (this.match(types._catch)) {
- var clause = this.startNode();
- this.next();
-
- if (this.match(types.parenL)) {
- this.expect(types.parenL);
- clause.param = this.parseBindingAtom();
- var clashes = Object.create(null);
- this.checkLVal(clause.param, true, clashes, "catch clause");
- this.expect(types.parenR);
- } else {
- this.expectPlugin("optionalCatchBinding");
- clause.param = null;
- }
-
- clause.body = this.parseBlock();
- node.handler = this.finishNode(clause, "CatchClause");
- }
-
- node.guardedHandlers = empty;
- node.finalizer = this.eat(types._finally) ? this.parseBlock() : null;
-
- if (!node.handler && !node.finalizer) {
- this.raise(node.start, "Missing catch or finally clause");
- }
-
- return this.finishNode(node, "TryStatement");
- };
-
- _proto.parseVarStatement = function parseVarStatement(node, kind) {
- this.next();
- this.parseVar(node, false, kind);
- this.semicolon();
- return this.finishNode(node, "VariableDeclaration");
- };
-
- _proto.parseWhileStatement = function parseWhileStatement(node) {
- this.next();
- node.test = this.parseParenExpression();
- this.state.labels.push(loopLabel);
- node.body = this.parseStatement(false);
- this.state.labels.pop();
- return this.finishNode(node, "WhileStatement");
- };
-
- _proto.parseWithStatement = function parseWithStatement(node) {
- if (this.state.strict) {
- this.raise(this.state.start, "'with' in strict mode");
- }
-
- this.next();
- node.object = this.parseParenExpression();
- node.body = this.parseStatement(false);
- return this.finishNode(node, "WithStatement");
- };
-
- _proto.parseEmptyStatement = function parseEmptyStatement(node) {
- this.next();
- return this.finishNode(node, "EmptyStatement");
- };
-
- _proto.parseLabeledStatement = function parseLabeledStatement(node, maybeName, expr) {
- for (var _i2 = 0, _this$state$labels2 = this.state.labels; _i2 < _this$state$labels2.length; _i2++) {
- var label = _this$state$labels2[_i2];
-
- if (label.name === maybeName) {
- this.raise(expr.start, "Label '" + maybeName + "' is already declared");
- }
- }
-
- var kind = this.state.type.isLoop ? "loop" : this.match(types._switch) ? "switch" : null;
-
- for (var i = this.state.labels.length - 1; i >= 0; i--) {
- var _label = this.state.labels[i];
-
- if (_label.statementStart === node.start) {
- _label.statementStart = this.state.start;
- _label.kind = kind;
- } else {
- break;
- }
- }
-
- this.state.labels.push({
- name: maybeName,
- kind: kind,
- statementStart: this.state.start
- });
- node.body = this.parseStatement(true);
-
- if (node.body.type == "ClassDeclaration" || node.body.type == "VariableDeclaration" && node.body.kind !== "var" || node.body.type == "FunctionDeclaration" && (this.state.strict || node.body.generator || node.body.async)) {
- this.raise(node.body.start, "Invalid labeled declaration");
- }
-
- this.state.labels.pop();
- node.label = expr;
- return this.finishNode(node, "LabeledStatement");
- };
-
- _proto.parseExpressionStatement = function parseExpressionStatement(node, expr) {
- node.expression = expr;
- this.semicolon();
- return this.finishNode(node, "ExpressionStatement");
- };
-
- _proto.parseBlock = function parseBlock(allowDirectives) {
- var node = this.startNode();
- this.expect(types.braceL);
- this.parseBlockBody(node, allowDirectives, false, types.braceR);
- return this.finishNode(node, "BlockStatement");
- };
-
- _proto.isValidDirective = function isValidDirective(stmt) {
- return stmt.type === "ExpressionStatement" && stmt.expression.type === "StringLiteral" && !stmt.expression.extra.parenthesized;
- };
-
- _proto.parseBlockBody = function parseBlockBody(node, allowDirectives, topLevel, end) {
- var body = node.body = [];
- var directives = node.directives = [];
- this.parseBlockOrModuleBlockBody(body, allowDirectives ? directives : undefined, topLevel, end);
- };
-
- _proto.parseBlockOrModuleBlockBody = function parseBlockOrModuleBlockBody(body, directives, topLevel, end) {
- var parsedNonDirective = false;
- var oldStrict;
- var octalPosition;
-
- while (!this.eat(end)) {
- if (!parsedNonDirective && this.state.containsOctal && !octalPosition) {
- octalPosition = this.state.octalPosition;
- }
-
- var stmt = this.parseStatement(true, topLevel);
-
- if (directives && !parsedNonDirective && this.isValidDirective(stmt)) {
- var directive = this.stmtToDirective(stmt);
- directives.push(directive);
-
- if (oldStrict === undefined && directive.value.value === "use strict") {
- oldStrict = this.state.strict;
- this.setStrict(true);
-
- if (octalPosition) {
- this.raise(octalPosition, "Octal literal in strict mode");
- }
- }
-
- continue;
- }
-
- parsedNonDirective = true;
- body.push(stmt);
- }
-
- if (oldStrict === false) {
- this.setStrict(false);
- }
- };
-
- _proto.parseFor = function parseFor(node, init) {
- node.init = init;
- this.expect(types.semi);
- node.test = this.match(types.semi) ? null : this.parseExpression();
- this.expect(types.semi);
- node.update = this.match(types.parenR) ? null : this.parseExpression();
- this.expect(types.parenR);
- node.body = this.parseStatement(false);
- this.state.labels.pop();
- return this.finishNode(node, "ForStatement");
- };
-
- _proto.parseForIn = function parseForIn(node, init, forAwait) {
- var type = this.match(types._in) ? "ForInStatement" : "ForOfStatement";
-
- if (forAwait) {
- this.eatContextual("of");
- } else {
- this.next();
- }
-
- if (type === "ForOfStatement") {
- node.await = !!forAwait;
- }
-
- node.left = init;
- node.right = this.parseExpression();
- this.expect(types.parenR);
- node.body = this.parseStatement(false);
- this.state.labels.pop();
- return this.finishNode(node, type);
- };
-
- _proto.parseVar = function parseVar(node, isFor, kind) {
- var declarations = node.declarations = [];
- node.kind = kind.keyword;
-
- for (;;) {
- var decl = this.startNode();
- this.parseVarHead(decl);
-
- if (this.eat(types.eq)) {
- decl.init = this.parseMaybeAssign(isFor);
- } else {
- if (kind === types._const && !(this.match(types._in) || this.isContextual("of"))) {
- if (!this.hasPlugin("typescript")) {
- this.unexpected();
- }
- } else if (decl.id.type !== "Identifier" && !(isFor && (this.match(types._in) || this.isContextual("of")))) {
- this.raise(this.state.lastTokEnd, "Complex binding patterns require an initialization value");
- }
-
- decl.init = null;
- }
-
- declarations.push(this.finishNode(decl, "VariableDeclarator"));
- if (!this.eat(types.comma)) break;
- }
-
- return node;
- };
-
- _proto.parseVarHead = function parseVarHead(decl) {
- decl.id = this.parseBindingAtom();
- this.checkLVal(decl.id, true, undefined, "variable declaration");
- };
-
- _proto.parseFunction = function parseFunction(node, isStatement, allowExpressionBody, isAsync, optionalId) {
- var oldInFunc = this.state.inFunction;
- var oldInMethod = this.state.inMethod;
- var oldInGenerator = this.state.inGenerator;
- var oldInClassProperty = this.state.inClassProperty;
- this.state.inFunction = true;
- this.state.inMethod = false;
- this.state.inClassProperty = false;
- this.initFunction(node, isAsync);
-
- if (this.match(types.star)) {
- if (node.async) {
- this.expectPlugin("asyncGenerators");
- }
-
- node.generator = true;
- this.next();
- }
-
- if (isStatement && !optionalId && !this.match(types.name) && !this.match(types._yield)) {
- this.unexpected();
- }
-
- if (!isStatement) this.state.inGenerator = node.generator;
-
- if (this.match(types.name) || this.match(types._yield)) {
- node.id = this.parseBindingIdentifier();
- }
-
- if (isStatement) this.state.inGenerator = node.generator;
- this.parseFunctionParams(node);
- this.parseFunctionBodyAndFinish(node, isStatement ? "FunctionDeclaration" : "FunctionExpression", allowExpressionBody);
- this.state.inFunction = oldInFunc;
- this.state.inMethod = oldInMethod;
- this.state.inGenerator = oldInGenerator;
- this.state.inClassProperty = oldInClassProperty;
- return node;
- };
-
- _proto.parseFunctionParams = function parseFunctionParams(node, allowModifiers) {
- var oldInParameters = this.state.inParameters;
- this.state.inParameters = true;
- this.expect(types.parenL);
- node.params = this.parseBindingList(types.parenR, false, allowModifiers);
- this.state.inParameters = oldInParameters;
- };
-
- _proto.parseClass = function parseClass(node, isStatement, optionalId) {
- this.next();
- this.takeDecorators(node);
- this.parseClassId(node, isStatement, optionalId);
- this.parseClassSuper(node);
- this.parseClassBody(node);
- return this.finishNode(node, isStatement ? "ClassDeclaration" : "ClassExpression");
- };
-
- _proto.isClassProperty = function isClassProperty() {
- return this.match(types.eq) || this.match(types.semi) || this.match(types.braceR);
- };
-
- _proto.isClassMethod = function isClassMethod() {
- return this.match(types.parenL);
- };
-
- _proto.isNonstaticConstructor = function isNonstaticConstructor(method) {
- return !method.computed && !method.static && (method.key.name === "constructor" || method.key.value === "constructor");
- };
-
- _proto.parseClassBody = function parseClassBody(node) {
- var oldStrict = this.state.strict;
- this.state.strict = true;
- this.state.classLevel++;
- var state = {
- hadConstructor: false
- };
- var decorators = [];
- var classBody = this.startNode();
- classBody.body = [];
- this.expect(types.braceL);
-
- while (!this.eat(types.braceR)) {
- if (this.eat(types.semi)) {
- if (decorators.length > 0) {
- this.raise(this.state.lastTokEnd, "Decorators must not be followed by a semicolon");
- }
-
- continue;
- }
-
- if (this.match(types.at)) {
- decorators.push(this.parseDecorator());
- continue;
- }
-
- var member = this.startNode();
-
- if (decorators.length) {
- member.decorators = decorators;
- this.resetStartLocationFromNode(member, decorators[0]);
- decorators = [];
- }
-
- this.parseClassMember(classBody, member, state);
-
- if (member.kind === "constructor" && member.decorators && member.decorators.length > 0) {
- this.raise(member.start, "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?");
- }
- }
-
- if (decorators.length) {
- this.raise(this.state.start, "You have trailing decorators with no method");
- }
-
- node.body = this.finishNode(classBody, "ClassBody");
- this.state.classLevel--;
- this.state.strict = oldStrict;
- };
-
- _proto.parseClassMember = function parseClassMember(classBody, member, state) {
- var isStatic = false;
- var containsEsc = this.state.containsEsc;
-
- if (this.match(types.name) && this.state.value === "static") {
- var key = this.parseIdentifier(true);
-
- if (this.isClassMethod()) {
- var method = member;
- method.kind = "method";
- method.computed = false;
- method.key = key;
- method.static = false;
- this.pushClassMethod(classBody, method, false, false, false);
- return;
- } else if (this.isClassProperty()) {
- var prop = member;
- prop.computed = false;
- prop.key = key;
- prop.static = false;
- classBody.body.push(this.parseClassProperty(prop));
- return;
- } else if (containsEsc) {
- throw this.unexpected();
- }
-
- isStatic = true;
- }
-
- this.parseClassMemberWithIsStatic(classBody, member, state, isStatic);
- };
-
- _proto.parseClassMemberWithIsStatic = function parseClassMemberWithIsStatic(classBody, member, state, isStatic) {
- var publicMethod = member;
- var privateMethod = member;
- var publicProp = member;
- var privateProp = member;
- var method = publicMethod;
- var publicMember = publicMethod;
- member.static = isStatic;
-
- if (this.eat(types.star)) {
- method.kind = "method";
- this.parseClassPropertyName(method);
-
- if (method.key.type === "PrivateName") {
- this.pushClassPrivateMethod(classBody, privateMethod, true, false);
- return;
- }
-
- if (this.isNonstaticConstructor(publicMethod)) {
- this.raise(publicMethod.key.start, "Constructor can't be a generator");
- }
-
- this.pushClassMethod(classBody, publicMethod, true, false, false);
- return;
- }
-
- var key = this.parseClassPropertyName(member);
- var isPrivate = key.type === "PrivateName";
- var isSimple = key.type === "Identifier";
- this.parsePostMemberNameModifiers(publicMember);
-
- if (this.isClassMethod()) {
- method.kind = "method";
-
- if (isPrivate) {
- this.pushClassPrivateMethod(classBody, privateMethod, false, false);
- return;
- }
-
- var isConstructor = this.isNonstaticConstructor(publicMethod);
-
- if (isConstructor) {
- publicMethod.kind = "constructor";
-
- if (publicMethod.decorators) {
- this.raise(publicMethod.start, "You can't attach decorators to a class constructor");
- }
-
- if (state.hadConstructor && !this.hasPlugin("typescript")) {
- this.raise(key.start, "Duplicate constructor in the same class");
- }
-
- state.hadConstructor = true;
- }
-
- this.pushClassMethod(classBody, publicMethod, false, false, isConstructor);
- } else if (this.isClassProperty()) {
- if (isPrivate) {
- this.pushClassPrivateProperty(classBody, privateProp);
- } else {
- this.pushClassProperty(classBody, publicProp);
- }
- } else if (isSimple && key.name === "async" && !this.isLineTerminator()) {
- var isGenerator = this.match(types.star);
-
- if (isGenerator) {
- this.expectPlugin("asyncGenerators");
- this.next();
- }
-
- method.kind = "method";
- this.parseClassPropertyName(method);
-
- if (method.key.type === "PrivateName") {
- this.pushClassPrivateMethod(classBody, privateMethod, isGenerator, true);
- } else {
- if (this.isNonstaticConstructor(publicMethod)) {
- this.raise(publicMethod.key.start, "Constructor can't be an async function");
- }
-
- this.pushClassMethod(classBody, publicMethod, isGenerator, true, false);
- }
- } else if (isSimple && (key.name === "get" || key.name === "set") && !(this.isLineTerminator() && this.match(types.star))) {
- method.kind = key.name;
- this.parseClassPropertyName(publicMethod);
-
- if (method.key.type === "PrivateName") {
- this.pushClassPrivateMethod(classBody, privateMethod, false, false);
- } else {
- if (this.isNonstaticConstructor(publicMethod)) {
- this.raise(publicMethod.key.start, "Constructor can't have get/set modifier");
- }
-
- this.pushClassMethod(classBody, publicMethod, false, false, false);
- }
-
- this.checkGetterSetterParams(publicMethod);
- } else if (this.isLineTerminator()) {
- if (isPrivate) {
- this.pushClassPrivateProperty(classBody, privateProp);
- } else {
- this.pushClassProperty(classBody, publicProp);
- }
- } else {
- this.unexpected();
- }
- };
-
- _proto.parseClassPropertyName = function parseClassPropertyName(member) {
- var key = this.parsePropertyName(member);
-
- if (!member.computed && member.static && (key.name === "prototype" || key.value === "prototype")) {
- this.raise(key.start, "Classes may not have static property named prototype");
- }
-
- if (key.type === "PrivateName" && key.id.name === "constructor") {
- this.raise(key.start, "Classes may not have a private field named '#constructor'");
- }
-
- return key;
- };
-
- _proto.pushClassProperty = function pushClassProperty(classBody, prop) {
- if (this.isNonstaticConstructor(prop)) {
- this.raise(prop.key.start, "Classes may not have a non-static field named 'constructor'");
- }
-
- classBody.body.push(this.parseClassProperty(prop));
- };
-
- _proto.pushClassPrivateProperty = function pushClassPrivateProperty(classBody, prop) {
- this.expectPlugin("classPrivateProperties", prop.key.start);
- classBody.body.push(this.parseClassPrivateProperty(prop));
- };
-
- _proto.pushClassMethod = function pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor) {
- classBody.body.push(this.parseMethod(method, isGenerator, isAsync, isConstructor, "ClassMethod"));
- };
-
- _proto.pushClassPrivateMethod = function pushClassPrivateMethod(classBody, method, isGenerator, isAsync) {
- this.expectPlugin("classPrivateMethods", method.key.start);
- classBody.body.push(this.parseMethod(method, isGenerator, isAsync, false, "ClassPrivateMethod"));
- };
-
- _proto.parsePostMemberNameModifiers = function parsePostMemberNameModifiers(methodOrProp) {};
-
- _proto.parseAccessModifier = function parseAccessModifier() {
- return undefined;
- };
-
- _proto.parseClassPrivateProperty = function parseClassPrivateProperty(node) {
- var oldInMethod = this.state.inMethod;
- this.state.inMethod = false;
- this.state.inClassProperty = true;
- node.value = this.eat(types.eq) ? this.parseMaybeAssign() : null;
- this.semicolon();
- this.state.inClassProperty = false;
- this.state.inMethod = oldInMethod;
- return this.finishNode(node, "ClassPrivateProperty");
- };
-
- _proto.parseClassProperty = function parseClassProperty(node) {
- if (!node.typeAnnotation) {
- this.expectPlugin("classProperties");
- }
-
- var oldInMethod = this.state.inMethod;
- this.state.inMethod = false;
- this.state.inClassProperty = true;
-
- if (this.match(types.eq)) {
- this.expectPlugin("classProperties");
- this.next();
- node.value = this.parseMaybeAssign();
- } else {
- node.value = null;
- }
-
- this.semicolon();
- this.state.inClassProperty = false;
- this.state.inMethod = oldInMethod;
- return this.finishNode(node, "ClassProperty");
- };
-
- _proto.parseClassId = function parseClassId(node, isStatement, optionalId) {
- if (this.match(types.name)) {
- node.id = this.parseIdentifier();
- } else {
- if (optionalId || !isStatement) {
- node.id = null;
- } else {
- this.unexpected(null, "A class name is required");
- }
- }
- };
-
- _proto.parseClassSuper = function parseClassSuper(node) {
- node.superClass = this.eat(types._extends) ? this.parseExprSubscripts() : null;
- };
-
- _proto.parseExport = function parseExport(node) {
- if (this.shouldParseExportStar()) {
- this.parseExportStar(node);
- if (node.type === "ExportAllDeclaration") return node;
- } else if (this.isExportDefaultSpecifier()) {
- this.expectPlugin("exportDefaultFrom");
- var specifier = this.startNode();
- specifier.exported = this.parseIdentifier(true);
- var specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")];
- node.specifiers = specifiers;
-
- if (this.match(types.comma) && this.lookahead().type === types.star) {
- this.expect(types.comma);
-
- var _specifier = this.startNode();
-
- this.expect(types.star);
- this.expectContextual("as");
- _specifier.exported = this.parseIdentifier();
- specifiers.push(this.finishNode(_specifier, "ExportNamespaceSpecifier"));
- } else {
- this.parseExportSpecifiersMaybe(node);
- }
-
- this.parseExportFrom(node, true);
- } else if (this.eat(types._default)) {
- node.declaration = this.parseExportDefaultExpression();
- this.checkExport(node, true, true);
- return this.finishNode(node, "ExportDefaultDeclaration");
- } else if (this.shouldParseExportDeclaration()) {
- if (this.isContextual("async")) {
- var next = this.lookahead();
-
- if (next.type !== types._function) {
- this.unexpected(next.start, "Unexpected token, expected \"function\"");
- }
- }
-
- node.specifiers = [];
- node.source = null;
- node.declaration = this.parseExportDeclaration(node);
- } else {
- node.declaration = null;
- node.specifiers = this.parseExportSpecifiers();
- this.parseExportFrom(node);
- }
-
- this.checkExport(node, true);
- return this.finishNode(node, "ExportNamedDeclaration");
- };
-
- _proto.parseExportDefaultExpression = function parseExportDefaultExpression() {
- var expr = this.startNode();
-
- if (this.eat(types._function)) {
- return this.parseFunction(expr, true, false, false, true);
- } else if (this.isContextual("async") && this.lookahead().type === types._function) {
- this.eatContextual("async");
- this.eat(types._function);
- return this.parseFunction(expr, true, false, true, true);
- } else if (this.match(types._class)) {
- return this.parseClass(expr, true, true);
- } else if (this.match(types.at)) {
- if (this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport")) {
- this.unexpected(this.state.start, "Decorators must be placed *before* the 'export' keyword." + " You can set the 'decoratorsBeforeExport' option to false to use" + " the 'export @decorator class {}' syntax");
- }
-
- this.parseDecorators(false);
- return this.parseClass(expr, true, true);
- } else if (this.match(types._let) || this.match(types._const) || this.match(types._var)) {
- return this.raise(this.state.start, "Only expressions, functions or classes are allowed as the `default` export.");
- } else {
- var res = this.parseMaybeAssign();
- this.semicolon();
- return res;
- }
- };
-
- _proto.parseExportDeclaration = function parseExportDeclaration(node) {
- return this.parseStatement(true);
- };
-
- _proto.isExportDefaultSpecifier = function isExportDefaultSpecifier() {
- if (this.match(types.name)) {
- return this.state.value !== "async";
- }
-
- if (!this.match(types._default)) {
- return false;
- }
-
- var lookahead = this.lookahead();
- return lookahead.type === types.comma || lookahead.type === types.name && lookahead.value === "from";
- };
-
- _proto.parseExportSpecifiersMaybe = function parseExportSpecifiersMaybe(node) {
- if (this.eat(types.comma)) {
- node.specifiers = node.specifiers.concat(this.parseExportSpecifiers());
- }
- };
-
- _proto.parseExportFrom = function parseExportFrom(node, expect) {
- if (this.eatContextual("from")) {
- node.source = this.match(types.string) ? this.parseExprAtom() : this.unexpected();
- this.checkExport(node);
- } else {
- if (expect) {
- this.unexpected();
- } else {
- node.source = null;
- }
- }
-
- this.semicolon();
- };
-
- _proto.shouldParseExportStar = function shouldParseExportStar() {
- return this.match(types.star);
- };
-
- _proto.parseExportStar = function parseExportStar(node) {
- this.expect(types.star);
-
- if (this.isContextual("as")) {
- this.parseExportNamespace(node);
- } else {
- this.parseExportFrom(node, true);
- this.finishNode(node, "ExportAllDeclaration");
- }
- };
-
- _proto.parseExportNamespace = function parseExportNamespace(node) {
- this.expectPlugin("exportNamespaceFrom");
- var specifier = this.startNodeAt(this.state.lastTokStart, this.state.lastTokStartLoc);
- this.next();
- specifier.exported = this.parseIdentifier(true);
- node.specifiers = [this.finishNode(specifier, "ExportNamespaceSpecifier")];
- this.parseExportSpecifiersMaybe(node);
- this.parseExportFrom(node, true);
- };
-
- _proto.shouldParseExportDeclaration = function shouldParseExportDeclaration() {
- if (this.match(types.at)) {
- this.expectOnePlugin(["decorators", "decorators-legacy"]);
-
- if (this.hasPlugin("decorators")) {
- if (this.getPluginOption("decorators", "decoratorsBeforeExport")) {
- this.unexpected(this.state.start, "Decorators must be placed *before* the 'export' keyword." + " You can set the 'decoratorsBeforeExport' option to false to use" + " the 'export @decorator class {}' syntax");
- } else {
- return true;
- }
- }
- }
-
- return this.state.type.keyword === "var" || this.state.type.keyword === "const" || this.state.type.keyword === "let" || this.state.type.keyword === "function" || this.state.type.keyword === "class" || this.isContextual("async");
- };
-
- _proto.checkExport = function checkExport(node, checkNames, isDefault) {
- if (checkNames) {
- if (isDefault) {
- this.checkDuplicateExports(node, "default");
- } else if (node.specifiers && node.specifiers.length) {
- for (var _i4 = 0, _node$specifiers2 = node.specifiers; _i4 < _node$specifiers2.length; _i4++) {
- var specifier = _node$specifiers2[_i4];
- this.checkDuplicateExports(specifier, specifier.exported.name);
- }
- } else if (node.declaration) {
- if (node.declaration.type === "FunctionDeclaration" || node.declaration.type === "ClassDeclaration") {
- var id = node.declaration.id;
- if (!id) throw new Error("Assertion failure");
- this.checkDuplicateExports(node, id.name);
- } else if (node.declaration.type === "VariableDeclaration") {
- for (var _i6 = 0, _node$declaration$dec2 = node.declaration.declarations; _i6 < _node$declaration$dec2.length; _i6++) {
- var declaration = _node$declaration$dec2[_i6];
- this.checkDeclaration(declaration.id);
- }
- }
- }
- }
-
- var currentContextDecorators = this.state.decoratorStack[this.state.decoratorStack.length - 1];
-
- if (currentContextDecorators.length) {
- var isClass = node.declaration && (node.declaration.type === "ClassDeclaration" || node.declaration.type === "ClassExpression");
-
- if (!node.declaration || !isClass) {
- throw this.raise(node.start, "You can only use decorators on an export when exporting a class");
- }
-
- this.takeDecorators(node.declaration);
- }
- };
-
- _proto.checkDeclaration = function checkDeclaration(node) {
- if (node.type === "ObjectPattern") {
- for (var _i8 = 0, _node$properties2 = node.properties; _i8 < _node$properties2.length; _i8++) {
- var prop = _node$properties2[_i8];
- this.checkDeclaration(prop);
- }
- } else if (node.type === "ArrayPattern") {
- for (var _i10 = 0, _node$elements2 = node.elements; _i10 < _node$elements2.length; _i10++) {
- var elem = _node$elements2[_i10];
-
- if (elem) {
- this.checkDeclaration(elem);
- }
- }
- } else if (node.type === "ObjectProperty") {
- this.checkDeclaration(node.value);
- } else if (node.type === "RestElement") {
- this.checkDeclaration(node.argument);
- } else if (node.type === "Identifier") {
- this.checkDuplicateExports(node, node.name);
- }
- };
-
- _proto.checkDuplicateExports = function checkDuplicateExports(node, name) {
- if (this.state.exportedIdentifiers.indexOf(name) > -1) {
- this.raiseDuplicateExportError(node, name);
- }
-
- this.state.exportedIdentifiers.push(name);
- };
-
- _proto.raiseDuplicateExportError = function raiseDuplicateExportError(node, name) {
- throw this.raise(node.start, name === "default" ? "Only one default export allowed per module." : "`" + name + "` has already been exported. Exported identifiers must be unique.");
- };
-
- _proto.parseExportSpecifiers = function parseExportSpecifiers() {
- var nodes = [];
- var first = true;
- var needsFrom;
- this.expect(types.braceL);
-
- while (!this.eat(types.braceR)) {
- if (first) {
- first = false;
- } else {
- this.expect(types.comma);
- if (this.eat(types.braceR)) break;
- }
-
- var isDefault = this.match(types._default);
- if (isDefault && !needsFrom) needsFrom = true;
- var node = this.startNode();
- node.local = this.parseIdentifier(isDefault);
- node.exported = this.eatContextual("as") ? this.parseIdentifier(true) : node.local.__clone();
- nodes.push(this.finishNode(node, "ExportSpecifier"));
- }
-
- if (needsFrom && !this.isContextual("from")) {
- this.unexpected();
- }
-
- return nodes;
- };
-
- _proto.parseImport = function parseImport(node) {
- if (this.match(types.string)) {
- node.specifiers = [];
- node.source = this.parseExprAtom();
- } else {
- node.specifiers = [];
- this.parseImportSpecifiers(node);
- this.expectContextual("from");
- node.source = this.match(types.string) ? this.parseExprAtom() : this.unexpected();
- }
-
- this.semicolon();
- return this.finishNode(node, "ImportDeclaration");
- };
-
- _proto.shouldParseDefaultImport = function shouldParseDefaultImport(node) {
- return this.match(types.name);
- };
-
- _proto.parseImportSpecifierLocal = function parseImportSpecifierLocal(node, specifier, type, contextDescription) {
- specifier.local = this.parseIdentifier();
- this.checkLVal(specifier.local, true, undefined, contextDescription);
- node.specifiers.push(this.finishNode(specifier, type));
- };
-
- _proto.parseImportSpecifiers = function parseImportSpecifiers(node) {
- var first = true;
-
- if (this.shouldParseDefaultImport(node)) {
- this.parseImportSpecifierLocal(node, this.startNode(), "ImportDefaultSpecifier", "default import specifier");
- if (!this.eat(types.comma)) return;
- }
-
- if (this.match(types.star)) {
- var specifier = this.startNode();
- this.next();
- this.expectContextual("as");
- this.parseImportSpecifierLocal(node, specifier, "ImportNamespaceSpecifier", "import namespace specifier");
- return;
- }
-
- this.expect(types.braceL);
-
- while (!this.eat(types.braceR)) {
- if (first) {
- first = false;
- } else {
- if (this.eat(types.colon)) {
- this.unexpected(null, "ES2015 named imports do not destructure. " + "Use another statement for destructuring after the import.");
- }
-
- this.expect(types.comma);
- if (this.eat(types.braceR)) break;
- }
-
- this.parseImportSpecifier(node);
- }
- };
-
- _proto.parseImportSpecifier = function parseImportSpecifier(node) {
- var specifier = this.startNode();
- specifier.imported = this.parseIdentifier(true);
-
- if (this.eatContextual("as")) {
- specifier.local = this.parseIdentifier();
- } else {
- this.checkReservedWord(specifier.imported.name, specifier.start, true, true);
- specifier.local = specifier.imported.__clone();
- }
-
- this.checkLVal(specifier.local, true, undefined, "import specifier");
- node.specifiers.push(this.finishNode(specifier, "ImportSpecifier"));
- };
-
- return StatementParser;
-}(ExpressionParser);
-
-var Parser = function (_StatementParser) {
- _inheritsLoose(Parser, _StatementParser);
-
- function Parser(options, input) {
- var _this;
-
- options = getOptions(options);
- _this = _StatementParser.call(this, options, input) || this;
- _this.options = options;
- _this.inModule = _this.options.sourceType === "module";
- _this.input = input;
- _this.plugins = pluginsMap(_this.options.plugins);
- _this.filename = options.sourceFilename;
- return _this;
- }
-
- var _proto = Parser.prototype;
-
- _proto.parse = function parse() {
- var file = this.startNode();
- var program = this.startNode();
- this.nextToken();
- return this.parseTopLevel(file, program);
- };
-
- return Parser;
-}(StatementParser);
-
-function pluginsMap(plugins) {
- var pluginMap = Object.create(null);
-
- for (var _i2 = 0; _i2 < plugins.length; _i2++) {
- var plugin = plugins[_i2];
-
- var _ref = Array.isArray(plugin) ? plugin : [plugin, {}],
- name = _ref[0],
- _ref$ = _ref[1],
- options = _ref$ === void 0 ? {} : _ref$;
-
- if (!pluginMap[name]) pluginMap[name] = options || {};
- }
-
- return pluginMap;
-}
-
-function nonNull(x) {
- if (x == null) {
- throw new Error("Unexpected " + x + " value.");
- }
-
- return x;
-}
-
-function assert(x) {
- if (!x) {
- throw new Error("Assert fail");
- }
-}
-
-function keywordTypeFromName(value) {
- switch (value) {
- case "any":
- return "TSAnyKeyword";
-
- case "boolean":
- return "TSBooleanKeyword";
-
- case "never":
- return "TSNeverKeyword";
-
- case "number":
- return "TSNumberKeyword";
-
- case "object":
- return "TSObjectKeyword";
-
- case "string":
- return "TSStringKeyword";
-
- case "symbol":
- return "TSSymbolKeyword";
-
- case "undefined":
- return "TSUndefinedKeyword";
-
- default:
- return undefined;
- }
-}
-
-var typescript = (function (superClass) {
- return function (_superClass) {
- _inheritsLoose(_class, _superClass);
-
- function _class() {
- return _superClass.apply(this, arguments) || this;
- }
-
- var _proto = _class.prototype;
-
- _proto.tsIsIdentifier = function tsIsIdentifier() {
- return this.match(types.name);
- };
-
- _proto.tsNextTokenCanFollowModifier = function tsNextTokenCanFollowModifier() {
- this.next();
- return !this.hasPrecedingLineBreak() && !this.match(types.parenL) && !this.match(types.parenR) && !this.match(types.colon) && !this.match(types.eq) && !this.match(types.question);
- };
-
- _proto.tsParseModifier = function tsParseModifier(allowedModifiers) {
- if (!this.match(types.name)) {
- return undefined;
- }
-
- var modifier = this.state.value;
-
- if (allowedModifiers.indexOf(modifier) !== -1 && this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) {
- return modifier;
- }
-
- return undefined;
- };
-
- _proto.tsIsListTerminator = function tsIsListTerminator(kind) {
- switch (kind) {
- case "EnumMembers":
- case "TypeMembers":
- return this.match(types.braceR);
-
- case "HeritageClauseElement":
- return this.match(types.braceL);
-
- case "TupleElementTypes":
- return this.match(types.bracketR);
-
- case "TypeParametersOrArguments":
- return this.isRelational(">");
- }
-
- throw new Error("Unreachable");
- };
-
- _proto.tsParseList = function tsParseList(kind, parseElement) {
- var result = [];
-
- while (!this.tsIsListTerminator(kind)) {
- result.push(parseElement());
- }
-
- return result;
- };
-
- _proto.tsParseDelimitedList = function tsParseDelimitedList(kind, parseElement) {
- return nonNull(this.tsParseDelimitedListWorker(kind, parseElement, true));
- };
-
- _proto.tsTryParseDelimitedList = function tsTryParseDelimitedList(kind, parseElement) {
- return this.tsParseDelimitedListWorker(kind, parseElement, false);
- };
-
- _proto.tsParseDelimitedListWorker = function tsParseDelimitedListWorker(kind, parseElement, expectSuccess) {
- var result = [];
-
- while (true) {
- if (this.tsIsListTerminator(kind)) {
- break;
- }
-
- var element = parseElement();
-
- if (element == null) {
- return undefined;
- }
-
- result.push(element);
-
- if (this.eat(types.comma)) {
- continue;
- }
-
- if (this.tsIsListTerminator(kind)) {
- break;
- }
-
- if (expectSuccess) {
- this.expect(types.comma);
- }
-
- return undefined;
- }
-
- return result;
- };
-
- _proto.tsParseBracketedList = function tsParseBracketedList(kind, parseElement, bracket, skipFirstToken) {
- if (!skipFirstToken) {
- if (bracket) {
- this.expect(types.bracketL);
- } else {
- this.expectRelational("<");
- }
- }
-
- var result = this.tsParseDelimitedList(kind, parseElement);
-
- if (bracket) {
- this.expect(types.bracketR);
- } else {
- this.expectRelational(">");
- }
-
- return result;
- };
-
- _proto.tsParseEntityName = function tsParseEntityName(allowReservedWords) {
- var entity = this.parseIdentifier();
-
- while (this.eat(types.dot)) {
- var node = this.startNodeAtNode(entity);
- node.left = entity;
- node.right = this.parseIdentifier(allowReservedWords);
- entity = this.finishNode(node, "TSQualifiedName");
- }
-
- return entity;
- };
-
- _proto.tsParseTypeReference = function tsParseTypeReference() {
- var node = this.startNode();
- node.typeName = this.tsParseEntityName(false);
-
- if (!this.hasPrecedingLineBreak() && this.isRelational("<")) {
- node.typeParameters = this.tsParseTypeArguments();
- }
-
- return this.finishNode(node, "TSTypeReference");
- };
-
- _proto.tsParseThisTypePredicate = function tsParseThisTypePredicate(lhs) {
- this.next();
- var node = this.startNode();
- node.parameterName = lhs;
- node.typeAnnotation = this.tsParseTypeAnnotation(false);
- return this.finishNode(node, "TSTypePredicate");
- };
-
- _proto.tsParseThisTypeNode = function tsParseThisTypeNode() {
- var node = this.startNode();
- this.next();
- return this.finishNode(node, "TSThisType");
- };
-
- _proto.tsParseTypeQuery = function tsParseTypeQuery() {
- var node = this.startNode();
- this.expect(types._typeof);
- node.exprName = this.tsParseEntityName(true);
- return this.finishNode(node, "TSTypeQuery");
- };
-
- _proto.tsParseTypeParameter = function tsParseTypeParameter() {
- var node = this.startNode();
- node.name = this.parseIdentifierName(node.start);
- node.constraint = this.tsEatThenParseType(types._extends);
- node.default = this.tsEatThenParseType(types.eq);
- return this.finishNode(node, "TSTypeParameter");
- };
-
- _proto.tsTryParseTypeParameters = function tsTryParseTypeParameters() {
- if (this.isRelational("<")) {
- return this.tsParseTypeParameters();
- }
- };
-
- _proto.tsParseTypeParameters = function tsParseTypeParameters() {
- var node = this.startNode();
-
- if (this.isRelational("<") || this.match(types.jsxTagStart)) {
- this.next();
- } else {
- this.unexpected();
- }
-
- node.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this), false, true);
- return this.finishNode(node, "TSTypeParameterDeclaration");
- };
-
- _proto.tsFillSignature = function tsFillSignature(returnToken, signature) {
- var returnTokenRequired = returnToken === types.arrow;
- signature.typeParameters = this.tsTryParseTypeParameters();
- this.expect(types.parenL);
- signature.parameters = this.tsParseBindingListForSignature();
-
- if (returnTokenRequired) {
- signature.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(returnToken);
- } else if (this.match(returnToken)) {
- signature.typeAnnotation = this.tsParseTypeOrTypePredicateAnnotation(returnToken);
- }
- };
-
- _proto.tsParseBindingListForSignature = function tsParseBindingListForSignature() {
- var _this = this;
-
- return this.parseBindingList(types.parenR).map(function (pattern) {
- if (pattern.type !== "Identifier" && pattern.type !== "RestElement") {
- throw _this.unexpected(pattern.start, "Name in a signature must be an Identifier.");
- }
-
- return pattern;
- });
- };
-
- _proto.tsParseTypeMemberSemicolon = function tsParseTypeMemberSemicolon() {
- if (!this.eat(types.comma)) {
- this.semicolon();
- }
- };
-
- _proto.tsParseSignatureMember = function tsParseSignatureMember(kind) {
- var node = this.startNode();
-
- if (kind === "TSConstructSignatureDeclaration") {
- this.expect(types._new);
- }
-
- this.tsFillSignature(types.colon, node);
- this.tsParseTypeMemberSemicolon();
- return this.finishNode(node, kind);
- };
-
- _proto.tsIsUnambiguouslyIndexSignature = function tsIsUnambiguouslyIndexSignature() {
- this.next();
- return this.eat(types.name) && this.match(types.colon);
- };
-
- _proto.tsTryParseIndexSignature = function tsTryParseIndexSignature(node) {
- if (!(this.match(types.bracketL) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) {
- return undefined;
- }
-
- this.expect(types.bracketL);
- var id = this.parseIdentifier();
- this.expect(types.colon);
- id.typeAnnotation = this.tsParseTypeAnnotation(false);
- this.expect(types.bracketR);
- node.parameters = [id];
- var type = this.tsTryParseTypeAnnotation();
- if (type) node.typeAnnotation = type;
- this.tsParseTypeMemberSemicolon();
- return this.finishNode(node, "TSIndexSignature");
- };
-
- _proto.tsParsePropertyOrMethodSignature = function tsParsePropertyOrMethodSignature(node, readonly) {
- this.parsePropertyName(node);
- if (this.eat(types.question)) node.optional = true;
- var nodeAny = node;
-
- if (!readonly && (this.match(types.parenL) || this.isRelational("<"))) {
- var method = nodeAny;
- this.tsFillSignature(types.colon, method);
- this.tsParseTypeMemberSemicolon();
- return this.finishNode(method, "TSMethodSignature");
- } else {
- var property = nodeAny;
- if (readonly) property.readonly = true;
- var type = this.tsTryParseTypeAnnotation();
- if (type) property.typeAnnotation = type;
- this.tsParseTypeMemberSemicolon();
- return this.finishNode(property, "TSPropertySignature");
- }
- };
-
- _proto.tsParseTypeMember = function tsParseTypeMember() {
- if (this.match(types.parenL) || this.isRelational("<")) {
- return this.tsParseSignatureMember("TSCallSignatureDeclaration");
- }
-
- if (this.match(types._new) && this.tsLookAhead(this.tsIsStartOfConstructSignature.bind(this))) {
- return this.tsParseSignatureMember("TSConstructSignatureDeclaration");
- }
-
- var node = this.startNode();
- var readonly = !!this.tsParseModifier(["readonly"]);
- var idx = this.tsTryParseIndexSignature(node);
-
- if (idx) {
- if (readonly) node.readonly = true;
- return idx;
- }
-
- return this.tsParsePropertyOrMethodSignature(node, readonly);
- };
-
- _proto.tsIsStartOfConstructSignature = function tsIsStartOfConstructSignature() {
- this.next();
- return this.match(types.parenL) || this.isRelational("<");
- };
-
- _proto.tsParseTypeLiteral = function tsParseTypeLiteral() {
- var node = this.startNode();
- node.members = this.tsParseObjectTypeMembers();
- return this.finishNode(node, "TSTypeLiteral");
- };
-
- _proto.tsParseObjectTypeMembers = function tsParseObjectTypeMembers() {
- this.expect(types.braceL);
- var members = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this));
- this.expect(types.braceR);
- return members;
- };
-
- _proto.tsIsStartOfMappedType = function tsIsStartOfMappedType() {
- this.next();
-
- if (this.eat(types.plusMin)) {
- return this.isContextual("readonly");
- }
-
- if (this.isContextual("readonly")) {
- this.next();
- }
-
- if (!this.match(types.bracketL)) {
- return false;
- }
-
- this.next();
-
- if (!this.tsIsIdentifier()) {
- return false;
- }
-
- this.next();
- return this.match(types._in);
- };
-
- _proto.tsParseMappedTypeParameter = function tsParseMappedTypeParameter() {
- var node = this.startNode();
- node.name = this.parseIdentifierName(node.start);
- node.constraint = this.tsExpectThenParseType(types._in);
- return this.finishNode(node, "TSTypeParameter");
- };
-
- _proto.tsParseMappedType = function tsParseMappedType() {
- var node = this.startNode();
- this.expect(types.braceL);
-
- if (this.match(types.plusMin)) {
- node.readonly = this.state.value;
- this.next();
- this.expectContextual("readonly");
- } else if (this.eatContextual("readonly")) {
- node.readonly = true;
- }
-
- this.expect(types.bracketL);
- node.typeParameter = this.tsParseMappedTypeParameter();
- this.expect(types.bracketR);
-
- if (this.match(types.plusMin)) {
- node.optional = this.state.value;
- this.next();
- this.expect(types.question);
- } else if (this.eat(types.question)) {
- node.optional = true;
- }
-
- node.typeAnnotation = this.tsTryParseType();
- this.semicolon();
- this.expect(types.braceR);
- return this.finishNode(node, "TSMappedType");
- };
-
- _proto.tsParseTupleType = function tsParseTupleType() {
- var node = this.startNode();
- node.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseType.bind(this), true, false);
- return this.finishNode(node, "TSTupleType");
- };
-
- _proto.tsParseParenthesizedType = function tsParseParenthesizedType() {
- var node = this.startNode();
- this.expect(types.parenL);
- node.typeAnnotation = this.tsParseType();
- this.expect(types.parenR);
- return this.finishNode(node, "TSParenthesizedType");
- };
-
- _proto.tsParseFunctionOrConstructorType = function tsParseFunctionOrConstructorType(type) {
- var node = this.startNode();
-
- if (type === "TSConstructorType") {
- this.expect(types._new);
- }
-
- this.tsFillSignature(types.arrow, node);
- return this.finishNode(node, type);
- };
-
- _proto.tsParseLiteralTypeNode = function tsParseLiteralTypeNode() {
- var _this2 = this;
-
- var node = this.startNode();
-
- node.literal = function () {
- switch (_this2.state.type) {
- case types.num:
- return _this2.parseLiteral(_this2.state.value, "NumericLiteral");
-
- case types.string:
- return _this2.parseLiteral(_this2.state.value, "StringLiteral");
-
- case types._true:
- case types._false:
- return _this2.parseBooleanLiteral();
-
- default:
- throw _this2.unexpected();
- }
- }();
-
- return this.finishNode(node, "TSLiteralType");
- };
-
- _proto.tsParseNonArrayType = function tsParseNonArrayType() {
- switch (this.state.type) {
- case types.name:
- case types._void:
- case types._null:
- {
- var type = this.match(types._void) ? "TSVoidKeyword" : this.match(types._null) ? "TSNullKeyword" : keywordTypeFromName(this.state.value);
-
- if (type !== undefined && this.lookahead().type !== types.dot) {
- var node = this.startNode();
- this.next();
- return this.finishNode(node, type);
- }
-
- return this.tsParseTypeReference();
- }
-
- case types.string:
- case types.num:
- case types._true:
- case types._false:
- return this.tsParseLiteralTypeNode();
-
- case types.plusMin:
- if (this.state.value === "-") {
- var _node = this.startNode();
-
- this.next();
-
- if (!this.match(types.num)) {
- throw this.unexpected();
- }
-
- _node.literal = this.parseLiteral(-this.state.value, "NumericLiteral", _node.start, _node.loc.start);
- return this.finishNode(_node, "TSLiteralType");
- }
-
- break;
-
- case types._this:
- {
- var thisKeyword = this.tsParseThisTypeNode();
-
- if (this.isContextual("is") && !this.hasPrecedingLineBreak()) {
- return this.tsParseThisTypePredicate(thisKeyword);
- } else {
- return thisKeyword;
- }
- }
-
- case types._typeof:
- return this.tsParseTypeQuery();
-
- case types.braceL:
- return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this)) ? this.tsParseMappedType() : this.tsParseTypeLiteral();
-
- case types.bracketL:
- return this.tsParseTupleType();
-
- case types.parenL:
- return this.tsParseParenthesizedType();
- }
-
- throw this.unexpected();
- };
-
- _proto.tsParseArrayTypeOrHigher = function tsParseArrayTypeOrHigher() {
- var type = this.tsParseNonArrayType();
-
- while (!this.hasPrecedingLineBreak() && this.eat(types.bracketL)) {
- if (this.match(types.bracketR)) {
- var node = this.startNodeAtNode(type);
- node.elementType = type;
- this.expect(types.bracketR);
- type = this.finishNode(node, "TSArrayType");
- } else {
- var _node2 = this.startNodeAtNode(type);
-
- _node2.objectType = type;
- _node2.indexType = this.tsParseType();
- this.expect(types.bracketR);
- type = this.finishNode(_node2, "TSIndexedAccessType");
- }
- }
-
- return type;
- };
-
- _proto.tsParseTypeOperator = function tsParseTypeOperator(operator) {
- var node = this.startNode();
- this.expectContextual(operator);
- node.operator = operator;
- node.typeAnnotation = this.tsParseTypeOperatorOrHigher();
- return this.finishNode(node, "TSTypeOperator");
- };
-
- _proto.tsParseInferType = function tsParseInferType() {
- var node = this.startNode();
- this.expectContextual("infer");
- var typeParameter = this.startNode();
- typeParameter.name = this.parseIdentifierName(typeParameter.start);
- node.typeParameter = this.finishNode(typeParameter, "TSTypeParameter");
- return this.finishNode(node, "TSInferType");
- };
-
- _proto.tsParseTypeOperatorOrHigher = function tsParseTypeOperatorOrHigher() {
- var _this3 = this;
-
- var operator = ["keyof", "unique"].find(function (kw) {
- return _this3.isContextual(kw);
- });
- return operator ? this.tsParseTypeOperator(operator) : this.isContextual("infer") ? this.tsParseInferType() : this.tsParseArrayTypeOrHigher();
- };
-
- _proto.tsParseUnionOrIntersectionType = function tsParseUnionOrIntersectionType(kind, parseConstituentType, operator) {
- this.eat(operator);
- var type = parseConstituentType();
-
- if (this.match(operator)) {
- var types$$1 = [type];
-
- while (this.eat(operator)) {
- types$$1.push(parseConstituentType());
- }
-
- var node = this.startNodeAtNode(type);
- node.types = types$$1;
- type = this.finishNode(node, kind);
- }
-
- return type;
- };
-
- _proto.tsParseIntersectionTypeOrHigher = function tsParseIntersectionTypeOrHigher() {
- return this.tsParseUnionOrIntersectionType("TSIntersectionType", this.tsParseTypeOperatorOrHigher.bind(this), types.bitwiseAND);
- };
-
- _proto.tsParseUnionTypeOrHigher = function tsParseUnionTypeOrHigher() {
- return this.tsParseUnionOrIntersectionType("TSUnionType", this.tsParseIntersectionTypeOrHigher.bind(this), types.bitwiseOR);
- };
-
- _proto.tsIsStartOfFunctionType = function tsIsStartOfFunctionType() {
- if (this.isRelational("<")) {
- return true;
- }
-
- return this.match(types.parenL) && this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this));
- };
-
- _proto.tsSkipParameterStart = function tsSkipParameterStart() {
- if (this.match(types.name) || this.match(types._this)) {
- this.next();
- return true;
- }
-
- return false;
- };
-
- _proto.tsIsUnambiguouslyStartOfFunctionType = function tsIsUnambiguouslyStartOfFunctionType() {
- this.next();
-
- if (this.match(types.parenR) || this.match(types.ellipsis)) {
- return true;
- }
-
- if (this.tsSkipParameterStart()) {
- if (this.match(types.colon) || this.match(types.comma) || this.match(types.question) || this.match(types.eq)) {
- return true;
- }
-
- if (this.match(types.parenR)) {
- this.next();
-
- if (this.match(types.arrow)) {
- return true;
- }
- }
- }
-
- return false;
- };
-
- _proto.tsParseTypeOrTypePredicateAnnotation = function tsParseTypeOrTypePredicateAnnotation(returnToken) {
- var _this4 = this;
-
- return this.tsInType(function () {
- var t = _this4.startNode();
-
- _this4.expect(returnToken);
-
- var typePredicateVariable = _this4.tsIsIdentifier() && _this4.tsTryParse(_this4.tsParseTypePredicatePrefix.bind(_this4));
-
- if (!typePredicateVariable) {
- return _this4.tsParseTypeAnnotation(false, t);
- }
-
- var type = _this4.tsParseTypeAnnotation(false);
-
- var node = _this4.startNodeAtNode(typePredicateVariable);
-
- node.parameterName = typePredicateVariable;
- node.typeAnnotation = type;
- t.typeAnnotation = _this4.finishNode(node, "TSTypePredicate");
- return _this4.finishNode(t, "TSTypeAnnotation");
- });
- };
-
- _proto.tsTryParseTypeOrTypePredicateAnnotation = function tsTryParseTypeOrTypePredicateAnnotation() {
- return this.match(types.colon) ? this.tsParseTypeOrTypePredicateAnnotation(types.colon) : undefined;
- };
-
- _proto.tsTryParseTypeAnnotation = function tsTryParseTypeAnnotation() {
- return this.match(types.colon) ? this.tsParseTypeAnnotation() : undefined;
- };
-
- _proto.tsTryParseType = function tsTryParseType() {
- return this.tsEatThenParseType(types.colon);
- };
-
- _proto.tsParseTypePredicatePrefix = function tsParseTypePredicatePrefix() {
- var id = this.parseIdentifier();
-
- if (this.isContextual("is") && !this.hasPrecedingLineBreak()) {
- this.next();
- return id;
- }
- };
-
- _proto.tsParseTypeAnnotation = function tsParseTypeAnnotation(eatColon, t) {
- var _this5 = this;
-
- if (eatColon === void 0) {
- eatColon = true;
- }
-
- if (t === void 0) {
- t = this.startNode();
- }
-
- this.tsInType(function () {
- if (eatColon) _this5.expect(types.colon);
- t.typeAnnotation = _this5.tsParseType();
- });
- return this.finishNode(t, "TSTypeAnnotation");
- };
-
- _proto.tsParseType = function tsParseType() {
- assert(this.state.inType);
- var type = this.tsParseNonConditionalType();
-
- if (this.hasPrecedingLineBreak() || !this.eat(types._extends)) {
- return type;
- }
-
- var node = this.startNodeAtNode(type);
- node.checkType = type;
- node.extendsType = this.tsParseNonConditionalType();
- this.expect(types.question);
- node.trueType = this.tsParseType();
- this.expect(types.colon);
- node.falseType = this.tsParseType();
- return this.finishNode(node, "TSConditionalType");
- };
-
- _proto.tsParseNonConditionalType = function tsParseNonConditionalType() {
- if (this.tsIsStartOfFunctionType()) {
- return this.tsParseFunctionOrConstructorType("TSFunctionType");
- }
-
- if (this.match(types._new)) {
- return this.tsParseFunctionOrConstructorType("TSConstructorType");
- }
-
- return this.tsParseUnionTypeOrHigher();
- };
-
- _proto.tsParseTypeAssertion = function tsParseTypeAssertion() {
- var _this6 = this;
-
- var node = this.startNode();
- node.typeAnnotation = this.tsInType(function () {
- return _this6.tsParseType();
- });
- this.expectRelational(">");
- node.expression = this.parseMaybeUnary();
- return this.finishNode(node, "TSTypeAssertion");
- };
-
- _proto.tsTryParseTypeArgumentsInExpression = function tsTryParseTypeArgumentsInExpression() {
- var _this7 = this;
-
- return this.tsTryParseAndCatch(function () {
- var res = _this7.tsParseTypeArguments();
-
- _this7.expect(types.parenL);
-
- return res;
- });
- };
-
- _proto.tsParseHeritageClause = function tsParseHeritageClause() {
- return this.tsParseDelimitedList("HeritageClauseElement", this.tsParseExpressionWithTypeArguments.bind(this));
- };
-
- _proto.tsParseExpressionWithTypeArguments = function tsParseExpressionWithTypeArguments() {
- var node = this.startNode();
- node.expression = this.tsParseEntityName(false);
-
- if (this.isRelational("<")) {
- node.typeParameters = this.tsParseTypeArguments();
- }
-
- return this.finishNode(node, "TSExpressionWithTypeArguments");
- };
-
- _proto.tsParseInterfaceDeclaration = function tsParseInterfaceDeclaration(node) {
- node.id = this.parseIdentifier();
- node.typeParameters = this.tsTryParseTypeParameters();
-
- if (this.eat(types._extends)) {
- node.extends = this.tsParseHeritageClause();
- }
-
- var body = this.startNode();
- body.body = this.tsParseObjectTypeMembers();
- node.body = this.finishNode(body, "TSInterfaceBody");
- return this.finishNode(node, "TSInterfaceDeclaration");
- };
-
- _proto.tsParseTypeAliasDeclaration = function tsParseTypeAliasDeclaration(node) {
- node.id = this.parseIdentifier();
- node.typeParameters = this.tsTryParseTypeParameters();
- node.typeAnnotation = this.tsExpectThenParseType(types.eq);
- this.semicolon();
- return this.finishNode(node, "TSTypeAliasDeclaration");
- };
-
- _proto.tsInType = function tsInType(cb) {
- var oldInType = this.state.inType;
- this.state.inType = true;
-
- try {
- return cb();
- } finally {
- this.state.inType = oldInType;
- }
- };
-
- _proto.tsEatThenParseType = function tsEatThenParseType(token) {
- return !this.match(token) ? undefined : this.tsNextThenParseType();
- };
-
- _proto.tsExpectThenParseType = function tsExpectThenParseType(token) {
- var _this8 = this;
-
- return this.tsDoThenParseType(function () {
- return _this8.expect(token);
- });
- };
-
- _proto.tsNextThenParseType = function tsNextThenParseType() {
- var _this9 = this;
-
- return this.tsDoThenParseType(function () {
- return _this9.next();
- });
- };
-
- _proto.tsDoThenParseType = function tsDoThenParseType(cb) {
- var _this10 = this;
-
- return this.tsInType(function () {
- cb();
- return _this10.tsParseType();
- });
- };
-
- _proto.tsParseEnumMember = function tsParseEnumMember() {
- var node = this.startNode();
- node.id = this.match(types.string) ? this.parseLiteral(this.state.value, "StringLiteral") : this.parseIdentifier(true);
-
- if (this.eat(types.eq)) {
- node.initializer = this.parseMaybeAssign();
- }
-
- return this.finishNode(node, "TSEnumMember");
- };
-
- _proto.tsParseEnumDeclaration = function tsParseEnumDeclaration(node, isConst) {
- if (isConst) node.const = true;
- node.id = this.parseIdentifier();
- this.expect(types.braceL);
- node.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this));
- this.expect(types.braceR);
- return this.finishNode(node, "TSEnumDeclaration");
- };
-
- _proto.tsParseModuleBlock = function tsParseModuleBlock() {
- var node = this.startNode();
- this.expect(types.braceL);
- this.parseBlockOrModuleBlockBody(node.body = [], undefined, true, types.braceR);
- return this.finishNode(node, "TSModuleBlock");
- };
-
- _proto.tsParseModuleOrNamespaceDeclaration = function tsParseModuleOrNamespaceDeclaration(node) {
- node.id = this.parseIdentifier();
-
- if (this.eat(types.dot)) {
- var inner = this.startNode();
- this.tsParseModuleOrNamespaceDeclaration(inner);
- node.body = inner;
- } else {
- node.body = this.tsParseModuleBlock();
- }
-
- return this.finishNode(node, "TSModuleDeclaration");
- };
-
- _proto.tsParseAmbientExternalModuleDeclaration = function tsParseAmbientExternalModuleDeclaration(node) {
- if (this.isContextual("global")) {
- node.global = true;
- node.id = this.parseIdentifier();
- } else if (this.match(types.string)) {
- node.id = this.parseExprAtom();
- } else {
- this.unexpected();
- }
-
- if (this.match(types.braceL)) {
- node.body = this.tsParseModuleBlock();
- } else {
- this.semicolon();
- }
-
- return this.finishNode(node, "TSModuleDeclaration");
- };
-
- _proto.tsParseImportEqualsDeclaration = function tsParseImportEqualsDeclaration(node, isExport) {
- node.isExport = isExport || false;
- node.id = this.parseIdentifier();
- this.expect(types.eq);
- node.moduleReference = this.tsParseModuleReference();
- this.semicolon();
- return this.finishNode(node, "TSImportEqualsDeclaration");
- };
-
- _proto.tsIsExternalModuleReference = function tsIsExternalModuleReference() {
- return this.isContextual("require") && this.lookahead().type === types.parenL;
- };
-
- _proto.tsParseModuleReference = function tsParseModuleReference() {
- return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(false);
- };
-
- _proto.tsParseExternalModuleReference = function tsParseExternalModuleReference() {
- var node = this.startNode();
- this.expectContextual("require");
- this.expect(types.parenL);
-
- if (!this.match(types.string)) {
- throw this.unexpected();
- }
-
- node.expression = this.parseLiteral(this.state.value, "StringLiteral");
- this.expect(types.parenR);
- return this.finishNode(node, "TSExternalModuleReference");
- };
-
- _proto.tsLookAhead = function tsLookAhead(f) {
- var state = this.state.clone();
- var res = f();
- this.state = state;
- return res;
- };
-
- _proto.tsTryParseAndCatch = function tsTryParseAndCatch(f) {
- var state = this.state.clone();
-
- try {
- return f();
- } catch (e) {
- if (e instanceof SyntaxError) {
- this.state = state;
- return undefined;
- }
-
- throw e;
- }
- };
-
- _proto.tsTryParse = function tsTryParse(f) {
- var state = this.state.clone();
- var result = f();
-
- if (result !== undefined && result !== false) {
- return result;
- } else {
- this.state = state;
- return undefined;
- }
- };
-
- _proto.nodeWithSamePosition = function nodeWithSamePosition(original, type) {
- var node = this.startNodeAtNode(original);
- node.type = type;
- node.end = original.end;
- node.loc.end = original.loc.end;
-
- if (original.leadingComments) {
- node.leadingComments = original.leadingComments;
- }
-
- if (original.trailingComments) {
- node.trailingComments = original.trailingComments;
- }
-
- if (original.innerComments) node.innerComments = original.innerComments;
- return node;
- };
-
- _proto.tsTryParseDeclare = function tsTryParseDeclare(nany) {
- switch (this.state.type) {
- case types._function:
- this.next();
- return this.parseFunction(nany, true);
-
- case types._class:
- return this.parseClass(nany, true, false);
-
- case types._const:
- if (this.match(types._const) && this.isLookaheadContextual("enum")) {
- this.expect(types._const);
- this.expectContextual("enum");
- return this.tsParseEnumDeclaration(nany, true);
- }
-
- case types._var:
- case types._let:
- return this.parseVarStatement(nany, this.state.type);
-
- case types.name:
- {
- var value = this.state.value;
-
- if (value === "global") {
- return this.tsParseAmbientExternalModuleDeclaration(nany);
- } else {
- return this.tsParseDeclaration(nany, value, true);
- }
- }
- }
- };
-
- _proto.tsTryParseExportDeclaration = function tsTryParseExportDeclaration() {
- return this.tsParseDeclaration(this.startNode(), this.state.value, true);
- };
-
- _proto.tsParseExpressionStatement = function tsParseExpressionStatement(node, expr) {
- switch (expr.name) {
- case "declare":
- {
- var declaration = this.tsTryParseDeclare(node);
-
- if (declaration) {
- declaration.declare = true;
- return declaration;
- }
-
- break;
- }
-
- case "global":
- if (this.match(types.braceL)) {
- var mod = node;
- mod.global = true;
- mod.id = expr;
- mod.body = this.tsParseModuleBlock();
- return this.finishNode(mod, "TSModuleDeclaration");
- }
-
- break;
-
- default:
- return this.tsParseDeclaration(node, expr.name, false);
- }
- };
-
- _proto.tsParseDeclaration = function tsParseDeclaration(node, value, next) {
- switch (value) {
- case "abstract":
- if (next || this.match(types._class)) {
- var cls = node;
- cls.abstract = true;
- if (next) this.next();
- return this.parseClass(cls, true, false);
- }
-
- break;
-
- case "enum":
- if (next || this.match(types.name)) {
- if (next) this.next();
- return this.tsParseEnumDeclaration(node, false);
- }
-
- break;
-
- case "interface":
- if (next || this.match(types.name)) {
- if (next) this.next();
- return this.tsParseInterfaceDeclaration(node);
- }
-
- break;
-
- case "module":
- if (next) this.next();
-
- if (this.match(types.string)) {
- return this.tsParseAmbientExternalModuleDeclaration(node);
- } else if (next || this.match(types.name)) {
- return this.tsParseModuleOrNamespaceDeclaration(node);
- }
-
- break;
-
- case "namespace":
- if (next || this.match(types.name)) {
- if (next) this.next();
- return this.tsParseModuleOrNamespaceDeclaration(node);
- }
-
- break;
-
- case "type":
- if (next || this.match(types.name)) {
- if (next) this.next();
- return this.tsParseTypeAliasDeclaration(node);
- }
-
- break;
- }
- };
-
- _proto.tsTryParseGenericAsyncArrowFunction = function tsTryParseGenericAsyncArrowFunction(startPos, startLoc) {
- var _this11 = this;
-
- var res = this.tsTryParseAndCatch(function () {
- var node = _this11.startNodeAt(startPos, startLoc);
-
- node.typeParameters = _this11.tsParseTypeParameters();
-
- _superClass.prototype.parseFunctionParams.call(_this11, node);
-
- node.returnType = _this11.tsTryParseTypeOrTypePredicateAnnotation();
-
- _this11.expect(types.arrow);
-
- return node;
- });
-
- if (!res) {
- return undefined;
- }
-
- res.id = null;
- res.generator = false;
- res.expression = true;
- res.async = true;
- this.parseFunctionBody(res, true);
- return this.finishNode(res, "ArrowFunctionExpression");
- };
-
- _proto.tsParseTypeArguments = function tsParseTypeArguments() {
- var _this12 = this;
-
- var node = this.startNode();
- node.params = this.tsInType(function () {
- _this12.expectRelational("<");
-
- return _this12.tsParseDelimitedList("TypeParametersOrArguments", _this12.tsParseType.bind(_this12));
- });
- this.expectRelational(">");
- return this.finishNode(node, "TSTypeParameterInstantiation");
- };
-
- _proto.tsIsDeclarationStart = function tsIsDeclarationStart() {
- if (this.match(types.name)) {
- switch (this.state.value) {
- case "abstract":
- case "declare":
- case "enum":
- case "interface":
- case "module":
- case "namespace":
- case "type":
- return true;
- }
- }
-
- return false;
- };
-
- _proto.isExportDefaultSpecifier = function isExportDefaultSpecifier() {
- if (this.tsIsDeclarationStart()) return false;
- return _superClass.prototype.isExportDefaultSpecifier.call(this);
- };
-
- _proto.parseAssignableListItem = function parseAssignableListItem(allowModifiers, decorators) {
- var accessibility;
- var readonly = false;
-
- if (allowModifiers) {
- accessibility = this.parseAccessModifier();
- readonly = !!this.tsParseModifier(["readonly"]);
- }
-
- var left = this.parseMaybeDefault();
- this.parseAssignableListItemTypes(left);
- var elt = this.parseMaybeDefault(left.start, left.loc.start, left);
-
- if (accessibility || readonly) {
- var pp = this.startNodeAtNode(elt);
-
- if (decorators.length) {
- pp.decorators = decorators;
- }
-
- if (accessibility) pp.accessibility = accessibility;
- if (readonly) pp.readonly = readonly;
-
- if (elt.type !== "Identifier" && elt.type !== "AssignmentPattern") {
- throw this.raise(pp.start, "A parameter property may not be declared using a binding pattern.");
- }
-
- pp.parameter = elt;
- return this.finishNode(pp, "TSParameterProperty");
- } else {
- if (decorators.length) {
- left.decorators = decorators;
- }
-
- return elt;
- }
- };
-
- _proto.parseFunctionBodyAndFinish = function parseFunctionBodyAndFinish(node, type, allowExpressionBody) {
- if (!allowExpressionBody && this.match(types.colon)) {
- node.returnType = this.tsParseTypeOrTypePredicateAnnotation(types.colon);
- }
-
- var bodilessType = type === "FunctionDeclaration" ? "TSDeclareFunction" : type === "ClassMethod" ? "TSDeclareMethod" : undefined;
-
- if (bodilessType && !this.match(types.braceL) && this.isLineTerminator()) {
- this.finishNode(node, bodilessType);
- return;
- }
-
- _superClass.prototype.parseFunctionBodyAndFinish.call(this, node, type, allowExpressionBody);
- };
-
- _proto.parseSubscript = function parseSubscript(base, startPos, startLoc, noCalls, state) {
- if (!this.hasPrecedingLineBreak() && this.match(types.bang)) {
- this.state.exprAllowed = false;
- this.next();
- var nonNullExpression = this.startNodeAt(startPos, startLoc);
- nonNullExpression.expression = base;
- return this.finishNode(nonNullExpression, "TSNonNullExpression");
- }
-
- if (!noCalls && this.isRelational("<")) {
- if (this.atPossibleAsync(base)) {
- var asyncArrowFn = this.tsTryParseGenericAsyncArrowFunction(startPos, startLoc);
-
- if (asyncArrowFn) {
- return asyncArrowFn;
- }
- }
-
- var node = this.startNodeAt(startPos, startLoc);
- node.callee = base;
- var typeArguments = this.tsTryParseTypeArgumentsInExpression();
-
- if (typeArguments) {
- node.arguments = this.parseCallExpressionArguments(types.parenR, false);
- node.typeParameters = typeArguments;
- return this.finishCallExpression(node);
- }
- }
-
- return _superClass.prototype.parseSubscript.call(this, base, startPos, startLoc, noCalls, state);
- };
-
- _proto.parseNewArguments = function parseNewArguments(node) {
- var _this13 = this;
-
- if (this.isRelational("<")) {
- var typeParameters = this.tsTryParseAndCatch(function () {
- var args = _this13.tsParseTypeArguments();
-
- if (!_this13.match(types.parenL)) _this13.unexpected();
- return args;
- });
-
- if (typeParameters) {
- node.typeParameters = typeParameters;
- }
- }
-
- _superClass.prototype.parseNewArguments.call(this, node);
- };
-
- _proto.parseExprOp = function parseExprOp(left, leftStartPos, leftStartLoc, minPrec, noIn) {
- if (nonNull(types._in.binop) > minPrec && !this.hasPrecedingLineBreak() && this.isContextual("as")) {
- var node = this.startNodeAt(leftStartPos, leftStartLoc);
- node.expression = left;
- node.typeAnnotation = this.tsNextThenParseType();
- this.finishNode(node, "TSAsExpression");
- return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, noIn);
- }
-
- return _superClass.prototype.parseExprOp.call(this, left, leftStartPos, leftStartLoc, minPrec, noIn);
- };
-
- _proto.checkReservedWord = function checkReservedWord(word, startLoc, checkKeywords, isBinding) {};
-
- _proto.checkDuplicateExports = function checkDuplicateExports() {};
-
- _proto.parseImport = function parseImport(node) {
- if (this.match(types.name) && this.lookahead().type === types.eq) {
- return this.tsParseImportEqualsDeclaration(node);
- }
-
- return _superClass.prototype.parseImport.call(this, node);
- };
-
- _proto.parseExport = function parseExport(node) {
- if (this.match(types._import)) {
- this.expect(types._import);
- return this.tsParseImportEqualsDeclaration(node, true);
- } else if (this.eat(types.eq)) {
- var assign = node;
- assign.expression = this.parseExpression();
- this.semicolon();
- return this.finishNode(assign, "TSExportAssignment");
- } else if (this.eatContextual("as")) {
- var decl = node;
- this.expectContextual("namespace");
- decl.id = this.parseIdentifier();
- this.semicolon();
- return this.finishNode(decl, "TSNamespaceExportDeclaration");
- } else {
- return _superClass.prototype.parseExport.call(this, node);
- }
- };
-
- _proto.isAbstractClass = function isAbstractClass() {
- return this.isContextual("abstract") && this.lookahead().type === types._class;
- };
-
- _proto.parseExportDefaultExpression = function parseExportDefaultExpression() {
- if (this.isAbstractClass()) {
- var cls = this.startNode();
- this.next();
- this.parseClass(cls, true, true);
- cls.abstract = true;
- return cls;
- }
-
- return _superClass.prototype.parseExportDefaultExpression.call(this);
- };
-
- _proto.parseStatementContent = function parseStatementContent(declaration, topLevel) {
- if (this.state.type === types._const) {
- var ahead = this.lookahead();
-
- if (ahead.type === types.name && ahead.value === "enum") {
- var node = this.startNode();
- this.expect(types._const);
- this.expectContextual("enum");
- return this.tsParseEnumDeclaration(node, true);
- }
- }
-
- return _superClass.prototype.parseStatementContent.call(this, declaration, topLevel);
- };
-
- _proto.parseAccessModifier = function parseAccessModifier() {
- return this.tsParseModifier(["public", "protected", "private"]);
- };
-
- _proto.parseClassMember = function parseClassMember(classBody, member, state) {
- var accessibility = this.parseAccessModifier();
- if (accessibility) member.accessibility = accessibility;
-
- _superClass.prototype.parseClassMember.call(this, classBody, member, state);
- };
-
- _proto.parseClassMemberWithIsStatic = function parseClassMemberWithIsStatic(classBody, member, state, isStatic) {
- var methodOrProp = member;
- var prop = member;
- var propOrIdx = member;
- var abstract = false,
- readonly = false;
- var mod = this.tsParseModifier(["abstract", "readonly"]);
-
- switch (mod) {
- case "readonly":
- readonly = true;
- abstract = !!this.tsParseModifier(["abstract"]);
- break;
-
- case "abstract":
- abstract = true;
- readonly = !!this.tsParseModifier(["readonly"]);
- break;
- }
-
- if (abstract) methodOrProp.abstract = true;
- if (readonly) propOrIdx.readonly = true;
-
- if (!abstract && !isStatic && !methodOrProp.accessibility) {
- var idx = this.tsTryParseIndexSignature(member);
-
- if (idx) {
- classBody.body.push(idx);
- return;
- }
- }
-
- if (readonly) {
- methodOrProp.static = isStatic;
- this.parseClassPropertyName(prop);
- this.parsePostMemberNameModifiers(methodOrProp);
- this.pushClassProperty(classBody, prop);
- return;
- }
-
- _superClass.prototype.parseClassMemberWithIsStatic.call(this, classBody, member, state, isStatic);
- };
-
- _proto.parsePostMemberNameModifiers = function parsePostMemberNameModifiers(methodOrProp) {
- var optional = this.eat(types.question);
- if (optional) methodOrProp.optional = true;
- };
-
- _proto.parseExpressionStatement = function parseExpressionStatement(node, expr) {
- var decl = expr.type === "Identifier" ? this.tsParseExpressionStatement(node, expr) : undefined;
- return decl || _superClass.prototype.parseExpressionStatement.call(this, node, expr);
- };
-
- _proto.shouldParseExportDeclaration = function shouldParseExportDeclaration() {
- if (this.tsIsDeclarationStart()) return true;
- return _superClass.prototype.shouldParseExportDeclaration.call(this);
- };
-
- _proto.parseConditional = function parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos) {
- if (!refNeedsArrowPos || !this.match(types.question)) {
- return _superClass.prototype.parseConditional.call(this, expr, noIn, startPos, startLoc, refNeedsArrowPos);
- }
-
- var state = this.state.clone();
-
- try {
- return _superClass.prototype.parseConditional.call(this, expr, noIn, startPos, startLoc);
- } catch (err) {
- if (!(err instanceof SyntaxError)) {
- throw err;
- }
-
- this.state = state;
- refNeedsArrowPos.start = err.pos || this.state.start;
- return expr;
- }
- };
-
- _proto.parseParenItem = function parseParenItem(node, startPos, startLoc) {
- node = _superClass.prototype.parseParenItem.call(this, node, startPos, startLoc);
-
- if (this.eat(types.question)) {
- node.optional = true;
- }
-
- if (this.match(types.colon)) {
- var typeCastNode = this.startNodeAt(startPos, startLoc);
- typeCastNode.expression = node;
- typeCastNode.typeAnnotation = this.tsParseTypeAnnotation();
- return this.finishNode(typeCastNode, "TSTypeCastExpression");
- }
-
- return node;
- };
-
- _proto.parseExportDeclaration = function parseExportDeclaration(node) {
- var isDeclare = this.eatContextual("declare");
- var declaration;
-
- if (this.match(types.name)) {
- declaration = this.tsTryParseExportDeclaration();
- }
-
- if (!declaration) {
- declaration = _superClass.prototype.parseExportDeclaration.call(this, node);
- }
-
- if (declaration && isDeclare) {
- declaration.declare = true;
- }
-
- return declaration;
- };
-
- _proto.parseClassId = function parseClassId(node, isStatement, optionalId) {
- if ((!isStatement || optionalId) && this.isContextual("implements")) {
- return;
- }
-
- _superClass.prototype.parseClassId.apply(this, arguments);
-
- var typeParameters = this.tsTryParseTypeParameters();
- if (typeParameters) node.typeParameters = typeParameters;
- };
-
- _proto.parseClassProperty = function parseClassProperty(node) {
- if (!node.optional && this.eat(types.bang)) {
- node.definite = true;
- }
-
- var type = this.tsTryParseTypeAnnotation();
- if (type) node.typeAnnotation = type;
- return _superClass.prototype.parseClassProperty.call(this, node);
- };
-
- _proto.pushClassMethod = function pushClassMethod(classBody, method, isGenerator, isAsync, isConstructor) {
- var typeParameters = this.tsTryParseTypeParameters();
- if (typeParameters) method.typeParameters = typeParameters;
-
- _superClass.prototype.pushClassMethod.call(this, classBody, method, isGenerator, isAsync, isConstructor);
- };
-
- _proto.pushClassPrivateMethod = function pushClassPrivateMethod(classBody, method, isGenerator, isAsync) {
- var typeParameters = this.tsTryParseTypeParameters();
- if (typeParameters) method.typeParameters = typeParameters;
-
- _superClass.prototype.pushClassPrivateMethod.call(this, classBody, method, isGenerator, isAsync);
- };
-
- _proto.parseClassSuper = function parseClassSuper(node) {
- _superClass.prototype.parseClassSuper.call(this, node);
-
- if (node.superClass && this.isRelational("<")) {
- node.superTypeParameters = this.tsParseTypeArguments();
- }
-
- if (this.eatContextual("implements")) {
- node.implements = this.tsParseHeritageClause();
- }
- };
-
- _proto.parseObjPropValue = function parseObjPropValue(prop) {
- var _superClass$prototype;
-
- if (this.isRelational("<")) {
- throw new Error("TODO");
- }
-
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- args[_key - 1] = arguments[_key];
- }
-
- (_superClass$prototype = _superClass.prototype.parseObjPropValue).call.apply(_superClass$prototype, [this, prop].concat(args));
- };
-
- _proto.parseFunctionParams = function parseFunctionParams(node, allowModifiers) {
- var typeParameters = this.tsTryParseTypeParameters();
- if (typeParameters) node.typeParameters = typeParameters;
-
- _superClass.prototype.parseFunctionParams.call(this, node, allowModifiers);
- };
-
- _proto.parseVarHead = function parseVarHead(decl) {
- _superClass.prototype.parseVarHead.call(this, decl);
-
- if (decl.id.type === "Identifier" && this.eat(types.bang)) {
- decl.definite = true;
- }
-
- var type = this.tsTryParseTypeAnnotation();
-
- if (type) {
- decl.id.typeAnnotation = type;
- this.finishNode(decl.id, decl.id.type);
- }
- };
-
- _proto.parseAsyncArrowFromCallExpression = function parseAsyncArrowFromCallExpression(node, call) {
- if (this.match(types.colon)) {
- node.returnType = this.tsParseTypeAnnotation();
- }
-
- return _superClass.prototype.parseAsyncArrowFromCallExpression.call(this, node, call);
- };
-
- _proto.parseMaybeAssign = function parseMaybeAssign() {
- var jsxError;
-
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- args[_key2] = arguments[_key2];
- }
-
- if (this.match(types.jsxTagStart)) {
- var context = this.curContext();
- assert(context === types$1.j_oTag);
- assert(this.state.context[this.state.context.length - 2] === types$1.j_expr);
-
- var _state = this.state.clone();
-
- try {
- var _superClass$prototype2;
-
- return (_superClass$prototype2 = _superClass.prototype.parseMaybeAssign).call.apply(_superClass$prototype2, [this].concat(args));
- } catch (err) {
- if (!(err instanceof SyntaxError)) {
- throw err;
- }
-
- this.state = _state;
- assert(this.curContext() === types$1.j_oTag);
- this.state.context.pop();
- assert(this.curContext() === types$1.j_expr);
- this.state.context.pop();
- jsxError = err;
- }
- }
-
- if (jsxError === undefined && !this.isRelational("<")) {
- var _superClass$prototype3;
-
- return (_superClass$prototype3 = _superClass.prototype.parseMaybeAssign).call.apply(_superClass$prototype3, [this].concat(args));
- }
-
- var arrowExpression;
- var typeParameters;
- var state = this.state.clone();
-
- try {
- var _superClass$prototype4;
-
- typeParameters = this.tsParseTypeParameters();
- arrowExpression = (_superClass$prototype4 = _superClass.prototype.parseMaybeAssign).call.apply(_superClass$prototype4, [this].concat(args));
-
- if (arrowExpression.type !== "ArrowFunctionExpression") {
- this.unexpected();
- }
- } catch (err) {
- var _superClass$prototype5;
-
- if (!(err instanceof SyntaxError)) {
- throw err;
- }
-
- if (jsxError) {
- throw jsxError;
- }
-
- assert(!this.hasPlugin("jsx"));
- this.state = state;
- return (_superClass$prototype5 = _superClass.prototype.parseMaybeAssign).call.apply(_superClass$prototype5, [this].concat(args));
- }
-
- if (typeParameters && typeParameters.params.length !== 0) {
- this.resetStartLocationFromNode(arrowExpression, typeParameters.params[0]);
- }
-
- arrowExpression.typeParameters = typeParameters;
- return arrowExpression;
- };
-
- _proto.parseMaybeUnary = function parseMaybeUnary(refShorthandDefaultPos) {
- if (!this.hasPlugin("jsx") && this.eatRelational("<")) {
- return this.tsParseTypeAssertion();
- } else {
- return _superClass.prototype.parseMaybeUnary.call(this, refShorthandDefaultPos);
- }
- };
-
- _proto.parseArrow = function parseArrow(node) {
- if (this.match(types.colon)) {
- var state = this.state.clone();
-
- try {
- var returnType = this.tsParseTypeOrTypePredicateAnnotation(types.colon);
- if (this.canInsertSemicolon()) this.unexpected();
- if (!this.match(types.arrow)) this.unexpected();
- node.returnType = returnType;
- } catch (err) {
- if (err instanceof SyntaxError) {
- this.state = state;
- } else {
- throw err;
- }
- }
- }
-
- return _superClass.prototype.parseArrow.call(this, node);
- };
-
- _proto.parseAssignableListItemTypes = function parseAssignableListItemTypes(param) {
- if (this.eat(types.question)) {
- if (param.type !== "Identifier") {
- throw this.raise(param.start, "A binding pattern parameter cannot be optional in an implementation signature.");
- }
-
- param.optional = true;
- }
-
- var type = this.tsTryParseTypeAnnotation();
- if (type) param.typeAnnotation = type;
- return this.finishNode(param, param.type);
- };
-
- _proto.toAssignable = function toAssignable(node, isBinding, contextDescription) {
- switch (node.type) {
- case "TSTypeCastExpression":
- return _superClass.prototype.toAssignable.call(this, this.typeCastToParameter(node), isBinding, contextDescription);
-
- case "TSParameterProperty":
- return _superClass.prototype.toAssignable.call(this, node, isBinding, contextDescription);
-
- case "TSAsExpression":
- case "TSNonNullExpression":
- case "TSTypeAssertion":
- node.expression = this.toAssignable(node.expression, isBinding, contextDescription);
- return node;
-
- default:
- return _superClass.prototype.toAssignable.call(this, node, isBinding, contextDescription);
- }
- };
-
- _proto.checkLVal = function checkLVal(expr, isBinding, checkClashes, contextDescription) {
- switch (expr.type) {
- case "TSTypeCastExpression":
- return;
-
- case "TSParameterProperty":
- this.checkLVal(expr.parameter, isBinding, checkClashes, "parameter property");
- return;
-
- case "TSAsExpression":
- case "TSNonNullExpression":
- case "TSTypeAssertion":
- this.checkLVal(expr.expression, isBinding, checkClashes, contextDescription);
- return;
-
- default:
- _superClass.prototype.checkLVal.call(this, expr, isBinding, checkClashes, contextDescription);
-
- return;
- }
- };
-
- _proto.parseBindingAtom = function parseBindingAtom() {
- switch (this.state.type) {
- case types._this:
- return this.parseIdentifier(true);
-
- default:
- return _superClass.prototype.parseBindingAtom.call(this);
- }
- };
-
- _proto.isClassMethod = function isClassMethod() {
- return this.isRelational("<") || _superClass.prototype.isClassMethod.call(this);
- };
-
- _proto.isClassProperty = function isClassProperty() {
- return this.match(types.bang) || this.match(types.colon) || _superClass.prototype.isClassProperty.call(this);
- };
-
- _proto.parseMaybeDefault = function parseMaybeDefault() {
- var _superClass$prototype6;
-
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
- args[_key3] = arguments[_key3];
- }
-
- var node = (_superClass$prototype6 = _superClass.prototype.parseMaybeDefault).call.apply(_superClass$prototype6, [this].concat(args));
-
- if (node.type === "AssignmentPattern" && node.typeAnnotation && node.right.start < node.typeAnnotation.start) {
- this.raise(node.typeAnnotation.start, "Type annotations must come before default assignments, " + "e.g. instead of `age = 25: number` use `age: number = 25`");
- }
-
- return node;
- };
-
- _proto.readToken = function readToken(code) {
- if (this.state.inType && (code === 62 || code === 60)) {
- return this.finishOp(types.relational, 1);
- } else {
- return _superClass.prototype.readToken.call(this, code);
- }
- };
-
- _proto.toAssignableList = function toAssignableList(exprList, isBinding, contextDescription) {
- for (var i = 0; i < exprList.length; i++) {
- var expr = exprList[i];
-
- if (expr && expr.type === "TSTypeCastExpression") {
- exprList[i] = this.typeCastToParameter(expr);
- }
- }
-
- return _superClass.prototype.toAssignableList.call(this, exprList, isBinding, contextDescription);
- };
-
- _proto.typeCastToParameter = function typeCastToParameter(node) {
- node.expression.typeAnnotation = node.typeAnnotation;
- return this.finishNodeAt(node.expression, node.expression.type, node.typeAnnotation.end, node.typeAnnotation.loc.end);
- };
-
- _proto.toReferencedList = function toReferencedList(exprList) {
- for (var i = 0; i < exprList.length; i++) {
- var expr = exprList[i];
-
- if (expr && expr._exprListItem && expr.type === "TsTypeCastExpression") {
- this.raise(expr.start, "Did not expect a type annotation here.");
- }
- }
-
- return exprList;
- };
-
- _proto.shouldParseArrow = function shouldParseArrow() {
- return this.match(types.colon) || _superClass.prototype.shouldParseArrow.call(this);
- };
-
- _proto.shouldParseAsyncArrow = function shouldParseAsyncArrow() {
- return this.match(types.colon) || _superClass.prototype.shouldParseAsyncArrow.call(this);
- };
-
- _proto.canHaveLeadingDecorator = function canHaveLeadingDecorator() {
- return _superClass.prototype.canHaveLeadingDecorator.call(this) || this.isAbstractClass();
- };
-
- return _class;
- }(superClass);
-});
-
-function hasPlugin(plugins, name) {
- return plugins.some(function (plugin) {
- if (Array.isArray(plugin)) {
- return plugin[0] === name;
- } else {
- return plugin === name;
- }
- });
-}
-function validatePlugins(plugins) {
- if (hasPlugin(plugins, "decorators") && hasPlugin(plugins, "decorators-legacy")) {
- throw new Error("Cannot use the decorators and decorators-legacy plugin together");
- }
-
- if (hasPlugin(plugins, "flow") && hasPlugin(plugins, "typescript")) {
- throw new Error("Cannot combine flow and typescript plugins.");
- }
-}
-var mixinPluginNames = ["estree", "jsx", "flow", "typescript"];
-var mixinPlugins = {
- estree: estree,
- jsx: jsx,
- flow: flow,
- typescript: typescript
-};
-
-function parse(input, options) {
- if (options && options.sourceType === "unambiguous") {
- options = Object.assign({}, options);
-
- try {
- options.sourceType = "module";
- var parser = getParser(options, input);
- var ast = parser.parse();
- if (!parser.sawUnambiguousESM) ast.program.sourceType = "script";
- return ast;
- } catch (moduleError) {
- try {
- options.sourceType = "script";
- return getParser(options, input).parse();
- } catch (scriptError) {}
-
- throw moduleError;
- }
- } else {
- return getParser(options, input).parse();
- }
-}
-function parseExpression(input, options) {
- var parser = getParser(options, input);
-
- if (parser.options.strictMode) {
- parser.state.strict = true;
- }
-
- return parser.getExpression();
-}
-function getParser(options, input) {
- var cls = Parser;
-
- if (options && options.plugins) {
- validatePlugins(options.plugins);
- cls = getParserClass(options.plugins);
- }
-
- return new cls(options, input);
-}
-
-var parserClassCache = {};
-
-function getParserClass(pluginsFromOptions) {
- var pluginList = mixinPluginNames.filter(function (name) {
- return hasPlugin(pluginsFromOptions, name);
- });
- var key = pluginList.join("/");
- var cls = parserClassCache[key];
-
- if (!cls) {
- cls = Parser;
-
- for (var _i2 = 0; _i2 < pluginList.length; _i2++) {
- var plugin = pluginList[_i2];
- cls = mixinPlugins[plugin](cls);
- }
-
- parserClassCache[key] = cls;
- }
-
- return cls;
-}
-
-exports.parse = parse;
-exports.parseExpression = parseExpression;
-exports.tokTypes = types;
diff --git a/AuthenticationSDK/node_modules/@babel/parser/package.json b/AuthenticationSDK/node_modules/@babel/parser/package.json
deleted file mode 100644
index 6fd55e8a..00000000
--- a/AuthenticationSDK/node_modules/@babel/parser/package.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "_args": [
- [
- "@babel/parser@7.0.0-beta.51",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "@babel/parser@7.0.0-beta.51",
- "_id": "@babel/parser@7.0.0-beta.51",
- "_inBundle": false,
- "_integrity": "sha1-J87C30Cd9gr1gnDtj2qlVAnqhvY=",
- "_location": "/@babel/parser",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/parser@7.0.0-beta.51",
- "name": "@babel/parser",
- "escapedName": "@babel%2fparser",
- "scope": "@babel",
- "rawSpec": "7.0.0-beta.51",
- "saveSpec": null,
- "fetchSpec": "7.0.0-beta.51"
- },
- "_requiredBy": [
- "/@babel/template",
- "/@babel/traverse",
- "/istanbul-lib-instrument"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.51.tgz",
- "_spec": "7.0.0-beta.51",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "author": {
- "name": "Sebastian McKenzie",
- "email": "sebmck@gmail.com"
- },
- "bin": {
- "parser": "./bin/babel-parser.js"
- },
- "description": "A JavaScript parser",
- "devDependencies": {
- "@babel/helper-fixtures": "7.0.0-beta.51",
- "charcodes": "0.1.0",
- "unicode-11.0.0": "^0.7.7"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "files": [
- "bin",
- "lib"
- ],
- "homepage": "https://babeljs.io/",
- "keywords": [
- "babel",
- "javascript",
- "parser",
- "tc39",
- "ecmascript",
- "@babel/parser"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/parser",
- "publishConfig": {
- "tag": "next"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-parser"
- },
- "version": "7.0.0-beta.51"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/template/README.md b/AuthenticationSDK/node_modules/@babel/template/README.md
deleted file mode 100644
index 9cf3dc65..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/template
-
-> Generate an AST from a string template.
-
-See our website [@babel/template](https://new.babeljs.io/docs/en/next/babel-template.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20template%22+is%3Aopen) associated with this package.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/template
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/template
-```
diff --git a/AuthenticationSDK/node_modules/@babel/template/lib/builder.js b/AuthenticationSDK/node_modules/@babel/template/lib/builder.js
deleted file mode 100644
index 2a0e6297..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/lib/builder.js
+++ /dev/null
@@ -1,83 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = createTemplateBuilder;
-
-var _options = require("./options");
-
-var _string = _interopRequireDefault(require("./string"));
-
-var _literal = _interopRequireDefault(require("./literal"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const NO_PLACEHOLDER = (0, _options.validate)({
- placeholderPattern: false
-});
-
-function createTemplateBuilder(formatter, defaultOpts) {
- const templateFnCache = new WeakMap();
- const templateAstCache = new WeakMap();
- const cachedOpts = defaultOpts || (0, _options.validate)(null);
- return Object.assign((tpl, ...args) => {
- if (typeof tpl === "string") {
- if (args.length > 1) throw new Error("Unexpected extra params.");
- return extendedTrace((0, _string.default)(formatter, tpl, (0, _options.merge)(cachedOpts, (0, _options.validate)(args[0]))));
- } else if (Array.isArray(tpl)) {
- let builder = templateFnCache.get(tpl);
-
- if (!builder) {
- builder = (0, _literal.default)(formatter, tpl, cachedOpts);
- templateFnCache.set(tpl, builder);
- }
-
- return extendedTrace(builder(args));
- } else if (typeof tpl === "object" && tpl) {
- if (args.length > 0) throw new Error("Unexpected extra params.");
- return createTemplateBuilder(formatter, (0, _options.merge)(cachedOpts, (0, _options.validate)(tpl)));
- }
-
- throw new Error(`Unexpected template param ${typeof tpl}`);
- }, {
- ast: (tpl, ...args) => {
- if (typeof tpl === "string") {
- if (args.length > 1) throw new Error("Unexpected extra params.");
- return (0, _string.default)(formatter, tpl, (0, _options.merge)((0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])), NO_PLACEHOLDER))();
- } else if (Array.isArray(tpl)) {
- let builder = templateAstCache.get(tpl);
-
- if (!builder) {
- builder = (0, _literal.default)(formatter, tpl, (0, _options.merge)(cachedOpts, NO_PLACEHOLDER));
- templateAstCache.set(tpl, builder);
- }
-
- return builder(args)();
- }
-
- throw new Error(`Unexpected template param ${typeof tpl}`);
- }
- });
-}
-
-function extendedTrace(fn) {
- let rootStack = "";
-
- try {
- throw new Error();
- } catch (error) {
- if (error.stack) {
- rootStack = error.stack.split("\n").slice(3).join("\n");
- }
- }
-
- return arg => {
- try {
- return fn(arg);
- } catch (err) {
- err.stack += `\n =============\n${rootStack}`;
- throw err;
- }
- };
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/template/lib/formatters.js b/AuthenticationSDK/node_modules/@babel/template/lib/formatters.js
deleted file mode 100644
index 59e0984c..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/lib/formatters.js
+++ /dev/null
@@ -1,63 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.program = exports.expression = exports.statement = exports.statements = exports.smart = void 0;
-
-function makeStatementFormatter(fn) {
- return {
- code: str => `/* @babel/template */;\n${str}`,
- validate: () => {},
- unwrap: ast => {
- return fn(ast.program.body.slice(1));
- }
- };
-}
-
-const smart = makeStatementFormatter(body => {
- if (body.length > 1) {
- return body;
- } else {
- return body[0];
- }
-});
-exports.smart = smart;
-const statements = makeStatementFormatter(body => body);
-exports.statements = statements;
-const statement = makeStatementFormatter(body => {
- if (body.length === 0) {
- throw new Error("Found nothing to return.");
- }
-
- if (body.length > 1) {
- throw new Error("Found multiple statements but wanted one");
- }
-
- return body[0];
-});
-exports.statement = statement;
-const expression = {
- code: str => `(\n${str}\n)`,
- validate: ({
- program
- }) => {
- if (program.body.length > 1) {
- throw new Error("Found multiple statements but wanted one");
- }
-
- const expression = program.body[0].expression;
-
- if (expression.start === 0) {
- throw new Error("Parse result included parens.");
- }
- },
- unwrap: ast => ast.program.body[0].expression
-};
-exports.expression = expression;
-const program = {
- code: str => str,
- validate: () => {},
- unwrap: ast => ast.program
-};
-exports.program = program;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/template/lib/index.js b/AuthenticationSDK/node_modules/@babel/template/lib/index.js
deleted file mode 100644
index 7ce85e9f..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/lib/index.js
+++ /dev/null
@@ -1,36 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = exports.program = exports.expression = exports.statements = exports.statement = exports.smart = void 0;
-
-var formatters = _interopRequireWildcard(require("./formatters"));
-
-var _builder = _interopRequireDefault(require("./builder"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const smart = (0, _builder.default)(formatters.smart);
-exports.smart = smart;
-const statement = (0, _builder.default)(formatters.statement);
-exports.statement = statement;
-const statements = (0, _builder.default)(formatters.statements);
-exports.statements = statements;
-const expression = (0, _builder.default)(formatters.expression);
-exports.expression = expression;
-const program = (0, _builder.default)(formatters.program);
-exports.program = program;
-
-var _default = Object.assign(smart.bind(undefined), {
- smart,
- statement,
- statements,
- expression,
- program,
- ast: smart.ast
-});
-
-exports.default = _default;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/template/lib/literal.js b/AuthenticationSDK/node_modules/@babel/template/lib/literal.js
deleted file mode 100644
index 9d39a7cb..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/lib/literal.js
+++ /dev/null
@@ -1,81 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = literalTemplate;
-
-var _options = require("./options");
-
-var _parse = _interopRequireDefault(require("./parse"));
-
-var _populate = _interopRequireDefault(require("./populate"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function literalTemplate(formatter, tpl, opts) {
- const {
- metadata,
- names
- } = buildLiteralData(formatter, tpl, opts);
- return arg => {
- const defaultReplacements = arg.reduce((acc, replacement, i) => {
- acc[names[i]] = replacement;
- return acc;
- }, {});
- return arg => {
- const replacements = (0, _options.normalizeReplacements)(arg);
-
- if (replacements) {
- Object.keys(replacements).forEach(key => {
- if (Object.prototype.hasOwnProperty.call(defaultReplacements, key)) {
- throw new Error("Unexpected replacement overlap.");
- }
- });
- }
-
- return formatter.unwrap((0, _populate.default)(metadata, replacements ? Object.assign(replacements, defaultReplacements) : defaultReplacements));
- };
- };
-}
-
-function buildLiteralData(formatter, tpl, opts) {
- let names;
- let nameSet;
- let metadata;
- let prefix = "";
-
- do {
- prefix += "$";
- const result = buildTemplateCode(tpl, prefix);
- names = result.names;
- nameSet = new Set(names);
- metadata = (0, _parse.default)(formatter, formatter.code(result.code), {
- parser: opts.parser,
- placeholderWhitelist: new Set(result.names.concat(opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [])),
- placeholderPattern: opts.placeholderPattern,
- preserveComments: opts.preserveComments
- });
- } while (metadata.placeholders.some(placeholder => placeholder.isDuplicate && nameSet.has(placeholder.name)));
-
- return {
- metadata,
- names
- };
-}
-
-function buildTemplateCode(tpl, prefix) {
- const names = [];
- let code = tpl[0];
-
- for (let i = 1; i < tpl.length; i++) {
- const value = `${prefix}${i - 1}`;
- names.push(value);
- code += value + tpl[i];
- }
-
- return {
- names,
- code
- };
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/template/lib/options.js b/AuthenticationSDK/node_modules/@babel/template/lib/options.js
deleted file mode 100644
index 879c1c2c..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/lib/options.js
+++ /dev/null
@@ -1,70 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.merge = merge;
-exports.validate = validate;
-exports.normalizeReplacements = normalizeReplacements;
-
-function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
-
-function merge(a, b) {
- const {
- placeholderWhitelist = a.placeholderWhitelist,
- placeholderPattern = a.placeholderPattern,
- preserveComments = a.preserveComments
- } = b;
- return {
- parser: Object.assign({}, a.parser, b.parser),
- placeholderWhitelist,
- placeholderPattern,
- preserveComments
- };
-}
-
-function validate(opts) {
- if (opts != null && typeof opts !== "object") {
- throw new Error("Unknown template options.");
- }
-
- const _ref = opts || {},
- {
- placeholderWhitelist,
- placeholderPattern,
- preserveComments
- } = _ref,
- parser = _objectWithoutProperties(_ref, ["placeholderWhitelist", "placeholderPattern", "preserveComments"]);
-
- if (placeholderWhitelist != null && !(placeholderWhitelist instanceof Set)) {
- throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");
- }
-
- if (placeholderPattern != null && !(placeholderPattern instanceof RegExp) && placeholderPattern !== false) {
- throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");
- }
-
- if (preserveComments != null && typeof preserveComments !== "boolean") {
- throw new Error("'.preserveComments' must be a boolean, null, or undefined");
- }
-
- return {
- parser,
- placeholderWhitelist: placeholderWhitelist || undefined,
- placeholderPattern: placeholderPattern == null ? undefined : placeholderPattern,
- preserveComments: preserveComments == null ? false : preserveComments
- };
-}
-
-function normalizeReplacements(replacements) {
- if (Array.isArray(replacements)) {
- return replacements.reduce((acc, replacement, i) => {
- acc["$" + i] = replacement;
- return acc;
- }, {});
- } else if (typeof replacements === "object" || replacements == null) {
- return replacements || undefined;
- }
-
- throw new Error("Template replacements must be an array, object, null, or undefined");
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/template/lib/parse.js b/AuthenticationSDK/node_modules/@babel/template/lib/parse.js
deleted file mode 100644
index 336edcf6..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/lib/parse.js
+++ /dev/null
@@ -1,158 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = parseAndBuildMetadata;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _parser() {
- const data = require("@babel/parser");
-
- _parser = function () {
- return data;
- };
-
- return data;
-}
-
-function _codeFrame() {
- const data = require("@babel/code-frame");
-
- _codeFrame = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const PATTERN = /^[_$A-Z0-9]+$/;
-
-function parseAndBuildMetadata(formatter, code, opts) {
- const ast = parseWithCodeFrame(code, opts.parser);
- const {
- placeholderWhitelist,
- placeholderPattern = PATTERN,
- preserveComments
- } = opts;
- t().removePropertiesDeep(ast, {
- preserveComments
- });
- formatter.validate(ast);
- const placeholders = [];
- const placeholderNames = new Set();
- t().traverse(ast, placeholderVisitorHandler, {
- placeholders,
- placeholderNames,
- placeholderWhitelist,
- placeholderPattern
- });
- return {
- ast,
- placeholders,
- placeholderNames
- };
-}
-
-function placeholderVisitorHandler(node, ancestors, state) {
- let name;
-
- if (t().isIdentifier(node) || t().isJSXIdentifier(node)) {
- name = node.name;
- } else if (t().isStringLiteral(node)) {
- name = node.value;
- } else {
- return;
- }
-
- if ((!state.placeholderPattern || !state.placeholderPattern.test(name)) && (!state.placeholderWhitelist || !state.placeholderWhitelist.has(name))) {
- return;
- }
-
- ancestors = ancestors.slice();
- const {
- node: parent,
- key
- } = ancestors[ancestors.length - 1];
- let type;
-
- if (t().isStringLiteral(node)) {
- type = "string";
- } else if (t().isNewExpression(parent) && key === "arguments" || t().isCallExpression(parent) && key === "arguments" || t().isFunction(parent) && key === "params") {
- type = "param";
- } else if (t().isExpressionStatement(parent)) {
- type = "statement";
- ancestors = ancestors.slice(0, -1);
- } else {
- type = "other";
- }
-
- state.placeholders.push({
- name,
- type,
- resolve: ast => resolveAncestors(ast, ancestors),
- isDuplicate: state.placeholderNames.has(name)
- });
- state.placeholderNames.add(name);
-}
-
-function resolveAncestors(ast, ancestors) {
- let parent = ast;
-
- for (let i = 0; i < ancestors.length - 1; i++) {
- const {
- key,
- index
- } = ancestors[i];
-
- if (index === undefined) {
- parent = parent[key];
- } else {
- parent = parent[key][index];
- }
- }
-
- const {
- key,
- index
- } = ancestors[ancestors.length - 1];
- return {
- parent,
- key,
- index
- };
-}
-
-function parseWithCodeFrame(code, parserOpts) {
- parserOpts = Object.assign({
- allowReturnOutsideFunction: true,
- allowSuperOutsideMethod: true,
- sourceType: "module"
- }, parserOpts);
-
- try {
- return (0, _parser().parse)(code, parserOpts);
- } catch (err) {
- const loc = err.loc;
-
- if (loc) {
- err.message += "\n" + (0, _codeFrame().codeFrameColumns)(code, {
- start: loc
- });
- err.code = "BABEL_TEMPLATE_PARSE_ERROR";
- }
-
- throw err;
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/template/lib/populate.js b/AuthenticationSDK/node_modules/@babel/template/lib/populate.js
deleted file mode 100644
index c69f7fdf..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/lib/populate.js
+++ /dev/null
@@ -1,133 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = populatePlaceholders;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function populatePlaceholders(metadata, replacements) {
- const ast = t().cloneNode(metadata.ast);
-
- if (replacements) {
- metadata.placeholders.forEach(placeholder => {
- if (!Object.prototype.hasOwnProperty.call(replacements, placeholder.name)) {
- const placeholderName = placeholder.name;
- throw new Error(`Error: No substitution given for "${placeholderName}". If this is not meant to be a
- placeholder you may want to consider passing one of the following options to @babel/template:
- - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])}
- - { placeholderPattern: /^${placeholderName}$/ }`);
- }
- });
- Object.keys(replacements).forEach(key => {
- if (!metadata.placeholderNames.has(key)) {
- throw new Error(`Unknown substitution "${key}" given`);
- }
- });
- }
-
- metadata.placeholders.slice().reverse().forEach(placeholder => {
- try {
- applyReplacement(placeholder, ast, replacements && replacements[placeholder.name] || null);
- } catch (e) {
- e.message = `@babel/template placeholder "${placeholder.name}": ${e.message}`;
- throw e;
- }
- });
- return ast;
-}
-
-function applyReplacement(placeholder, ast, replacement) {
- if (placeholder.isDuplicate) {
- if (Array.isArray(replacement)) {
- replacement = replacement.map(node => t().cloneNode(node));
- } else if (typeof replacement === "object") {
- replacement = t().cloneNode(replacement);
- }
- }
-
- const {
- parent,
- key,
- index
- } = placeholder.resolve(ast);
-
- if (placeholder.type === "string") {
- if (typeof replacement === "string") {
- replacement = t().stringLiteral(replacement);
- }
-
- if (!replacement || !t().isStringLiteral(replacement)) {
- throw new Error("Expected string substitution");
- }
- } else if (placeholder.type === "statement") {
- if (index === undefined) {
- if (!replacement) {
- replacement = t().emptyStatement();
- } else if (Array.isArray(replacement)) {
- replacement = t().blockStatement(replacement);
- } else if (typeof replacement === "string") {
- replacement = t().expressionStatement(t().identifier(replacement));
- } else if (!t().isStatement(replacement)) {
- replacement = t().expressionStatement(replacement);
- }
- } else {
- if (replacement && !Array.isArray(replacement)) {
- if (typeof replacement === "string") {
- replacement = t().identifier(replacement);
- }
-
- if (!t().isStatement(replacement)) {
- replacement = t().expressionStatement(replacement);
- }
- }
- }
- } else if (placeholder.type === "param") {
- if (typeof replacement === "string") {
- replacement = t().identifier(replacement);
- }
-
- if (index === undefined) throw new Error("Assertion failure.");
- } else {
- if (typeof replacement === "string") {
- replacement = t().identifier(replacement);
- }
-
- if (Array.isArray(replacement)) {
- throw new Error("Cannot replace single expression with an array.");
- }
- }
-
- if (index === undefined) {
- t().validate(parent, key, replacement);
- parent[key] = replacement;
- } else {
- const items = parent[key].slice();
-
- if (placeholder.type === "statement" || placeholder.type === "param") {
- if (replacement == null) {
- items.splice(index, 1);
- } else if (Array.isArray(replacement)) {
- items.splice(index, 1, ...replacement);
- } else {
- items[index] = replacement;
- }
- } else {
- items[index] = replacement;
- }
-
- t().validate(parent, key, items);
- parent[key] = items;
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/template/lib/string.js b/AuthenticationSDK/node_modules/@babel/template/lib/string.js
deleted file mode 100644
index 02ad4578..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/lib/string.js
+++ /dev/null
@@ -1,24 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = stringTemplate;
-
-var _options = require("./options");
-
-var _parse = _interopRequireDefault(require("./parse"));
-
-var _populate = _interopRequireDefault(require("./populate"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function stringTemplate(formatter, code, opts) {
- code = formatter.code(code);
- let metadata;
- return arg => {
- const replacements = (0, _options.normalizeReplacements)(arg);
- if (!metadata) metadata = (0, _parse.default)(formatter, code, opts);
- return formatter.unwrap((0, _populate.default)(metadata, replacements));
- };
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/template/package.json b/AuthenticationSDK/node_modules/@babel/template/package.json
deleted file mode 100644
index 80a2d6de..00000000
--- a/AuthenticationSDK/node_modules/@babel/template/package.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "_args": [
- [
- "@babel/template@7.0.0-beta.51",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "@babel/template@7.0.0-beta.51",
- "_id": "@babel/template@7.0.0-beta.51",
- "_inBundle": false,
- "_integrity": "sha1-lgKkCuvPNXrpZ34lMu9fyBD1+/8=",
- "_location": "/@babel/template",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/template@7.0.0-beta.51",
- "name": "@babel/template",
- "escapedName": "@babel%2ftemplate",
- "scope": "@babel",
- "rawSpec": "7.0.0-beta.51",
- "saveSpec": null,
- "fetchSpec": "7.0.0-beta.51"
- },
- "_requiredBy": [
- "/@babel/helper-function-name",
- "/istanbul-lib-instrument"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.51.tgz",
- "_spec": "7.0.0-beta.51",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "author": {
- "name": "Sebastian McKenzie",
- "email": "sebmck@gmail.com"
- },
- "dependencies": {
- "@babel/code-frame": "7.0.0-beta.51",
- "@babel/parser": "7.0.0-beta.51",
- "@babel/types": "7.0.0-beta.51",
- "lodash": "^4.17.5"
- },
- "description": "Generate an AST from a string template.",
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/template",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-template"
- },
- "version": "7.0.0-beta.51"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/README.md b/AuthenticationSDK/node_modules/@babel/traverse/README.md
deleted file mode 100644
index f70c28e4..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/traverse
-
-> The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes
-
-See our website [@babel/traverse](https://new.babeljs.io/docs/en/next/babel-traverse.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen) associated with this package.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/traverse
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/traverse
-```
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/cache.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/cache.js
deleted file mode 100644
index 89f20077..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/cache.js
+++ /dev/null
@@ -1,26 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.clear = clear;
-exports.clearPath = clearPath;
-exports.clearScope = clearScope;
-exports.scope = exports.path = void 0;
-let path = new WeakMap();
-exports.path = path;
-let scope = new WeakMap();
-exports.scope = scope;
-
-function clear() {
- clearPath();
- clearScope();
-}
-
-function clearPath() {
- exports.path = path = new WeakMap();
-}
-
-function clearScope() {
- exports.scope = scope = new WeakMap();
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/context.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/context.js
deleted file mode 100644
index 7becbcd2..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/context.js
+++ /dev/null
@@ -1,152 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-var _path = _interopRequireDefault(require("./path"));
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const testing = process.env.NODE_ENV === "test";
-
-class TraversalContext {
- constructor(scope, opts, state, parentPath) {
- this.queue = null;
- this.parentPath = parentPath;
- this.scope = scope;
- this.state = state;
- this.opts = opts;
- }
-
- shouldVisit(node) {
- const opts = this.opts;
- if (opts.enter || opts.exit) return true;
- if (opts[node.type]) return true;
- const keys = t().VISITOR_KEYS[node.type];
- if (!keys || !keys.length) return false;
-
- for (const key of keys) {
- if (node[key]) return true;
- }
-
- return false;
- }
-
- create(node, obj, key, listKey) {
- return _path.default.get({
- parentPath: this.parentPath,
- parent: node,
- container: obj,
- key: key,
- listKey
- });
- }
-
- maybeQueue(path, notPriority) {
- if (this.trap) {
- throw new Error("Infinite cycle detected");
- }
-
- if (this.queue) {
- if (notPriority) {
- this.queue.push(path);
- } else {
- this.priorityQueue.push(path);
- }
- }
- }
-
- visitMultiple(container, parent, listKey) {
- if (container.length === 0) return false;
- const queue = [];
-
- for (let key = 0; key < container.length; key++) {
- const node = container[key];
-
- if (node && this.shouldVisit(node)) {
- queue.push(this.create(parent, container, key, listKey));
- }
- }
-
- return this.visitQueue(queue);
- }
-
- visitSingle(node, key) {
- if (this.shouldVisit(node[key])) {
- return this.visitQueue([this.create(node, node, key)]);
- } else {
- return false;
- }
- }
-
- visitQueue(queue) {
- this.queue = queue;
- this.priorityQueue = [];
- const visited = [];
- let stop = false;
-
- for (const path of queue) {
- path.resync();
-
- if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) {
- path.pushContext(this);
- }
-
- if (path.key === null) continue;
-
- if (testing && queue.length >= 10000) {
- this.trap = true;
- }
-
- if (visited.indexOf(path.node) >= 0) continue;
- visited.push(path.node);
-
- if (path.visit()) {
- stop = true;
- break;
- }
-
- if (this.priorityQueue.length) {
- stop = this.visitQueue(this.priorityQueue);
- this.priorityQueue = [];
- this.queue = queue;
- if (stop) break;
- }
- }
-
- for (const path of queue) {
- path.popContext();
- }
-
- this.queue = null;
- return stop;
- }
-
- visit(node, key) {
- const nodes = node[key];
- if (!nodes) return false;
-
- if (Array.isArray(nodes)) {
- return this.visitMultiple(nodes, node, key);
- } else {
- return this.visitSingle(node, key);
- }
- }
-
-}
-
-exports.default = TraversalContext;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/hub.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/hub.js
deleted file mode 100644
index 9f97f79c..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/hub.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-class Hub {
- constructor(file) {
- this.file = file;
- }
-
-}
-
-exports.default = Hub;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/index.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/index.js
deleted file mode 100644
index 1865e2ab..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/index.js
+++ /dev/null
@@ -1,130 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = traverse;
-Object.defineProperty(exports, "NodePath", {
- enumerable: true,
- get: function () {
- return _path.default;
- }
-});
-Object.defineProperty(exports, "Scope", {
- enumerable: true,
- get: function () {
- return _scope.default;
- }
-});
-Object.defineProperty(exports, "Hub", {
- enumerable: true,
- get: function () {
- return _hub.default;
- }
-});
-exports.visitors = void 0;
-
-var _context = _interopRequireDefault(require("./context"));
-
-var visitors = _interopRequireWildcard(require("./visitors"));
-
-exports.visitors = visitors;
-
-function _includes() {
- const data = _interopRequireDefault(require("lodash/includes"));
-
- _includes = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-var cache = _interopRequireWildcard(require("./cache"));
-
-var _path = _interopRequireDefault(require("./path"));
-
-var _scope = _interopRequireDefault(require("./scope"));
-
-var _hub = _interopRequireDefault(require("./hub"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function traverse(parent, opts, scope, state, parentPath) {
- if (!parent) return;
- if (!opts) opts = {};
-
- if (!opts.noScope && !scope) {
- if (parent.type !== "Program" && parent.type !== "File") {
- throw new Error("You must pass a scope and parentPath unless traversing a Program/File. " + `Instead of that you tried to traverse a ${parent.type} node without ` + "passing scope and parentPath.");
- }
- }
-
- visitors.explode(opts);
- traverse.node(parent, opts, scope, state, parentPath);
-}
-
-traverse.visitors = visitors;
-traverse.verify = visitors.verify;
-traverse.explode = visitors.explode;
-
-traverse.cheap = function (node, enter) {
- return t().traverseFast(node, enter);
-};
-
-traverse.node = function (node, opts, scope, state, parentPath, skipKeys) {
- const keys = t().VISITOR_KEYS[node.type];
- if (!keys) return;
- const context = new _context.default(scope, opts, state, parentPath);
-
- for (const key of keys) {
- if (skipKeys && skipKeys[key]) continue;
- if (context.visit(node, key)) return;
- }
-};
-
-traverse.clearNode = function (node, opts) {
- t().removeProperties(node, opts);
- cache.path.delete(node);
-};
-
-traverse.removeProperties = function (tree, opts) {
- t().traverseFast(tree, traverse.clearNode, opts);
- return tree;
-};
-
-function hasBlacklistedType(path, state) {
- if (path.node.type === state.type) {
- state.has = true;
- path.stop();
- }
-}
-
-traverse.hasType = function (tree, type, blacklistTypes) {
- if ((0, _includes().default)(blacklistTypes, tree.type)) return false;
- if (tree.type === type) return true;
- const state = {
- has: false,
- type: type
- };
- traverse(tree, {
- noScope: true,
- blacklist: blacklistTypes,
- enter: hasBlacklistedType
- }, null, state);
- return state.has;
-};
-
-traverse.cache = cache;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/ancestry.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/ancestry.js
deleted file mode 100644
index 60e6a98f..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/ancestry.js
+++ /dev/null
@@ -1,188 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.findParent = findParent;
-exports.find = find;
-exports.getFunctionParent = getFunctionParent;
-exports.getStatementParent = getStatementParent;
-exports.getEarliestCommonAncestorFrom = getEarliestCommonAncestorFrom;
-exports.getDeepestCommonAncestorFrom = getDeepestCommonAncestorFrom;
-exports.getAncestry = getAncestry;
-exports.isAncestor = isAncestor;
-exports.isDescendant = isDescendant;
-exports.inType = inType;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-var _index = _interopRequireDefault(require("./index"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function findParent(callback) {
- let path = this;
-
- while (path = path.parentPath) {
- if (callback(path)) return path;
- }
-
- return null;
-}
-
-function find(callback) {
- let path = this;
-
- do {
- if (callback(path)) return path;
- } while (path = path.parentPath);
-
- return null;
-}
-
-function getFunctionParent() {
- return this.findParent(p => p.isFunction());
-}
-
-function getStatementParent() {
- let path = this;
-
- do {
- if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) {
- break;
- } else {
- path = path.parentPath;
- }
- } while (path);
-
- if (path && (path.isProgram() || path.isFile())) {
- throw new Error("File/Program node, we can't possibly find a statement parent to this");
- }
-
- return path;
-}
-
-function getEarliestCommonAncestorFrom(paths) {
- return this.getDeepestCommonAncestorFrom(paths, function (deepest, i, ancestries) {
- let earliest;
- const keys = t().VISITOR_KEYS[deepest.type];
-
- for (const ancestry of ancestries) {
- const path = ancestry[i + 1];
-
- if (!earliest) {
- earliest = path;
- continue;
- }
-
- if (path.listKey && earliest.listKey === path.listKey) {
- if (path.key < earliest.key) {
- earliest = path;
- continue;
- }
- }
-
- const earliestKeyIndex = keys.indexOf(earliest.parentKey);
- const currentKeyIndex = keys.indexOf(path.parentKey);
-
- if (earliestKeyIndex > currentKeyIndex) {
- earliest = path;
- }
- }
-
- return earliest;
- });
-}
-
-function getDeepestCommonAncestorFrom(paths, filter) {
- if (!paths.length) {
- return this;
- }
-
- if (paths.length === 1) {
- return paths[0];
- }
-
- let minDepth = Infinity;
- let lastCommonIndex, lastCommon;
- const ancestries = paths.map(path => {
- const ancestry = [];
-
- do {
- ancestry.unshift(path);
- } while ((path = path.parentPath) && path !== this);
-
- if (ancestry.length < minDepth) {
- minDepth = ancestry.length;
- }
-
- return ancestry;
- });
- const first = ancestries[0];
-
- depthLoop: for (let i = 0; i < minDepth; i++) {
- const shouldMatch = first[i];
-
- for (const ancestry of ancestries) {
- if (ancestry[i] !== shouldMatch) {
- break depthLoop;
- }
- }
-
- lastCommonIndex = i;
- lastCommon = shouldMatch;
- }
-
- if (lastCommon) {
- if (filter) {
- return filter(lastCommon, lastCommonIndex, ancestries);
- } else {
- return lastCommon;
- }
- } else {
- throw new Error("Couldn't find intersection");
- }
-}
-
-function getAncestry() {
- let path = this;
- const paths = [];
-
- do {
- paths.push(path);
- } while (path = path.parentPath);
-
- return paths;
-}
-
-function isAncestor(maybeDescendant) {
- return maybeDescendant.isDescendant(this);
-}
-
-function isDescendant(maybeAncestor) {
- return !!this.findParent(parent => parent === maybeAncestor);
-}
-
-function inType() {
- let path = this;
-
- while (path) {
- for (const type of arguments) {
- if (path.node.type === type) return true;
- }
-
- path = path.parentPath;
- }
-
- return false;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/comments.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/comments.js
deleted file mode 100644
index 09ec514b..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/comments.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.shareCommentsWithSiblings = shareCommentsWithSiblings;
-exports.addComment = addComment;
-exports.addComments = addComments;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function shareCommentsWithSiblings() {
- if (typeof this.key === "string") return;
- const node = this.node;
- if (!node) return;
- const trailing = node.trailingComments;
- const leading = node.leadingComments;
- if (!trailing && !leading) return;
- const prev = this.getSibling(this.key - 1);
- const next = this.getSibling(this.key + 1);
- const hasPrev = Boolean(prev.node);
- const hasNext = Boolean(next.node);
-
- if (hasPrev && hasNext) {} else if (hasPrev) {
- prev.addComments("trailing", trailing);
- } else if (hasNext) {
- next.addComments("leading", leading);
- }
-}
-
-function addComment(type, content, line) {
- t().addComment(this.node, type, content, line);
-}
-
-function addComments(type, comments) {
- t().addComments(this.node, type, comments);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/context.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/context.js
deleted file mode 100644
index 53516aa8..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/context.js
+++ /dev/null
@@ -1,245 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.call = call;
-exports._call = _call;
-exports.isBlacklisted = isBlacklisted;
-exports.visit = visit;
-exports.skip = skip;
-exports.skipKey = skipKey;
-exports.stop = stop;
-exports.setScope = setScope;
-exports.setContext = setContext;
-exports.resync = resync;
-exports._resyncParent = _resyncParent;
-exports._resyncKey = _resyncKey;
-exports._resyncList = _resyncList;
-exports._resyncRemoved = _resyncRemoved;
-exports.popContext = popContext;
-exports.pushContext = pushContext;
-exports.setup = setup;
-exports.setKey = setKey;
-exports.requeue = requeue;
-exports._getQueueContexts = _getQueueContexts;
-
-var _index = _interopRequireDefault(require("../index"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function call(key) {
- const opts = this.opts;
- this.debug(key);
-
- if (this.node) {
- if (this._call(opts[key])) return true;
- }
-
- if (this.node) {
- return this._call(opts[this.node.type] && opts[this.node.type][key]);
- }
-
- return false;
-}
-
-function _call(fns) {
- if (!fns) return false;
-
- for (const fn of fns) {
- if (!fn) continue;
- const node = this.node;
- if (!node) return true;
- const ret = fn.call(this.state, this, this.state);
-
- if (ret && typeof ret === "object" && typeof ret.then === "function") {
- throw new Error(`You appear to be using a plugin with an async traversal visitor, ` + `which your current version of Babel does not support.` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`);
- }
-
- if (ret) {
- throw new Error(`Unexpected return value from visitor method ${fn}`);
- }
-
- if (this.node !== node) return true;
- if (this.shouldStop || this.shouldSkip || this.removed) return true;
- }
-
- return false;
-}
-
-function isBlacklisted() {
- const blacklist = this.opts.blacklist;
- return blacklist && blacklist.indexOf(this.node.type) > -1;
-}
-
-function visit() {
- if (!this.node) {
- return false;
- }
-
- if (this.isBlacklisted()) {
- return false;
- }
-
- if (this.opts.shouldSkip && this.opts.shouldSkip(this)) {
- return false;
- }
-
- if (this.call("enter") || this.shouldSkip) {
- this.debug("Skip...");
- return this.shouldStop;
- }
-
- this.debug("Recursing into...");
-
- _index.default.node(this.node, this.opts, this.scope, this.state, this, this.skipKeys);
-
- this.call("exit");
- return this.shouldStop;
-}
-
-function skip() {
- this.shouldSkip = true;
-}
-
-function skipKey(key) {
- this.skipKeys[key] = true;
-}
-
-function stop() {
- this.shouldStop = true;
- this.shouldSkip = true;
-}
-
-function setScope() {
- if (this.opts && this.opts.noScope) return;
- let path = this.parentPath;
- let target;
-
- while (path && !target) {
- if (path.opts && path.opts.noScope) return;
- target = path.scope;
- path = path.parentPath;
- }
-
- this.scope = this.getScope(target);
- if (this.scope) this.scope.init();
-}
-
-function setContext(context) {
- this.shouldSkip = false;
- this.shouldStop = false;
- this.removed = false;
- this.skipKeys = {};
-
- if (context) {
- this.context = context;
- this.state = context.state;
- this.opts = context.opts;
- }
-
- this.setScope();
- return this;
-}
-
-function resync() {
- if (this.removed) return;
-
- this._resyncParent();
-
- this._resyncList();
-
- this._resyncKey();
-}
-
-function _resyncParent() {
- if (this.parentPath) {
- this.parent = this.parentPath.node;
- }
-}
-
-function _resyncKey() {
- if (!this.container) return;
- if (this.node === this.container[this.key]) return;
-
- if (Array.isArray(this.container)) {
- for (let i = 0; i < this.container.length; i++) {
- if (this.container[i] === this.node) {
- return this.setKey(i);
- }
- }
- } else {
- for (const key in this.container) {
- if (this.container[key] === this.node) {
- return this.setKey(key);
- }
- }
- }
-
- this.key = null;
-}
-
-function _resyncList() {
- if (!this.parent || !this.inList) return;
- const newContainer = this.parent[this.listKey];
- if (this.container === newContainer) return;
- this.container = newContainer || null;
-}
-
-function _resyncRemoved() {
- if (this.key == null || !this.container || this.container[this.key] !== this.node) {
- this._markRemoved();
- }
-}
-
-function popContext() {
- this.contexts.pop();
-
- if (this.contexts.length > 0) {
- this.setContext(this.contexts[this.contexts.length - 1]);
- } else {
- this.setContext(undefined);
- }
-}
-
-function pushContext(context) {
- this.contexts.push(context);
- this.setContext(context);
-}
-
-function setup(parentPath, container, listKey, key) {
- this.inList = !!listKey;
- this.listKey = listKey;
- this.parentKey = listKey || key;
- this.container = container;
- this.parentPath = parentPath || this.parentPath;
- this.setKey(key);
-}
-
-function setKey(key) {
- this.key = key;
- this.node = this.container[this.key];
- this.type = this.node && this.node.type;
-}
-
-function requeue(pathToQueue = this) {
- if (pathToQueue.removed) return;
- const contexts = this.contexts;
-
- for (const context of contexts) {
- context.maybeQueue(pathToQueue);
- }
-}
-
-function _getQueueContexts() {
- let path = this;
- let contexts = this.contexts;
-
- while (!contexts.length) {
- path = path.parentPath;
- if (!path) break;
- contexts = path.contexts;
- }
-
- return contexts;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/conversion.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/conversion.js
deleted file mode 100644
index 6de21ae8..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/conversion.js
+++ /dev/null
@@ -1,466 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.toComputedKey = toComputedKey;
-exports.ensureBlock = ensureBlock;
-exports.arrowFunctionToShadowed = arrowFunctionToShadowed;
-exports.unwrapFunctionEnvironment = unwrapFunctionEnvironment;
-exports.arrowFunctionToExpression = arrowFunctionToExpression;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _helperFunctionName() {
- const data = _interopRequireDefault(require("@babel/helper-function-name"));
-
- _helperFunctionName = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function toComputedKey() {
- const node = this.node;
- let key;
-
- if (this.isMemberExpression()) {
- key = node.property;
- } else if (this.isProperty() || this.isMethod()) {
- key = node.key;
- } else {
- throw new ReferenceError("todo");
- }
-
- if (!node.computed) {
- if (t().isIdentifier(key)) key = t().stringLiteral(key.name);
- }
-
- return key;
-}
-
-function ensureBlock() {
- const body = this.get("body");
- const bodyNode = body.node;
-
- if (Array.isArray(body)) {
- throw new Error("Can't convert array path to a block statement");
- }
-
- if (!bodyNode) {
- throw new Error("Can't convert node without a body");
- }
-
- if (body.isBlockStatement()) {
- return bodyNode;
- }
-
- const statements = [];
- let stringPath = "body";
- let key;
- let listKey;
-
- if (body.isStatement()) {
- listKey = "body";
- key = 0;
- statements.push(body.node);
- } else {
- stringPath += ".body.0";
-
- if (this.isFunction()) {
- key = "argument";
- statements.push(t().returnStatement(body.node));
- } else {
- key = "expression";
- statements.push(t().expressionStatement(body.node));
- }
- }
-
- this.node.body = t().blockStatement(statements);
- const parentPath = this.get(stringPath);
- body.setup(parentPath, listKey ? parentPath.node[listKey] : parentPath.node, listKey, key);
- return this.node;
-}
-
-function arrowFunctionToShadowed() {
- if (!this.isArrowFunctionExpression()) return;
- this.arrowFunctionToExpression();
-}
-
-function unwrapFunctionEnvironment() {
- if (!this.isArrowFunctionExpression() && !this.isFunctionExpression() && !this.isFunctionDeclaration()) {
- throw this.buildCodeFrameError("Can only unwrap the environment of a function.");
- }
-
- hoistFunctionEnvironment(this);
-}
-
-function arrowFunctionToExpression({
- allowInsertArrow = true,
- specCompliant = false
-} = {}) {
- if (!this.isArrowFunctionExpression()) {
- throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");
- }
-
- const thisBinding = hoistFunctionEnvironment(this, specCompliant, allowInsertArrow);
- this.ensureBlock();
- this.node.type = "FunctionExpression";
-
- if (specCompliant) {
- const checkBinding = thisBinding ? null : this.parentPath.scope.generateUidIdentifier("arrowCheckId");
-
- if (checkBinding) {
- this.parentPath.scope.push({
- id: checkBinding,
- init: t().objectExpression([])
- });
- }
-
- this.get("body").unshiftContainer("body", t().expressionStatement(t().callExpression(this.hub.file.addHelper("newArrowCheck"), [t().thisExpression(), checkBinding ? t().identifier(checkBinding.name) : t().identifier(thisBinding)])));
- this.replaceWith(t().callExpression(t().memberExpression((0, _helperFunctionName().default)(this, true) || this.node, t().identifier("bind")), [checkBinding ? t().identifier(checkBinding.name) : t().thisExpression()]));
- }
-}
-
-function hoistFunctionEnvironment(fnPath, specCompliant = false, allowInsertArrow = true) {
- const thisEnvFn = fnPath.findParent(p => {
- return p.isFunction() && !p.isArrowFunctionExpression() || p.isProgram() || p.isClassProperty({
- static: false
- });
- });
- const inConstructor = thisEnvFn && thisEnvFn.node.kind === "constructor";
-
- if (thisEnvFn.isClassProperty()) {
- throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");
- }
-
- const {
- thisPaths,
- argumentsPaths,
- newTargetPaths,
- superProps,
- superCalls
- } = getScopeInformation(fnPath);
-
- if (inConstructor && superCalls.length > 0) {
- if (!allowInsertArrow) {
- throw superCalls[0].buildCodeFrameError("Unable to handle nested super() usage in arrow");
- }
-
- const allSuperCalls = [];
- thisEnvFn.traverse({
- Function(child) {
- if (child.isArrowFunctionExpression()) return;
- child.skip();
- },
-
- ClassProperty(child) {
- if (child.node.static) return;
- child.skip();
- },
-
- CallExpression(child) {
- if (!child.get("callee").isSuper()) return;
- allSuperCalls.push(child);
- }
-
- });
- const superBinding = getSuperBinding(thisEnvFn);
- allSuperCalls.forEach(superCall => {
- const callee = t().identifier(superBinding);
- callee.loc = superCall.node.callee.loc;
- superCall.get("callee").replaceWith(callee);
- });
- }
-
- let thisBinding;
-
- if (thisPaths.length > 0 || specCompliant) {
- thisBinding = getThisBinding(thisEnvFn, inConstructor);
-
- if (!specCompliant || inConstructor && hasSuperClass(thisEnvFn)) {
- thisPaths.forEach(thisChild => {
- const thisRef = thisChild.isJSX() ? t().jsxIdentifier(thisBinding) : t().identifier(thisBinding);
- thisRef.loc = thisChild.node.loc;
- thisChild.replaceWith(thisRef);
- });
- if (specCompliant) thisBinding = null;
- }
- }
-
- if (argumentsPaths.length > 0) {
- const argumentsBinding = getBinding(thisEnvFn, "arguments", () => t().identifier("arguments"));
- argumentsPaths.forEach(argumentsChild => {
- const argsRef = t().identifier(argumentsBinding);
- argsRef.loc = argumentsChild.node.loc;
- argumentsChild.replaceWith(argsRef);
- });
- }
-
- if (newTargetPaths.length > 0) {
- const newTargetBinding = getBinding(thisEnvFn, "newtarget", () => t().metaProperty(t().identifier("new"), t().identifier("target")));
- newTargetPaths.forEach(targetChild => {
- const targetRef = t().identifier(newTargetBinding);
- targetRef.loc = targetChild.node.loc;
- targetChild.replaceWith(targetRef);
- });
- }
-
- if (superProps.length > 0) {
- if (!allowInsertArrow) {
- throw superProps[0].buildCodeFrameError("Unable to handle nested super.prop usage");
- }
-
- const flatSuperProps = superProps.reduce((acc, superProp) => acc.concat(standardizeSuperProperty(superProp)), []);
- flatSuperProps.forEach(superProp => {
- const key = superProp.node.computed ? "" : superProp.get("property").node.name;
-
- if (superProp.parentPath.isCallExpression({
- callee: superProp.node
- })) {
- const superBinding = getSuperPropCallBinding(thisEnvFn, key);
-
- if (superProp.node.computed) {
- const prop = superProp.get("property").node;
- superProp.replaceWith(t().identifier(superBinding));
- superProp.parentPath.node.arguments.unshift(prop);
- } else {
- superProp.replaceWith(t().identifier(superBinding));
- }
- } else {
- const isAssignment = superProp.parentPath.isAssignmentExpression({
- left: superProp.node
- });
- const superBinding = getSuperPropBinding(thisEnvFn, isAssignment, key);
- const args = [];
-
- if (superProp.node.computed) {
- args.push(superProp.get("property").node);
- }
-
- if (isAssignment) {
- const value = superProp.parentPath.node.right;
- args.push(value);
- superProp.parentPath.replaceWith(t().callExpression(t().identifier(superBinding), args));
- } else {
- superProp.replaceWith(t().callExpression(t().identifier(superBinding), args));
- }
- }
- });
- }
-
- return thisBinding;
-}
-
-function standardizeSuperProperty(superProp) {
- if (superProp.parentPath.isAssignmentExpression() && superProp.parentPath.node.operator !== "=") {
- const assignmentPath = superProp.parentPath;
- const op = assignmentPath.node.operator.slice(0, -1);
- const value = assignmentPath.node.right;
- assignmentPath.node.operator = "=";
-
- if (superProp.node.computed) {
- const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp");
- assignmentPath.get("left").replaceWith(t().memberExpression(superProp.node.object, t().assignmentExpression("=", tmp, superProp.node.property), true));
- assignmentPath.get("right").replaceWith(t().binaryExpression(op, t().memberExpression(superProp.node.object, t().identifier(tmp.name), true), value));
- } else {
- assignmentPath.get("left").replaceWith(t().memberExpression(superProp.node.object, superProp.node.property));
- assignmentPath.get("right").replaceWith(t().binaryExpression(op, t().memberExpression(superProp.node.object, t().identifier(superProp.node.property.name)), value));
- }
-
- return [assignmentPath.get("left"), assignmentPath.get("right").get("left")];
- } else if (superProp.parentPath.isUpdateExpression()) {
- const updateExpr = superProp.parentPath;
- const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp");
- const computedKey = superProp.node.computed ? superProp.scope.generateDeclaredUidIdentifier("prop") : null;
- const parts = [t().assignmentExpression("=", tmp, t().memberExpression(superProp.node.object, computedKey ? t().assignmentExpression("=", computedKey, superProp.node.property) : superProp.node.property, superProp.node.computed)), t().assignmentExpression("=", t().memberExpression(superProp.node.object, computedKey ? t().identifier(computedKey.name) : superProp.node.property, superProp.node.computed), t().binaryExpression("+", t().identifier(tmp.name), t().numericLiteral(1)))];
-
- if (!superProp.parentPath.node.prefix) {
- parts.push(t().identifier(tmp.name));
- }
-
- updateExpr.replaceWith(t().sequenceExpression(parts));
- const left = updateExpr.get("expressions.0.right");
- const right = updateExpr.get("expressions.1.left");
- return [left, right];
- }
-
- return [superProp];
-}
-
-function hasSuperClass(thisEnvFn) {
- return thisEnvFn.isClassMethod() && !!thisEnvFn.parentPath.parentPath.node.superClass;
-}
-
-function getThisBinding(thisEnvFn, inConstructor) {
- return getBinding(thisEnvFn, "this", thisBinding => {
- if (!inConstructor || !hasSuperClass(thisEnvFn)) return t().thisExpression();
- const supers = new WeakSet();
- thisEnvFn.traverse({
- Function(child) {
- if (child.isArrowFunctionExpression()) return;
- child.skip();
- },
-
- ClassProperty(child) {
- if (child.node.static) return;
- child.skip();
- },
-
- CallExpression(child) {
- if (!child.get("callee").isSuper()) return;
- if (supers.has(child.node)) return;
- supers.add(child.node);
- child.replaceWith(t().assignmentExpression("=", t().identifier(thisBinding), child.node));
- }
-
- });
- });
-}
-
-function getSuperBinding(thisEnvFn) {
- return getBinding(thisEnvFn, "supercall", () => {
- const argsBinding = thisEnvFn.scope.generateUidIdentifier("args");
- return t().arrowFunctionExpression([t().restElement(argsBinding)], t().callExpression(t().super(), [t().spreadElement(t().identifier(argsBinding.name))]));
- });
-}
-
-function getSuperPropCallBinding(thisEnvFn, propName) {
- return getBinding(thisEnvFn, `superprop_call:${propName || ""}`, () => {
- const argsBinding = thisEnvFn.scope.generateUidIdentifier("args");
- const argsList = [t().restElement(argsBinding)];
- let fnBody;
-
- if (propName) {
- fnBody = t().callExpression(t().memberExpression(t().super(), t().identifier(propName)), [t().spreadElement(t().identifier(argsBinding.name))]);
- } else {
- const method = thisEnvFn.scope.generateUidIdentifier("prop");
- argsList.unshift(method);
- fnBody = t().callExpression(t().memberExpression(t().super(), t().identifier(method.name), true), [t().spreadElement(t().identifier(argsBinding.name))]);
- }
-
- return t().arrowFunctionExpression(argsList, fnBody);
- });
-}
-
-function getSuperPropBinding(thisEnvFn, isAssignment, propName) {
- const op = isAssignment ? "set" : "get";
- return getBinding(thisEnvFn, `superprop_${op}:${propName || ""}`, () => {
- const argsList = [];
- let fnBody;
-
- if (propName) {
- fnBody = t().memberExpression(t().super(), t().identifier(propName));
- } else {
- const method = thisEnvFn.scope.generateUidIdentifier("prop");
- argsList.unshift(method);
- fnBody = t().memberExpression(t().super(), t().identifier(method.name), true);
- }
-
- if (isAssignment) {
- const valueIdent = thisEnvFn.scope.generateUidIdentifier("value");
- argsList.push(valueIdent);
- fnBody = t().assignmentExpression("=", fnBody, t().identifier(valueIdent.name));
- }
-
- return t().arrowFunctionExpression(argsList, fnBody);
- });
-}
-
-function getBinding(thisEnvFn, key, init) {
- const cacheKey = "binding:" + key;
- let data = thisEnvFn.getData(cacheKey);
-
- if (!data) {
- const id = thisEnvFn.scope.generateUidIdentifier(key);
- data = id.name;
- thisEnvFn.setData(cacheKey, data);
- thisEnvFn.scope.push({
- id: id,
- init: init(data)
- });
- }
-
- return data;
-}
-
-function getScopeInformation(fnPath) {
- const thisPaths = [];
- const argumentsPaths = [];
- const newTargetPaths = [];
- const superProps = [];
- const superCalls = [];
- fnPath.traverse({
- ClassProperty(child) {
- if (child.node.static) return;
- child.skip();
- },
-
- Function(child) {
- if (child.isArrowFunctionExpression()) return;
- child.skip();
- },
-
- ThisExpression(child) {
- thisPaths.push(child);
- },
-
- JSXIdentifier(child) {
- if (child.node.name !== "this") return;
-
- if (!child.parentPath.isJSXMemberExpression({
- object: child.node
- }) && !child.parentPath.isJSXOpeningElement({
- name: child.node
- })) {
- return;
- }
-
- thisPaths.push(child);
- },
-
- CallExpression(child) {
- if (child.get("callee").isSuper()) superCalls.push(child);
- },
-
- MemberExpression(child) {
- if (child.get("object").isSuper()) superProps.push(child);
- },
-
- ReferencedIdentifier(child) {
- if (child.node.name !== "arguments") return;
- argumentsPaths.push(child);
- },
-
- MetaProperty(child) {
- if (!child.get("meta").isIdentifier({
- name: "new"
- })) return;
- if (!child.get("property").isIdentifier({
- name: "target"
- })) return;
- newTargetPaths.push(child);
- }
-
- });
- return {
- thisPaths,
- argumentsPaths,
- newTargetPaths,
- superProps,
- superCalls
- };
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/evaluation.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/evaluation.js
deleted file mode 100644
index a8e055b5..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/evaluation.js
+++ /dev/null
@@ -1,412 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.evaluateTruthy = evaluateTruthy;
-exports.evaluate = evaluate;
-const VALID_CALLEES = ["String", "Number", "Math"];
-const INVALID_METHODS = ["random"];
-
-function evaluateTruthy() {
- const res = this.evaluate();
- if (res.confident) return !!res.value;
-}
-
-function deopt(path, state) {
- if (!state.confident) return;
- state.deoptPath = path;
- state.confident = false;
-}
-
-function evaluateCached(path, state) {
- const {
- node
- } = path;
- const {
- seen
- } = state;
-
- if (seen.has(node)) {
- const existing = seen.get(node);
-
- if (existing.resolved) {
- return existing.value;
- } else {
- deopt(path, state);
- return;
- }
- } else {
- const item = {
- resolved: false
- };
- seen.set(node, item);
-
- const val = _evaluate(path, state);
-
- if (state.confident) {
- item.resolved = true;
- item.value = val;
- }
-
- return val;
- }
-}
-
-function _evaluate(path, state) {
- if (!state.confident) return;
- const {
- node
- } = path;
-
- if (path.isSequenceExpression()) {
- const exprs = path.get("expressions");
- return evaluateCached(exprs[exprs.length - 1], state);
- }
-
- if (path.isStringLiteral() || path.isNumericLiteral() || path.isBooleanLiteral()) {
- return node.value;
- }
-
- if (path.isNullLiteral()) {
- return null;
- }
-
- if (path.isTemplateLiteral()) {
- return evaluateQuasis(path, node.quasis, state);
- }
-
- if (path.isTaggedTemplateExpression() && path.get("tag").isMemberExpression()) {
- const object = path.get("tag.object");
- const {
- node: {
- name
- }
- } = object;
- const property = path.get("tag.property");
-
- if (object.isIdentifier() && name === "String" && !path.scope.getBinding(name, true) && property.isIdentifier && property.node.name === "raw") {
- return evaluateQuasis(path, node.quasi.quasis, state, true);
- }
- }
-
- if (path.isConditionalExpression()) {
- const testResult = evaluateCached(path.get("test"), state);
- if (!state.confident) return;
-
- if (testResult) {
- return evaluateCached(path.get("consequent"), state);
- } else {
- return evaluateCached(path.get("alternate"), state);
- }
- }
-
- if (path.isExpressionWrapper()) {
- return evaluateCached(path.get("expression"), state);
- }
-
- if (path.isMemberExpression() && !path.parentPath.isCallExpression({
- callee: node
- })) {
- const property = path.get("property");
- const object = path.get("object");
-
- if (object.isLiteral() && property.isIdentifier()) {
- const value = object.node.value;
- const type = typeof value;
-
- if (type === "number" || type === "string") {
- return value[property.node.name];
- }
- }
- }
-
- if (path.isReferencedIdentifier()) {
- const binding = path.scope.getBinding(node.name);
-
- if (binding && binding.constantViolations.length > 0) {
- return deopt(binding.path, state);
- }
-
- if (binding && path.node.start < binding.path.node.end) {
- return deopt(binding.path, state);
- }
-
- if (binding && binding.hasValue) {
- return binding.value;
- } else {
- if (node.name === "undefined") {
- return binding ? deopt(binding.path, state) : undefined;
- } else if (node.name === "Infinity") {
- return binding ? deopt(binding.path, state) : Infinity;
- } else if (node.name === "NaN") {
- return binding ? deopt(binding.path, state) : NaN;
- }
-
- const resolved = path.resolve();
-
- if (resolved === path) {
- return deopt(path, state);
- } else {
- return evaluateCached(resolved, state);
- }
- }
- }
-
- if (path.isUnaryExpression({
- prefix: true
- })) {
- if (node.operator === "void") {
- return undefined;
- }
-
- const argument = path.get("argument");
-
- if (node.operator === "typeof" && (argument.isFunction() || argument.isClass())) {
- return "function";
- }
-
- const arg = evaluateCached(argument, state);
- if (!state.confident) return;
-
- switch (node.operator) {
- case "!":
- return !arg;
-
- case "+":
- return +arg;
-
- case "-":
- return -arg;
-
- case "~":
- return ~arg;
-
- case "typeof":
- return typeof arg;
- }
- }
-
- if (path.isArrayExpression()) {
- const arr = [];
- const elems = path.get("elements");
-
- for (const elem of elems) {
- const elemValue = elem.evaluate();
-
- if (elemValue.confident) {
- arr.push(elemValue.value);
- } else {
- return deopt(elem, state);
- }
- }
-
- return arr;
- }
-
- if (path.isObjectExpression()) {
- const obj = {};
- const props = path.get("properties");
-
- for (const prop of props) {
- if (prop.isObjectMethod() || prop.isSpreadElement()) {
- return deopt(prop, state);
- }
-
- const keyPath = prop.get("key");
- let key = keyPath;
-
- if (prop.node.computed) {
- key = key.evaluate();
-
- if (!key.confident) {
- return deopt(keyPath, state);
- }
-
- key = key.value;
- } else if (key.isIdentifier()) {
- key = key.node.name;
- } else {
- key = key.node.value;
- }
-
- const valuePath = prop.get("value");
- let value = valuePath.evaluate();
-
- if (!value.confident) {
- return deopt(valuePath, state);
- }
-
- value = value.value;
- obj[key] = value;
- }
-
- return obj;
- }
-
- if (path.isLogicalExpression()) {
- const wasConfident = state.confident;
- const left = evaluateCached(path.get("left"), state);
- const leftConfident = state.confident;
- state.confident = wasConfident;
- const right = evaluateCached(path.get("right"), state);
- const rightConfident = state.confident;
- state.confident = leftConfident && rightConfident;
-
- switch (node.operator) {
- case "||":
- if (left && leftConfident) {
- state.confident = true;
- return left;
- }
-
- if (!state.confident) return;
- return left || right;
-
- case "&&":
- if (!left && leftConfident || !right && rightConfident) {
- state.confident = true;
- }
-
- if (!state.confident) return;
- return left && right;
- }
- }
-
- if (path.isBinaryExpression()) {
- const left = evaluateCached(path.get("left"), state);
- if (!state.confident) return;
- const right = evaluateCached(path.get("right"), state);
- if (!state.confident) return;
-
- switch (node.operator) {
- case "-":
- return left - right;
-
- case "+":
- return left + right;
-
- case "/":
- return left / right;
-
- case "*":
- return left * right;
-
- case "%":
- return left % right;
-
- case "**":
- return Math.pow(left, right);
-
- case "<":
- return left < right;
-
- case ">":
- return left > right;
-
- case "<=":
- return left <= right;
-
- case ">=":
- return left >= right;
-
- case "==":
- return left == right;
-
- case "!=":
- return left != right;
-
- case "===":
- return left === right;
-
- case "!==":
- return left !== right;
-
- case "|":
- return left | right;
-
- case "&":
- return left & right;
-
- case "^":
- return left ^ right;
-
- case "<<":
- return left << right;
-
- case ">>":
- return left >> right;
-
- case ">>>":
- return left >>> right;
- }
- }
-
- if (path.isCallExpression()) {
- const callee = path.get("callee");
- let context;
- let func;
-
- if (callee.isIdentifier() && !path.scope.getBinding(callee.node.name, true) && VALID_CALLEES.indexOf(callee.node.name) >= 0) {
- func = global[node.callee.name];
- }
-
- if (callee.isMemberExpression()) {
- const object = callee.get("object");
- const property = callee.get("property");
-
- if (object.isIdentifier() && property.isIdentifier() && VALID_CALLEES.indexOf(object.node.name) >= 0 && INVALID_METHODS.indexOf(property.node.name) < 0) {
- context = global[object.node.name];
- func = context[property.node.name];
- }
-
- if (object.isLiteral() && property.isIdentifier()) {
- const type = typeof object.node.value;
-
- if (type === "string" || type === "number") {
- context = object.node.value;
- func = context[property.node.name];
- }
- }
- }
-
- if (func) {
- const args = path.get("arguments").map(arg => evaluateCached(arg, state));
- if (!state.confident) return;
- return func.apply(context, args);
- }
- }
-
- deopt(path, state);
-}
-
-function evaluateQuasis(path, quasis, state, raw = false) {
- let str = "";
- let i = 0;
- const exprs = path.get("expressions");
-
- for (const elem of quasis) {
- if (!state.confident) break;
- str += raw ? elem.value.raw : elem.value.cooked;
- const expr = exprs[i++];
- if (expr) str += String(evaluateCached(expr, state));
- }
-
- if (!state.confident) return;
- return str;
-}
-
-function evaluate() {
- const state = {
- confident: true,
- deoptPath: null,
- seen: new Map()
- };
- let value = evaluateCached(this, state);
- if (!state.confident) value = undefined;
- return {
- confident: state.confident,
- deopt: state.deoptPath,
- value: value
- };
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/family.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/family.js
deleted file mode 100644
index 42b3fc69..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/family.js
+++ /dev/null
@@ -1,241 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.getOpposite = getOpposite;
-exports.getCompletionRecords = getCompletionRecords;
-exports.getSibling = getSibling;
-exports.getPrevSibling = getPrevSibling;
-exports.getNextSibling = getNextSibling;
-exports.getAllNextSiblings = getAllNextSiblings;
-exports.getAllPrevSiblings = getAllPrevSiblings;
-exports.get = get;
-exports._getKey = _getKey;
-exports._getPattern = _getPattern;
-exports.getBindingIdentifiers = getBindingIdentifiers;
-exports.getOuterBindingIdentifiers = getOuterBindingIdentifiers;
-exports.getBindingIdentifierPaths = getBindingIdentifierPaths;
-exports.getOuterBindingIdentifierPaths = getOuterBindingIdentifierPaths;
-
-var _index = _interopRequireDefault(require("./index"));
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function getOpposite() {
- if (this.key === "left") {
- return this.getSibling("right");
- } else if (this.key === "right") {
- return this.getSibling("left");
- }
-}
-
-function addCompletionRecords(path, paths) {
- if (path) return paths.concat(path.getCompletionRecords());
- return paths;
-}
-
-function getCompletionRecords() {
- let paths = [];
-
- if (this.isIfStatement()) {
- paths = addCompletionRecords(this.get("consequent"), paths);
- paths = addCompletionRecords(this.get("alternate"), paths);
- } else if (this.isDoExpression() || this.isFor() || this.isWhile()) {
- paths = addCompletionRecords(this.get("body"), paths);
- } else if (this.isProgram() || this.isBlockStatement()) {
- paths = addCompletionRecords(this.get("body").pop(), paths);
- } else if (this.isFunction()) {
- return this.get("body").getCompletionRecords();
- } else if (this.isTryStatement()) {
- paths = addCompletionRecords(this.get("block"), paths);
- paths = addCompletionRecords(this.get("handler"), paths);
- paths = addCompletionRecords(this.get("finalizer"), paths);
- } else if (this.isCatchClause()) {
- paths = addCompletionRecords(this.get("body"), paths);
- } else {
- paths.push(this);
- }
-
- return paths;
-}
-
-function getSibling(key) {
- return _index.default.get({
- parentPath: this.parentPath,
- parent: this.parent,
- container: this.container,
- listKey: this.listKey,
- key: key
- });
-}
-
-function getPrevSibling() {
- return this.getSibling(this.key - 1);
-}
-
-function getNextSibling() {
- return this.getSibling(this.key + 1);
-}
-
-function getAllNextSiblings() {
- let _key = this.key;
- let sibling = this.getSibling(++_key);
- const siblings = [];
-
- while (sibling.node) {
- siblings.push(sibling);
- sibling = this.getSibling(++_key);
- }
-
- return siblings;
-}
-
-function getAllPrevSiblings() {
- let _key = this.key;
- let sibling = this.getSibling(--_key);
- const siblings = [];
-
- while (sibling.node) {
- siblings.push(sibling);
- sibling = this.getSibling(--_key);
- }
-
- return siblings;
-}
-
-function get(key, context) {
- if (context === true) context = this.context;
- const parts = key.split(".");
-
- if (parts.length === 1) {
- return this._getKey(key, context);
- } else {
- return this._getPattern(parts, context);
- }
-}
-
-function _getKey(key, context) {
- const node = this.node;
- const container = node[key];
-
- if (Array.isArray(container)) {
- return container.map((_, i) => {
- return _index.default.get({
- listKey: key,
- parentPath: this,
- parent: node,
- container: container,
- key: i
- }).setContext(context);
- });
- } else {
- return _index.default.get({
- parentPath: this,
- parent: node,
- container: node,
- key: key
- }).setContext(context);
- }
-}
-
-function _getPattern(parts, context) {
- let path = this;
-
- for (const part of parts) {
- if (part === ".") {
- path = path.parentPath;
- } else {
- if (Array.isArray(path)) {
- path = path[part];
- } else {
- path = path.get(part, context);
- }
- }
- }
-
- return path;
-}
-
-function getBindingIdentifiers(duplicates) {
- return t().getBindingIdentifiers(this.node, duplicates);
-}
-
-function getOuterBindingIdentifiers(duplicates) {
- return t().getOuterBindingIdentifiers(this.node, duplicates);
-}
-
-function getBindingIdentifierPaths(duplicates = false, outerOnly = false) {
- const path = this;
- let search = [].concat(path);
- const ids = Object.create(null);
-
- while (search.length) {
- const id = search.shift();
- if (!id) continue;
- if (!id.node) continue;
- const keys = t().getBindingIdentifiers.keys[id.node.type];
-
- if (id.isIdentifier()) {
- if (duplicates) {
- const _ids = ids[id.node.name] = ids[id.node.name] || [];
-
- _ids.push(id);
- } else {
- ids[id.node.name] = id;
- }
-
- continue;
- }
-
- if (id.isExportDeclaration()) {
- const declaration = id.get("declaration");
-
- if (declaration.isDeclaration()) {
- search.push(declaration);
- }
-
- continue;
- }
-
- if (outerOnly) {
- if (id.isFunctionDeclaration()) {
- search.push(id.get("id"));
- continue;
- }
-
- if (id.isFunctionExpression()) {
- continue;
- }
- }
-
- if (keys) {
- for (let i = 0; i < keys.length; i++) {
- const key = keys[i];
- const child = id.get(key);
-
- if (Array.isArray(child) || child.node) {
- search = search.concat(child);
- }
- }
- }
- }
-
- return ids;
-}
-
-function getOuterBindingIdentifierPaths(duplicates) {
- return this.getBindingIdentifierPaths(duplicates, true);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/index.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/index.js
deleted file mode 100644
index 26ea0238..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/index.js
+++ /dev/null
@@ -1,226 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-var virtualTypes = _interopRequireWildcard(require("./lib/virtual-types"));
-
-function _debug() {
- const data = _interopRequireDefault(require("debug"));
-
- _debug = function () {
- return data;
- };
-
- return data;
-}
-
-function _invariant() {
- const data = _interopRequireDefault(require("invariant"));
-
- _invariant = function () {
- return data;
- };
-
- return data;
-}
-
-var _index = _interopRequireDefault(require("../index"));
-
-var _scope = _interopRequireDefault(require("../scope"));
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-var _cache = require("../cache");
-
-function _generator() {
- const data = _interopRequireDefault(require("@babel/generator"));
-
- _generator = function () {
- return data;
- };
-
- return data;
-}
-
-var NodePath_ancestry = _interopRequireWildcard(require("./ancestry"));
-
-var NodePath_inference = _interopRequireWildcard(require("./inference"));
-
-var NodePath_replacement = _interopRequireWildcard(require("./replacement"));
-
-var NodePath_evaluation = _interopRequireWildcard(require("./evaluation"));
-
-var NodePath_conversion = _interopRequireWildcard(require("./conversion"));
-
-var NodePath_introspection = _interopRequireWildcard(require("./introspection"));
-
-var NodePath_context = _interopRequireWildcard(require("./context"));
-
-var NodePath_removal = _interopRequireWildcard(require("./removal"));
-
-var NodePath_modification = _interopRequireWildcard(require("./modification"));
-
-var NodePath_family = _interopRequireWildcard(require("./family"));
-
-var NodePath_comments = _interopRequireWildcard(require("./comments"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const debug = (0, _debug().default)("babel");
-
-class NodePath {
- constructor(hub, parent) {
- this.parent = parent;
- this.hub = hub;
- this.contexts = [];
- this.data = {};
- this.shouldSkip = false;
- this.shouldStop = false;
- this.removed = false;
- this.state = null;
- this.opts = null;
- this.skipKeys = null;
- this.parentPath = null;
- this.context = null;
- this.container = null;
- this.listKey = null;
- this.inList = false;
- this.parentKey = null;
- this.key = null;
- this.node = null;
- this.scope = null;
- this.type = null;
- this.typeAnnotation = null;
- }
-
- static get({
- hub,
- parentPath,
- parent,
- container,
- listKey,
- key
- }) {
- if (!hub && parentPath) {
- hub = parentPath.hub;
- }
-
- (0, _invariant().default)(parent, "To get a node path the parent needs to exist");
- const targetNode = container[key];
- const paths = _cache.path.get(parent) || [];
-
- if (!_cache.path.has(parent)) {
- _cache.path.set(parent, paths);
- }
-
- let path;
-
- for (let i = 0; i < paths.length; i++) {
- const pathCheck = paths[i];
-
- if (pathCheck.node === targetNode) {
- path = pathCheck;
- break;
- }
- }
-
- if (!path) {
- path = new NodePath(hub, parent);
- paths.push(path);
- }
-
- path.setup(parentPath, container, listKey, key);
- return path;
- }
-
- getScope(scope) {
- return this.isScope() ? new _scope.default(this) : scope;
- }
-
- setData(key, val) {
- return this.data[key] = val;
- }
-
- getData(key, def) {
- let val = this.data[key];
- if (!val && def) val = this.data[key] = def;
- return val;
- }
-
- buildCodeFrameError(msg, Error = SyntaxError) {
- return this.hub.file.buildCodeFrameError(this.node, msg, Error);
- }
-
- traverse(visitor, state) {
- (0, _index.default)(this.node, visitor, this.scope, state, this);
- }
-
- set(key, node) {
- t().validate(this.node, key, node);
- this.node[key] = node;
- }
-
- getPathLocation() {
- const parts = [];
- let path = this;
-
- do {
- let key = path.key;
- if (path.inList) key = `${path.listKey}[${key}]`;
- parts.unshift(key);
- } while (path = path.parentPath);
-
- return parts.join(".");
- }
-
- debug(message) {
- if (!debug.enabled) return;
- debug(`${this.getPathLocation()} ${this.type}: ${message}`);
- }
-
- toString() {
- return (0, _generator().default)(this.node).code;
- }
-
-}
-
-exports.default = NodePath;
-Object.assign(NodePath.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments);
-
-for (const type of t().TYPES) {
- const typeKey = `is${type}`;
- const fn = t()[typeKey];
-
- NodePath.prototype[typeKey] = function (opts) {
- return fn(this.node, opts);
- };
-
- NodePath.prototype[`assert${type}`] = function (opts) {
- if (!fn(this.node, opts)) {
- throw new TypeError(`Expected node path of type ${type}`);
- }
- };
-}
-
-for (const type in virtualTypes) {
- if (type[0] === "_") continue;
- if (t().TYPES.indexOf(type) < 0) t().TYPES.push(type);
- const virtualType = virtualTypes[type];
-
- NodePath.prototype[`is${type}`] = function (opts) {
- return virtualType.checkPath(this, opts);
- };
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/inference/index.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/inference/index.js
deleted file mode 100644
index 80a77d08..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/inference/index.js
+++ /dev/null
@@ -1,132 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.getTypeAnnotation = getTypeAnnotation;
-exports._getTypeAnnotation = _getTypeAnnotation;
-exports.isBaseType = isBaseType;
-exports.couldBeBaseType = couldBeBaseType;
-exports.baseTypeStrictlyMatches = baseTypeStrictlyMatches;
-exports.isGenericType = isGenericType;
-
-var inferers = _interopRequireWildcard(require("./inferers"));
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function getTypeAnnotation() {
- if (this.typeAnnotation) return this.typeAnnotation;
- let type = this._getTypeAnnotation() || t().anyTypeAnnotation();
- if (t().isTypeAnnotation(type)) type = type.typeAnnotation;
- return this.typeAnnotation = type;
-}
-
-function _getTypeAnnotation() {
- const node = this.node;
-
- if (!node) {
- if (this.key === "init" && this.parentPath.isVariableDeclarator()) {
- const declar = this.parentPath.parentPath;
- const declarParent = declar.parentPath;
-
- if (declar.key === "left" && declarParent.isForInStatement()) {
- return t().stringTypeAnnotation();
- }
-
- if (declar.key === "left" && declarParent.isForOfStatement()) {
- return t().anyTypeAnnotation();
- }
-
- return t().voidTypeAnnotation();
- } else {
- return;
- }
- }
-
- if (node.typeAnnotation) {
- return node.typeAnnotation;
- }
-
- let inferer = inferers[node.type];
-
- if (inferer) {
- return inferer.call(this, node);
- }
-
- inferer = inferers[this.parentPath.type];
-
- if (inferer && inferer.validParent) {
- return this.parentPath.getTypeAnnotation();
- }
-}
-
-function isBaseType(baseName, soft) {
- return _isBaseType(baseName, this.getTypeAnnotation(), soft);
-}
-
-function _isBaseType(baseName, type, soft) {
- if (baseName === "string") {
- return t().isStringTypeAnnotation(type);
- } else if (baseName === "number") {
- return t().isNumberTypeAnnotation(type);
- } else if (baseName === "boolean") {
- return t().isBooleanTypeAnnotation(type);
- } else if (baseName === "any") {
- return t().isAnyTypeAnnotation(type);
- } else if (baseName === "mixed") {
- return t().isMixedTypeAnnotation(type);
- } else if (baseName === "empty") {
- return t().isEmptyTypeAnnotation(type);
- } else if (baseName === "void") {
- return t().isVoidTypeAnnotation(type);
- } else {
- if (soft) {
- return false;
- } else {
- throw new Error(`Unknown base type ${baseName}`);
- }
- }
-}
-
-function couldBeBaseType(name) {
- const type = this.getTypeAnnotation();
- if (t().isAnyTypeAnnotation(type)) return true;
-
- if (t().isUnionTypeAnnotation(type)) {
- for (const type2 of type.types) {
- if (t().isAnyTypeAnnotation(type2) || _isBaseType(name, type2, true)) {
- return true;
- }
- }
-
- return false;
- } else {
- return _isBaseType(name, type, true);
- }
-}
-
-function baseTypeStrictlyMatches(right) {
- const left = this.getTypeAnnotation();
- right = right.getTypeAnnotation();
-
- if (!t().isAnyTypeAnnotation(left) && t().isFlowBaseAnnotation(left)) {
- return right.type === left.type;
- }
-}
-
-function isGenericType(genericName) {
- const type = this.getTypeAnnotation();
- return t().isGenericTypeAnnotation(type) && t().isIdentifier(type.id, {
- name: genericName
- });
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js
deleted file mode 100644
index 35601aba..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js
+++ /dev/null
@@ -1,181 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = _default;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _default(node) {
- if (!this.isReferenced()) return;
- const binding = this.scope.getBinding(node.name);
-
- if (binding) {
- if (binding.identifier.typeAnnotation) {
- return binding.identifier.typeAnnotation;
- } else {
- return getTypeAnnotationBindingConstantViolations(binding, this, node.name);
- }
- }
-
- if (node.name === "undefined") {
- return t().voidTypeAnnotation();
- } else if (node.name === "NaN" || node.name === "Infinity") {
- return t().numberTypeAnnotation();
- } else if (node.name === "arguments") {}
-}
-
-function getTypeAnnotationBindingConstantViolations(binding, path, name) {
- const types = [];
- const functionConstantViolations = [];
- let constantViolations = getConstantViolationsBefore(binding, path, functionConstantViolations);
- const testType = getConditionalAnnotation(binding, path, name);
-
- if (testType) {
- const testConstantViolations = getConstantViolationsBefore(binding, testType.ifStatement);
- constantViolations = constantViolations.filter(path => testConstantViolations.indexOf(path) < 0);
- types.push(testType.typeAnnotation);
- }
-
- if (constantViolations.length) {
- constantViolations = constantViolations.concat(functionConstantViolations);
-
- for (const violation of constantViolations) {
- types.push(violation.getTypeAnnotation());
- }
- }
-
- if (types.length) {
- return t().createUnionTypeAnnotation(types);
- }
-}
-
-function getConstantViolationsBefore(binding, path, functions) {
- const violations = binding.constantViolations.slice();
- violations.unshift(binding.path);
- return violations.filter(violation => {
- violation = violation.resolve();
-
- const status = violation._guessExecutionStatusRelativeTo(path);
-
- if (functions && status === "function") functions.push(violation);
- return status === "before";
- });
-}
-
-function inferAnnotationFromBinaryExpression(name, path) {
- const operator = path.node.operator;
- const right = path.get("right").resolve();
- const left = path.get("left").resolve();
- let target;
-
- if (left.isIdentifier({
- name
- })) {
- target = right;
- } else if (right.isIdentifier({
- name
- })) {
- target = left;
- }
-
- if (target) {
- if (operator === "===") {
- return target.getTypeAnnotation();
- }
-
- if (t().BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) {
- return t().numberTypeAnnotation();
- }
-
- return;
- }
-
- if (operator !== "===" && operator !== "==") return;
- let typeofPath;
- let typePath;
-
- if (left.isUnaryExpression({
- operator: "typeof"
- })) {
- typeofPath = left;
- typePath = right;
- } else if (right.isUnaryExpression({
- operator: "typeof"
- })) {
- typeofPath = right;
- typePath = left;
- }
-
- if (!typeofPath) return;
- if (!typeofPath.get("argument").isIdentifier({
- name
- })) return;
- typePath = typePath.resolve();
- if (!typePath.isLiteral()) return;
- const typeValue = typePath.node.value;
- if (typeof typeValue !== "string") return;
- return t().createTypeAnnotationBasedOnTypeof(typeValue);
-}
-
-function getParentConditionalPath(binding, path, name) {
- let parentPath;
-
- while (parentPath = path.parentPath) {
- if (parentPath.isIfStatement() || parentPath.isConditionalExpression()) {
- if (path.key === "test") {
- return;
- }
-
- return parentPath;
- }
-
- if (parentPath.isFunction()) {
- if (parentPath.parentPath.scope.getBinding(name) !== binding) return;
- }
-
- path = parentPath;
- }
-}
-
-function getConditionalAnnotation(binding, path, name) {
- const ifStatement = getParentConditionalPath(binding, path, name);
- if (!ifStatement) return;
- const test = ifStatement.get("test");
- const paths = [test];
- const types = [];
-
- for (let i = 0; i < paths.length; i++) {
- const path = paths[i];
-
- if (path.isLogicalExpression()) {
- if (path.node.operator === "&&") {
- paths.push(path.get("left"));
- paths.push(path.get("right"));
- }
- } else if (path.isBinaryExpression()) {
- const type = inferAnnotationFromBinaryExpression(name, path);
- if (type) types.push(type);
- }
- }
-
- if (types.length) {
- return {
- typeAnnotation: t().createUnionTypeAnnotation(types),
- ifStatement
- };
- }
-
- return getConditionalAnnotation(ifStatement, name);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/inference/inferers.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/inference/inferers.js
deleted file mode 100644
index 58023a1c..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/inference/inferers.js
+++ /dev/null
@@ -1,222 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.VariableDeclarator = VariableDeclarator;
-exports.TypeCastExpression = TypeCastExpression;
-exports.NewExpression = NewExpression;
-exports.TemplateLiteral = TemplateLiteral;
-exports.UnaryExpression = UnaryExpression;
-exports.BinaryExpression = BinaryExpression;
-exports.LogicalExpression = LogicalExpression;
-exports.ConditionalExpression = ConditionalExpression;
-exports.SequenceExpression = SequenceExpression;
-exports.AssignmentExpression = AssignmentExpression;
-exports.UpdateExpression = UpdateExpression;
-exports.StringLiteral = StringLiteral;
-exports.NumericLiteral = NumericLiteral;
-exports.BooleanLiteral = BooleanLiteral;
-exports.NullLiteral = NullLiteral;
-exports.RegExpLiteral = RegExpLiteral;
-exports.ObjectExpression = ObjectExpression;
-exports.ArrayExpression = ArrayExpression;
-exports.RestElement = RestElement;
-exports.ClassDeclaration = exports.ClassExpression = exports.FunctionDeclaration = exports.ArrowFunctionExpression = exports.FunctionExpression = Func;
-exports.CallExpression = CallExpression;
-exports.TaggedTemplateExpression = TaggedTemplateExpression;
-Object.defineProperty(exports, "Identifier", {
- enumerable: true,
- get: function () {
- return _infererReference.default;
- }
-});
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-var _infererReference = _interopRequireDefault(require("./inferer-reference"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function VariableDeclarator() {
- const id = this.get("id");
- if (!id.isIdentifier()) return;
- const init = this.get("init");
- let type = init.getTypeAnnotation();
-
- if (type && type.type === "AnyTypeAnnotation") {
- if (init.isCallExpression() && init.get("callee").isIdentifier({
- name: "Array"
- }) && !init.scope.hasBinding("Array", true)) {
- type = ArrayExpression();
- }
- }
-
- return type;
-}
-
-function TypeCastExpression(node) {
- return node.typeAnnotation;
-}
-
-TypeCastExpression.validParent = true;
-
-function NewExpression(node) {
- if (this.get("callee").isIdentifier()) {
- return t().genericTypeAnnotation(node.callee);
- }
-}
-
-function TemplateLiteral() {
- return t().stringTypeAnnotation();
-}
-
-function UnaryExpression(node) {
- const operator = node.operator;
-
- if (operator === "void") {
- return t().voidTypeAnnotation();
- } else if (t().NUMBER_UNARY_OPERATORS.indexOf(operator) >= 0) {
- return t().numberTypeAnnotation();
- } else if (t().STRING_UNARY_OPERATORS.indexOf(operator) >= 0) {
- return t().stringTypeAnnotation();
- } else if (t().BOOLEAN_UNARY_OPERATORS.indexOf(operator) >= 0) {
- return t().booleanTypeAnnotation();
- }
-}
-
-function BinaryExpression(node) {
- const operator = node.operator;
-
- if (t().NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) {
- return t().numberTypeAnnotation();
- } else if (t().BOOLEAN_BINARY_OPERATORS.indexOf(operator) >= 0) {
- return t().booleanTypeAnnotation();
- } else if (operator === "+") {
- const right = this.get("right");
- const left = this.get("left");
-
- if (left.isBaseType("number") && right.isBaseType("number")) {
- return t().numberTypeAnnotation();
- } else if (left.isBaseType("string") || right.isBaseType("string")) {
- return t().stringTypeAnnotation();
- }
-
- return t().unionTypeAnnotation([t().stringTypeAnnotation(), t().numberTypeAnnotation()]);
- }
-}
-
-function LogicalExpression() {
- return t().createUnionTypeAnnotation([this.get("left").getTypeAnnotation(), this.get("right").getTypeAnnotation()]);
-}
-
-function ConditionalExpression() {
- return t().createUnionTypeAnnotation([this.get("consequent").getTypeAnnotation(), this.get("alternate").getTypeAnnotation()]);
-}
-
-function SequenceExpression() {
- return this.get("expressions").pop().getTypeAnnotation();
-}
-
-function AssignmentExpression() {
- return this.get("right").getTypeAnnotation();
-}
-
-function UpdateExpression(node) {
- const operator = node.operator;
-
- if (operator === "++" || operator === "--") {
- return t().numberTypeAnnotation();
- }
-}
-
-function StringLiteral() {
- return t().stringTypeAnnotation();
-}
-
-function NumericLiteral() {
- return t().numberTypeAnnotation();
-}
-
-function BooleanLiteral() {
- return t().booleanTypeAnnotation();
-}
-
-function NullLiteral() {
- return t().nullLiteralTypeAnnotation();
-}
-
-function RegExpLiteral() {
- return t().genericTypeAnnotation(t().identifier("RegExp"));
-}
-
-function ObjectExpression() {
- return t().genericTypeAnnotation(t().identifier("Object"));
-}
-
-function ArrayExpression() {
- return t().genericTypeAnnotation(t().identifier("Array"));
-}
-
-function RestElement() {
- return ArrayExpression();
-}
-
-RestElement.validParent = true;
-
-function Func() {
- return t().genericTypeAnnotation(t().identifier("Function"));
-}
-
-const isArrayFrom = t().buildMatchMemberExpression("Array.from");
-const isObjectKeys = t().buildMatchMemberExpression("Object.keys");
-const isObjectValues = t().buildMatchMemberExpression("Object.values");
-const isObjectEntries = t().buildMatchMemberExpression("Object.entries");
-
-function CallExpression() {
- const {
- callee
- } = this.node;
-
- if (isObjectKeys(callee)) {
- return t().arrayTypeAnnotation(t().stringTypeAnnotation());
- } else if (isArrayFrom(callee) || isObjectValues(callee)) {
- return t().arrayTypeAnnotation(t().anyTypeAnnotation());
- } else if (isObjectEntries(callee)) {
- return t().arrayTypeAnnotation(t().tupleTypeAnnotation([t().stringTypeAnnotation(), t().anyTypeAnnotation()]));
- }
-
- return resolveCall(this.get("callee"));
-}
-
-function TaggedTemplateExpression() {
- return resolveCall(this.get("tag"));
-}
-
-function resolveCall(callee) {
- callee = callee.resolve();
-
- if (callee.isFunction()) {
- if (callee.is("async")) {
- if (callee.is("generator")) {
- return t().genericTypeAnnotation(t().identifier("AsyncIterator"));
- } else {
- return t().genericTypeAnnotation(t().identifier("Promise"));
- }
- } else {
- if (callee.node.returnType) {
- return callee.node.returnType;
- } else {}
- }
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/introspection.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/introspection.js
deleted file mode 100644
index e405fff2..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/introspection.js
+++ /dev/null
@@ -1,370 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.matchesPattern = matchesPattern;
-exports.has = has;
-exports.isStatic = isStatic;
-exports.isnt = isnt;
-exports.equals = equals;
-exports.isNodeType = isNodeType;
-exports.canHaveVariableDeclarationOrExpression = canHaveVariableDeclarationOrExpression;
-exports.canSwapBetweenExpressionAndStatement = canSwapBetweenExpressionAndStatement;
-exports.isCompletionRecord = isCompletionRecord;
-exports.isStatementOrBlock = isStatementOrBlock;
-exports.referencesImport = referencesImport;
-exports.getSource = getSource;
-exports.willIMaybeExecuteBefore = willIMaybeExecuteBefore;
-exports._guessExecutionStatusRelativeTo = _guessExecutionStatusRelativeTo;
-exports._guessExecutionStatusRelativeToDifferentFunctions = _guessExecutionStatusRelativeToDifferentFunctions;
-exports.resolve = resolve;
-exports._resolve = _resolve;
-exports.isConstantExpression = isConstantExpression;
-exports.isInStrictMode = isInStrictMode;
-exports.is = void 0;
-
-function _includes() {
- const data = _interopRequireDefault(require("lodash/includes"));
-
- _includes = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function matchesPattern(pattern, allowPartial) {
- return t().matchesPattern(this.node, pattern, allowPartial);
-}
-
-function has(key) {
- const val = this.node && this.node[key];
-
- if (val && Array.isArray(val)) {
- return !!val.length;
- } else {
- return !!val;
- }
-}
-
-function isStatic() {
- return this.scope.isStatic(this.node);
-}
-
-const is = has;
-exports.is = is;
-
-function isnt(key) {
- return !this.has(key);
-}
-
-function equals(key, value) {
- return this.node[key] === value;
-}
-
-function isNodeType(type) {
- return t().isType(this.type, type);
-}
-
-function canHaveVariableDeclarationOrExpression() {
- return (this.key === "init" || this.key === "left") && this.parentPath.isFor();
-}
-
-function canSwapBetweenExpressionAndStatement(replacement) {
- if (this.key !== "body" || !this.parentPath.isArrowFunctionExpression()) {
- return false;
- }
-
- if (this.isExpression()) {
- return t().isBlockStatement(replacement);
- } else if (this.isBlockStatement()) {
- return t().isExpression(replacement);
- }
-
- return false;
-}
-
-function isCompletionRecord(allowInsideFunction) {
- let path = this;
- let first = true;
-
- do {
- const container = path.container;
-
- if (path.isFunction() && !first) {
- return !!allowInsideFunction;
- }
-
- first = false;
-
- if (Array.isArray(container) && path.key !== container.length - 1) {
- return false;
- }
- } while ((path = path.parentPath) && !path.isProgram());
-
- return true;
-}
-
-function isStatementOrBlock() {
- if (this.parentPath.isLabeledStatement() || t().isBlockStatement(this.container)) {
- return false;
- } else {
- return (0, _includes().default)(t().STATEMENT_OR_BLOCK_KEYS, this.key);
- }
-}
-
-function referencesImport(moduleSource, importName) {
- if (!this.isReferencedIdentifier()) return false;
- const binding = this.scope.getBinding(this.node.name);
- if (!binding || binding.kind !== "module") return false;
- const path = binding.path;
- const parent = path.parentPath;
- if (!parent.isImportDeclaration()) return false;
-
- if (parent.node.source.value === moduleSource) {
- if (!importName) return true;
- } else {
- return false;
- }
-
- if (path.isImportDefaultSpecifier() && importName === "default") {
- return true;
- }
-
- if (path.isImportNamespaceSpecifier() && importName === "*") {
- return true;
- }
-
- if (path.isImportSpecifier() && path.node.imported.name === importName) {
- return true;
- }
-
- return false;
-}
-
-function getSource() {
- const node = this.node;
-
- if (node.end) {
- return this.hub.file.code.slice(node.start, node.end);
- } else {
- return "";
- }
-}
-
-function willIMaybeExecuteBefore(target) {
- return this._guessExecutionStatusRelativeTo(target) !== "after";
-}
-
-function _guessExecutionStatusRelativeTo(target) {
- const targetFuncParent = target.scope.getFunctionParent() || target.scope.getProgramParent();
- const selfFuncParent = this.scope.getFunctionParent() || target.scope.getProgramParent();
-
- if (targetFuncParent.node !== selfFuncParent.node) {
- const status = this._guessExecutionStatusRelativeToDifferentFunctions(targetFuncParent);
-
- if (status) {
- return status;
- } else {
- target = targetFuncParent.path;
- }
- }
-
- const targetPaths = target.getAncestry();
- if (targetPaths.indexOf(this) >= 0) return "after";
- const selfPaths = this.getAncestry();
- let commonPath;
- let targetIndex;
- let selfIndex;
-
- for (selfIndex = 0; selfIndex < selfPaths.length; selfIndex++) {
- const selfPath = selfPaths[selfIndex];
- targetIndex = targetPaths.indexOf(selfPath);
-
- if (targetIndex >= 0) {
- commonPath = selfPath;
- break;
- }
- }
-
- if (!commonPath) {
- return "before";
- }
-
- const targetRelationship = targetPaths[targetIndex - 1];
- const selfRelationship = selfPaths[selfIndex - 1];
-
- if (!targetRelationship || !selfRelationship) {
- return "before";
- }
-
- if (targetRelationship.listKey && targetRelationship.container === selfRelationship.container) {
- return targetRelationship.key > selfRelationship.key ? "before" : "after";
- }
-
- const keys = t().VISITOR_KEYS[commonPath.type];
- const targetKeyPosition = keys.indexOf(targetRelationship.key);
- const selfKeyPosition = keys.indexOf(selfRelationship.key);
- return targetKeyPosition > selfKeyPosition ? "before" : "after";
-}
-
-function _guessExecutionStatusRelativeToDifferentFunctions(targetFuncParent) {
- const targetFuncPath = targetFuncParent.path;
- if (!targetFuncPath.isFunctionDeclaration()) return;
- const binding = targetFuncPath.scope.getBinding(targetFuncPath.node.id.name);
- if (!binding.references) return "before";
- const referencePaths = binding.referencePaths;
-
- for (const path of referencePaths) {
- if (path.key !== "callee" || !path.parentPath.isCallExpression()) {
- return;
- }
- }
-
- let allStatus;
-
- for (const path of referencePaths) {
- const childOfFunction = !!path.find(path => path.node === targetFuncPath.node);
- if (childOfFunction) continue;
-
- const status = this._guessExecutionStatusRelativeTo(path);
-
- if (allStatus) {
- if (allStatus !== status) return;
- } else {
- allStatus = status;
- }
- }
-
- return allStatus;
-}
-
-function resolve(dangerous, resolved) {
- return this._resolve(dangerous, resolved) || this;
-}
-
-function _resolve(dangerous, resolved) {
- if (resolved && resolved.indexOf(this) >= 0) return;
- resolved = resolved || [];
- resolved.push(this);
-
- if (this.isVariableDeclarator()) {
- if (this.get("id").isIdentifier()) {
- return this.get("init").resolve(dangerous, resolved);
- } else {}
- } else if (this.isReferencedIdentifier()) {
- const binding = this.scope.getBinding(this.node.name);
- if (!binding) return;
- if (!binding.constant) return;
- if (binding.kind === "module") return;
-
- if (binding.path !== this) {
- const ret = binding.path.resolve(dangerous, resolved);
- if (this.find(parent => parent.node === ret.node)) return;
- return ret;
- }
- } else if (this.isTypeCastExpression()) {
- return this.get("expression").resolve(dangerous, resolved);
- } else if (dangerous && this.isMemberExpression()) {
- const targetKey = this.toComputedKey();
- if (!t().isLiteral(targetKey)) return;
- const targetName = targetKey.value;
- const target = this.get("object").resolve(dangerous, resolved);
-
- if (target.isObjectExpression()) {
- const props = target.get("properties");
-
- for (const prop of props) {
- if (!prop.isProperty()) continue;
- const key = prop.get("key");
- let match = prop.isnt("computed") && key.isIdentifier({
- name: targetName
- });
- match = match || key.isLiteral({
- value: targetName
- });
- if (match) return prop.get("value").resolve(dangerous, resolved);
- }
- } else if (target.isArrayExpression() && !isNaN(+targetName)) {
- const elems = target.get("elements");
- const elem = elems[targetName];
- if (elem) return elem.resolve(dangerous, resolved);
- }
- }
-}
-
-function isConstantExpression() {
- if (this.isIdentifier()) {
- const binding = this.scope.getBinding(this.node.name);
- if (!binding) return false;
- return binding.constant;
- }
-
- if (this.isLiteral()) {
- if (this.isRegExpLiteral()) {
- return false;
- }
-
- if (this.isTemplateLiteral()) {
- return this.get("expressions").every(expression => expression.isConstantExpression());
- }
-
- return true;
- }
-
- if (this.isUnaryExpression()) {
- if (this.get("operator").node !== "void") {
- return false;
- }
-
- return this.get("argument").isConstantExpression();
- }
-
- if (this.isBinaryExpression()) {
- return this.get("left").isConstantExpression() && this.get("right").isConstantExpression();
- }
-
- return false;
-}
-
-function isInStrictMode() {
- const start = this.isProgram() ? this : this.parentPath;
- const strictParent = start.find(path => {
- if (path.isProgram({
- sourceType: "module"
- })) return true;
- if (path.isClass()) return true;
- if (!path.isProgram() && !path.isFunction()) return false;
-
- if (path.isArrowFunctionExpression() && !path.get("body").isBlockStatement()) {
- return false;
- }
-
- let {
- node
- } = path;
- if (path.isFunction()) node = node.body;
-
- for (const directive of node.directives) {
- if (directive.value.value === "use strict") {
- return true;
- }
- }
- });
- return !!strictParent;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/lib/hoister.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/lib/hoister.js
deleted file mode 100644
index a14921c4..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/lib/hoister.js
+++ /dev/null
@@ -1,188 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const referenceVisitor = {
- ReferencedIdentifier(path, state) {
- if (path.isJSXIdentifier() && t().react.isCompatTag(path.node.name) && !path.parentPath.isJSXMemberExpression()) {
- return;
- }
-
- if (path.node.name === "this") {
- let scope = path.scope;
-
- do {
- if (scope.path.isFunction() && !scope.path.isArrowFunctionExpression()) {
- break;
- }
- } while (scope = scope.parent);
-
- if (scope) state.breakOnScopePaths.push(scope.path);
- }
-
- const binding = path.scope.getBinding(path.node.name);
- if (!binding) return;
- if (binding !== state.scope.getBinding(path.node.name)) return;
- state.bindings[path.node.name] = binding;
- }
-
-};
-
-class PathHoister {
- constructor(path, scope) {
- this.breakOnScopePaths = [];
- this.bindings = {};
- this.scopes = [];
- this.scope = scope;
- this.path = path;
- this.attachAfter = false;
- }
-
- isCompatibleScope(scope) {
- for (const key in this.bindings) {
- const binding = this.bindings[key];
-
- if (!scope.bindingIdentifierEquals(key, binding.identifier)) {
- return false;
- }
- }
-
- return true;
- }
-
- getCompatibleScopes() {
- let scope = this.path.scope;
-
- do {
- if (this.isCompatibleScope(scope)) {
- this.scopes.push(scope);
- } else {
- break;
- }
-
- if (this.breakOnScopePaths.indexOf(scope.path) >= 0) {
- break;
- }
- } while (scope = scope.parent);
- }
-
- getAttachmentPath() {
- let path = this._getAttachmentPath();
-
- if (!path) return;
- let targetScope = path.scope;
-
- if (targetScope.path === path) {
- targetScope = path.scope.parent;
- }
-
- if (targetScope.path.isProgram() || targetScope.path.isFunction()) {
- for (const name in this.bindings) {
- if (!targetScope.hasOwnBinding(name)) continue;
- const binding = this.bindings[name];
-
- if (binding.kind === "param" || binding.path.parentKey === "params") {
- continue;
- }
-
- const bindingParentPath = this.getAttachmentParentForPath(binding.path);
-
- if (bindingParentPath.key >= path.key) {
- this.attachAfter = true;
- path = binding.path;
-
- for (const violationPath of binding.constantViolations) {
- if (this.getAttachmentParentForPath(violationPath).key > path.key) {
- path = violationPath;
- }
- }
- }
- }
- }
-
- return path;
- }
-
- _getAttachmentPath() {
- const scopes = this.scopes;
- const scope = scopes.pop();
- if (!scope) return;
-
- if (scope.path.isFunction()) {
- if (this.hasOwnParamBindings(scope)) {
- if (this.scope === scope) return;
- const bodies = scope.path.get("body").get("body");
-
- for (let i = 0; i < bodies.length; i++) {
- if (bodies[i].node._blockHoist) continue;
- return bodies[i];
- }
- } else {
- return this.getNextScopeAttachmentParent();
- }
- } else if (scope.path.isProgram()) {
- return this.getNextScopeAttachmentParent();
- }
- }
-
- getNextScopeAttachmentParent() {
- const scope = this.scopes.pop();
- if (scope) return this.getAttachmentParentForPath(scope.path);
- }
-
- getAttachmentParentForPath(path) {
- do {
- if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) {
- return path;
- }
- } while (path = path.parentPath);
- }
-
- hasOwnParamBindings(scope) {
- for (const name in this.bindings) {
- if (!scope.hasOwnBinding(name)) continue;
- const binding = this.bindings[name];
- if (binding.kind === "param" && binding.constant) return true;
- }
-
- return false;
- }
-
- run() {
- this.path.traverse(referenceVisitor, this);
- this.getCompatibleScopes();
- const attachTo = this.getAttachmentPath();
- if (!attachTo) return;
- if (attachTo.getFunctionParent() === this.path.getFunctionParent()) return;
- let uid = attachTo.scope.generateUidIdentifier("ref");
- const declarator = t().variableDeclarator(uid, this.path.node);
- const insertFn = this.attachAfter ? "insertAfter" : "insertBefore";
- const [attached] = attachTo[insertFn]([attachTo.isVariableDeclarator() ? declarator : t().variableDeclaration("var", [declarator])]);
- const parent = this.path.parentPath;
-
- if (parent.isJSXElement() && this.path.container === parent.node.children) {
- uid = t().JSXExpressionContainer(uid);
- }
-
- this.path.replaceWith(t().cloneNode(uid));
- return attachTo.isVariableDeclarator() ? attached.get("init") : attached.get("declarations.0.init");
- }
-
-}
-
-exports.default = PathHoister;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js
deleted file mode 100644
index 23ec8fe6..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js
+++ /dev/null
@@ -1,38 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.hooks = void 0;
-const hooks = [function (self, parent) {
- const removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement();
-
- if (removeParent) {
- parent.remove();
- return true;
- }
-}, function (self, parent) {
- if (parent.isSequenceExpression() && parent.node.expressions.length === 1) {
- parent.replaceWith(parent.node.expressions[0]);
- return true;
- }
-}, function (self, parent) {
- if (parent.isBinary()) {
- if (self.key === "left") {
- parent.replaceWith(parent.node.right);
- } else {
- parent.replaceWith(parent.node.left);
- }
-
- return true;
- }
-}, function (self, parent) {
- if (parent.isIfStatement() && (self.key === "consequent" || self.key === "alternate") || self.key === "body" && (parent.isLoop() || parent.isArrowFunctionExpression())) {
- self.replaceWith({
- type: "BlockStatement",
- body: []
- });
- return true;
- }
-}];
-exports.hooks = hooks;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/lib/virtual-types.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/lib/virtual-types.js
deleted file mode 100644
index af321caa..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/lib/virtual-types.js
+++ /dev/null
@@ -1,212 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.ForAwaitStatement = exports.NumericLiteralTypeAnnotation = exports.ExistentialTypeParam = exports.SpreadProperty = exports.RestProperty = exports.Flow = exports.Pure = exports.Generated = exports.User = exports.Var = exports.BlockScoped = exports.Referenced = exports.Scope = exports.Expression = exports.Statement = exports.BindingIdentifier = exports.ReferencedMemberExpression = exports.ReferencedIdentifier = void 0;
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const ReferencedIdentifier = {
- types: ["Identifier", "JSXIdentifier"],
-
- checkPath({
- node,
- parent
- }, opts) {
- if (!t().isIdentifier(node, opts) && !t().isJSXMemberExpression(parent, opts)) {
- if (t().isJSXIdentifier(node, opts)) {
- if (t().react.isCompatTag(node.name)) return false;
- } else {
- return false;
- }
- }
-
- return t().isReferenced(node, parent);
- }
-
-};
-exports.ReferencedIdentifier = ReferencedIdentifier;
-const ReferencedMemberExpression = {
- types: ["MemberExpression"],
-
- checkPath({
- node,
- parent
- }) {
- return t().isMemberExpression(node) && t().isReferenced(node, parent);
- }
-
-};
-exports.ReferencedMemberExpression = ReferencedMemberExpression;
-const BindingIdentifier = {
- types: ["Identifier"],
-
- checkPath({
- node,
- parent
- }) {
- return t().isIdentifier(node) && t().isBinding(node, parent);
- }
-
-};
-exports.BindingIdentifier = BindingIdentifier;
-const Statement = {
- types: ["Statement"],
-
- checkPath({
- node,
- parent
- }) {
- if (t().isStatement(node)) {
- if (t().isVariableDeclaration(node)) {
- if (t().isForXStatement(parent, {
- left: node
- })) return false;
- if (t().isForStatement(parent, {
- init: node
- })) return false;
- }
-
- return true;
- } else {
- return false;
- }
- }
-
-};
-exports.Statement = Statement;
-const Expression = {
- types: ["Expression"],
-
- checkPath(path) {
- if (path.isIdentifier()) {
- return path.isReferencedIdentifier();
- } else {
- return t().isExpression(path.node);
- }
- }
-
-};
-exports.Expression = Expression;
-const Scope = {
- types: ["Scopable"],
-
- checkPath(path) {
- return t().isScope(path.node, path.parent);
- }
-
-};
-exports.Scope = Scope;
-const Referenced = {
- checkPath(path) {
- return t().isReferenced(path.node, path.parent);
- }
-
-};
-exports.Referenced = Referenced;
-const BlockScoped = {
- checkPath(path) {
- return t().isBlockScoped(path.node);
- }
-
-};
-exports.BlockScoped = BlockScoped;
-const Var = {
- types: ["VariableDeclaration"],
-
- checkPath(path) {
- return t().isVar(path.node);
- }
-
-};
-exports.Var = Var;
-const User = {
- checkPath(path) {
- return path.node && !!path.node.loc;
- }
-
-};
-exports.User = User;
-const Generated = {
- checkPath(path) {
- return !path.isUser();
- }
-
-};
-exports.Generated = Generated;
-const Pure = {
- checkPath(path, opts) {
- return path.scope.isPure(path.node, opts);
- }
-
-};
-exports.Pure = Pure;
-const Flow = {
- types: ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"],
-
- checkPath({
- node
- }) {
- if (t().isFlow(node)) {
- return true;
- } else if (t().isImportDeclaration(node)) {
- return node.importKind === "type" || node.importKind === "typeof";
- } else if (t().isExportDeclaration(node)) {
- return node.exportKind === "type";
- } else if (t().isImportSpecifier(node)) {
- return node.importKind === "type" || node.importKind === "typeof";
- } else {
- return false;
- }
- }
-
-};
-exports.Flow = Flow;
-const RestProperty = {
- types: ["RestElement"],
-
- checkPath(path) {
- return path.parentPath && path.parentPath.isObjectPattern();
- }
-
-};
-exports.RestProperty = RestProperty;
-const SpreadProperty = {
- types: ["RestElement"],
-
- checkPath(path) {
- return path.parentPath && path.parentPath.isObjectExpression();
- }
-
-};
-exports.SpreadProperty = SpreadProperty;
-const ExistentialTypeParam = {
- types: ["ExistsTypeAnnotation"]
-};
-exports.ExistentialTypeParam = ExistentialTypeParam;
-const NumericLiteralTypeAnnotation = {
- types: ["NumberLiteralTypeAnnotation"]
-};
-exports.NumericLiteralTypeAnnotation = NumericLiteralTypeAnnotation;
-const ForAwaitStatement = {
- types: ["ForOfStatement"],
-
- checkPath({
- node
- }) {
- return node.await === true;
- }
-
-};
-exports.ForAwaitStatement = ForAwaitStatement;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/modification.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/modification.js
deleted file mode 100644
index 18d566bb..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/modification.js
+++ /dev/null
@@ -1,220 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.insertBefore = insertBefore;
-exports._containerInsert = _containerInsert;
-exports._containerInsertBefore = _containerInsertBefore;
-exports._containerInsertAfter = _containerInsertAfter;
-exports.insertAfter = insertAfter;
-exports.updateSiblingKeys = updateSiblingKeys;
-exports._verifyNodeList = _verifyNodeList;
-exports.unshiftContainer = unshiftContainer;
-exports.pushContainer = pushContainer;
-exports.hoist = hoist;
-
-var _cache = require("../cache");
-
-var _hoister = _interopRequireDefault(require("./lib/hoister"));
-
-var _index = _interopRequireDefault(require("./index"));
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function insertBefore(nodes) {
- this._assertUnremoved();
-
- nodes = this._verifyNodeList(nodes);
- const {
- parentPath
- } = this;
-
- if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || parentPath.isExportNamedDeclaration() || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
- return parentPath.insertBefore(nodes);
- } else if (this.isNodeType("Expression") && this.listKey !== "params" && this.listKey !== "arguments" || parentPath.isForStatement() && this.key === "init") {
- if (this.node) nodes.push(this.node);
- return this.replaceExpressionWithStatements(nodes);
- } else if (Array.isArray(this.container)) {
- return this._containerInsertBefore(nodes);
- } else if (this.isStatementOrBlock()) {
- const shouldInsertCurrentNode = this.node && (!this.isExpressionStatement() || this.node.expression != null);
- this.replaceWith(t().blockStatement(shouldInsertCurrentNode ? [this.node] : []));
- return this.unshiftContainer("body", nodes);
- } else {
- throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?");
- }
-}
-
-function _containerInsert(from, nodes) {
- this.updateSiblingKeys(from, nodes.length);
- const paths = [];
- this.container.splice(from, 0, ...nodes);
-
- for (let i = 0; i < nodes.length; i++) {
- const to = from + i;
- const path = this.getSibling(to);
- paths.push(path);
-
- if (this.context && this.context.queue) {
- path.pushContext(this.context);
- }
- }
-
- const contexts = this._getQueueContexts();
-
- for (const path of paths) {
- path.setScope();
- path.debug("Inserted.");
-
- for (const context of contexts) {
- context.maybeQueue(path, true);
- }
- }
-
- return paths;
-}
-
-function _containerInsertBefore(nodes) {
- return this._containerInsert(this.key, nodes);
-}
-
-function _containerInsertAfter(nodes) {
- return this._containerInsert(this.key + 1, nodes);
-}
-
-function insertAfter(nodes) {
- this._assertUnremoved();
-
- nodes = this._verifyNodeList(nodes);
- const {
- parentPath
- } = this;
-
- if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || parentPath.isExportNamedDeclaration() || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
- return parentPath.insertAfter(nodes);
- } else if (this.isNodeType("Expression") || parentPath.isForStatement() && this.key === "init") {
- if (this.node) {
- let {
- scope
- } = this;
-
- if (parentPath.isMethod({
- computed: true,
- key: this.node
- })) {
- scope = scope.parent;
- }
-
- const temp = scope.generateDeclaredUidIdentifier();
- nodes.unshift(t().expressionStatement(t().assignmentExpression("=", t().cloneNode(temp), this.node)));
- nodes.push(t().expressionStatement(t().cloneNode(temp)));
- }
-
- return this.replaceExpressionWithStatements(nodes);
- } else if (Array.isArray(this.container)) {
- return this._containerInsertAfter(nodes);
- } else if (this.isStatementOrBlock()) {
- const shouldInsertCurrentNode = this.node && (!this.isExpressionStatement() || this.node.expression != null);
- this.replaceWith(t().blockStatement(shouldInsertCurrentNode ? [this.node] : []));
- return this.pushContainer("body", nodes);
- } else {
- throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?");
- }
-}
-
-function updateSiblingKeys(fromIndex, incrementBy) {
- if (!this.parent) return;
-
- const paths = _cache.path.get(this.parent);
-
- for (let i = 0; i < paths.length; i++) {
- const path = paths[i];
-
- if (path.key >= fromIndex) {
- path.key += incrementBy;
- }
- }
-}
-
-function _verifyNodeList(nodes) {
- if (!nodes) {
- return [];
- }
-
- if (nodes.constructor !== Array) {
- nodes = [nodes];
- }
-
- for (let i = 0; i < nodes.length; i++) {
- const node = nodes[i];
- let msg;
-
- if (!node) {
- msg = "has falsy node";
- } else if (typeof node !== "object") {
- msg = "contains a non-object node";
- } else if (!node.type) {
- msg = "without a type";
- } else if (node instanceof _index.default) {
- msg = "has a NodePath when it expected a raw object";
- }
-
- if (msg) {
- const type = Array.isArray(node) ? "array" : typeof node;
- throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`);
- }
- }
-
- return nodes;
-}
-
-function unshiftContainer(listKey, nodes) {
- this._assertUnremoved();
-
- nodes = this._verifyNodeList(nodes);
-
- const path = _index.default.get({
- parentPath: this,
- parent: this.node,
- container: this.node[listKey],
- listKey,
- key: 0
- });
-
- return path.insertBefore(nodes);
-}
-
-function pushContainer(listKey, nodes) {
- this._assertUnremoved();
-
- nodes = this._verifyNodeList(nodes);
- const container = this.node[listKey];
-
- const path = _index.default.get({
- parentPath: this,
- parent: this.node,
- container: container,
- listKey,
- key: container.length
- });
-
- return path.replaceWithMultiple(nodes);
-}
-
-function hoist(scope = this.scope) {
- const hoister = new _hoister.default(this, scope);
- return hoister.run();
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/removal.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/removal.js
deleted file mode 100644
index d509a6de..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/removal.js
+++ /dev/null
@@ -1,65 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.remove = remove;
-exports._removeFromScope = _removeFromScope;
-exports._callRemovalHooks = _callRemovalHooks;
-exports._remove = _remove;
-exports._markRemoved = _markRemoved;
-exports._assertUnremoved = _assertUnremoved;
-
-var _removalHooks = require("./lib/removal-hooks");
-
-function remove() {
- this._assertUnremoved();
-
- this.resync();
-
- this._removeFromScope();
-
- if (this._callRemovalHooks()) {
- this._markRemoved();
-
- return;
- }
-
- this.shareCommentsWithSiblings();
-
- this._remove();
-
- this._markRemoved();
-}
-
-function _removeFromScope() {
- const bindings = this.getBindingIdentifiers();
- Object.keys(bindings).forEach(name => this.scope.removeBinding(name));
-}
-
-function _callRemovalHooks() {
- for (const fn of _removalHooks.hooks) {
- if (fn(this, this.parentPath)) return true;
- }
-}
-
-function _remove() {
- if (Array.isArray(this.container)) {
- this.container.splice(this.key, 1);
- this.updateSiblingKeys(this.key, -1);
- } else {
- this._replaceWith(null);
- }
-}
-
-function _markRemoved() {
- this.shouldSkip = true;
- this.removed = true;
- this.node = null;
-}
-
-function _assertUnremoved() {
- if (this.removed) {
- throw this.buildCodeFrameError("NodePath has been removed so is read-only.");
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/replacement.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/path/replacement.js
deleted file mode 100644
index 373861f6..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/path/replacement.js
+++ /dev/null
@@ -1,258 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.replaceWithMultiple = replaceWithMultiple;
-exports.replaceWithSourceString = replaceWithSourceString;
-exports.replaceWith = replaceWith;
-exports._replaceWith = _replaceWith;
-exports.replaceExpressionWithStatements = replaceExpressionWithStatements;
-exports.replaceInline = replaceInline;
-
-function _codeFrame() {
- const data = require("@babel/code-frame");
-
- _codeFrame = function () {
- return data;
- };
-
- return data;
-}
-
-var _index = _interopRequireDefault(require("../index"));
-
-var _index2 = _interopRequireDefault(require("./index"));
-
-function _parser() {
- const data = require("@babel/parser");
-
- _parser = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const hoistVariablesVisitor = {
- Function(path) {
- path.skip();
- },
-
- VariableDeclaration(path) {
- if (path.node.kind !== "var") return;
- const bindings = path.getBindingIdentifiers();
-
- for (const key in bindings) {
- path.scope.push({
- id: bindings[key]
- });
- }
-
- const exprs = [];
-
- for (const declar of path.node.declarations) {
- if (declar.init) {
- exprs.push(t().expressionStatement(t().assignmentExpression("=", declar.id, declar.init)));
- }
- }
-
- path.replaceWithMultiple(exprs);
- }
-
-};
-
-function replaceWithMultiple(nodes) {
- this.resync();
- nodes = this._verifyNodeList(nodes);
- t().inheritLeadingComments(nodes[0], this.node);
- t().inheritTrailingComments(nodes[nodes.length - 1], this.node);
- this.node = this.container[this.key] = null;
- const paths = this.insertAfter(nodes);
-
- if (this.node) {
- this.requeue();
- } else {
- this.remove();
- }
-
- return paths;
-}
-
-function replaceWithSourceString(replacement) {
- this.resync();
-
- try {
- replacement = `(${replacement})`;
- replacement = (0, _parser().parse)(replacement);
- } catch (err) {
- const loc = err.loc;
-
- if (loc) {
- err.message += " - make sure this is an expression.\n" + (0, _codeFrame().codeFrameColumns)(replacement, {
- start: {
- line: loc.line,
- column: loc.column + 1
- }
- });
- err.code = "BABEL_REPLACE_SOURCE_ERROR";
- }
-
- throw err;
- }
-
- replacement = replacement.program.body[0].expression;
-
- _index.default.removeProperties(replacement);
-
- return this.replaceWith(replacement);
-}
-
-function replaceWith(replacement) {
- this.resync();
-
- if (this.removed) {
- throw new Error("You can't replace this node, we've already removed it");
- }
-
- if (replacement instanceof _index2.default) {
- replacement = replacement.node;
- }
-
- if (!replacement) {
- throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");
- }
-
- if (this.node === replacement) {
- return [this];
- }
-
- if (this.isProgram() && !t().isProgram(replacement)) {
- throw new Error("You can only replace a Program root node with another Program node");
- }
-
- if (Array.isArray(replacement)) {
- throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");
- }
-
- if (typeof replacement === "string") {
- throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");
- }
-
- let nodePath = "";
-
- if (this.isNodeType("Statement") && t().isExpression(replacement)) {
- if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement) && !this.parentPath.isExportDefaultDeclaration()) {
- replacement = t().expressionStatement(replacement);
- nodePath = "expression";
- }
- }
-
- if (this.isNodeType("Expression") && t().isStatement(replacement)) {
- if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement)) {
- return this.replaceExpressionWithStatements([replacement]);
- }
- }
-
- const oldNode = this.node;
-
- if (oldNode) {
- t().inheritsComments(replacement, oldNode);
- t().removeComments(oldNode);
- }
-
- this._replaceWith(replacement);
-
- this.type = replacement.type;
- this.setScope();
- this.requeue();
- return [nodePath ? this.get(nodePath) : this];
-}
-
-function _replaceWith(node) {
- if (!this.container) {
- throw new ReferenceError("Container is falsy");
- }
-
- if (this.inList) {
- t().validate(this.parent, this.key, [node]);
- } else {
- t().validate(this.parent, this.key, node);
- }
-
- this.debug(`Replace with ${node && node.type}`);
- this.node = this.container[this.key] = node;
-}
-
-function replaceExpressionWithStatements(nodes) {
- this.resync();
- const toSequenceExpression = t().toSequenceExpression(nodes, this.scope);
-
- if (toSequenceExpression) {
- return this.replaceWith(toSequenceExpression)[0].get("expressions");
- }
-
- const container = t().arrowFunctionExpression([], t().blockStatement(nodes));
- this.replaceWith(t().callExpression(container, []));
- this.traverse(hoistVariablesVisitor);
- const completionRecords = this.get("callee").getCompletionRecords();
-
- for (const path of completionRecords) {
- if (!path.isExpressionStatement()) continue;
- const loop = path.findParent(path => path.isLoop());
-
- if (loop) {
- let uid = loop.getData("expressionReplacementReturnUid");
-
- if (!uid) {
- const callee = this.get("callee");
- uid = callee.scope.generateDeclaredUidIdentifier("ret");
- callee.get("body").pushContainer("body", t().returnStatement(t().cloneNode(uid)));
- loop.setData("expressionReplacementReturnUid", uid);
- } else {
- uid = t().identifier(uid.name);
- }
-
- path.get("expression").replaceWith(t().assignmentExpression("=", t().cloneNode(uid), path.node.expression));
- } else {
- path.replaceWith(t().returnStatement(path.node.expression));
- }
- }
-
- const callee = this.get("callee");
- callee.arrowFunctionToExpression();
- return callee.get("body.body");
-}
-
-function replaceInline(nodes) {
- this.resync();
-
- if (Array.isArray(nodes)) {
- if (Array.isArray(this.container)) {
- nodes = this._verifyNodeList(nodes);
-
- const paths = this._containerInsertAfter(nodes);
-
- this.remove();
- return paths;
- } else {
- return this.replaceWithMultiple(nodes);
- }
- } else {
- return this.replaceWith(nodes);
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/scope/binding.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/scope/binding.js
deleted file mode 100644
index d19f1168..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/scope/binding.js
+++ /dev/null
@@ -1,71 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-class Binding {
- constructor({
- identifier,
- scope,
- path,
- kind
- }) {
- this.identifier = identifier;
- this.scope = scope;
- this.path = path;
- this.kind = kind;
- this.constantViolations = [];
- this.constant = true;
- this.referencePaths = [];
- this.referenced = false;
- this.references = 0;
- this.clearValue();
- }
-
- deoptValue() {
- this.clearValue();
- this.hasDeoptedValue = true;
- }
-
- setValue(value) {
- if (this.hasDeoptedValue) return;
- this.hasValue = true;
- this.value = value;
- }
-
- clearValue() {
- this.hasDeoptedValue = false;
- this.hasValue = false;
- this.value = null;
- }
-
- reassign(path) {
- this.constant = false;
-
- if (this.constantViolations.indexOf(path) !== -1) {
- return;
- }
-
- this.constantViolations.push(path);
- }
-
- reference(path) {
- if (this.referencePaths.indexOf(path) !== -1) {
- return;
- }
-
- this.referenced = true;
- this.references++;
- this.referencePaths.push(path);
- }
-
- dereference() {
- this.references--;
- this.referenced = !!this.references;
- }
-
-}
-
-exports.default = Binding;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/scope/index.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/scope/index.js
deleted file mode 100644
index 033bff3b..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/scope/index.js
+++ /dev/null
@@ -1,897 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-function _includes() {
- const data = _interopRequireDefault(require("lodash/includes"));
-
- _includes = function () {
- return data;
- };
-
- return data;
-}
-
-function _repeat() {
- const data = _interopRequireDefault(require("lodash/repeat"));
-
- _repeat = function () {
- return data;
- };
-
- return data;
-}
-
-var _renamer = _interopRequireDefault(require("./lib/renamer"));
-
-var _index = _interopRequireDefault(require("../index"));
-
-function _defaults() {
- const data = _interopRequireDefault(require("lodash/defaults"));
-
- _defaults = function () {
- return data;
- };
-
- return data;
-}
-
-var _binding = _interopRequireDefault(require("./binding"));
-
-function _globals() {
- const data = _interopRequireDefault(require("globals"));
-
- _globals = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-var _cache = require("../cache");
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function gatherNodeParts(node, parts) {
- if (t().isModuleDeclaration(node)) {
- if (node.source) {
- gatherNodeParts(node.source, parts);
- } else if (node.specifiers && node.specifiers.length) {
- for (const specifier of node.specifiers) {
- gatherNodeParts(specifier, parts);
- }
- } else if (node.declaration) {
- gatherNodeParts(node.declaration, parts);
- }
- } else if (t().isModuleSpecifier(node)) {
- gatherNodeParts(node.local, parts);
- } else if (t().isMemberExpression(node)) {
- gatherNodeParts(node.object, parts);
- gatherNodeParts(node.property, parts);
- } else if (t().isIdentifier(node)) {
- parts.push(node.name);
- } else if (t().isLiteral(node)) {
- parts.push(node.value);
- } else if (t().isCallExpression(node)) {
- gatherNodeParts(node.callee, parts);
- } else if (t().isObjectExpression(node) || t().isObjectPattern(node)) {
- for (const prop of node.properties) {
- gatherNodeParts(prop.key || prop.argument, parts);
- }
- } else if (t().isPrivateName(node)) {
- gatherNodeParts(node.id, parts);
- } else if (t().isThisExpression(node)) {
- parts.push("this");
- } else if (t().isSuper(node)) {
- parts.push("super");
- }
-}
-
-const collectorVisitor = {
- For(path) {
- for (const key of t().FOR_INIT_KEYS) {
- const declar = path.get(key);
-
- if (declar.isVar()) {
- const parentScope = path.scope.getFunctionParent() || path.scope.getProgramParent();
- parentScope.registerBinding("var", declar);
- }
- }
- },
-
- Declaration(path) {
- if (path.isBlockScoped()) return;
-
- if (path.isExportDeclaration() && path.get("declaration").isDeclaration()) {
- return;
- }
-
- const parent = path.scope.getFunctionParent() || path.scope.getProgramParent();
- parent.registerDeclaration(path);
- },
-
- ReferencedIdentifier(path, state) {
- state.references.push(path);
- },
-
- ForXStatement(path, state) {
- const left = path.get("left");
-
- if (left.isPattern() || left.isIdentifier()) {
- state.constantViolations.push(path);
- }
- },
-
- ExportDeclaration: {
- exit(path) {
- const {
- node,
- scope
- } = path;
- const declar = node.declaration;
-
- if (t().isClassDeclaration(declar) || t().isFunctionDeclaration(declar)) {
- const id = declar.id;
- if (!id) return;
- const binding = scope.getBinding(id.name);
- if (binding) binding.reference(path);
- } else if (t().isVariableDeclaration(declar)) {
- for (const decl of declar.declarations) {
- const ids = t().getBindingIdentifiers(decl);
-
- for (const name in ids) {
- const binding = scope.getBinding(name);
- if (binding) binding.reference(path);
- }
- }
- }
- }
-
- },
-
- LabeledStatement(path) {
- path.scope.getProgramParent().addGlobal(path.node);
- path.scope.getBlockParent().registerDeclaration(path);
- },
-
- AssignmentExpression(path, state) {
- state.assignments.push(path);
- },
-
- UpdateExpression(path, state) {
- state.constantViolations.push(path);
- },
-
- UnaryExpression(path, state) {
- if (path.node.operator === "delete") {
- state.constantViolations.push(path);
- }
- },
-
- BlockScoped(path) {
- let scope = path.scope;
- if (scope.path === path) scope = scope.parent;
- scope.getBlockParent().registerDeclaration(path);
- },
-
- ClassDeclaration(path) {
- const id = path.node.id;
- if (!id) return;
- const name = id.name;
- path.scope.bindings[name] = path.scope.getBinding(name);
- },
-
- Block(path) {
- const paths = path.get("body");
-
- for (const bodyPath of paths) {
- if (bodyPath.isFunctionDeclaration()) {
- path.scope.getBlockParent().registerDeclaration(bodyPath);
- }
- }
- }
-
-};
-let uid = 0;
-
-class Scope {
- constructor(path) {
- const {
- node
- } = path;
-
- const cached = _cache.scope.get(node);
-
- if (cached && cached.path === path) {
- return cached;
- }
-
- _cache.scope.set(node, this);
-
- this.uid = uid++;
- this.block = node;
- this.path = path;
- this.labels = new Map();
- }
-
- get parent() {
- const parent = this.path.findParent(p => p.isScope());
- return parent && parent.scope;
- }
-
- get parentBlock() {
- return this.path.parent;
- }
-
- get hub() {
- return this.path.hub;
- }
-
- traverse(node, opts, state) {
- (0, _index.default)(node, opts, this, state, this.path);
- }
-
- generateDeclaredUidIdentifier(name) {
- const id = this.generateUidIdentifier(name);
- this.push({
- id
- });
- return t().cloneNode(id);
- }
-
- generateUidIdentifier(name) {
- return t().identifier(this.generateUid(name));
- }
-
- generateUid(name = "temp") {
- name = t().toIdentifier(name).replace(/^_+/, "").replace(/[0-9]+$/g, "");
- let uid;
- let i = 0;
-
- do {
- uid = this._generateUid(name, i);
- i++;
- } while (this.hasLabel(uid) || this.hasBinding(uid) || this.hasGlobal(uid) || this.hasReference(uid));
-
- const program = this.getProgramParent();
- program.references[uid] = true;
- program.uids[uid] = true;
- return uid;
- }
-
- _generateUid(name, i) {
- let id = name;
- if (i > 1) id += i;
- return `_${id}`;
- }
-
- generateUidBasedOnNode(parent, defaultName) {
- let node = parent;
-
- if (t().isAssignmentExpression(parent)) {
- node = parent.left;
- } else if (t().isVariableDeclarator(parent)) {
- node = parent.id;
- } else if (t().isObjectProperty(node) || t().isObjectMethod(node)) {
- node = node.key;
- }
-
- const parts = [];
- gatherNodeParts(node, parts);
- let id = parts.join("$");
- id = id.replace(/^_/, "") || defaultName || "ref";
- return this.generateUid(id.slice(0, 20));
- }
-
- generateUidIdentifierBasedOnNode(parent, defaultName) {
- return t().identifier(this.generateUidBasedOnNode(parent, defaultName));
- }
-
- isStatic(node) {
- if (t().isThisExpression(node) || t().isSuper(node)) {
- return true;
- }
-
- if (t().isIdentifier(node)) {
- const binding = this.getBinding(node.name);
-
- if (binding) {
- return binding.constant;
- } else {
- return this.hasBinding(node.name);
- }
- }
-
- return false;
- }
-
- maybeGenerateMemoised(node, dontPush) {
- if (this.isStatic(node)) {
- return null;
- } else {
- const id = this.generateUidIdentifierBasedOnNode(node);
-
- if (!dontPush) {
- this.push({
- id
- });
- return t().cloneNode(id);
- }
-
- return id;
- }
- }
-
- checkBlockScopedCollisions(local, kind, name, id) {
- if (kind === "param") return;
- if (local.kind === "local") return;
- if (kind === "hoisted" && local.kind === "let") return;
- const duplicate = kind === "let" || local.kind === "let" || local.kind === "const" || local.kind === "module" || local.kind === "param" && (kind === "let" || kind === "const");
-
- if (duplicate) {
- throw this.hub.file.buildCodeFrameError(id, `Duplicate declaration "${name}"`, TypeError);
- }
- }
-
- rename(oldName, newName, block) {
- const binding = this.getBinding(oldName);
-
- if (binding) {
- newName = newName || this.generateUidIdentifier(oldName).name;
- return new _renamer.default(binding, oldName, newName).rename(block);
- }
- }
-
- _renameFromMap(map, oldName, newName, value) {
- if (map[oldName]) {
- map[newName] = value;
- map[oldName] = null;
- }
- }
-
- dump() {
- const sep = (0, _repeat().default)("-", 60);
- console.log(sep);
- let scope = this;
-
- do {
- console.log("#", scope.block.type);
-
- for (const name in scope.bindings) {
- const binding = scope.bindings[name];
- console.log(" -", name, {
- constant: binding.constant,
- references: binding.references,
- violations: binding.constantViolations.length,
- kind: binding.kind
- });
- }
- } while (scope = scope.parent);
-
- console.log(sep);
- }
-
- toArray(node, i) {
- const file = this.hub.file;
-
- if (t().isIdentifier(node)) {
- const binding = this.getBinding(node.name);
-
- if (binding && binding.constant && binding.path.isGenericType("Array")) {
- return node;
- }
- }
-
- if (t().isArrayExpression(node)) {
- return node;
- }
-
- if (t().isIdentifier(node, {
- name: "arguments"
- })) {
- return t().callExpression(t().memberExpression(t().memberExpression(t().memberExpression(t().identifier("Array"), t().identifier("prototype")), t().identifier("slice")), t().identifier("call")), [node]);
- }
-
- let helperName;
- const args = [node];
-
- if (i === true) {
- helperName = "toConsumableArray";
- } else if (i) {
- args.push(t().numericLiteral(i));
- helperName = "slicedToArray";
- } else {
- helperName = "toArray";
- }
-
- return t().callExpression(file.addHelper(helperName), args);
- }
-
- hasLabel(name) {
- return !!this.getLabel(name);
- }
-
- getLabel(name) {
- return this.labels.get(name);
- }
-
- registerLabel(path) {
- this.labels.set(path.node.label.name, path);
- }
-
- registerDeclaration(path) {
- if (path.isLabeledStatement()) {
- this.registerLabel(path);
- } else if (path.isFunctionDeclaration()) {
- this.registerBinding("hoisted", path.get("id"), path);
- } else if (path.isVariableDeclaration()) {
- const declarations = path.get("declarations");
-
- for (const declar of declarations) {
- this.registerBinding(path.node.kind, declar);
- }
- } else if (path.isClassDeclaration()) {
- this.registerBinding("let", path);
- } else if (path.isImportDeclaration()) {
- const specifiers = path.get("specifiers");
-
- for (const specifier of specifiers) {
- this.registerBinding("module", specifier);
- }
- } else if (path.isExportDeclaration()) {
- const declar = path.get("declaration");
-
- if (declar.isClassDeclaration() || declar.isFunctionDeclaration() || declar.isVariableDeclaration()) {
- this.registerDeclaration(declar);
- }
- } else {
- this.registerBinding("unknown", path);
- }
- }
-
- buildUndefinedNode() {
- if (this.hasBinding("undefined")) {
- return t().unaryExpression("void", t().numericLiteral(0), true);
- } else {
- return t().identifier("undefined");
- }
- }
-
- registerConstantViolation(path) {
- const ids = path.getBindingIdentifiers();
-
- for (const name in ids) {
- const binding = this.getBinding(name);
- if (binding) binding.reassign(path);
- }
- }
-
- registerBinding(kind, path, bindingPath = path) {
- if (!kind) throw new ReferenceError("no `kind`");
-
- if (path.isVariableDeclaration()) {
- const declarators = path.get("declarations");
-
- for (const declar of declarators) {
- this.registerBinding(kind, declar);
- }
-
- return;
- }
-
- const parent = this.getProgramParent();
- const ids = path.getBindingIdentifiers(true);
-
- for (const name in ids) {
- for (const id of ids[name]) {
- const local = this.getOwnBinding(name);
-
- if (local) {
- if (local.identifier === id) continue;
- this.checkBlockScopedCollisions(local, kind, name, id);
- }
-
- parent.references[name] = true;
-
- if (local) {
- this.registerConstantViolation(bindingPath);
- } else {
- this.bindings[name] = new _binding.default({
- identifier: id,
- scope: this,
- path: bindingPath,
- kind: kind
- });
- }
- }
- }
- }
-
- addGlobal(node) {
- this.globals[node.name] = node;
- }
-
- hasUid(name) {
- let scope = this;
-
- do {
- if (scope.uids[name]) return true;
- } while (scope = scope.parent);
-
- return false;
- }
-
- hasGlobal(name) {
- let scope = this;
-
- do {
- if (scope.globals[name]) return true;
- } while (scope = scope.parent);
-
- return false;
- }
-
- hasReference(name) {
- let scope = this;
-
- do {
- if (scope.references[name]) return true;
- } while (scope = scope.parent);
-
- return false;
- }
-
- isPure(node, constantsOnly) {
- if (t().isIdentifier(node)) {
- const binding = this.getBinding(node.name);
- if (!binding) return false;
- if (constantsOnly) return binding.constant;
- return true;
- } else if (t().isClass(node)) {
- if (node.superClass && !this.isPure(node.superClass, constantsOnly)) {
- return false;
- }
-
- return this.isPure(node.body, constantsOnly);
- } else if (t().isClassBody(node)) {
- for (const method of node.body) {
- if (!this.isPure(method, constantsOnly)) return false;
- }
-
- return true;
- } else if (t().isBinary(node)) {
- return this.isPure(node.left, constantsOnly) && this.isPure(node.right, constantsOnly);
- } else if (t().isArrayExpression(node)) {
- for (const elem of node.elements) {
- if (!this.isPure(elem, constantsOnly)) return false;
- }
-
- return true;
- } else if (t().isObjectExpression(node)) {
- for (const prop of node.properties) {
- if (!this.isPure(prop, constantsOnly)) return false;
- }
-
- return true;
- } else if (t().isClassMethod(node)) {
- if (node.computed && !this.isPure(node.key, constantsOnly)) return false;
- if (node.kind === "get" || node.kind === "set") return false;
- return true;
- } else if (t().isProperty(node)) {
- if (node.computed && !this.isPure(node.key, constantsOnly)) return false;
- return this.isPure(node.value, constantsOnly);
- } else if (t().isUnaryExpression(node)) {
- return this.isPure(node.argument, constantsOnly);
- } else if (t().isTaggedTemplateExpression(node)) {
- return t().matchesPattern(node.tag, "String.raw") && !this.hasBinding("String", true) && this.isPure(node.quasi, constantsOnly);
- } else if (t().isTemplateLiteral(node)) {
- for (const expression of node.expressions) {
- if (!this.isPure(expression, constantsOnly)) return false;
- }
-
- return true;
- } else {
- return t().isPureish(node);
- }
- }
-
- setData(key, val) {
- return this.data[key] = val;
- }
-
- getData(key) {
- let scope = this;
-
- do {
- const data = scope.data[key];
- if (data != null) return data;
- } while (scope = scope.parent);
- }
-
- removeData(key) {
- let scope = this;
-
- do {
- const data = scope.data[key];
- if (data != null) scope.data[key] = null;
- } while (scope = scope.parent);
- }
-
- init() {
- if (!this.references) this.crawl();
- }
-
- crawl() {
- const path = this.path;
- this.references = Object.create(null);
- this.bindings = Object.create(null);
- this.globals = Object.create(null);
- this.uids = Object.create(null);
- this.data = Object.create(null);
-
- if (path.isLoop()) {
- for (const key of t().FOR_INIT_KEYS) {
- const node = path.get(key);
- if (node.isBlockScoped()) this.registerBinding(node.node.kind, node);
- }
- }
-
- if (path.isFunctionExpression() && path.has("id")) {
- if (!path.get("id").node[t().NOT_LOCAL_BINDING]) {
- this.registerBinding("local", path.get("id"), path);
- }
- }
-
- if (path.isClassExpression() && path.has("id")) {
- if (!path.get("id").node[t().NOT_LOCAL_BINDING]) {
- this.registerBinding("local", path);
- }
- }
-
- if (path.isFunction()) {
- const params = path.get("params");
-
- for (const param of params) {
- this.registerBinding("param", param);
- }
- }
-
- if (path.isCatchClause()) {
- this.registerBinding("let", path);
- }
-
- const parent = this.getProgramParent();
- if (parent.crawling) return;
- const state = {
- references: [],
- constantViolations: [],
- assignments: []
- };
- this.crawling = true;
- path.traverse(collectorVisitor, state);
- this.crawling = false;
-
- for (const path of state.assignments) {
- const ids = path.getBindingIdentifiers();
- let programParent;
-
- for (const name in ids) {
- if (path.scope.getBinding(name)) continue;
- programParent = programParent || path.scope.getProgramParent();
- programParent.addGlobal(ids[name]);
- }
-
- path.scope.registerConstantViolation(path);
- }
-
- for (const ref of state.references) {
- const binding = ref.scope.getBinding(ref.node.name);
-
- if (binding) {
- binding.reference(ref);
- } else {
- ref.scope.getProgramParent().addGlobal(ref.node);
- }
- }
-
- for (const path of state.constantViolations) {
- path.scope.registerConstantViolation(path);
- }
- }
-
- push(opts) {
- let path = this.path;
-
- if (!path.isBlockStatement() && !path.isProgram()) {
- path = this.getBlockParent().path;
- }
-
- if (path.isSwitchStatement()) {
- path = (this.getFunctionParent() || this.getProgramParent()).path;
- }
-
- if (path.isLoop() || path.isCatchClause() || path.isFunction()) {
- path.ensureBlock();
- path = path.get("body");
- }
-
- const unique = opts.unique;
- const kind = opts.kind || "var";
- const blockHoist = opts._blockHoist == null ? 2 : opts._blockHoist;
- const dataKey = `declaration:${kind}:${blockHoist}`;
- let declarPath = !unique && path.getData(dataKey);
-
- if (!declarPath) {
- const declar = t().variableDeclaration(kind, []);
- declar._blockHoist = blockHoist;
- [declarPath] = path.unshiftContainer("body", [declar]);
- if (!unique) path.setData(dataKey, declarPath);
- }
-
- const declarator = t().variableDeclarator(opts.id, opts.init);
- declarPath.node.declarations.push(declarator);
- this.registerBinding(kind, declarPath.get("declarations").pop());
- }
-
- getProgramParent() {
- let scope = this;
-
- do {
- if (scope.path.isProgram()) {
- return scope;
- }
- } while (scope = scope.parent);
-
- throw new Error("Couldn't find a Program");
- }
-
- getFunctionParent() {
- let scope = this;
-
- do {
- if (scope.path.isFunctionParent()) {
- return scope;
- }
- } while (scope = scope.parent);
-
- return null;
- }
-
- getBlockParent() {
- let scope = this;
-
- do {
- if (scope.path.isBlockParent()) {
- return scope;
- }
- } while (scope = scope.parent);
-
- throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...");
- }
-
- getAllBindings() {
- const ids = Object.create(null);
- let scope = this;
-
- do {
- (0, _defaults().default)(ids, scope.bindings);
- scope = scope.parent;
- } while (scope);
-
- return ids;
- }
-
- getAllBindingsOfKind() {
- const ids = Object.create(null);
-
- for (const kind of arguments) {
- let scope = this;
-
- do {
- for (const name in scope.bindings) {
- const binding = scope.bindings[name];
- if (binding.kind === kind) ids[name] = binding;
- }
-
- scope = scope.parent;
- } while (scope);
- }
-
- return ids;
- }
-
- bindingIdentifierEquals(name, node) {
- return this.getBindingIdentifier(name) === node;
- }
-
- getBinding(name) {
- let scope = this;
-
- do {
- const binding = scope.getOwnBinding(name);
- if (binding) return binding;
- } while (scope = scope.parent);
- }
-
- getOwnBinding(name) {
- return this.bindings[name];
- }
-
- getBindingIdentifier(name) {
- const info = this.getBinding(name);
- return info && info.identifier;
- }
-
- getOwnBindingIdentifier(name) {
- const binding = this.bindings[name];
- return binding && binding.identifier;
- }
-
- hasOwnBinding(name) {
- return !!this.getOwnBinding(name);
- }
-
- hasBinding(name, noGlobals) {
- if (!name) return false;
- if (this.hasOwnBinding(name)) return true;
- if (this.parentHasBinding(name, noGlobals)) return true;
- if (this.hasUid(name)) return true;
- if (!noGlobals && (0, _includes().default)(Scope.globals, name)) return true;
- if (!noGlobals && (0, _includes().default)(Scope.contextVariables, name)) return true;
- return false;
- }
-
- parentHasBinding(name, noGlobals) {
- return this.parent && this.parent.hasBinding(name, noGlobals);
- }
-
- moveBindingTo(name, scope) {
- const info = this.getBinding(name);
-
- if (info) {
- info.scope.removeOwnBinding(name);
- info.scope = scope;
- scope.bindings[name] = info;
- }
- }
-
- removeOwnBinding(name) {
- delete this.bindings[name];
- }
-
- removeBinding(name) {
- const info = this.getBinding(name);
-
- if (info) {
- info.scope.removeOwnBinding(name);
- }
-
- let scope = this;
-
- do {
- if (scope.uids[name]) {
- scope.uids[name] = false;
- }
- } while (scope = scope.parent);
- }
-
-}
-
-exports.default = Scope;
-Scope.globals = Object.keys(_globals().default.builtin);
-Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"];
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/scope/lib/renamer.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/scope/lib/renamer.js
deleted file mode 100644
index 908142e6..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/scope/lib/renamer.js
+++ /dev/null
@@ -1,138 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-
-var _binding = _interopRequireDefault(require("../binding"));
-
-function _helperSplitExportDeclaration() {
- const data = _interopRequireDefault(require("@babel/helper-split-export-declaration"));
-
- _helperSplitExportDeclaration = function () {
- return data;
- };
-
- return data;
-}
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const renameVisitor = {
- ReferencedIdentifier({
- node
- }, state) {
- if (node.name === state.oldName) {
- node.name = state.newName;
- }
- },
-
- Scope(path, state) {
- if (!path.scope.bindingIdentifierEquals(state.oldName, state.binding.identifier)) {
- path.skip();
- }
- },
-
- "AssignmentExpression|Declaration"(path, state) {
- const ids = path.getOuterBindingIdentifiers();
-
- for (const name in ids) {
- if (name === state.oldName) ids[name].name = state.newName;
- }
- }
-
-};
-
-class Renamer {
- constructor(binding, oldName, newName) {
- this.newName = newName;
- this.oldName = oldName;
- this.binding = binding;
- }
-
- maybeConvertFromExportDeclaration(parentDeclar) {
- const maybeExportDeclar = parentDeclar.parentPath;
-
- if (!maybeExportDeclar.isExportDeclaration()) {
- return;
- }
-
- if (maybeExportDeclar.isExportDefaultDeclaration() && !maybeExportDeclar.get("declaration").node.id) {
- return;
- }
-
- (0, _helperSplitExportDeclaration().default)(maybeExportDeclar);
- }
-
- maybeConvertFromClassFunctionDeclaration(path) {
- return;
- if (!path.isFunctionDeclaration() && !path.isClassDeclaration()) return;
- if (this.binding.kind !== "hoisted") return;
- path.node.id = t().identifier(this.oldName);
- path.node._blockHoist = 3;
- path.replaceWith(t().variableDeclaration("let", [t().variableDeclarator(t().identifier(this.newName), t().toExpression(path.node))]));
- }
-
- maybeConvertFromClassFunctionExpression(path) {
- return;
- if (!path.isFunctionExpression() && !path.isClassExpression()) return;
- if (this.binding.kind !== "local") return;
- path.node.id = t().identifier(this.oldName);
- this.binding.scope.parent.push({
- id: t().identifier(this.newName)
- });
- path.replaceWith(t().assignmentExpression("=", t().identifier(this.newName), path.node));
- }
-
- rename(block) {
- const {
- binding,
- oldName,
- newName
- } = this;
- const {
- scope,
- path
- } = binding;
- const parentDeclar = path.find(path => path.isDeclaration() || path.isFunctionExpression() || path.isClassExpression());
-
- if (parentDeclar) {
- const bindingIds = parentDeclar.getBindingIdentifiers();
-
- if (bindingIds[oldName] === binding.identifier) {
- this.maybeConvertFromExportDeclaration(parentDeclar);
- }
- }
-
- scope.traverse(block || scope.block, renameVisitor, this);
-
- if (!block) {
- scope.removeOwnBinding(oldName);
- scope.bindings[newName] = binding;
- this.binding.identifier.name = newName;
- }
-
- if (binding.type === "hoisted") {}
-
- if (parentDeclar) {
- this.maybeConvertFromClassFunctionDeclaration(parentDeclar);
- this.maybeConvertFromClassFunctionExpression(parentDeclar);
- }
- }
-
-}
-
-exports.default = Renamer;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/lib/visitors.js b/AuthenticationSDK/node_modules/@babel/traverse/lib/visitors.js
deleted file mode 100644
index 963c5da7..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/lib/visitors.js
+++ /dev/null
@@ -1,254 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.explode = explode;
-exports.verify = verify;
-exports.merge = merge;
-
-var virtualTypes = _interopRequireWildcard(require("./path/lib/virtual-types"));
-
-function t() {
- const data = _interopRequireWildcard(require("@babel/types"));
-
- t = function () {
- return data;
- };
-
- return data;
-}
-
-function _clone() {
- const data = _interopRequireDefault(require("lodash/clone"));
-
- _clone = function () {
- return data;
- };
-
- return data;
-}
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function explode(visitor) {
- if (visitor._exploded) return visitor;
- visitor._exploded = true;
-
- for (const nodeType in visitor) {
- if (shouldIgnoreKey(nodeType)) continue;
- const parts = nodeType.split("|");
- if (parts.length === 1) continue;
- const fns = visitor[nodeType];
- delete visitor[nodeType];
-
- for (const part of parts) {
- visitor[part] = fns;
- }
- }
-
- verify(visitor);
- delete visitor.__esModule;
- ensureEntranceObjects(visitor);
- ensureCallbackArrays(visitor);
-
- for (const nodeType of Object.keys(visitor)) {
- if (shouldIgnoreKey(nodeType)) continue;
- const wrapper = virtualTypes[nodeType];
- if (!wrapper) continue;
- const fns = visitor[nodeType];
-
- for (const type in fns) {
- fns[type] = wrapCheck(wrapper, fns[type]);
- }
-
- delete visitor[nodeType];
-
- if (wrapper.types) {
- for (const type of wrapper.types) {
- if (visitor[type]) {
- mergePair(visitor[type], fns);
- } else {
- visitor[type] = fns;
- }
- }
- } else {
- mergePair(visitor, fns);
- }
- }
-
- for (const nodeType in visitor) {
- if (shouldIgnoreKey(nodeType)) continue;
- const fns = visitor[nodeType];
- let aliases = t().FLIPPED_ALIAS_KEYS[nodeType];
- const deprecratedKey = t().DEPRECATED_KEYS[nodeType];
-
- if (deprecratedKey) {
- console.trace(`Visitor defined for ${nodeType} but it has been renamed to ${deprecratedKey}`);
- aliases = [deprecratedKey];
- }
-
- if (!aliases) continue;
- delete visitor[nodeType];
-
- for (const alias of aliases) {
- const existing = visitor[alias];
-
- if (existing) {
- mergePair(existing, fns);
- } else {
- visitor[alias] = (0, _clone().default)(fns);
- }
- }
- }
-
- for (const nodeType in visitor) {
- if (shouldIgnoreKey(nodeType)) continue;
- ensureCallbackArrays(visitor[nodeType]);
- }
-
- return visitor;
-}
-
-function verify(visitor) {
- if (visitor._verified) return;
-
- if (typeof visitor === "function") {
- throw new Error("You passed `traverse()` a function when it expected a visitor object, " + "are you sure you didn't mean `{ enter: Function }`?");
- }
-
- for (const nodeType in visitor) {
- if (nodeType === "enter" || nodeType === "exit") {
- validateVisitorMethods(nodeType, visitor[nodeType]);
- }
-
- if (shouldIgnoreKey(nodeType)) continue;
-
- if (t().TYPES.indexOf(nodeType) < 0) {
- throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type`);
- }
-
- const visitors = visitor[nodeType];
-
- if (typeof visitors === "object") {
- for (const visitorKey in visitors) {
- if (visitorKey === "enter" || visitorKey === "exit") {
- validateVisitorMethods(`${nodeType}.${visitorKey}`, visitors[visitorKey]);
- } else {
- throw new Error("You passed `traverse()` a visitor object with the property " + `${nodeType} that has the invalid property ${visitorKey}`);
- }
- }
- }
- }
-
- visitor._verified = true;
-}
-
-function validateVisitorMethods(path, val) {
- const fns = [].concat(val);
-
- for (const fn of fns) {
- if (typeof fn !== "function") {
- throw new TypeError(`Non-function found defined in ${path} with type ${typeof fn}`);
- }
- }
-}
-
-function merge(visitors, states = [], wrapper) {
- const rootVisitor = {};
-
- for (let i = 0; i < visitors.length; i++) {
- const visitor = visitors[i];
- const state = states[i];
- explode(visitor);
-
- for (const type in visitor) {
- let visitorType = visitor[type];
-
- if (state || wrapper) {
- visitorType = wrapWithStateOrWrapper(visitorType, state, wrapper);
- }
-
- const nodeVisitor = rootVisitor[type] = rootVisitor[type] || {};
- mergePair(nodeVisitor, visitorType);
- }
- }
-
- return rootVisitor;
-}
-
-function wrapWithStateOrWrapper(oldVisitor, state, wrapper) {
- const newVisitor = {};
-
- for (const key in oldVisitor) {
- let fns = oldVisitor[key];
- if (!Array.isArray(fns)) continue;
- fns = fns.map(function (fn) {
- let newFn = fn;
-
- if (state) {
- newFn = function (path) {
- return fn.call(state, path, state);
- };
- }
-
- if (wrapper) {
- newFn = wrapper(state.key, key, newFn);
- }
-
- return newFn;
- });
- newVisitor[key] = fns;
- }
-
- return newVisitor;
-}
-
-function ensureEntranceObjects(obj) {
- for (const key in obj) {
- if (shouldIgnoreKey(key)) continue;
- const fns = obj[key];
-
- if (typeof fns === "function") {
- obj[key] = {
- enter: fns
- };
- }
- }
-}
-
-function ensureCallbackArrays(obj) {
- if (obj.enter && !Array.isArray(obj.enter)) obj.enter = [obj.enter];
- if (obj.exit && !Array.isArray(obj.exit)) obj.exit = [obj.exit];
-}
-
-function wrapCheck(wrapper, fn) {
- const newFn = function (path) {
- if (wrapper.checkPath(path)) {
- return fn.apply(this, arguments);
- }
- };
-
- newFn.toString = () => fn.toString();
-
- return newFn;
-}
-
-function shouldIgnoreKey(key) {
- if (key[0] === "_") return true;
- if (key === "enter" || key === "exit" || key === "shouldSkip") return true;
-
- if (key === "blacklist" || key === "noScope" || key === "skipKeys") {
- return true;
- }
-
- return false;
-}
-
-function mergePair(dest, src) {
- for (const key in src) {
- dest[key] = [].concat(dest[key] || [], src[key]);
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.coveralls.yml b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.coveralls.yml
deleted file mode 100644
index 20a70685..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.coveralls.yml
+++ /dev/null
@@ -1 +0,0 @@
-repo_token: SIAeZjKYlHK74rbcFvNHMUzjRiMpflxve
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.eslintrc b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.eslintrc
deleted file mode 100644
index 146371ed..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.eslintrc
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "env": {
- "browser": true,
- "node": true
- },
- "globals": {
- "chrome": true
- },
- "rules": {
- "no-console": 0,
- "no-empty": [1, { "allowEmptyCatch": true }]
- },
- "extends": "eslint:recommended"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.npmignore b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.npmignore
deleted file mode 100644
index 5f60eecc..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.npmignore
+++ /dev/null
@@ -1,9 +0,0 @@
-support
-test
-examples
-example
-*.sock
-dist
-yarn.lock
-coverage
-bower.json
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.travis.yml b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.travis.yml
deleted file mode 100644
index a7643003..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/.travis.yml
+++ /dev/null
@@ -1,20 +0,0 @@
-sudo: false
-
-language: node_js
-
-node_js:
- - "4"
- - "6"
- - "8"
-
-install:
- - make install
-
-script:
- - make lint
- - make test
-
-matrix:
- include:
- - node_js: '8'
- env: BROWSER=1
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/CHANGELOG.md b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/CHANGELOG.md
deleted file mode 100644
index 820d21e3..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/CHANGELOG.md
+++ /dev/null
@@ -1,395 +0,0 @@
-
-3.1.0 / 2017-09-26
-==================
-
- * Add `DEBUG_HIDE_DATE` env var (#486)
- * Remove ReDoS regexp in %o formatter (#504)
- * Remove "component" from package.json
- * Remove `component.json`
- * Ignore package-lock.json
- * Examples: fix colors printout
- * Fix: browser detection
- * Fix: spelling mistake (#496, @EdwardBetts)
-
-3.0.1 / 2017-08-24
-==================
-
- * Fix: Disable colors in Edge and Internet Explorer (#489)
-
-3.0.0 / 2017-08-08
-==================
-
- * Breaking: Remove DEBUG_FD (#406)
- * Breaking: Use `Date#toISOString()` instead to `Date#toUTCString()` when output is not a TTY (#418)
- * Breaking: Make millisecond timer namespace specific and allow 'always enabled' output (#408)
- * Addition: document `enabled` flag (#465)
- * Addition: add 256 colors mode (#481)
- * Addition: `enabled()` updates existing debug instances, add `destroy()` function (#440)
- * Update: component: update "ms" to v2.0.0
- * Update: separate the Node and Browser tests in Travis-CI
- * Update: refactor Readme, fixed documentation, added "Namespace Colors" section, redid screenshots
- * Update: separate Node.js and web browser examples for organization
- * Update: update "browserify" to v14.4.0
- * Fix: fix Readme typo (#473)
-
-2.6.9 / 2017-09-22
-==================
-
- * remove ReDoS regexp in %o formatter (#504)
-
-2.6.8 / 2017-05-18
-==================
-
- * Fix: Check for undefined on browser globals (#462, @marbemac)
-
-2.6.7 / 2017-05-16
-==================
-
- * Fix: Update ms to 2.0.0 to fix regular expression denial of service vulnerability (#458, @hubdotcom)
- * Fix: Inline extend function in node implementation (#452, @dougwilson)
- * Docs: Fix typo (#455, @msasad)
-
-2.6.5 / 2017-04-27
-==================
-
- * Fix: null reference check on window.documentElement.style.WebkitAppearance (#447, @thebigredgeek)
- * Misc: clean up browser reference checks (#447, @thebigredgeek)
- * Misc: add npm-debug.log to .gitignore (@thebigredgeek)
-
-
-2.6.4 / 2017-04-20
-==================
-
- * Fix: bug that would occur if process.env.DEBUG is a non-string value. (#444, @LucianBuzzo)
- * Chore: ignore bower.json in npm installations. (#437, @joaovieira)
- * Misc: update "ms" to v0.7.3 (@tootallnate)
-
-2.6.3 / 2017-03-13
-==================
-
- * Fix: Electron reference to `process.env.DEBUG` (#431, @paulcbetts)
- * Docs: Changelog fix (@thebigredgeek)
-
-2.6.2 / 2017-03-10
-==================
-
- * Fix: DEBUG_MAX_ARRAY_LENGTH (#420, @slavaGanzin)
- * Docs: Add backers and sponsors from Open Collective (#422, @piamancini)
- * Docs: Add Slackin invite badge (@tootallnate)
-
-2.6.1 / 2017-02-10
-==================
-
- * Fix: Module's `export default` syntax fix for IE8 `Expected identifier` error
- * Fix: Whitelist DEBUG_FD for values 1 and 2 only (#415, @pi0)
- * Fix: IE8 "Expected identifier" error (#414, @vgoma)
- * Fix: Namespaces would not disable once enabled (#409, @musikov)
-
-2.6.0 / 2016-12-28
-==================
-
- * Fix: added better null pointer checks for browser useColors (@thebigredgeek)
- * Improvement: removed explicit `window.debug` export (#404, @tootallnate)
- * Improvement: deprecated `DEBUG_FD` environment variable (#405, @tootallnate)
-
-2.5.2 / 2016-12-25
-==================
-
- * Fix: reference error on window within webworkers (#393, @KlausTrainer)
- * Docs: fixed README typo (#391, @lurch)
- * Docs: added notice about v3 api discussion (@thebigredgeek)
-
-2.5.1 / 2016-12-20
-==================
-
- * Fix: babel-core compatibility
-
-2.5.0 / 2016-12-20
-==================
-
- * Fix: wrong reference in bower file (@thebigredgeek)
- * Fix: webworker compatibility (@thebigredgeek)
- * Fix: output formatting issue (#388, @kribblo)
- * Fix: babel-loader compatibility (#383, @escwald)
- * Misc: removed built asset from repo and publications (@thebigredgeek)
- * Misc: moved source files to /src (#378, @yamikuronue)
- * Test: added karma integration and replaced babel with browserify for browser tests (#378, @yamikuronue)
- * Test: coveralls integration (#378, @yamikuronue)
- * Docs: simplified language in the opening paragraph (#373, @yamikuronue)
-
-2.4.5 / 2016-12-17
-==================
-
- * Fix: `navigator` undefined in Rhino (#376, @jochenberger)
- * Fix: custom log function (#379, @hsiliev)
- * Improvement: bit of cleanup + linting fixes (@thebigredgeek)
- * Improvement: rm non-maintainted `dist/` dir (#375, @freewil)
- * Docs: simplified language in the opening paragraph. (#373, @yamikuronue)
-
-2.4.4 / 2016-12-14
-==================
-
- * Fix: work around debug being loaded in preload scripts for electron (#368, @paulcbetts)
-
-2.4.3 / 2016-12-14
-==================
-
- * Fix: navigation.userAgent error for react native (#364, @escwald)
-
-2.4.2 / 2016-12-14
-==================
-
- * Fix: browser colors (#367, @tootallnate)
- * Misc: travis ci integration (@thebigredgeek)
- * Misc: added linting and testing boilerplate with sanity check (@thebigredgeek)
-
-2.4.1 / 2016-12-13
-==================
-
- * Fix: typo that broke the package (#356)
-
-2.4.0 / 2016-12-13
-==================
-
- * Fix: bower.json references unbuilt src entry point (#342, @justmatt)
- * Fix: revert "handle regex special characters" (@tootallnate)
- * Feature: configurable util.inspect()`options for NodeJS (#327, @tootallnate)
- * Feature: %O`(big O) pretty-prints objects (#322, @tootallnate)
- * Improvement: allow colors in workers (#335, @botverse)
- * Improvement: use same color for same namespace. (#338, @lchenay)
-
-2.3.3 / 2016-11-09
-==================
-
- * Fix: Catch `JSON.stringify()` errors (#195, Jovan Alleyne)
- * Fix: Returning `localStorage` saved values (#331, Levi Thomason)
- * Improvement: Don't create an empty object when no `process` (Nathan Rajlich)
-
-2.3.2 / 2016-11-09
-==================
-
- * Fix: be super-safe in index.js as well (@TooTallNate)
- * Fix: should check whether process exists (Tom Newby)
-
-2.3.1 / 2016-11-09
-==================
-
- * Fix: Added electron compatibility (#324, @paulcbetts)
- * Improvement: Added performance optimizations (@tootallnate)
- * Readme: Corrected PowerShell environment variable example (#252, @gimre)
- * Misc: Removed yarn lock file from source control (#321, @fengmk2)
-
-2.3.0 / 2016-11-07
-==================
-
- * Fix: Consistent placement of ms diff at end of output (#215, @gorangajic)
- * Fix: Escaping of regex special characters in namespace strings (#250, @zacronos)
- * Fix: Fixed bug causing crash on react-native (#282, @vkarpov15)
- * Feature: Enabled ES6+ compatible import via default export (#212 @bucaran)
- * Feature: Added %O formatter to reflect Chrome's console.log capability (#279, @oncletom)
- * Package: Update "ms" to 0.7.2 (#315, @DevSide)
- * Package: removed superfluous version property from bower.json (#207 @kkirsche)
- * Readme: fix USE_COLORS to DEBUG_COLORS
- * Readme: Doc fixes for format string sugar (#269, @mlucool)
- * Readme: Updated docs for DEBUG_FD and DEBUG_COLORS environment variables (#232, @mattlyons0)
- * Readme: doc fixes for PowerShell (#271 #243, @exoticknight @unreadable)
- * Readme: better docs for browser support (#224, @matthewmueller)
- * Tooling: Added yarn integration for development (#317, @thebigredgeek)
- * Misc: Renamed History.md to CHANGELOG.md (@thebigredgeek)
- * Misc: Added license file (#226 #274, @CantemoInternal @sdaitzman)
- * Misc: Updated contributors (@thebigredgeek)
-
-2.2.0 / 2015-05-09
-==================
-
- * package: update "ms" to v0.7.1 (#202, @dougwilson)
- * README: add logging to file example (#193, @DanielOchoa)
- * README: fixed a typo (#191, @amir-s)
- * browser: expose `storage` (#190, @stephenmathieson)
- * Makefile: add a `distclean` target (#189, @stephenmathieson)
-
-2.1.3 / 2015-03-13
-==================
-
- * Updated stdout/stderr example (#186)
- * Updated example/stdout.js to match debug current behaviour
- * Renamed example/stderr.js to stdout.js
- * Update Readme.md (#184)
- * replace high intensity foreground color for bold (#182, #183)
-
-2.1.2 / 2015-03-01
-==================
-
- * dist: recompile
- * update "ms" to v0.7.0
- * package: update "browserify" to v9.0.3
- * component: fix "ms.js" repo location
- * changed bower package name
- * updated documentation about using debug in a browser
- * fix: security error on safari (#167, #168, @yields)
-
-2.1.1 / 2014-12-29
-==================
-
- * browser: use `typeof` to check for `console` existence
- * browser: check for `console.log` truthiness (fix IE 8/9)
- * browser: add support for Chrome apps
- * Readme: added Windows usage remarks
- * Add `bower.json` to properly support bower install
-
-2.1.0 / 2014-10-15
-==================
-
- * node: implement `DEBUG_FD` env variable support
- * package: update "browserify" to v6.1.0
- * package: add "license" field to package.json (#135, @panuhorsmalahti)
-
-2.0.0 / 2014-09-01
-==================
-
- * package: update "browserify" to v5.11.0
- * node: use stderr rather than stdout for logging (#29, @stephenmathieson)
-
-1.0.4 / 2014-07-15
-==================
-
- * dist: recompile
- * example: remove `console.info()` log usage
- * example: add "Content-Type" UTF-8 header to browser example
- * browser: place %c marker after the space character
- * browser: reset the "content" color via `color: inherit`
- * browser: add colors support for Firefox >= v31
- * debug: prefer an instance `log()` function over the global one (#119)
- * Readme: update documentation about styled console logs for FF v31 (#116, @wryk)
-
-1.0.3 / 2014-07-09
-==================
-
- * Add support for multiple wildcards in namespaces (#122, @seegno)
- * browser: fix lint
-
-1.0.2 / 2014-06-10
-==================
-
- * browser: update color palette (#113, @gscottolson)
- * common: make console logging function configurable (#108, @timoxley)
- * node: fix %o colors on old node <= 0.8.x
- * Makefile: find node path using shell/which (#109, @timoxley)
-
-1.0.1 / 2014-06-06
-==================
-
- * browser: use `removeItem()` to clear localStorage
- * browser, node: don't set DEBUG if namespaces is undefined (#107, @leedm777)
- * package: add "contributors" section
- * node: fix comment typo
- * README: list authors
-
-1.0.0 / 2014-06-04
-==================
-
- * make ms diff be global, not be scope
- * debug: ignore empty strings in enable()
- * node: make DEBUG_COLORS able to disable coloring
- * *: export the `colors` array
- * npmignore: don't publish the `dist` dir
- * Makefile: refactor to use browserify
- * package: add "browserify" as a dev dependency
- * Readme: add Web Inspector Colors section
- * node: reset terminal color for the debug content
- * node: map "%o" to `util.inspect()`
- * browser: map "%j" to `JSON.stringify()`
- * debug: add custom "formatters"
- * debug: use "ms" module for humanizing the diff
- * Readme: add "bash" syntax highlighting
- * browser: add Firebug color support
- * browser: add colors for WebKit browsers
- * node: apply log to `console`
- * rewrite: abstract common logic for Node & browsers
- * add .jshintrc file
-
-0.8.1 / 2014-04-14
-==================
-
- * package: re-add the "component" section
-
-0.8.0 / 2014-03-30
-==================
-
- * add `enable()` method for nodejs. Closes #27
- * change from stderr to stdout
- * remove unnecessary index.js file
-
-0.7.4 / 2013-11-13
-==================
-
- * remove "browserify" key from package.json (fixes something in browserify)
-
-0.7.3 / 2013-10-30
-==================
-
- * fix: catch localStorage security error when cookies are blocked (Chrome)
- * add debug(err) support. Closes #46
- * add .browser prop to package.json. Closes #42
-
-0.7.2 / 2013-02-06
-==================
-
- * fix package.json
- * fix: Mobile Safari (private mode) is broken with debug
- * fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
-
-0.7.1 / 2013-02-05
-==================
-
- * add repository URL to package.json
- * add DEBUG_COLORED to force colored output
- * add browserify support
- * fix component. Closes #24
-
-0.7.0 / 2012-05-04
-==================
-
- * Added .component to package.json
- * Added debug.component.js build
-
-0.6.0 / 2012-03-16
-==================
-
- * Added support for "-" prefix in DEBUG [Vinay Pulim]
- * Added `.enabled` flag to the node version [TooTallNate]
-
-0.5.0 / 2012-02-02
-==================
-
- * Added: humanize diffs. Closes #8
- * Added `debug.disable()` to the CS variant
- * Removed padding. Closes #10
- * Fixed: persist client-side variant again. Closes #9
-
-0.4.0 / 2012-02-01
-==================
-
- * Added browser variant support for older browsers [TooTallNate]
- * Added `debug.enable('project:*')` to browser variant [TooTallNate]
- * Added padding to diff (moved it to the right)
-
-0.3.0 / 2012-01-26
-==================
-
- * Added millisecond diff when isatty, otherwise UTC string
-
-0.2.0 / 2012-01-22
-==================
-
- * Added wildcard support
-
-0.1.0 / 2011-12-02
-==================
-
- * Added: remove colors unless stderr isatty [TooTallNate]
-
-0.0.1 / 2010-01-03
-==================
-
- * Initial release
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/LICENSE b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/LICENSE
deleted file mode 100644
index 658c933d..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-(The MIT License)
-
-Copyright (c) 2014 TJ Holowaychuk
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software
-and associated documentation files (the 'Software'), to deal in the Software without restriction,
-including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
-and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial
-portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
-LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/Makefile b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/Makefile
deleted file mode 100644
index 3ddd1360..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/Makefile
+++ /dev/null
@@ -1,58 +0,0 @@
-# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
-THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
-THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
-
-# BIN directory
-BIN := $(THIS_DIR)/node_modules/.bin
-
-# Path
-PATH := node_modules/.bin:$(PATH)
-SHELL := /bin/bash
-
-# applications
-NODE ?= $(shell which node)
-YARN ?= $(shell which yarn)
-PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm))
-BROWSERIFY ?= $(NODE) $(BIN)/browserify
-
-install: node_modules
-
-browser: dist/debug.js
-
-node_modules: package.json
- @NODE_ENV= $(PKG) install
- @touch node_modules
-
-dist/debug.js: src/*.js node_modules
- @mkdir -p dist
- @$(BROWSERIFY) \
- --standalone debug \
- . > dist/debug.js
-
-lint:
- @eslint *.js src/*.js
-
-test-node:
- @istanbul cover node_modules/mocha/bin/_mocha -- test/**.js
- @cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
-
-test-browser:
- @$(MAKE) browser
- @karma start --single-run
-
-test-all:
- @concurrently \
- "make test-node" \
- "make test-browser"
-
-test:
- @if [ "x$(BROWSER)" = "x" ]; then \
- $(MAKE) test-node; \
- else \
- $(MAKE) test-browser; \
- fi
-
-clean:
- rimraf dist coverage
-
-.PHONY: browser install clean lint test test-all test-node test-browser
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/README.md b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/README.md
deleted file mode 100644
index 8e754d17..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/README.md
+++ /dev/null
@@ -1,368 +0,0 @@
-# debug
-[](https://travis-ci.org/visionmedia/debug) [](https://coveralls.io/github/visionmedia/debug?branch=master) [](https://visionmedia-community-slackin.now.sh/) [](#backers)
-[](#sponsors)
-
-
-
-A tiny JavaScript debugging utility modelled after Node.js core's debugging
-technique. Works in Node.js and web browsers.
-
-## Installation
-
-```bash
-$ npm install debug
-```
-
-## Usage
-
-`debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole.
-
-Example [_app.js_](./examples/node/app.js):
-
-```js
-var debug = require('debug')('http')
- , http = require('http')
- , name = 'My App';
-
-// fake app
-
-debug('booting %o', name);
-
-http.createServer(function(req, res){
- debug(req.method + ' ' + req.url);
- res.end('hello\n');
-}).listen(3000, function(){
- debug('listening');
-});
-
-// fake worker of some kind
-
-require('./worker');
-```
-
-Example [_worker.js_](./examples/node/worker.js):
-
-```js
-var a = require('debug')('worker:a')
- , b = require('debug')('worker:b');
-
-function work() {
- a('doing lots of uninteresting work');
- setTimeout(work, Math.random() * 1000);
-}
-
-work();
-
-function workb() {
- b('doing some work');
- setTimeout(workb, Math.random() * 2000);
-}
-
-workb();
-```
-
-The `DEBUG` environment variable is then used to enable these based on space or
-comma-delimited names.
-
-Here are some examples:
-
-
-
-
-
-#### Windows note
-
-On Windows the environment variable is set using the `set` command.
-
-```cmd
-set DEBUG=*,-not_this
-```
-
-Note that PowerShell uses different syntax to set environment variables.
-
-```cmd
-$env:DEBUG = "*,-not_this"
-```
-
-Then, run the program to be debugged as usual.
-
-
-## Namespace Colors
-
-Every debug instance has a color generated for it based on its namespace name.
-This helps when visually parsing the debug output to identify which debug instance
-a debug line belongs to.
-
-#### Node.js
-
-In Node.js, colors are enabled when stderr is a TTY. You also _should_ install
-the [`supports-color`](https://npmjs.org/supports-color) module alongside debug,
-otherwise debug will only use a small handful of basic colors.
-
-
-
-#### Web Browser
-
-Colors are also enabled on "Web Inspectors" that understand the `%c` formatting
-option. These are WebKit web inspectors, Firefox ([since version
-31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/))
-and the Firebug plugin for Firefox (any version).
-
-
-
-
-## Millisecond diff
-
-When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls.
-
-
-
-When stdout is not a TTY, `Date#toISOString()` is used, making it more useful for logging the debug information as shown below:
-
-
-
-
-## Conventions
-
-If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser". If you append a "*" to the end of your name, it will always be enabled regardless of the setting of the DEBUG environment variable. You can then use it for normal output as well as debug output.
-
-## Wildcards
-
-The `*` character may be used as a wildcard. Suppose for example your library has
-debuggers named "connect:bodyParser", "connect:compress", "connect:session",
-instead of listing all three with
-`DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do
-`DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.
-
-You can also exclude specific debuggers by prefixing them with a "-" character.
-For example, `DEBUG=*,-connect:*` would include all debuggers except those
-starting with "connect:".
-
-## Environment Variables
-
-When running through Node.js, you can set a few environment variables that will
-change the behavior of the debug logging:
-
-| Name | Purpose |
-|-----------|-------------------------------------------------|
-| `DEBUG` | Enables/disables specific debugging namespaces. |
-| `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). |
-| `DEBUG_COLORS`| Whether or not to use colors in the debug output. |
-| `DEBUG_DEPTH` | Object inspection depth. |
-| `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. |
-
-
-__Note:__ The environment variables beginning with `DEBUG_` end up being
-converted into an Options object that gets used with `%o`/`%O` formatters.
-See the Node.js documentation for
-[`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options)
-for the complete list.
-
-## Formatters
-
-Debug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting.
-Below are the officially supported formatters:
-
-| Formatter | Representation |
-|-----------|----------------|
-| `%O` | Pretty-print an Object on multiple lines. |
-| `%o` | Pretty-print an Object all on a single line. |
-| `%s` | String. |
-| `%d` | Number (both integer and float). |
-| `%j` | JSON. Replaced with the string '[Circular]' if the argument contains circular references. |
-| `%%` | Single percent sign ('%'). This does not consume an argument. |
-
-
-### Custom formatters
-
-You can add custom formatters by extending the `debug.formatters` object.
-For example, if you wanted to add support for rendering a Buffer as hex with
-`%h`, you could do something like:
-
-```js
-const createDebug = require('debug')
-createDebug.formatters.h = (v) => {
- return v.toString('hex')
-}
-
-// …elsewhere
-const debug = createDebug('foo')
-debug('this is hex: %h', new Buffer('hello world'))
-// foo this is hex: 68656c6c6f20776f726c6421 +0ms
-```
-
-
-## Browser Support
-
-You can build a browser-ready script using [browserify](https://github.com/substack/node-browserify),
-or just use the [browserify-as-a-service](https://wzrd.in/) [build](https://wzrd.in/standalone/debug@latest),
-if you don't want to build it yourself.
-
-Debug's enable state is currently persisted by `localStorage`.
-Consider the situation shown below where you have `worker:a` and `worker:b`,
-and wish to debug both. You can enable this using `localStorage.debug`:
-
-```js
-localStorage.debug = 'worker:*'
-```
-
-And then refresh the page.
-
-```js
-a = debug('worker:a');
-b = debug('worker:b');
-
-setInterval(function(){
- a('doing some work');
-}, 1000);
-
-setInterval(function(){
- b('doing some work');
-}, 1200);
-```
-
-
-## Output streams
-
- By default `debug` will log to stderr, however this can be configured per-namespace by overriding the `log` method:
-
-Example [_stdout.js_](./examples/node/stdout.js):
-
-```js
-var debug = require('debug');
-var error = debug('app:error');
-
-// by default stderr is used
-error('goes to stderr!');
-
-var log = debug('app:log');
-// set this namespace to log via console.log
-log.log = console.log.bind(console); // don't forget to bind to console!
-log('goes to stdout');
-error('still goes to stderr!');
-
-// set all output to go via console.info
-// overrides all per-namespace log settings
-debug.log = console.info.bind(console);
-error('now goes to stdout via console.info');
-log('still goes to stdout, but via console.info now');
-```
-
-## Checking whether a debug target is enabled
-
-After you've created a debug instance, you can determine whether or not it is
-enabled by checking the `enabled` property:
-
-```javascript
-const debug = require('debug')('http');
-
-if (debug.enabled) {
- // do stuff...
-}
-```
-
-You can also manually toggle this property to force the debug instance to be
-enabled or disabled.
-
-
-## Authors
-
- - TJ Holowaychuk
- - Nathan Rajlich
- - Andrew Rhyne
-
-## Backers
-
-Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/debug#backer)]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-## Sponsors
-
-Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/debug#sponsor)]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-## License
-
-(The MIT License)
-
-Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/karma.conf.js b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/karma.conf.js
deleted file mode 100644
index 103a82d1..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/karma.conf.js
+++ /dev/null
@@ -1,70 +0,0 @@
-// Karma configuration
-// Generated on Fri Dec 16 2016 13:09:51 GMT+0000 (UTC)
-
-module.exports = function(config) {
- config.set({
-
- // base path that will be used to resolve all patterns (eg. files, exclude)
- basePath: '',
-
-
- // frameworks to use
- // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
- frameworks: ['mocha', 'chai', 'sinon'],
-
-
- // list of files / patterns to load in the browser
- files: [
- 'dist/debug.js',
- 'test/*spec.js'
- ],
-
-
- // list of files to exclude
- exclude: [
- 'src/node.js'
- ],
-
-
- // preprocess matching files before serving them to the browser
- // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
- preprocessors: {
- },
-
- // test results reporter to use
- // possible values: 'dots', 'progress'
- // available reporters: https://npmjs.org/browse/keyword/karma-reporter
- reporters: ['progress'],
-
-
- // web server port
- port: 9876,
-
-
- // enable / disable colors in the output (reporters and logs)
- colors: true,
-
-
- // level of logging
- // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
- logLevel: config.LOG_INFO,
-
-
- // enable / disable watching file and executing tests whenever any file changes
- autoWatch: true,
-
-
- // start these browsers
- // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
- browsers: ['PhantomJS'],
-
-
- // Continuous Integration mode
- // if true, Karma captures browsers, runs the tests and exits
- singleRun: false,
-
- // Concurrency level
- // how many browser should be started simultaneous
- concurrency: Infinity
- })
-}
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/node.js b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/node.js
deleted file mode 100644
index 7fc36fe6..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/node.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports = require('./src/node');
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/package.json b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/package.json
deleted file mode 100644
index 57e72cc5..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "_args": [
- [
- "debug@3.1.0",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "debug@3.1.0",
- "_id": "debug@3.1.0",
- "_inBundle": false,
- "_integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
- "_location": "/@babel/traverse/debug",
- "_phantomChildren": {},
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "debug@3.1.0",
- "name": "debug",
- "escapedName": "debug",
- "rawSpec": "3.1.0",
- "saveSpec": null,
- "fetchSpec": "3.1.0"
- },
- "_requiredBy": [
- "/@babel/traverse"
- ],
- "_resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
- "_spec": "3.1.0",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "author": {
- "name": "TJ Holowaychuk",
- "email": "tj@vision-media.ca"
- },
- "browser": "./src/browser.js",
- "bugs": {
- "url": "https://github.com/visionmedia/debug/issues"
- },
- "contributors": [
- {
- "name": "Nathan Rajlich",
- "email": "nathan@tootallnate.net",
- "url": "http://n8.io"
- },
- {
- "name": "Andrew Rhyne",
- "email": "rhyneandrew@gmail.com"
- }
- ],
- "dependencies": {
- "ms": "2.0.0"
- },
- "description": "small debugging utility",
- "devDependencies": {
- "browserify": "14.4.0",
- "chai": "^3.5.0",
- "concurrently": "^3.1.0",
- "coveralls": "^2.11.15",
- "eslint": "^3.12.1",
- "istanbul": "^0.4.5",
- "karma": "^1.3.0",
- "karma-chai": "^0.1.0",
- "karma-mocha": "^1.3.0",
- "karma-phantomjs-launcher": "^1.0.2",
- "karma-sinon": "^1.0.5",
- "mocha": "^3.2.0",
- "mocha-lcov-reporter": "^1.2.0",
- "rimraf": "^2.5.4",
- "sinon": "^1.17.6",
- "sinon-chai": "^2.8.0"
- },
- "homepage": "https://github.com/visionmedia/debug#readme",
- "keywords": [
- "debug",
- "log",
- "debugger"
- ],
- "license": "MIT",
- "main": "./src/index.js",
- "name": "debug",
- "repository": {
- "type": "git",
- "url": "git://github.com/visionmedia/debug.git"
- },
- "version": "3.1.0"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/browser.js b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/browser.js
deleted file mode 100644
index f5149ff5..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/browser.js
+++ /dev/null
@@ -1,195 +0,0 @@
-/**
- * This is the web browser implementation of `debug()`.
- *
- * Expose `debug()` as the module.
- */
-
-exports = module.exports = require('./debug');
-exports.log = log;
-exports.formatArgs = formatArgs;
-exports.save = save;
-exports.load = load;
-exports.useColors = useColors;
-exports.storage = 'undefined' != typeof chrome
- && 'undefined' != typeof chrome.storage
- ? chrome.storage.local
- : localstorage();
-
-/**
- * Colors.
- */
-
-exports.colors = [
- '#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC',
- '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF',
- '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC',
- '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF',
- '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC',
- '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033',
- '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366',
- '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933',
- '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC',
- '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF',
- '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'
-];
-
-/**
- * Currently only WebKit-based Web Inspectors, Firefox >= v31,
- * and the Firebug extension (any Firefox version) are known
- * to support "%c" CSS customizations.
- *
- * TODO: add a `localStorage` variable to explicitly enable/disable colors
- */
-
-function useColors() {
- // NB: In an Electron preload script, document will be defined but not fully
- // initialized. Since we know we're in Chrome, we'll just detect this case
- // explicitly
- if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {
- return true;
- }
-
- // Internet Explorer and Edge do not support colors.
- if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
- return false;
- }
-
- // is webkit? http://stackoverflow.com/a/16459606/376773
- // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
- return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
- // is firebug? http://stackoverflow.com/a/398120/376773
- (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
- // is firefox >= v31?
- // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
- // double check webkit in userAgent just in case we are in a worker
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
-}
-
-/**
- * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
- */
-
-exports.formatters.j = function(v) {
- try {
- return JSON.stringify(v);
- } catch (err) {
- return '[UnexpectedJSONParseError]: ' + err.message;
- }
-};
-
-
-/**
- * Colorize log arguments if enabled.
- *
- * @api public
- */
-
-function formatArgs(args) {
- var useColors = this.useColors;
-
- args[0] = (useColors ? '%c' : '')
- + this.namespace
- + (useColors ? ' %c' : ' ')
- + args[0]
- + (useColors ? '%c ' : ' ')
- + '+' + exports.humanize(this.diff);
-
- if (!useColors) return;
-
- var c = 'color: ' + this.color;
- args.splice(1, 0, c, 'color: inherit')
-
- // the final "%c" is somewhat tricky, because there could be other
- // arguments passed either before or after the %c, so we need to
- // figure out the correct index to insert the CSS into
- var index = 0;
- var lastC = 0;
- args[0].replace(/%[a-zA-Z%]/g, function(match) {
- if ('%%' === match) return;
- index++;
- if ('%c' === match) {
- // we only are interested in the *last* %c
- // (the user may have provided their own)
- lastC = index;
- }
- });
-
- args.splice(lastC, 0, c);
-}
-
-/**
- * Invokes `console.log()` when available.
- * No-op when `console.log` is not a "function".
- *
- * @api public
- */
-
-function log() {
- // this hackery is required for IE8/9, where
- // the `console.log` function doesn't have 'apply'
- return 'object' === typeof console
- && console.log
- && Function.prototype.apply.call(console.log, console, arguments);
-}
-
-/**
- * Save `namespaces`.
- *
- * @param {String} namespaces
- * @api private
- */
-
-function save(namespaces) {
- try {
- if (null == namespaces) {
- exports.storage.removeItem('debug');
- } else {
- exports.storage.debug = namespaces;
- }
- } catch(e) {}
-}
-
-/**
- * Load `namespaces`.
- *
- * @return {String} returns the previously persisted debug modes
- * @api private
- */
-
-function load() {
- var r;
- try {
- r = exports.storage.debug;
- } catch(e) {}
-
- // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
- if (!r && typeof process !== 'undefined' && 'env' in process) {
- r = process.env.DEBUG;
- }
-
- return r;
-}
-
-/**
- * Enable namespaces listed in `localStorage.debug` initially.
- */
-
-exports.enable(load());
-
-/**
- * Localstorage attempts to return the localstorage.
- *
- * This is necessary because safari throws
- * when a user disables cookies/localstorage
- * and you attempt to access it.
- *
- * @return {LocalStorage}
- * @api private
- */
-
-function localstorage() {
- try {
- return window.localStorage;
- } catch (e) {}
-}
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/debug.js b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/debug.js
deleted file mode 100644
index 77e6384a..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/debug.js
+++ /dev/null
@@ -1,225 +0,0 @@
-
-/**
- * This is the common logic for both the Node.js and web browser
- * implementations of `debug()`.
- *
- * Expose `debug()` as the module.
- */
-
-exports = module.exports = createDebug.debug = createDebug['default'] = createDebug;
-exports.coerce = coerce;
-exports.disable = disable;
-exports.enable = enable;
-exports.enabled = enabled;
-exports.humanize = require('ms');
-
-/**
- * Active `debug` instances.
- */
-exports.instances = [];
-
-/**
- * The currently active debug mode names, and names to skip.
- */
-
-exports.names = [];
-exports.skips = [];
-
-/**
- * Map of special "%n" handling functions, for the debug "format" argument.
- *
- * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
- */
-
-exports.formatters = {};
-
-/**
- * Select a color.
- * @param {String} namespace
- * @return {Number}
- * @api private
- */
-
-function selectColor(namespace) {
- var hash = 0, i;
-
- for (i in namespace) {
- hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
- hash |= 0; // Convert to 32bit integer
- }
-
- return exports.colors[Math.abs(hash) % exports.colors.length];
-}
-
-/**
- * Create a debugger with the given `namespace`.
- *
- * @param {String} namespace
- * @return {Function}
- * @api public
- */
-
-function createDebug(namespace) {
-
- var prevTime;
-
- function debug() {
- // disabled?
- if (!debug.enabled) return;
-
- var self = debug;
-
- // set `diff` timestamp
- var curr = +new Date();
- var ms = curr - (prevTime || curr);
- self.diff = ms;
- self.prev = prevTime;
- self.curr = curr;
- prevTime = curr;
-
- // turn the `arguments` into a proper Array
- var args = new Array(arguments.length);
- for (var i = 0; i < args.length; i++) {
- args[i] = arguments[i];
- }
-
- args[0] = exports.coerce(args[0]);
-
- if ('string' !== typeof args[0]) {
- // anything else let's inspect with %O
- args.unshift('%O');
- }
-
- // apply any `formatters` transformations
- var index = 0;
- args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
- // if we encounter an escaped % then don't increase the array index
- if (match === '%%') return match;
- index++;
- var formatter = exports.formatters[format];
- if ('function' === typeof formatter) {
- var val = args[index];
- match = formatter.call(self, val);
-
- // now we need to remove `args[index]` since it's inlined in the `format`
- args.splice(index, 1);
- index--;
- }
- return match;
- });
-
- // apply env-specific formatting (colors, etc.)
- exports.formatArgs.call(self, args);
-
- var logFn = debug.log || exports.log || console.log.bind(console);
- logFn.apply(self, args);
- }
-
- debug.namespace = namespace;
- debug.enabled = exports.enabled(namespace);
- debug.useColors = exports.useColors();
- debug.color = selectColor(namespace);
- debug.destroy = destroy;
-
- // env-specific initialization logic for debug instances
- if ('function' === typeof exports.init) {
- exports.init(debug);
- }
-
- exports.instances.push(debug);
-
- return debug;
-}
-
-function destroy () {
- var index = exports.instances.indexOf(this);
- if (index !== -1) {
- exports.instances.splice(index, 1);
- return true;
- } else {
- return false;
- }
-}
-
-/**
- * Enables a debug mode by namespaces. This can include modes
- * separated by a colon and wildcards.
- *
- * @param {String} namespaces
- * @api public
- */
-
-function enable(namespaces) {
- exports.save(namespaces);
-
- exports.names = [];
- exports.skips = [];
-
- var i;
- var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
- var len = split.length;
-
- for (i = 0; i < len; i++) {
- if (!split[i]) continue; // ignore empty strings
- namespaces = split[i].replace(/\*/g, '.*?');
- if (namespaces[0] === '-') {
- exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
- } else {
- exports.names.push(new RegExp('^' + namespaces + '$'));
- }
- }
-
- for (i = 0; i < exports.instances.length; i++) {
- var instance = exports.instances[i];
- instance.enabled = exports.enabled(instance.namespace);
- }
-}
-
-/**
- * Disable debug output.
- *
- * @api public
- */
-
-function disable() {
- exports.enable('');
-}
-
-/**
- * Returns true if the given mode name is enabled, false otherwise.
- *
- * @param {String} name
- * @return {Boolean}
- * @api public
- */
-
-function enabled(name) {
- if (name[name.length - 1] === '*') {
- return true;
- }
- var i, len;
- for (i = 0, len = exports.skips.length; i < len; i++) {
- if (exports.skips[i].test(name)) {
- return false;
- }
- }
- for (i = 0, len = exports.names.length; i < len; i++) {
- if (exports.names[i].test(name)) {
- return true;
- }
- }
- return false;
-}
-
-/**
- * Coerce `val`.
- *
- * @param {Mixed} val
- * @return {Mixed}
- * @api private
- */
-
-function coerce(val) {
- if (val instanceof Error) return val.stack || val.message;
- return val;
-}
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/index.js b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/index.js
deleted file mode 100644
index cabcbcda..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-/**
- * Detect Electron renderer process, which is node, but we should
- * treat as a browser.
- */
-
-if (typeof process === 'undefined' || process.type === 'renderer') {
- module.exports = require('./browser.js');
-} else {
- module.exports = require('./node.js');
-}
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/node.js b/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/node.js
deleted file mode 100644
index d666fb9c..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/node_modules/debug/src/node.js
+++ /dev/null
@@ -1,186 +0,0 @@
-/**
- * Module dependencies.
- */
-
-var tty = require('tty');
-var util = require('util');
-
-/**
- * This is the Node.js implementation of `debug()`.
- *
- * Expose `debug()` as the module.
- */
-
-exports = module.exports = require('./debug');
-exports.init = init;
-exports.log = log;
-exports.formatArgs = formatArgs;
-exports.save = save;
-exports.load = load;
-exports.useColors = useColors;
-
-/**
- * Colors.
- */
-
-exports.colors = [ 6, 2, 3, 4, 5, 1 ];
-
-try {
- var supportsColor = require('supports-color');
- if (supportsColor && supportsColor.level >= 2) {
- exports.colors = [
- 20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63, 68,
- 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128, 129, 134,
- 135, 148, 149, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
- 172, 173, 178, 179, 184, 185, 196, 197, 198, 199, 200, 201, 202, 203, 204,
- 205, 206, 207, 208, 209, 214, 215, 220, 221
- ];
- }
-} catch (err) {
- // swallow - we only care if `supports-color` is available; it doesn't have to be.
-}
-
-/**
- * Build up the default `inspectOpts` object from the environment variables.
- *
- * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
- */
-
-exports.inspectOpts = Object.keys(process.env).filter(function (key) {
- return /^debug_/i.test(key);
-}).reduce(function (obj, key) {
- // camel-case
- var prop = key
- .substring(6)
- .toLowerCase()
- .replace(/_([a-z])/g, function (_, k) { return k.toUpperCase() });
-
- // coerce string value into JS value
- var val = process.env[key];
- if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
- else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
- else if (val === 'null') val = null;
- else val = Number(val);
-
- obj[prop] = val;
- return obj;
-}, {});
-
-/**
- * Is stdout a TTY? Colored output is enabled when `true`.
- */
-
-function useColors() {
- return 'colors' in exports.inspectOpts
- ? Boolean(exports.inspectOpts.colors)
- : tty.isatty(process.stderr.fd);
-}
-
-/**
- * Map %o to `util.inspect()`, all on a single line.
- */
-
-exports.formatters.o = function(v) {
- this.inspectOpts.colors = this.useColors;
- return util.inspect(v, this.inspectOpts)
- .split('\n').map(function(str) {
- return str.trim()
- }).join(' ');
-};
-
-/**
- * Map %o to `util.inspect()`, allowing multiple lines if needed.
- */
-
-exports.formatters.O = function(v) {
- this.inspectOpts.colors = this.useColors;
- return util.inspect(v, this.inspectOpts);
-};
-
-/**
- * Adds ANSI color escape codes if enabled.
- *
- * @api public
- */
-
-function formatArgs(args) {
- var name = this.namespace;
- var useColors = this.useColors;
-
- if (useColors) {
- var c = this.color;
- var colorCode = '\u001b[3' + (c < 8 ? c : '8;5;' + c);
- var prefix = ' ' + colorCode + ';1m' + name + ' ' + '\u001b[0m';
-
- args[0] = prefix + args[0].split('\n').join('\n' + prefix);
- args.push(colorCode + 'm+' + exports.humanize(this.diff) + '\u001b[0m');
- } else {
- args[0] = getDate() + name + ' ' + args[0];
- }
-}
-
-function getDate() {
- if (exports.inspectOpts.hideDate) {
- return '';
- } else {
- return new Date().toISOString() + ' ';
- }
-}
-
-/**
- * Invokes `util.format()` with the specified arguments and writes to stderr.
- */
-
-function log() {
- return process.stderr.write(util.format.apply(util, arguments) + '\n');
-}
-
-/**
- * Save `namespaces`.
- *
- * @param {String} namespaces
- * @api private
- */
-
-function save(namespaces) {
- if (null == namespaces) {
- // If you set a process.env field to null or undefined, it gets cast to the
- // string 'null' or 'undefined'. Just delete instead.
- delete process.env.DEBUG;
- } else {
- process.env.DEBUG = namespaces;
- }
-}
-
-/**
- * Load `namespaces`.
- *
- * @return {String} returns the previously persisted debug modes
- * @api private
- */
-
-function load() {
- return process.env.DEBUG;
-}
-
-/**
- * Init logic for `debug` instances.
- *
- * Create a new `inspectOpts` object in case `useColors` is set
- * differently for a particular `debug` instance.
- */
-
-function init (debug) {
- debug.inspectOpts = {};
-
- var keys = Object.keys(exports.inspectOpts);
- for (var i = 0; i < keys.length; i++) {
- debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
- }
-}
-
-/**
- * Enable namespaces listed in `process.env.DEBUG` initially.
- */
-
-exports.enable(load());
diff --git a/AuthenticationSDK/node_modules/@babel/traverse/package.json b/AuthenticationSDK/node_modules/@babel/traverse/package.json
deleted file mode 100644
index 84b4d98c..00000000
--- a/AuthenticationSDK/node_modules/@babel/traverse/package.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "_args": [
- [
- "@babel/traverse@7.0.0-beta.51",
- "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK"
- ]
- ],
- "_development": true,
- "_from": "@babel/traverse@7.0.0-beta.51",
- "_id": "@babel/traverse@7.0.0-beta.51",
- "_inBundle": false,
- "_integrity": "sha1-mB2vLOw0emIx06odnhgDsDqqpKg=",
- "_location": "/@babel/traverse",
- "_phantomChildren": {
- "ms": "2.0.0"
- },
- "_requested": {
- "type": "version",
- "registry": true,
- "raw": "@babel/traverse@7.0.0-beta.51",
- "name": "@babel/traverse",
- "escapedName": "@babel%2ftraverse",
- "scope": "@babel",
- "rawSpec": "7.0.0-beta.51",
- "saveSpec": null,
- "fetchSpec": "7.0.0-beta.51"
- },
- "_requiredBy": [
- "/istanbul-lib-instrument"
- ],
- "_resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.51.tgz",
- "_spec": "7.0.0-beta.51",
- "_where": "C:\\Users\\ghari\\node_swagger\\AuthenticationSDK",
- "author": {
- "name": "Sebastian McKenzie",
- "email": "sebmck@gmail.com"
- },
- "dependencies": {
- "@babel/code-frame": "7.0.0-beta.51",
- "@babel/generator": "7.0.0-beta.51",
- "@babel/helper-function-name": "7.0.0-beta.51",
- "@babel/helper-split-export-declaration": "7.0.0-beta.51",
- "@babel/parser": "7.0.0-beta.51",
- "@babel/types": "7.0.0-beta.51",
- "debug": "^3.1.0",
- "globals": "^11.1.0",
- "invariant": "^2.2.0",
- "lodash": "^4.17.5"
- },
- "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",
- "devDependencies": {
- "@babel/helper-plugin-test-runner": "7.0.0-beta.51"
- },
- "homepage": "https://babeljs.io/",
- "license": "MIT",
- "main": "lib/index.js",
- "name": "@babel/traverse",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-traverse"
- },
- "version": "7.0.0-beta.51"
-}
diff --git a/AuthenticationSDK/node_modules/@babel/types/README.md b/AuthenticationSDK/node_modules/@babel/types/README.md
deleted file mode 100644
index fddf55a9..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/README.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# @babel/types
-
-> Babel Types is a Lodash-esque utility library for AST nodes
-
-See our website [@babel/types](https://new.babeljs.io/docs/en/next/babel-types.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen) associated with this package.
-
-## Install
-
-Using npm:
-
-```sh
-npm install --save @babel/types
-```
-
-or using yarn:
-
-```sh
-yarn add --save @babel/types
-```
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/asserts/assertNode.js b/AuthenticationSDK/node_modules/@babel/types/lib/asserts/assertNode.js
deleted file mode 100644
index 194ec716..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/asserts/assertNode.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = assertNode;
-
-var _isNode = _interopRequireDefault(require("../validators/isNode"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function assertNode(node) {
- if (!(0, _isNode.default)(node)) {
- const type = node && node.type || JSON.stringify(node);
- throw new TypeError(`Not a valid node of type "${type}"`);
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/asserts/generated/index.js b/AuthenticationSDK/node_modules/@babel/types/lib/asserts/generated/index.js
deleted file mode 100644
index b69724a8..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/asserts/generated/index.js
+++ /dev/null
@@ -1,1314 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.assertArrayExpression = assertArrayExpression;
-exports.assertAssignmentExpression = assertAssignmentExpression;
-exports.assertBinaryExpression = assertBinaryExpression;
-exports.assertInterpreterDirective = assertInterpreterDirective;
-exports.assertDirective = assertDirective;
-exports.assertDirectiveLiteral = assertDirectiveLiteral;
-exports.assertBlockStatement = assertBlockStatement;
-exports.assertBreakStatement = assertBreakStatement;
-exports.assertCallExpression = assertCallExpression;
-exports.assertCatchClause = assertCatchClause;
-exports.assertConditionalExpression = assertConditionalExpression;
-exports.assertContinueStatement = assertContinueStatement;
-exports.assertDebuggerStatement = assertDebuggerStatement;
-exports.assertDoWhileStatement = assertDoWhileStatement;
-exports.assertEmptyStatement = assertEmptyStatement;
-exports.assertExpressionStatement = assertExpressionStatement;
-exports.assertFile = assertFile;
-exports.assertForInStatement = assertForInStatement;
-exports.assertForStatement = assertForStatement;
-exports.assertFunctionDeclaration = assertFunctionDeclaration;
-exports.assertFunctionExpression = assertFunctionExpression;
-exports.assertIdentifier = assertIdentifier;
-exports.assertIfStatement = assertIfStatement;
-exports.assertLabeledStatement = assertLabeledStatement;
-exports.assertStringLiteral = assertStringLiteral;
-exports.assertNumericLiteral = assertNumericLiteral;
-exports.assertNullLiteral = assertNullLiteral;
-exports.assertBooleanLiteral = assertBooleanLiteral;
-exports.assertRegExpLiteral = assertRegExpLiteral;
-exports.assertLogicalExpression = assertLogicalExpression;
-exports.assertMemberExpression = assertMemberExpression;
-exports.assertNewExpression = assertNewExpression;
-exports.assertProgram = assertProgram;
-exports.assertObjectExpression = assertObjectExpression;
-exports.assertObjectMethod = assertObjectMethod;
-exports.assertObjectProperty = assertObjectProperty;
-exports.assertRestElement = assertRestElement;
-exports.assertReturnStatement = assertReturnStatement;
-exports.assertSequenceExpression = assertSequenceExpression;
-exports.assertSwitchCase = assertSwitchCase;
-exports.assertSwitchStatement = assertSwitchStatement;
-exports.assertThisExpression = assertThisExpression;
-exports.assertThrowStatement = assertThrowStatement;
-exports.assertTryStatement = assertTryStatement;
-exports.assertUnaryExpression = assertUnaryExpression;
-exports.assertUpdateExpression = assertUpdateExpression;
-exports.assertVariableDeclaration = assertVariableDeclaration;
-exports.assertVariableDeclarator = assertVariableDeclarator;
-exports.assertWhileStatement = assertWhileStatement;
-exports.assertWithStatement = assertWithStatement;
-exports.assertAssignmentPattern = assertAssignmentPattern;
-exports.assertArrayPattern = assertArrayPattern;
-exports.assertArrowFunctionExpression = assertArrowFunctionExpression;
-exports.assertClassBody = assertClassBody;
-exports.assertClassDeclaration = assertClassDeclaration;
-exports.assertClassExpression = assertClassExpression;
-exports.assertExportAllDeclaration = assertExportAllDeclaration;
-exports.assertExportDefaultDeclaration = assertExportDefaultDeclaration;
-exports.assertExportNamedDeclaration = assertExportNamedDeclaration;
-exports.assertExportSpecifier = assertExportSpecifier;
-exports.assertForOfStatement = assertForOfStatement;
-exports.assertImportDeclaration = assertImportDeclaration;
-exports.assertImportDefaultSpecifier = assertImportDefaultSpecifier;
-exports.assertImportNamespaceSpecifier = assertImportNamespaceSpecifier;
-exports.assertImportSpecifier = assertImportSpecifier;
-exports.assertMetaProperty = assertMetaProperty;
-exports.assertClassMethod = assertClassMethod;
-exports.assertObjectPattern = assertObjectPattern;
-exports.assertSpreadElement = assertSpreadElement;
-exports.assertSuper = assertSuper;
-exports.assertTaggedTemplateExpression = assertTaggedTemplateExpression;
-exports.assertTemplateElement = assertTemplateElement;
-exports.assertTemplateLiteral = assertTemplateLiteral;
-exports.assertYieldExpression = assertYieldExpression;
-exports.assertAnyTypeAnnotation = assertAnyTypeAnnotation;
-exports.assertArrayTypeAnnotation = assertArrayTypeAnnotation;
-exports.assertBooleanTypeAnnotation = assertBooleanTypeAnnotation;
-exports.assertBooleanLiteralTypeAnnotation = assertBooleanLiteralTypeAnnotation;
-exports.assertNullLiteralTypeAnnotation = assertNullLiteralTypeAnnotation;
-exports.assertClassImplements = assertClassImplements;
-exports.assertDeclareClass = assertDeclareClass;
-exports.assertDeclareFunction = assertDeclareFunction;
-exports.assertDeclareInterface = assertDeclareInterface;
-exports.assertDeclareModule = assertDeclareModule;
-exports.assertDeclareModuleExports = assertDeclareModuleExports;
-exports.assertDeclareTypeAlias = assertDeclareTypeAlias;
-exports.assertDeclareOpaqueType = assertDeclareOpaqueType;
-exports.assertDeclareVariable = assertDeclareVariable;
-exports.assertDeclareExportDeclaration = assertDeclareExportDeclaration;
-exports.assertDeclareExportAllDeclaration = assertDeclareExportAllDeclaration;
-exports.assertDeclaredPredicate = assertDeclaredPredicate;
-exports.assertExistsTypeAnnotation = assertExistsTypeAnnotation;
-exports.assertFunctionTypeAnnotation = assertFunctionTypeAnnotation;
-exports.assertFunctionTypeParam = assertFunctionTypeParam;
-exports.assertGenericTypeAnnotation = assertGenericTypeAnnotation;
-exports.assertInferredPredicate = assertInferredPredicate;
-exports.assertInterfaceExtends = assertInterfaceExtends;
-exports.assertInterfaceDeclaration = assertInterfaceDeclaration;
-exports.assertInterfaceTypeAnnotation = assertInterfaceTypeAnnotation;
-exports.assertIntersectionTypeAnnotation = assertIntersectionTypeAnnotation;
-exports.assertMixedTypeAnnotation = assertMixedTypeAnnotation;
-exports.assertEmptyTypeAnnotation = assertEmptyTypeAnnotation;
-exports.assertNullableTypeAnnotation = assertNullableTypeAnnotation;
-exports.assertNumberLiteralTypeAnnotation = assertNumberLiteralTypeAnnotation;
-exports.assertNumberTypeAnnotation = assertNumberTypeAnnotation;
-exports.assertObjectTypeAnnotation = assertObjectTypeAnnotation;
-exports.assertObjectTypeInternalSlot = assertObjectTypeInternalSlot;
-exports.assertObjectTypeCallProperty = assertObjectTypeCallProperty;
-exports.assertObjectTypeIndexer = assertObjectTypeIndexer;
-exports.assertObjectTypeProperty = assertObjectTypeProperty;
-exports.assertObjectTypeSpreadProperty = assertObjectTypeSpreadProperty;
-exports.assertOpaqueType = assertOpaqueType;
-exports.assertQualifiedTypeIdentifier = assertQualifiedTypeIdentifier;
-exports.assertStringLiteralTypeAnnotation = assertStringLiteralTypeAnnotation;
-exports.assertStringTypeAnnotation = assertStringTypeAnnotation;
-exports.assertThisTypeAnnotation = assertThisTypeAnnotation;
-exports.assertTupleTypeAnnotation = assertTupleTypeAnnotation;
-exports.assertTypeofTypeAnnotation = assertTypeofTypeAnnotation;
-exports.assertTypeAlias = assertTypeAlias;
-exports.assertTypeAnnotation = assertTypeAnnotation;
-exports.assertTypeCastExpression = assertTypeCastExpression;
-exports.assertTypeParameter = assertTypeParameter;
-exports.assertTypeParameterDeclaration = assertTypeParameterDeclaration;
-exports.assertTypeParameterInstantiation = assertTypeParameterInstantiation;
-exports.assertUnionTypeAnnotation = assertUnionTypeAnnotation;
-exports.assertVariance = assertVariance;
-exports.assertVoidTypeAnnotation = assertVoidTypeAnnotation;
-exports.assertJSXAttribute = assertJSXAttribute;
-exports.assertJSXClosingElement = assertJSXClosingElement;
-exports.assertJSXElement = assertJSXElement;
-exports.assertJSXEmptyExpression = assertJSXEmptyExpression;
-exports.assertJSXExpressionContainer = assertJSXExpressionContainer;
-exports.assertJSXSpreadChild = assertJSXSpreadChild;
-exports.assertJSXIdentifier = assertJSXIdentifier;
-exports.assertJSXMemberExpression = assertJSXMemberExpression;
-exports.assertJSXNamespacedName = assertJSXNamespacedName;
-exports.assertJSXOpeningElement = assertJSXOpeningElement;
-exports.assertJSXSpreadAttribute = assertJSXSpreadAttribute;
-exports.assertJSXText = assertJSXText;
-exports.assertJSXFragment = assertJSXFragment;
-exports.assertJSXOpeningFragment = assertJSXOpeningFragment;
-exports.assertJSXClosingFragment = assertJSXClosingFragment;
-exports.assertNoop = assertNoop;
-exports.assertParenthesizedExpression = assertParenthesizedExpression;
-exports.assertAwaitExpression = assertAwaitExpression;
-exports.assertBindExpression = assertBindExpression;
-exports.assertClassProperty = assertClassProperty;
-exports.assertOptionalMemberExpression = assertOptionalMemberExpression;
-exports.assertOptionalCallExpression = assertOptionalCallExpression;
-exports.assertClassPrivateProperty = assertClassPrivateProperty;
-exports.assertImport = assertImport;
-exports.assertDecorator = assertDecorator;
-exports.assertDoExpression = assertDoExpression;
-exports.assertExportDefaultSpecifier = assertExportDefaultSpecifier;
-exports.assertExportNamespaceSpecifier = assertExportNamespaceSpecifier;
-exports.assertPrivateName = assertPrivateName;
-exports.assertBigIntLiteral = assertBigIntLiteral;
-exports.assertTSParameterProperty = assertTSParameterProperty;
-exports.assertTSDeclareFunction = assertTSDeclareFunction;
-exports.assertTSDeclareMethod = assertTSDeclareMethod;
-exports.assertTSQualifiedName = assertTSQualifiedName;
-exports.assertTSCallSignatureDeclaration = assertTSCallSignatureDeclaration;
-exports.assertTSConstructSignatureDeclaration = assertTSConstructSignatureDeclaration;
-exports.assertTSPropertySignature = assertTSPropertySignature;
-exports.assertTSMethodSignature = assertTSMethodSignature;
-exports.assertTSIndexSignature = assertTSIndexSignature;
-exports.assertTSAnyKeyword = assertTSAnyKeyword;
-exports.assertTSNumberKeyword = assertTSNumberKeyword;
-exports.assertTSObjectKeyword = assertTSObjectKeyword;
-exports.assertTSBooleanKeyword = assertTSBooleanKeyword;
-exports.assertTSStringKeyword = assertTSStringKeyword;
-exports.assertTSSymbolKeyword = assertTSSymbolKeyword;
-exports.assertTSVoidKeyword = assertTSVoidKeyword;
-exports.assertTSUndefinedKeyword = assertTSUndefinedKeyword;
-exports.assertTSNullKeyword = assertTSNullKeyword;
-exports.assertTSNeverKeyword = assertTSNeverKeyword;
-exports.assertTSThisType = assertTSThisType;
-exports.assertTSFunctionType = assertTSFunctionType;
-exports.assertTSConstructorType = assertTSConstructorType;
-exports.assertTSTypeReference = assertTSTypeReference;
-exports.assertTSTypePredicate = assertTSTypePredicate;
-exports.assertTSTypeQuery = assertTSTypeQuery;
-exports.assertTSTypeLiteral = assertTSTypeLiteral;
-exports.assertTSArrayType = assertTSArrayType;
-exports.assertTSTupleType = assertTSTupleType;
-exports.assertTSUnionType = assertTSUnionType;
-exports.assertTSIntersectionType = assertTSIntersectionType;
-exports.assertTSConditionalType = assertTSConditionalType;
-exports.assertTSInferType = assertTSInferType;
-exports.assertTSParenthesizedType = assertTSParenthesizedType;
-exports.assertTSTypeOperator = assertTSTypeOperator;
-exports.assertTSIndexedAccessType = assertTSIndexedAccessType;
-exports.assertTSMappedType = assertTSMappedType;
-exports.assertTSLiteralType = assertTSLiteralType;
-exports.assertTSExpressionWithTypeArguments = assertTSExpressionWithTypeArguments;
-exports.assertTSInterfaceDeclaration = assertTSInterfaceDeclaration;
-exports.assertTSInterfaceBody = assertTSInterfaceBody;
-exports.assertTSTypeAliasDeclaration = assertTSTypeAliasDeclaration;
-exports.assertTSAsExpression = assertTSAsExpression;
-exports.assertTSTypeAssertion = assertTSTypeAssertion;
-exports.assertTSEnumDeclaration = assertTSEnumDeclaration;
-exports.assertTSEnumMember = assertTSEnumMember;
-exports.assertTSModuleDeclaration = assertTSModuleDeclaration;
-exports.assertTSModuleBlock = assertTSModuleBlock;
-exports.assertTSImportEqualsDeclaration = assertTSImportEqualsDeclaration;
-exports.assertTSExternalModuleReference = assertTSExternalModuleReference;
-exports.assertTSNonNullExpression = assertTSNonNullExpression;
-exports.assertTSExportAssignment = assertTSExportAssignment;
-exports.assertTSNamespaceExportDeclaration = assertTSNamespaceExportDeclaration;
-exports.assertTSTypeAnnotation = assertTSTypeAnnotation;
-exports.assertTSTypeParameterInstantiation = assertTSTypeParameterInstantiation;
-exports.assertTSTypeParameterDeclaration = assertTSTypeParameterDeclaration;
-exports.assertTSTypeParameter = assertTSTypeParameter;
-exports.assertExpression = assertExpression;
-exports.assertBinary = assertBinary;
-exports.assertScopable = assertScopable;
-exports.assertBlockParent = assertBlockParent;
-exports.assertBlock = assertBlock;
-exports.assertStatement = assertStatement;
-exports.assertTerminatorless = assertTerminatorless;
-exports.assertCompletionStatement = assertCompletionStatement;
-exports.assertConditional = assertConditional;
-exports.assertLoop = assertLoop;
-exports.assertWhile = assertWhile;
-exports.assertExpressionWrapper = assertExpressionWrapper;
-exports.assertFor = assertFor;
-exports.assertForXStatement = assertForXStatement;
-exports.assertFunction = assertFunction;
-exports.assertFunctionParent = assertFunctionParent;
-exports.assertPureish = assertPureish;
-exports.assertDeclaration = assertDeclaration;
-exports.assertPatternLike = assertPatternLike;
-exports.assertLVal = assertLVal;
-exports.assertTSEntityName = assertTSEntityName;
-exports.assertLiteral = assertLiteral;
-exports.assertImmutable = assertImmutable;
-exports.assertUserWhitespacable = assertUserWhitespacable;
-exports.assertMethod = assertMethod;
-exports.assertObjectMember = assertObjectMember;
-exports.assertProperty = assertProperty;
-exports.assertUnaryLike = assertUnaryLike;
-exports.assertPattern = assertPattern;
-exports.assertClass = assertClass;
-exports.assertModuleDeclaration = assertModuleDeclaration;
-exports.assertExportDeclaration = assertExportDeclaration;
-exports.assertModuleSpecifier = assertModuleSpecifier;
-exports.assertFlow = assertFlow;
-exports.assertFlowType = assertFlowType;
-exports.assertFlowBaseAnnotation = assertFlowBaseAnnotation;
-exports.assertFlowDeclaration = assertFlowDeclaration;
-exports.assertFlowPredicate = assertFlowPredicate;
-exports.assertJSX = assertJSX;
-exports.assertPrivate = assertPrivate;
-exports.assertTSTypeElement = assertTSTypeElement;
-exports.assertTSType = assertTSType;
-exports.assertNumberLiteral = assertNumberLiteral;
-exports.assertRegexLiteral = assertRegexLiteral;
-exports.assertRestProperty = assertRestProperty;
-exports.assertSpreadProperty = assertSpreadProperty;
-
-var _is = _interopRequireDefault(require("../../validators/is"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function assert(type, node, opts) {
- if (!(0, _is.default)(type, node, opts)) {
- throw new Error(`Expected type "${type}" with option ${JSON.stringify(opts)}, but instead got "${node.type}".`);
- }
-}
-
-function assertArrayExpression(node, opts = {}) {
- assert("ArrayExpression", node, opts);
-}
-
-function assertAssignmentExpression(node, opts = {}) {
- assert("AssignmentExpression", node, opts);
-}
-
-function assertBinaryExpression(node, opts = {}) {
- assert("BinaryExpression", node, opts);
-}
-
-function assertInterpreterDirective(node, opts = {}) {
- assert("InterpreterDirective", node, opts);
-}
-
-function assertDirective(node, opts = {}) {
- assert("Directive", node, opts);
-}
-
-function assertDirectiveLiteral(node, opts = {}) {
- assert("DirectiveLiteral", node, opts);
-}
-
-function assertBlockStatement(node, opts = {}) {
- assert("BlockStatement", node, opts);
-}
-
-function assertBreakStatement(node, opts = {}) {
- assert("BreakStatement", node, opts);
-}
-
-function assertCallExpression(node, opts = {}) {
- assert("CallExpression", node, opts);
-}
-
-function assertCatchClause(node, opts = {}) {
- assert("CatchClause", node, opts);
-}
-
-function assertConditionalExpression(node, opts = {}) {
- assert("ConditionalExpression", node, opts);
-}
-
-function assertContinueStatement(node, opts = {}) {
- assert("ContinueStatement", node, opts);
-}
-
-function assertDebuggerStatement(node, opts = {}) {
- assert("DebuggerStatement", node, opts);
-}
-
-function assertDoWhileStatement(node, opts = {}) {
- assert("DoWhileStatement", node, opts);
-}
-
-function assertEmptyStatement(node, opts = {}) {
- assert("EmptyStatement", node, opts);
-}
-
-function assertExpressionStatement(node, opts = {}) {
- assert("ExpressionStatement", node, opts);
-}
-
-function assertFile(node, opts = {}) {
- assert("File", node, opts);
-}
-
-function assertForInStatement(node, opts = {}) {
- assert("ForInStatement", node, opts);
-}
-
-function assertForStatement(node, opts = {}) {
- assert("ForStatement", node, opts);
-}
-
-function assertFunctionDeclaration(node, opts = {}) {
- assert("FunctionDeclaration", node, opts);
-}
-
-function assertFunctionExpression(node, opts = {}) {
- assert("FunctionExpression", node, opts);
-}
-
-function assertIdentifier(node, opts = {}) {
- assert("Identifier", node, opts);
-}
-
-function assertIfStatement(node, opts = {}) {
- assert("IfStatement", node, opts);
-}
-
-function assertLabeledStatement(node, opts = {}) {
- assert("LabeledStatement", node, opts);
-}
-
-function assertStringLiteral(node, opts = {}) {
- assert("StringLiteral", node, opts);
-}
-
-function assertNumericLiteral(node, opts = {}) {
- assert("NumericLiteral", node, opts);
-}
-
-function assertNullLiteral(node, opts = {}) {
- assert("NullLiteral", node, opts);
-}
-
-function assertBooleanLiteral(node, opts = {}) {
- assert("BooleanLiteral", node, opts);
-}
-
-function assertRegExpLiteral(node, opts = {}) {
- assert("RegExpLiteral", node, opts);
-}
-
-function assertLogicalExpression(node, opts = {}) {
- assert("LogicalExpression", node, opts);
-}
-
-function assertMemberExpression(node, opts = {}) {
- assert("MemberExpression", node, opts);
-}
-
-function assertNewExpression(node, opts = {}) {
- assert("NewExpression", node, opts);
-}
-
-function assertProgram(node, opts = {}) {
- assert("Program", node, opts);
-}
-
-function assertObjectExpression(node, opts = {}) {
- assert("ObjectExpression", node, opts);
-}
-
-function assertObjectMethod(node, opts = {}) {
- assert("ObjectMethod", node, opts);
-}
-
-function assertObjectProperty(node, opts = {}) {
- assert("ObjectProperty", node, opts);
-}
-
-function assertRestElement(node, opts = {}) {
- assert("RestElement", node, opts);
-}
-
-function assertReturnStatement(node, opts = {}) {
- assert("ReturnStatement", node, opts);
-}
-
-function assertSequenceExpression(node, opts = {}) {
- assert("SequenceExpression", node, opts);
-}
-
-function assertSwitchCase(node, opts = {}) {
- assert("SwitchCase", node, opts);
-}
-
-function assertSwitchStatement(node, opts = {}) {
- assert("SwitchStatement", node, opts);
-}
-
-function assertThisExpression(node, opts = {}) {
- assert("ThisExpression", node, opts);
-}
-
-function assertThrowStatement(node, opts = {}) {
- assert("ThrowStatement", node, opts);
-}
-
-function assertTryStatement(node, opts = {}) {
- assert("TryStatement", node, opts);
-}
-
-function assertUnaryExpression(node, opts = {}) {
- assert("UnaryExpression", node, opts);
-}
-
-function assertUpdateExpression(node, opts = {}) {
- assert("UpdateExpression", node, opts);
-}
-
-function assertVariableDeclaration(node, opts = {}) {
- assert("VariableDeclaration", node, opts);
-}
-
-function assertVariableDeclarator(node, opts = {}) {
- assert("VariableDeclarator", node, opts);
-}
-
-function assertWhileStatement(node, opts = {}) {
- assert("WhileStatement", node, opts);
-}
-
-function assertWithStatement(node, opts = {}) {
- assert("WithStatement", node, opts);
-}
-
-function assertAssignmentPattern(node, opts = {}) {
- assert("AssignmentPattern", node, opts);
-}
-
-function assertArrayPattern(node, opts = {}) {
- assert("ArrayPattern", node, opts);
-}
-
-function assertArrowFunctionExpression(node, opts = {}) {
- assert("ArrowFunctionExpression", node, opts);
-}
-
-function assertClassBody(node, opts = {}) {
- assert("ClassBody", node, opts);
-}
-
-function assertClassDeclaration(node, opts = {}) {
- assert("ClassDeclaration", node, opts);
-}
-
-function assertClassExpression(node, opts = {}) {
- assert("ClassExpression", node, opts);
-}
-
-function assertExportAllDeclaration(node, opts = {}) {
- assert("ExportAllDeclaration", node, opts);
-}
-
-function assertExportDefaultDeclaration(node, opts = {}) {
- assert("ExportDefaultDeclaration", node, opts);
-}
-
-function assertExportNamedDeclaration(node, opts = {}) {
- assert("ExportNamedDeclaration", node, opts);
-}
-
-function assertExportSpecifier(node, opts = {}) {
- assert("ExportSpecifier", node, opts);
-}
-
-function assertForOfStatement(node, opts = {}) {
- assert("ForOfStatement", node, opts);
-}
-
-function assertImportDeclaration(node, opts = {}) {
- assert("ImportDeclaration", node, opts);
-}
-
-function assertImportDefaultSpecifier(node, opts = {}) {
- assert("ImportDefaultSpecifier", node, opts);
-}
-
-function assertImportNamespaceSpecifier(node, opts = {}) {
- assert("ImportNamespaceSpecifier", node, opts);
-}
-
-function assertImportSpecifier(node, opts = {}) {
- assert("ImportSpecifier", node, opts);
-}
-
-function assertMetaProperty(node, opts = {}) {
- assert("MetaProperty", node, opts);
-}
-
-function assertClassMethod(node, opts = {}) {
- assert("ClassMethod", node, opts);
-}
-
-function assertObjectPattern(node, opts = {}) {
- assert("ObjectPattern", node, opts);
-}
-
-function assertSpreadElement(node, opts = {}) {
- assert("SpreadElement", node, opts);
-}
-
-function assertSuper(node, opts = {}) {
- assert("Super", node, opts);
-}
-
-function assertTaggedTemplateExpression(node, opts = {}) {
- assert("TaggedTemplateExpression", node, opts);
-}
-
-function assertTemplateElement(node, opts = {}) {
- assert("TemplateElement", node, opts);
-}
-
-function assertTemplateLiteral(node, opts = {}) {
- assert("TemplateLiteral", node, opts);
-}
-
-function assertYieldExpression(node, opts = {}) {
- assert("YieldExpression", node, opts);
-}
-
-function assertAnyTypeAnnotation(node, opts = {}) {
- assert("AnyTypeAnnotation", node, opts);
-}
-
-function assertArrayTypeAnnotation(node, opts = {}) {
- assert("ArrayTypeAnnotation", node, opts);
-}
-
-function assertBooleanTypeAnnotation(node, opts = {}) {
- assert("BooleanTypeAnnotation", node, opts);
-}
-
-function assertBooleanLiteralTypeAnnotation(node, opts = {}) {
- assert("BooleanLiteralTypeAnnotation", node, opts);
-}
-
-function assertNullLiteralTypeAnnotation(node, opts = {}) {
- assert("NullLiteralTypeAnnotation", node, opts);
-}
-
-function assertClassImplements(node, opts = {}) {
- assert("ClassImplements", node, opts);
-}
-
-function assertDeclareClass(node, opts = {}) {
- assert("DeclareClass", node, opts);
-}
-
-function assertDeclareFunction(node, opts = {}) {
- assert("DeclareFunction", node, opts);
-}
-
-function assertDeclareInterface(node, opts = {}) {
- assert("DeclareInterface", node, opts);
-}
-
-function assertDeclareModule(node, opts = {}) {
- assert("DeclareModule", node, opts);
-}
-
-function assertDeclareModuleExports(node, opts = {}) {
- assert("DeclareModuleExports", node, opts);
-}
-
-function assertDeclareTypeAlias(node, opts = {}) {
- assert("DeclareTypeAlias", node, opts);
-}
-
-function assertDeclareOpaqueType(node, opts = {}) {
- assert("DeclareOpaqueType", node, opts);
-}
-
-function assertDeclareVariable(node, opts = {}) {
- assert("DeclareVariable", node, opts);
-}
-
-function assertDeclareExportDeclaration(node, opts = {}) {
- assert("DeclareExportDeclaration", node, opts);
-}
-
-function assertDeclareExportAllDeclaration(node, opts = {}) {
- assert("DeclareExportAllDeclaration", node, opts);
-}
-
-function assertDeclaredPredicate(node, opts = {}) {
- assert("DeclaredPredicate", node, opts);
-}
-
-function assertExistsTypeAnnotation(node, opts = {}) {
- assert("ExistsTypeAnnotation", node, opts);
-}
-
-function assertFunctionTypeAnnotation(node, opts = {}) {
- assert("FunctionTypeAnnotation", node, opts);
-}
-
-function assertFunctionTypeParam(node, opts = {}) {
- assert("FunctionTypeParam", node, opts);
-}
-
-function assertGenericTypeAnnotation(node, opts = {}) {
- assert("GenericTypeAnnotation", node, opts);
-}
-
-function assertInferredPredicate(node, opts = {}) {
- assert("InferredPredicate", node, opts);
-}
-
-function assertInterfaceExtends(node, opts = {}) {
- assert("InterfaceExtends", node, opts);
-}
-
-function assertInterfaceDeclaration(node, opts = {}) {
- assert("InterfaceDeclaration", node, opts);
-}
-
-function assertInterfaceTypeAnnotation(node, opts = {}) {
- assert("InterfaceTypeAnnotation", node, opts);
-}
-
-function assertIntersectionTypeAnnotation(node, opts = {}) {
- assert("IntersectionTypeAnnotation", node, opts);
-}
-
-function assertMixedTypeAnnotation(node, opts = {}) {
- assert("MixedTypeAnnotation", node, opts);
-}
-
-function assertEmptyTypeAnnotation(node, opts = {}) {
- assert("EmptyTypeAnnotation", node, opts);
-}
-
-function assertNullableTypeAnnotation(node, opts = {}) {
- assert("NullableTypeAnnotation", node, opts);
-}
-
-function assertNumberLiteralTypeAnnotation(node, opts = {}) {
- assert("NumberLiteralTypeAnnotation", node, opts);
-}
-
-function assertNumberTypeAnnotation(node, opts = {}) {
- assert("NumberTypeAnnotation", node, opts);
-}
-
-function assertObjectTypeAnnotation(node, opts = {}) {
- assert("ObjectTypeAnnotation", node, opts);
-}
-
-function assertObjectTypeInternalSlot(node, opts = {}) {
- assert("ObjectTypeInternalSlot", node, opts);
-}
-
-function assertObjectTypeCallProperty(node, opts = {}) {
- assert("ObjectTypeCallProperty", node, opts);
-}
-
-function assertObjectTypeIndexer(node, opts = {}) {
- assert("ObjectTypeIndexer", node, opts);
-}
-
-function assertObjectTypeProperty(node, opts = {}) {
- assert("ObjectTypeProperty", node, opts);
-}
-
-function assertObjectTypeSpreadProperty(node, opts = {}) {
- assert("ObjectTypeSpreadProperty", node, opts);
-}
-
-function assertOpaqueType(node, opts = {}) {
- assert("OpaqueType", node, opts);
-}
-
-function assertQualifiedTypeIdentifier(node, opts = {}) {
- assert("QualifiedTypeIdentifier", node, opts);
-}
-
-function assertStringLiteralTypeAnnotation(node, opts = {}) {
- assert("StringLiteralTypeAnnotation", node, opts);
-}
-
-function assertStringTypeAnnotation(node, opts = {}) {
- assert("StringTypeAnnotation", node, opts);
-}
-
-function assertThisTypeAnnotation(node, opts = {}) {
- assert("ThisTypeAnnotation", node, opts);
-}
-
-function assertTupleTypeAnnotation(node, opts = {}) {
- assert("TupleTypeAnnotation", node, opts);
-}
-
-function assertTypeofTypeAnnotation(node, opts = {}) {
- assert("TypeofTypeAnnotation", node, opts);
-}
-
-function assertTypeAlias(node, opts = {}) {
- assert("TypeAlias", node, opts);
-}
-
-function assertTypeAnnotation(node, opts = {}) {
- assert("TypeAnnotation", node, opts);
-}
-
-function assertTypeCastExpression(node, opts = {}) {
- assert("TypeCastExpression", node, opts);
-}
-
-function assertTypeParameter(node, opts = {}) {
- assert("TypeParameter", node, opts);
-}
-
-function assertTypeParameterDeclaration(node, opts = {}) {
- assert("TypeParameterDeclaration", node, opts);
-}
-
-function assertTypeParameterInstantiation(node, opts = {}) {
- assert("TypeParameterInstantiation", node, opts);
-}
-
-function assertUnionTypeAnnotation(node, opts = {}) {
- assert("UnionTypeAnnotation", node, opts);
-}
-
-function assertVariance(node, opts = {}) {
- assert("Variance", node, opts);
-}
-
-function assertVoidTypeAnnotation(node, opts = {}) {
- assert("VoidTypeAnnotation", node, opts);
-}
-
-function assertJSXAttribute(node, opts = {}) {
- assert("JSXAttribute", node, opts);
-}
-
-function assertJSXClosingElement(node, opts = {}) {
- assert("JSXClosingElement", node, opts);
-}
-
-function assertJSXElement(node, opts = {}) {
- assert("JSXElement", node, opts);
-}
-
-function assertJSXEmptyExpression(node, opts = {}) {
- assert("JSXEmptyExpression", node, opts);
-}
-
-function assertJSXExpressionContainer(node, opts = {}) {
- assert("JSXExpressionContainer", node, opts);
-}
-
-function assertJSXSpreadChild(node, opts = {}) {
- assert("JSXSpreadChild", node, opts);
-}
-
-function assertJSXIdentifier(node, opts = {}) {
- assert("JSXIdentifier", node, opts);
-}
-
-function assertJSXMemberExpression(node, opts = {}) {
- assert("JSXMemberExpression", node, opts);
-}
-
-function assertJSXNamespacedName(node, opts = {}) {
- assert("JSXNamespacedName", node, opts);
-}
-
-function assertJSXOpeningElement(node, opts = {}) {
- assert("JSXOpeningElement", node, opts);
-}
-
-function assertJSXSpreadAttribute(node, opts = {}) {
- assert("JSXSpreadAttribute", node, opts);
-}
-
-function assertJSXText(node, opts = {}) {
- assert("JSXText", node, opts);
-}
-
-function assertJSXFragment(node, opts = {}) {
- assert("JSXFragment", node, opts);
-}
-
-function assertJSXOpeningFragment(node, opts = {}) {
- assert("JSXOpeningFragment", node, opts);
-}
-
-function assertJSXClosingFragment(node, opts = {}) {
- assert("JSXClosingFragment", node, opts);
-}
-
-function assertNoop(node, opts = {}) {
- assert("Noop", node, opts);
-}
-
-function assertParenthesizedExpression(node, opts = {}) {
- assert("ParenthesizedExpression", node, opts);
-}
-
-function assertAwaitExpression(node, opts = {}) {
- assert("AwaitExpression", node, opts);
-}
-
-function assertBindExpression(node, opts = {}) {
- assert("BindExpression", node, opts);
-}
-
-function assertClassProperty(node, opts = {}) {
- assert("ClassProperty", node, opts);
-}
-
-function assertOptionalMemberExpression(node, opts = {}) {
- assert("OptionalMemberExpression", node, opts);
-}
-
-function assertOptionalCallExpression(node, opts = {}) {
- assert("OptionalCallExpression", node, opts);
-}
-
-function assertClassPrivateProperty(node, opts = {}) {
- assert("ClassPrivateProperty", node, opts);
-}
-
-function assertImport(node, opts = {}) {
- assert("Import", node, opts);
-}
-
-function assertDecorator(node, opts = {}) {
- assert("Decorator", node, opts);
-}
-
-function assertDoExpression(node, opts = {}) {
- assert("DoExpression", node, opts);
-}
-
-function assertExportDefaultSpecifier(node, opts = {}) {
- assert("ExportDefaultSpecifier", node, opts);
-}
-
-function assertExportNamespaceSpecifier(node, opts = {}) {
- assert("ExportNamespaceSpecifier", node, opts);
-}
-
-function assertPrivateName(node, opts = {}) {
- assert("PrivateName", node, opts);
-}
-
-function assertBigIntLiteral(node, opts = {}) {
- assert("BigIntLiteral", node, opts);
-}
-
-function assertTSParameterProperty(node, opts = {}) {
- assert("TSParameterProperty", node, opts);
-}
-
-function assertTSDeclareFunction(node, opts = {}) {
- assert("TSDeclareFunction", node, opts);
-}
-
-function assertTSDeclareMethod(node, opts = {}) {
- assert("TSDeclareMethod", node, opts);
-}
-
-function assertTSQualifiedName(node, opts = {}) {
- assert("TSQualifiedName", node, opts);
-}
-
-function assertTSCallSignatureDeclaration(node, opts = {}) {
- assert("TSCallSignatureDeclaration", node, opts);
-}
-
-function assertTSConstructSignatureDeclaration(node, opts = {}) {
- assert("TSConstructSignatureDeclaration", node, opts);
-}
-
-function assertTSPropertySignature(node, opts = {}) {
- assert("TSPropertySignature", node, opts);
-}
-
-function assertTSMethodSignature(node, opts = {}) {
- assert("TSMethodSignature", node, opts);
-}
-
-function assertTSIndexSignature(node, opts = {}) {
- assert("TSIndexSignature", node, opts);
-}
-
-function assertTSAnyKeyword(node, opts = {}) {
- assert("TSAnyKeyword", node, opts);
-}
-
-function assertTSNumberKeyword(node, opts = {}) {
- assert("TSNumberKeyword", node, opts);
-}
-
-function assertTSObjectKeyword(node, opts = {}) {
- assert("TSObjectKeyword", node, opts);
-}
-
-function assertTSBooleanKeyword(node, opts = {}) {
- assert("TSBooleanKeyword", node, opts);
-}
-
-function assertTSStringKeyword(node, opts = {}) {
- assert("TSStringKeyword", node, opts);
-}
-
-function assertTSSymbolKeyword(node, opts = {}) {
- assert("TSSymbolKeyword", node, opts);
-}
-
-function assertTSVoidKeyword(node, opts = {}) {
- assert("TSVoidKeyword", node, opts);
-}
-
-function assertTSUndefinedKeyword(node, opts = {}) {
- assert("TSUndefinedKeyword", node, opts);
-}
-
-function assertTSNullKeyword(node, opts = {}) {
- assert("TSNullKeyword", node, opts);
-}
-
-function assertTSNeverKeyword(node, opts = {}) {
- assert("TSNeverKeyword", node, opts);
-}
-
-function assertTSThisType(node, opts = {}) {
- assert("TSThisType", node, opts);
-}
-
-function assertTSFunctionType(node, opts = {}) {
- assert("TSFunctionType", node, opts);
-}
-
-function assertTSConstructorType(node, opts = {}) {
- assert("TSConstructorType", node, opts);
-}
-
-function assertTSTypeReference(node, opts = {}) {
- assert("TSTypeReference", node, opts);
-}
-
-function assertTSTypePredicate(node, opts = {}) {
- assert("TSTypePredicate", node, opts);
-}
-
-function assertTSTypeQuery(node, opts = {}) {
- assert("TSTypeQuery", node, opts);
-}
-
-function assertTSTypeLiteral(node, opts = {}) {
- assert("TSTypeLiteral", node, opts);
-}
-
-function assertTSArrayType(node, opts = {}) {
- assert("TSArrayType", node, opts);
-}
-
-function assertTSTupleType(node, opts = {}) {
- assert("TSTupleType", node, opts);
-}
-
-function assertTSUnionType(node, opts = {}) {
- assert("TSUnionType", node, opts);
-}
-
-function assertTSIntersectionType(node, opts = {}) {
- assert("TSIntersectionType", node, opts);
-}
-
-function assertTSConditionalType(node, opts = {}) {
- assert("TSConditionalType", node, opts);
-}
-
-function assertTSInferType(node, opts = {}) {
- assert("TSInferType", node, opts);
-}
-
-function assertTSParenthesizedType(node, opts = {}) {
- assert("TSParenthesizedType", node, opts);
-}
-
-function assertTSTypeOperator(node, opts = {}) {
- assert("TSTypeOperator", node, opts);
-}
-
-function assertTSIndexedAccessType(node, opts = {}) {
- assert("TSIndexedAccessType", node, opts);
-}
-
-function assertTSMappedType(node, opts = {}) {
- assert("TSMappedType", node, opts);
-}
-
-function assertTSLiteralType(node, opts = {}) {
- assert("TSLiteralType", node, opts);
-}
-
-function assertTSExpressionWithTypeArguments(node, opts = {}) {
- assert("TSExpressionWithTypeArguments", node, opts);
-}
-
-function assertTSInterfaceDeclaration(node, opts = {}) {
- assert("TSInterfaceDeclaration", node, opts);
-}
-
-function assertTSInterfaceBody(node, opts = {}) {
- assert("TSInterfaceBody", node, opts);
-}
-
-function assertTSTypeAliasDeclaration(node, opts = {}) {
- assert("TSTypeAliasDeclaration", node, opts);
-}
-
-function assertTSAsExpression(node, opts = {}) {
- assert("TSAsExpression", node, opts);
-}
-
-function assertTSTypeAssertion(node, opts = {}) {
- assert("TSTypeAssertion", node, opts);
-}
-
-function assertTSEnumDeclaration(node, opts = {}) {
- assert("TSEnumDeclaration", node, opts);
-}
-
-function assertTSEnumMember(node, opts = {}) {
- assert("TSEnumMember", node, opts);
-}
-
-function assertTSModuleDeclaration(node, opts = {}) {
- assert("TSModuleDeclaration", node, opts);
-}
-
-function assertTSModuleBlock(node, opts = {}) {
- assert("TSModuleBlock", node, opts);
-}
-
-function assertTSImportEqualsDeclaration(node, opts = {}) {
- assert("TSImportEqualsDeclaration", node, opts);
-}
-
-function assertTSExternalModuleReference(node, opts = {}) {
- assert("TSExternalModuleReference", node, opts);
-}
-
-function assertTSNonNullExpression(node, opts = {}) {
- assert("TSNonNullExpression", node, opts);
-}
-
-function assertTSExportAssignment(node, opts = {}) {
- assert("TSExportAssignment", node, opts);
-}
-
-function assertTSNamespaceExportDeclaration(node, opts = {}) {
- assert("TSNamespaceExportDeclaration", node, opts);
-}
-
-function assertTSTypeAnnotation(node, opts = {}) {
- assert("TSTypeAnnotation", node, opts);
-}
-
-function assertTSTypeParameterInstantiation(node, opts = {}) {
- assert("TSTypeParameterInstantiation", node, opts);
-}
-
-function assertTSTypeParameterDeclaration(node, opts = {}) {
- assert("TSTypeParameterDeclaration", node, opts);
-}
-
-function assertTSTypeParameter(node, opts = {}) {
- assert("TSTypeParameter", node, opts);
-}
-
-function assertExpression(node, opts = {}) {
- assert("Expression", node, opts);
-}
-
-function assertBinary(node, opts = {}) {
- assert("Binary", node, opts);
-}
-
-function assertScopable(node, opts = {}) {
- assert("Scopable", node, opts);
-}
-
-function assertBlockParent(node, opts = {}) {
- assert("BlockParent", node, opts);
-}
-
-function assertBlock(node, opts = {}) {
- assert("Block", node, opts);
-}
-
-function assertStatement(node, opts = {}) {
- assert("Statement", node, opts);
-}
-
-function assertTerminatorless(node, opts = {}) {
- assert("Terminatorless", node, opts);
-}
-
-function assertCompletionStatement(node, opts = {}) {
- assert("CompletionStatement", node, opts);
-}
-
-function assertConditional(node, opts = {}) {
- assert("Conditional", node, opts);
-}
-
-function assertLoop(node, opts = {}) {
- assert("Loop", node, opts);
-}
-
-function assertWhile(node, opts = {}) {
- assert("While", node, opts);
-}
-
-function assertExpressionWrapper(node, opts = {}) {
- assert("ExpressionWrapper", node, opts);
-}
-
-function assertFor(node, opts = {}) {
- assert("For", node, opts);
-}
-
-function assertForXStatement(node, opts = {}) {
- assert("ForXStatement", node, opts);
-}
-
-function assertFunction(node, opts = {}) {
- assert("Function", node, opts);
-}
-
-function assertFunctionParent(node, opts = {}) {
- assert("FunctionParent", node, opts);
-}
-
-function assertPureish(node, opts = {}) {
- assert("Pureish", node, opts);
-}
-
-function assertDeclaration(node, opts = {}) {
- assert("Declaration", node, opts);
-}
-
-function assertPatternLike(node, opts = {}) {
- assert("PatternLike", node, opts);
-}
-
-function assertLVal(node, opts = {}) {
- assert("LVal", node, opts);
-}
-
-function assertTSEntityName(node, opts = {}) {
- assert("TSEntityName", node, opts);
-}
-
-function assertLiteral(node, opts = {}) {
- assert("Literal", node, opts);
-}
-
-function assertImmutable(node, opts = {}) {
- assert("Immutable", node, opts);
-}
-
-function assertUserWhitespacable(node, opts = {}) {
- assert("UserWhitespacable", node, opts);
-}
-
-function assertMethod(node, opts = {}) {
- assert("Method", node, opts);
-}
-
-function assertObjectMember(node, opts = {}) {
- assert("ObjectMember", node, opts);
-}
-
-function assertProperty(node, opts = {}) {
- assert("Property", node, opts);
-}
-
-function assertUnaryLike(node, opts = {}) {
- assert("UnaryLike", node, opts);
-}
-
-function assertPattern(node, opts = {}) {
- assert("Pattern", node, opts);
-}
-
-function assertClass(node, opts = {}) {
- assert("Class", node, opts);
-}
-
-function assertModuleDeclaration(node, opts = {}) {
- assert("ModuleDeclaration", node, opts);
-}
-
-function assertExportDeclaration(node, opts = {}) {
- assert("ExportDeclaration", node, opts);
-}
-
-function assertModuleSpecifier(node, opts = {}) {
- assert("ModuleSpecifier", node, opts);
-}
-
-function assertFlow(node, opts = {}) {
- assert("Flow", node, opts);
-}
-
-function assertFlowType(node, opts = {}) {
- assert("FlowType", node, opts);
-}
-
-function assertFlowBaseAnnotation(node, opts = {}) {
- assert("FlowBaseAnnotation", node, opts);
-}
-
-function assertFlowDeclaration(node, opts = {}) {
- assert("FlowDeclaration", node, opts);
-}
-
-function assertFlowPredicate(node, opts = {}) {
- assert("FlowPredicate", node, opts);
-}
-
-function assertJSX(node, opts = {}) {
- assert("JSX", node, opts);
-}
-
-function assertPrivate(node, opts = {}) {
- assert("Private", node, opts);
-}
-
-function assertTSTypeElement(node, opts = {}) {
- assert("TSTypeElement", node, opts);
-}
-
-function assertTSType(node, opts = {}) {
- assert("TSType", node, opts);
-}
-
-function assertNumberLiteral(node, opts) {
- console.trace("The node type NumberLiteral has been renamed to NumericLiteral");
- assert("NumberLiteral", node, opts);
-}
-
-function assertRegexLiteral(node, opts) {
- console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
- assert("RegexLiteral", node, opts);
-}
-
-function assertRestProperty(node, opts) {
- console.trace("The node type RestProperty has been renamed to RestElement");
- assert("RestProperty", node, opts);
-}
-
-function assertSpreadProperty(node, opts) {
- console.trace("The node type SpreadProperty has been renamed to SpreadElement");
- assert("SpreadProperty", node, opts);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/builders/builder.js b/AuthenticationSDK/node_modules/@babel/types/lib/builders/builder.js
deleted file mode 100644
index 50d1b2a9..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/builders/builder.js
+++ /dev/null
@@ -1,50 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = builder;
-
-function _clone() {
- const data = _interopRequireDefault(require("lodash/clone"));
-
- _clone = function () {
- return data;
- };
-
- return data;
-}
-
-var _definitions = require("../definitions");
-
-var _validate = _interopRequireDefault(require("../validators/validate"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function builder(type, ...args) {
- const keys = _definitions.BUILDER_KEYS[type];
- const countArgs = args.length;
-
- if (countArgs > keys.length) {
- throw new Error(`${type}: Too many arguments passed. Received ${countArgs} but can receive no more than ${keys.length}`);
- }
-
- const node = {
- type
- };
- let i = 0;
- keys.forEach(key => {
- const field = _definitions.NODE_FIELDS[type][key];
- let arg;
- if (i < countArgs) arg = args[i];
- if (arg === undefined) arg = (0, _clone().default)(field.default);
- node[key] = arg;
- i++;
- });
-
- for (const key in node) {
- (0, _validate.default)(node, key, node[key]);
- }
-
- return node;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js b/AuthenticationSDK/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js
deleted file mode 100644
index 4724335f..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js
+++ /dev/null
@@ -1,28 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = createTypeAnnotationBasedOnTypeof;
-
-var _generated = require("../generated");
-
-function createTypeAnnotationBasedOnTypeof(type) {
- if (type === "string") {
- return (0, _generated.stringTypeAnnotation)();
- } else if (type === "number") {
- return (0, _generated.numberTypeAnnotation)();
- } else if (type === "undefined") {
- return (0, _generated.voidTypeAnnotation)();
- } else if (type === "boolean") {
- return (0, _generated.booleanTypeAnnotation)();
- } else if (type === "function") {
- return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Function"));
- } else if (type === "object") {
- return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Object"));
- } else if (type === "symbol") {
- return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Symbol"));
- } else {
- throw new Error("Invalid typeof value");
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/builders/flow/createUnionTypeAnnotation.js b/AuthenticationSDK/node_modules/@babel/types/lib/builders/flow/createUnionTypeAnnotation.js
deleted file mode 100644
index df76b010..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/builders/flow/createUnionTypeAnnotation.js
+++ /dev/null
@@ -1,22 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = createUnionTypeAnnotation;
-
-var _generated = require("../generated");
-
-var _removeTypeDuplicates = _interopRequireDefault(require("../../modifications/flow/removeTypeDuplicates"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function createUnionTypeAnnotation(types) {
- const flattened = (0, _removeTypeDuplicates.default)(types);
-
- if (flattened.length === 1) {
- return flattened[0];
- } else {
- return (0, _generated.unionTypeAnnotation)(flattened);
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/builders/generated/index.js b/AuthenticationSDK/node_modules/@babel/types/lib/builders/generated/index.js
deleted file mode 100644
index e3d875b9..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/builders/generated/index.js
+++ /dev/null
@@ -1,1098 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.arrayExpression = exports.ArrayExpression = ArrayExpression;
-exports.assignmentExpression = exports.AssignmentExpression = AssignmentExpression;
-exports.binaryExpression = exports.BinaryExpression = BinaryExpression;
-exports.interpreterDirective = exports.InterpreterDirective = InterpreterDirective;
-exports.directive = exports.Directive = Directive;
-exports.directiveLiteral = exports.DirectiveLiteral = DirectiveLiteral;
-exports.blockStatement = exports.BlockStatement = BlockStatement;
-exports.breakStatement = exports.BreakStatement = BreakStatement;
-exports.callExpression = exports.CallExpression = CallExpression;
-exports.catchClause = exports.CatchClause = CatchClause;
-exports.conditionalExpression = exports.ConditionalExpression = ConditionalExpression;
-exports.continueStatement = exports.ContinueStatement = ContinueStatement;
-exports.debuggerStatement = exports.DebuggerStatement = DebuggerStatement;
-exports.doWhileStatement = exports.DoWhileStatement = DoWhileStatement;
-exports.emptyStatement = exports.EmptyStatement = EmptyStatement;
-exports.expressionStatement = exports.ExpressionStatement = ExpressionStatement;
-exports.file = exports.File = File;
-exports.forInStatement = exports.ForInStatement = ForInStatement;
-exports.forStatement = exports.ForStatement = ForStatement;
-exports.functionDeclaration = exports.FunctionDeclaration = FunctionDeclaration;
-exports.functionExpression = exports.FunctionExpression = FunctionExpression;
-exports.identifier = exports.Identifier = Identifier;
-exports.ifStatement = exports.IfStatement = IfStatement;
-exports.labeledStatement = exports.LabeledStatement = LabeledStatement;
-exports.stringLiteral = exports.StringLiteral = StringLiteral;
-exports.numericLiteral = exports.NumericLiteral = NumericLiteral;
-exports.nullLiteral = exports.NullLiteral = NullLiteral;
-exports.booleanLiteral = exports.BooleanLiteral = BooleanLiteral;
-exports.regExpLiteral = exports.RegExpLiteral = RegExpLiteral;
-exports.logicalExpression = exports.LogicalExpression = LogicalExpression;
-exports.memberExpression = exports.MemberExpression = MemberExpression;
-exports.newExpression = exports.NewExpression = NewExpression;
-exports.program = exports.Program = Program;
-exports.objectExpression = exports.ObjectExpression = ObjectExpression;
-exports.objectMethod = exports.ObjectMethod = ObjectMethod;
-exports.objectProperty = exports.ObjectProperty = ObjectProperty;
-exports.restElement = exports.RestElement = RestElement;
-exports.returnStatement = exports.ReturnStatement = ReturnStatement;
-exports.sequenceExpression = exports.SequenceExpression = SequenceExpression;
-exports.switchCase = exports.SwitchCase = SwitchCase;
-exports.switchStatement = exports.SwitchStatement = SwitchStatement;
-exports.thisExpression = exports.ThisExpression = ThisExpression;
-exports.throwStatement = exports.ThrowStatement = ThrowStatement;
-exports.tryStatement = exports.TryStatement = TryStatement;
-exports.unaryExpression = exports.UnaryExpression = UnaryExpression;
-exports.updateExpression = exports.UpdateExpression = UpdateExpression;
-exports.variableDeclaration = exports.VariableDeclaration = VariableDeclaration;
-exports.variableDeclarator = exports.VariableDeclarator = VariableDeclarator;
-exports.whileStatement = exports.WhileStatement = WhileStatement;
-exports.withStatement = exports.WithStatement = WithStatement;
-exports.assignmentPattern = exports.AssignmentPattern = AssignmentPattern;
-exports.arrayPattern = exports.ArrayPattern = ArrayPattern;
-exports.arrowFunctionExpression = exports.ArrowFunctionExpression = ArrowFunctionExpression;
-exports.classBody = exports.ClassBody = ClassBody;
-exports.classDeclaration = exports.ClassDeclaration = ClassDeclaration;
-exports.classExpression = exports.ClassExpression = ClassExpression;
-exports.exportAllDeclaration = exports.ExportAllDeclaration = ExportAllDeclaration;
-exports.exportDefaultDeclaration = exports.ExportDefaultDeclaration = ExportDefaultDeclaration;
-exports.exportNamedDeclaration = exports.ExportNamedDeclaration = ExportNamedDeclaration;
-exports.exportSpecifier = exports.ExportSpecifier = ExportSpecifier;
-exports.forOfStatement = exports.ForOfStatement = ForOfStatement;
-exports.importDeclaration = exports.ImportDeclaration = ImportDeclaration;
-exports.importDefaultSpecifier = exports.ImportDefaultSpecifier = ImportDefaultSpecifier;
-exports.importNamespaceSpecifier = exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
-exports.importSpecifier = exports.ImportSpecifier = ImportSpecifier;
-exports.metaProperty = exports.MetaProperty = MetaProperty;
-exports.classMethod = exports.ClassMethod = ClassMethod;
-exports.objectPattern = exports.ObjectPattern = ObjectPattern;
-exports.spreadElement = exports.SpreadElement = SpreadElement;
-exports.super = exports.Super = Super;
-exports.taggedTemplateExpression = exports.TaggedTemplateExpression = TaggedTemplateExpression;
-exports.templateElement = exports.TemplateElement = TemplateElement;
-exports.templateLiteral = exports.TemplateLiteral = TemplateLiteral;
-exports.yieldExpression = exports.YieldExpression = YieldExpression;
-exports.anyTypeAnnotation = exports.AnyTypeAnnotation = AnyTypeAnnotation;
-exports.arrayTypeAnnotation = exports.ArrayTypeAnnotation = ArrayTypeAnnotation;
-exports.booleanTypeAnnotation = exports.BooleanTypeAnnotation = BooleanTypeAnnotation;
-exports.booleanLiteralTypeAnnotation = exports.BooleanLiteralTypeAnnotation = BooleanLiteralTypeAnnotation;
-exports.nullLiteralTypeAnnotation = exports.NullLiteralTypeAnnotation = NullLiteralTypeAnnotation;
-exports.classImplements = exports.ClassImplements = ClassImplements;
-exports.declareClass = exports.DeclareClass = DeclareClass;
-exports.declareFunction = exports.DeclareFunction = DeclareFunction;
-exports.declareInterface = exports.DeclareInterface = DeclareInterface;
-exports.declareModule = exports.DeclareModule = DeclareModule;
-exports.declareModuleExports = exports.DeclareModuleExports = DeclareModuleExports;
-exports.declareTypeAlias = exports.DeclareTypeAlias = DeclareTypeAlias;
-exports.declareOpaqueType = exports.DeclareOpaqueType = DeclareOpaqueType;
-exports.declareVariable = exports.DeclareVariable = DeclareVariable;
-exports.declareExportDeclaration = exports.DeclareExportDeclaration = DeclareExportDeclaration;
-exports.declareExportAllDeclaration = exports.DeclareExportAllDeclaration = DeclareExportAllDeclaration;
-exports.declaredPredicate = exports.DeclaredPredicate = DeclaredPredicate;
-exports.existsTypeAnnotation = exports.ExistsTypeAnnotation = ExistsTypeAnnotation;
-exports.functionTypeAnnotation = exports.FunctionTypeAnnotation = FunctionTypeAnnotation;
-exports.functionTypeParam = exports.FunctionTypeParam = FunctionTypeParam;
-exports.genericTypeAnnotation = exports.GenericTypeAnnotation = GenericTypeAnnotation;
-exports.inferredPredicate = exports.InferredPredicate = InferredPredicate;
-exports.interfaceExtends = exports.InterfaceExtends = InterfaceExtends;
-exports.interfaceDeclaration = exports.InterfaceDeclaration = InterfaceDeclaration;
-exports.interfaceTypeAnnotation = exports.InterfaceTypeAnnotation = InterfaceTypeAnnotation;
-exports.intersectionTypeAnnotation = exports.IntersectionTypeAnnotation = IntersectionTypeAnnotation;
-exports.mixedTypeAnnotation = exports.MixedTypeAnnotation = MixedTypeAnnotation;
-exports.emptyTypeAnnotation = exports.EmptyTypeAnnotation = EmptyTypeAnnotation;
-exports.nullableTypeAnnotation = exports.NullableTypeAnnotation = NullableTypeAnnotation;
-exports.numberLiteralTypeAnnotation = exports.NumberLiteralTypeAnnotation = NumberLiteralTypeAnnotation;
-exports.numberTypeAnnotation = exports.NumberTypeAnnotation = NumberTypeAnnotation;
-exports.objectTypeAnnotation = exports.ObjectTypeAnnotation = ObjectTypeAnnotation;
-exports.objectTypeInternalSlot = exports.ObjectTypeInternalSlot = ObjectTypeInternalSlot;
-exports.objectTypeCallProperty = exports.ObjectTypeCallProperty = ObjectTypeCallProperty;
-exports.objectTypeIndexer = exports.ObjectTypeIndexer = ObjectTypeIndexer;
-exports.objectTypeProperty = exports.ObjectTypeProperty = ObjectTypeProperty;
-exports.objectTypeSpreadProperty = exports.ObjectTypeSpreadProperty = ObjectTypeSpreadProperty;
-exports.opaqueType = exports.OpaqueType = OpaqueType;
-exports.qualifiedTypeIdentifier = exports.QualifiedTypeIdentifier = QualifiedTypeIdentifier;
-exports.stringLiteralTypeAnnotation = exports.StringLiteralTypeAnnotation = StringLiteralTypeAnnotation;
-exports.stringTypeAnnotation = exports.StringTypeAnnotation = StringTypeAnnotation;
-exports.thisTypeAnnotation = exports.ThisTypeAnnotation = ThisTypeAnnotation;
-exports.tupleTypeAnnotation = exports.TupleTypeAnnotation = TupleTypeAnnotation;
-exports.typeofTypeAnnotation = exports.TypeofTypeAnnotation = TypeofTypeAnnotation;
-exports.typeAlias = exports.TypeAlias = TypeAlias;
-exports.typeAnnotation = exports.TypeAnnotation = TypeAnnotation;
-exports.typeCastExpression = exports.TypeCastExpression = TypeCastExpression;
-exports.typeParameter = exports.TypeParameter = TypeParameter;
-exports.typeParameterDeclaration = exports.TypeParameterDeclaration = TypeParameterDeclaration;
-exports.typeParameterInstantiation = exports.TypeParameterInstantiation = TypeParameterInstantiation;
-exports.unionTypeAnnotation = exports.UnionTypeAnnotation = UnionTypeAnnotation;
-exports.variance = exports.Variance = Variance;
-exports.voidTypeAnnotation = exports.VoidTypeAnnotation = VoidTypeAnnotation;
-exports.jSXAttribute = exports.jsxAttribute = exports.JSXAttribute = JSXAttribute;
-exports.jSXClosingElement = exports.jsxClosingElement = exports.JSXClosingElement = JSXClosingElement;
-exports.jSXElement = exports.jsxElement = exports.JSXElement = JSXElement;
-exports.jSXEmptyExpression = exports.jsxEmptyExpression = exports.JSXEmptyExpression = JSXEmptyExpression;
-exports.jSXExpressionContainer = exports.jsxExpressionContainer = exports.JSXExpressionContainer = JSXExpressionContainer;
-exports.jSXSpreadChild = exports.jsxSpreadChild = exports.JSXSpreadChild = JSXSpreadChild;
-exports.jSXIdentifier = exports.jsxIdentifier = exports.JSXIdentifier = JSXIdentifier;
-exports.jSXMemberExpression = exports.jsxMemberExpression = exports.JSXMemberExpression = JSXMemberExpression;
-exports.jSXNamespacedName = exports.jsxNamespacedName = exports.JSXNamespacedName = JSXNamespacedName;
-exports.jSXOpeningElement = exports.jsxOpeningElement = exports.JSXOpeningElement = JSXOpeningElement;
-exports.jSXSpreadAttribute = exports.jsxSpreadAttribute = exports.JSXSpreadAttribute = JSXSpreadAttribute;
-exports.jSXText = exports.jsxText = exports.JSXText = JSXText;
-exports.jSXFragment = exports.jsxFragment = exports.JSXFragment = JSXFragment;
-exports.jSXOpeningFragment = exports.jsxOpeningFragment = exports.JSXOpeningFragment = JSXOpeningFragment;
-exports.jSXClosingFragment = exports.jsxClosingFragment = exports.JSXClosingFragment = JSXClosingFragment;
-exports.noop = exports.Noop = Noop;
-exports.parenthesizedExpression = exports.ParenthesizedExpression = ParenthesizedExpression;
-exports.awaitExpression = exports.AwaitExpression = AwaitExpression;
-exports.bindExpression = exports.BindExpression = BindExpression;
-exports.classProperty = exports.ClassProperty = ClassProperty;
-exports.optionalMemberExpression = exports.OptionalMemberExpression = OptionalMemberExpression;
-exports.optionalCallExpression = exports.OptionalCallExpression = OptionalCallExpression;
-exports.classPrivateProperty = exports.ClassPrivateProperty = ClassPrivateProperty;
-exports.import = exports.Import = Import;
-exports.decorator = exports.Decorator = Decorator;
-exports.doExpression = exports.DoExpression = DoExpression;
-exports.exportDefaultSpecifier = exports.ExportDefaultSpecifier = ExportDefaultSpecifier;
-exports.exportNamespaceSpecifier = exports.ExportNamespaceSpecifier = ExportNamespaceSpecifier;
-exports.privateName = exports.PrivateName = PrivateName;
-exports.bigIntLiteral = exports.BigIntLiteral = BigIntLiteral;
-exports.tSParameterProperty = exports.tsParameterProperty = exports.TSParameterProperty = TSParameterProperty;
-exports.tSDeclareFunction = exports.tsDeclareFunction = exports.TSDeclareFunction = TSDeclareFunction;
-exports.tSDeclareMethod = exports.tsDeclareMethod = exports.TSDeclareMethod = TSDeclareMethod;
-exports.tSQualifiedName = exports.tsQualifiedName = exports.TSQualifiedName = TSQualifiedName;
-exports.tSCallSignatureDeclaration = exports.tsCallSignatureDeclaration = exports.TSCallSignatureDeclaration = TSCallSignatureDeclaration;
-exports.tSConstructSignatureDeclaration = exports.tsConstructSignatureDeclaration = exports.TSConstructSignatureDeclaration = TSConstructSignatureDeclaration;
-exports.tSPropertySignature = exports.tsPropertySignature = exports.TSPropertySignature = TSPropertySignature;
-exports.tSMethodSignature = exports.tsMethodSignature = exports.TSMethodSignature = TSMethodSignature;
-exports.tSIndexSignature = exports.tsIndexSignature = exports.TSIndexSignature = TSIndexSignature;
-exports.tSAnyKeyword = exports.tsAnyKeyword = exports.TSAnyKeyword = TSAnyKeyword;
-exports.tSNumberKeyword = exports.tsNumberKeyword = exports.TSNumberKeyword = TSNumberKeyword;
-exports.tSObjectKeyword = exports.tsObjectKeyword = exports.TSObjectKeyword = TSObjectKeyword;
-exports.tSBooleanKeyword = exports.tsBooleanKeyword = exports.TSBooleanKeyword = TSBooleanKeyword;
-exports.tSStringKeyword = exports.tsStringKeyword = exports.TSStringKeyword = TSStringKeyword;
-exports.tSSymbolKeyword = exports.tsSymbolKeyword = exports.TSSymbolKeyword = TSSymbolKeyword;
-exports.tSVoidKeyword = exports.tsVoidKeyword = exports.TSVoidKeyword = TSVoidKeyword;
-exports.tSUndefinedKeyword = exports.tsUndefinedKeyword = exports.TSUndefinedKeyword = TSUndefinedKeyword;
-exports.tSNullKeyword = exports.tsNullKeyword = exports.TSNullKeyword = TSNullKeyword;
-exports.tSNeverKeyword = exports.tsNeverKeyword = exports.TSNeverKeyword = TSNeverKeyword;
-exports.tSThisType = exports.tsThisType = exports.TSThisType = TSThisType;
-exports.tSFunctionType = exports.tsFunctionType = exports.TSFunctionType = TSFunctionType;
-exports.tSConstructorType = exports.tsConstructorType = exports.TSConstructorType = TSConstructorType;
-exports.tSTypeReference = exports.tsTypeReference = exports.TSTypeReference = TSTypeReference;
-exports.tSTypePredicate = exports.tsTypePredicate = exports.TSTypePredicate = TSTypePredicate;
-exports.tSTypeQuery = exports.tsTypeQuery = exports.TSTypeQuery = TSTypeQuery;
-exports.tSTypeLiteral = exports.tsTypeLiteral = exports.TSTypeLiteral = TSTypeLiteral;
-exports.tSArrayType = exports.tsArrayType = exports.TSArrayType = TSArrayType;
-exports.tSTupleType = exports.tsTupleType = exports.TSTupleType = TSTupleType;
-exports.tSUnionType = exports.tsUnionType = exports.TSUnionType = TSUnionType;
-exports.tSIntersectionType = exports.tsIntersectionType = exports.TSIntersectionType = TSIntersectionType;
-exports.tSConditionalType = exports.tsConditionalType = exports.TSConditionalType = TSConditionalType;
-exports.tSInferType = exports.tsInferType = exports.TSInferType = TSInferType;
-exports.tSParenthesizedType = exports.tsParenthesizedType = exports.TSParenthesizedType = TSParenthesizedType;
-exports.tSTypeOperator = exports.tsTypeOperator = exports.TSTypeOperator = TSTypeOperator;
-exports.tSIndexedAccessType = exports.tsIndexedAccessType = exports.TSIndexedAccessType = TSIndexedAccessType;
-exports.tSMappedType = exports.tsMappedType = exports.TSMappedType = TSMappedType;
-exports.tSLiteralType = exports.tsLiteralType = exports.TSLiteralType = TSLiteralType;
-exports.tSExpressionWithTypeArguments = exports.tsExpressionWithTypeArguments = exports.TSExpressionWithTypeArguments = TSExpressionWithTypeArguments;
-exports.tSInterfaceDeclaration = exports.tsInterfaceDeclaration = exports.TSInterfaceDeclaration = TSInterfaceDeclaration;
-exports.tSInterfaceBody = exports.tsInterfaceBody = exports.TSInterfaceBody = TSInterfaceBody;
-exports.tSTypeAliasDeclaration = exports.tsTypeAliasDeclaration = exports.TSTypeAliasDeclaration = TSTypeAliasDeclaration;
-exports.tSAsExpression = exports.tsAsExpression = exports.TSAsExpression = TSAsExpression;
-exports.tSTypeAssertion = exports.tsTypeAssertion = exports.TSTypeAssertion = TSTypeAssertion;
-exports.tSEnumDeclaration = exports.tsEnumDeclaration = exports.TSEnumDeclaration = TSEnumDeclaration;
-exports.tSEnumMember = exports.tsEnumMember = exports.TSEnumMember = TSEnumMember;
-exports.tSModuleDeclaration = exports.tsModuleDeclaration = exports.TSModuleDeclaration = TSModuleDeclaration;
-exports.tSModuleBlock = exports.tsModuleBlock = exports.TSModuleBlock = TSModuleBlock;
-exports.tSImportEqualsDeclaration = exports.tsImportEqualsDeclaration = exports.TSImportEqualsDeclaration = TSImportEqualsDeclaration;
-exports.tSExternalModuleReference = exports.tsExternalModuleReference = exports.TSExternalModuleReference = TSExternalModuleReference;
-exports.tSNonNullExpression = exports.tsNonNullExpression = exports.TSNonNullExpression = TSNonNullExpression;
-exports.tSExportAssignment = exports.tsExportAssignment = exports.TSExportAssignment = TSExportAssignment;
-exports.tSNamespaceExportDeclaration = exports.tsNamespaceExportDeclaration = exports.TSNamespaceExportDeclaration = TSNamespaceExportDeclaration;
-exports.tSTypeAnnotation = exports.tsTypeAnnotation = exports.TSTypeAnnotation = TSTypeAnnotation;
-exports.tSTypeParameterInstantiation = exports.tsTypeParameterInstantiation = exports.TSTypeParameterInstantiation = TSTypeParameterInstantiation;
-exports.tSTypeParameterDeclaration = exports.tsTypeParameterDeclaration = exports.TSTypeParameterDeclaration = TSTypeParameterDeclaration;
-exports.tSTypeParameter = exports.tsTypeParameter = exports.TSTypeParameter = TSTypeParameter;
-exports.numberLiteral = exports.NumberLiteral = NumberLiteral;
-exports.regexLiteral = exports.RegexLiteral = RegexLiteral;
-exports.restProperty = exports.RestProperty = RestProperty;
-exports.spreadProperty = exports.SpreadProperty = SpreadProperty;
-
-var _builder = _interopRequireDefault(require("../builder"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function ArrayExpression(...args) {
- return (0, _builder.default)("ArrayExpression", ...args);
-}
-
-function AssignmentExpression(...args) {
- return (0, _builder.default)("AssignmentExpression", ...args);
-}
-
-function BinaryExpression(...args) {
- return (0, _builder.default)("BinaryExpression", ...args);
-}
-
-function InterpreterDirective(...args) {
- return (0, _builder.default)("InterpreterDirective", ...args);
-}
-
-function Directive(...args) {
- return (0, _builder.default)("Directive", ...args);
-}
-
-function DirectiveLiteral(...args) {
- return (0, _builder.default)("DirectiveLiteral", ...args);
-}
-
-function BlockStatement(...args) {
- return (0, _builder.default)("BlockStatement", ...args);
-}
-
-function BreakStatement(...args) {
- return (0, _builder.default)("BreakStatement", ...args);
-}
-
-function CallExpression(...args) {
- return (0, _builder.default)("CallExpression", ...args);
-}
-
-function CatchClause(...args) {
- return (0, _builder.default)("CatchClause", ...args);
-}
-
-function ConditionalExpression(...args) {
- return (0, _builder.default)("ConditionalExpression", ...args);
-}
-
-function ContinueStatement(...args) {
- return (0, _builder.default)("ContinueStatement", ...args);
-}
-
-function DebuggerStatement(...args) {
- return (0, _builder.default)("DebuggerStatement", ...args);
-}
-
-function DoWhileStatement(...args) {
- return (0, _builder.default)("DoWhileStatement", ...args);
-}
-
-function EmptyStatement(...args) {
- return (0, _builder.default)("EmptyStatement", ...args);
-}
-
-function ExpressionStatement(...args) {
- return (0, _builder.default)("ExpressionStatement", ...args);
-}
-
-function File(...args) {
- return (0, _builder.default)("File", ...args);
-}
-
-function ForInStatement(...args) {
- return (0, _builder.default)("ForInStatement", ...args);
-}
-
-function ForStatement(...args) {
- return (0, _builder.default)("ForStatement", ...args);
-}
-
-function FunctionDeclaration(...args) {
- return (0, _builder.default)("FunctionDeclaration", ...args);
-}
-
-function FunctionExpression(...args) {
- return (0, _builder.default)("FunctionExpression", ...args);
-}
-
-function Identifier(...args) {
- return (0, _builder.default)("Identifier", ...args);
-}
-
-function IfStatement(...args) {
- return (0, _builder.default)("IfStatement", ...args);
-}
-
-function LabeledStatement(...args) {
- return (0, _builder.default)("LabeledStatement", ...args);
-}
-
-function StringLiteral(...args) {
- return (0, _builder.default)("StringLiteral", ...args);
-}
-
-function NumericLiteral(...args) {
- return (0, _builder.default)("NumericLiteral", ...args);
-}
-
-function NullLiteral(...args) {
- return (0, _builder.default)("NullLiteral", ...args);
-}
-
-function BooleanLiteral(...args) {
- return (0, _builder.default)("BooleanLiteral", ...args);
-}
-
-function RegExpLiteral(...args) {
- return (0, _builder.default)("RegExpLiteral", ...args);
-}
-
-function LogicalExpression(...args) {
- return (0, _builder.default)("LogicalExpression", ...args);
-}
-
-function MemberExpression(...args) {
- return (0, _builder.default)("MemberExpression", ...args);
-}
-
-function NewExpression(...args) {
- return (0, _builder.default)("NewExpression", ...args);
-}
-
-function Program(...args) {
- return (0, _builder.default)("Program", ...args);
-}
-
-function ObjectExpression(...args) {
- return (0, _builder.default)("ObjectExpression", ...args);
-}
-
-function ObjectMethod(...args) {
- return (0, _builder.default)("ObjectMethod", ...args);
-}
-
-function ObjectProperty(...args) {
- return (0, _builder.default)("ObjectProperty", ...args);
-}
-
-function RestElement(...args) {
- return (0, _builder.default)("RestElement", ...args);
-}
-
-function ReturnStatement(...args) {
- return (0, _builder.default)("ReturnStatement", ...args);
-}
-
-function SequenceExpression(...args) {
- return (0, _builder.default)("SequenceExpression", ...args);
-}
-
-function SwitchCase(...args) {
- return (0, _builder.default)("SwitchCase", ...args);
-}
-
-function SwitchStatement(...args) {
- return (0, _builder.default)("SwitchStatement", ...args);
-}
-
-function ThisExpression(...args) {
- return (0, _builder.default)("ThisExpression", ...args);
-}
-
-function ThrowStatement(...args) {
- return (0, _builder.default)("ThrowStatement", ...args);
-}
-
-function TryStatement(...args) {
- return (0, _builder.default)("TryStatement", ...args);
-}
-
-function UnaryExpression(...args) {
- return (0, _builder.default)("UnaryExpression", ...args);
-}
-
-function UpdateExpression(...args) {
- return (0, _builder.default)("UpdateExpression", ...args);
-}
-
-function VariableDeclaration(...args) {
- return (0, _builder.default)("VariableDeclaration", ...args);
-}
-
-function VariableDeclarator(...args) {
- return (0, _builder.default)("VariableDeclarator", ...args);
-}
-
-function WhileStatement(...args) {
- return (0, _builder.default)("WhileStatement", ...args);
-}
-
-function WithStatement(...args) {
- return (0, _builder.default)("WithStatement", ...args);
-}
-
-function AssignmentPattern(...args) {
- return (0, _builder.default)("AssignmentPattern", ...args);
-}
-
-function ArrayPattern(...args) {
- return (0, _builder.default)("ArrayPattern", ...args);
-}
-
-function ArrowFunctionExpression(...args) {
- return (0, _builder.default)("ArrowFunctionExpression", ...args);
-}
-
-function ClassBody(...args) {
- return (0, _builder.default)("ClassBody", ...args);
-}
-
-function ClassDeclaration(...args) {
- return (0, _builder.default)("ClassDeclaration", ...args);
-}
-
-function ClassExpression(...args) {
- return (0, _builder.default)("ClassExpression", ...args);
-}
-
-function ExportAllDeclaration(...args) {
- return (0, _builder.default)("ExportAllDeclaration", ...args);
-}
-
-function ExportDefaultDeclaration(...args) {
- return (0, _builder.default)("ExportDefaultDeclaration", ...args);
-}
-
-function ExportNamedDeclaration(...args) {
- return (0, _builder.default)("ExportNamedDeclaration", ...args);
-}
-
-function ExportSpecifier(...args) {
- return (0, _builder.default)("ExportSpecifier", ...args);
-}
-
-function ForOfStatement(...args) {
- return (0, _builder.default)("ForOfStatement", ...args);
-}
-
-function ImportDeclaration(...args) {
- return (0, _builder.default)("ImportDeclaration", ...args);
-}
-
-function ImportDefaultSpecifier(...args) {
- return (0, _builder.default)("ImportDefaultSpecifier", ...args);
-}
-
-function ImportNamespaceSpecifier(...args) {
- return (0, _builder.default)("ImportNamespaceSpecifier", ...args);
-}
-
-function ImportSpecifier(...args) {
- return (0, _builder.default)("ImportSpecifier", ...args);
-}
-
-function MetaProperty(...args) {
- return (0, _builder.default)("MetaProperty", ...args);
-}
-
-function ClassMethod(...args) {
- return (0, _builder.default)("ClassMethod", ...args);
-}
-
-function ObjectPattern(...args) {
- return (0, _builder.default)("ObjectPattern", ...args);
-}
-
-function SpreadElement(...args) {
- return (0, _builder.default)("SpreadElement", ...args);
-}
-
-function Super(...args) {
- return (0, _builder.default)("Super", ...args);
-}
-
-function TaggedTemplateExpression(...args) {
- return (0, _builder.default)("TaggedTemplateExpression", ...args);
-}
-
-function TemplateElement(...args) {
- return (0, _builder.default)("TemplateElement", ...args);
-}
-
-function TemplateLiteral(...args) {
- return (0, _builder.default)("TemplateLiteral", ...args);
-}
-
-function YieldExpression(...args) {
- return (0, _builder.default)("YieldExpression", ...args);
-}
-
-function AnyTypeAnnotation(...args) {
- return (0, _builder.default)("AnyTypeAnnotation", ...args);
-}
-
-function ArrayTypeAnnotation(...args) {
- return (0, _builder.default)("ArrayTypeAnnotation", ...args);
-}
-
-function BooleanTypeAnnotation(...args) {
- return (0, _builder.default)("BooleanTypeAnnotation", ...args);
-}
-
-function BooleanLiteralTypeAnnotation(...args) {
- return (0, _builder.default)("BooleanLiteralTypeAnnotation", ...args);
-}
-
-function NullLiteralTypeAnnotation(...args) {
- return (0, _builder.default)("NullLiteralTypeAnnotation", ...args);
-}
-
-function ClassImplements(...args) {
- return (0, _builder.default)("ClassImplements", ...args);
-}
-
-function DeclareClass(...args) {
- return (0, _builder.default)("DeclareClass", ...args);
-}
-
-function DeclareFunction(...args) {
- return (0, _builder.default)("DeclareFunction", ...args);
-}
-
-function DeclareInterface(...args) {
- return (0, _builder.default)("DeclareInterface", ...args);
-}
-
-function DeclareModule(...args) {
- return (0, _builder.default)("DeclareModule", ...args);
-}
-
-function DeclareModuleExports(...args) {
- return (0, _builder.default)("DeclareModuleExports", ...args);
-}
-
-function DeclareTypeAlias(...args) {
- return (0, _builder.default)("DeclareTypeAlias", ...args);
-}
-
-function DeclareOpaqueType(...args) {
- return (0, _builder.default)("DeclareOpaqueType", ...args);
-}
-
-function DeclareVariable(...args) {
- return (0, _builder.default)("DeclareVariable", ...args);
-}
-
-function DeclareExportDeclaration(...args) {
- return (0, _builder.default)("DeclareExportDeclaration", ...args);
-}
-
-function DeclareExportAllDeclaration(...args) {
- return (0, _builder.default)("DeclareExportAllDeclaration", ...args);
-}
-
-function DeclaredPredicate(...args) {
- return (0, _builder.default)("DeclaredPredicate", ...args);
-}
-
-function ExistsTypeAnnotation(...args) {
- return (0, _builder.default)("ExistsTypeAnnotation", ...args);
-}
-
-function FunctionTypeAnnotation(...args) {
- return (0, _builder.default)("FunctionTypeAnnotation", ...args);
-}
-
-function FunctionTypeParam(...args) {
- return (0, _builder.default)("FunctionTypeParam", ...args);
-}
-
-function GenericTypeAnnotation(...args) {
- return (0, _builder.default)("GenericTypeAnnotation", ...args);
-}
-
-function InferredPredicate(...args) {
- return (0, _builder.default)("InferredPredicate", ...args);
-}
-
-function InterfaceExtends(...args) {
- return (0, _builder.default)("InterfaceExtends", ...args);
-}
-
-function InterfaceDeclaration(...args) {
- return (0, _builder.default)("InterfaceDeclaration", ...args);
-}
-
-function InterfaceTypeAnnotation(...args) {
- return (0, _builder.default)("InterfaceTypeAnnotation", ...args);
-}
-
-function IntersectionTypeAnnotation(...args) {
- return (0, _builder.default)("IntersectionTypeAnnotation", ...args);
-}
-
-function MixedTypeAnnotation(...args) {
- return (0, _builder.default)("MixedTypeAnnotation", ...args);
-}
-
-function EmptyTypeAnnotation(...args) {
- return (0, _builder.default)("EmptyTypeAnnotation", ...args);
-}
-
-function NullableTypeAnnotation(...args) {
- return (0, _builder.default)("NullableTypeAnnotation", ...args);
-}
-
-function NumberLiteralTypeAnnotation(...args) {
- return (0, _builder.default)("NumberLiteralTypeAnnotation", ...args);
-}
-
-function NumberTypeAnnotation(...args) {
- return (0, _builder.default)("NumberTypeAnnotation", ...args);
-}
-
-function ObjectTypeAnnotation(...args) {
- return (0, _builder.default)("ObjectTypeAnnotation", ...args);
-}
-
-function ObjectTypeInternalSlot(...args) {
- return (0, _builder.default)("ObjectTypeInternalSlot", ...args);
-}
-
-function ObjectTypeCallProperty(...args) {
- return (0, _builder.default)("ObjectTypeCallProperty", ...args);
-}
-
-function ObjectTypeIndexer(...args) {
- return (0, _builder.default)("ObjectTypeIndexer", ...args);
-}
-
-function ObjectTypeProperty(...args) {
- return (0, _builder.default)("ObjectTypeProperty", ...args);
-}
-
-function ObjectTypeSpreadProperty(...args) {
- return (0, _builder.default)("ObjectTypeSpreadProperty", ...args);
-}
-
-function OpaqueType(...args) {
- return (0, _builder.default)("OpaqueType", ...args);
-}
-
-function QualifiedTypeIdentifier(...args) {
- return (0, _builder.default)("QualifiedTypeIdentifier", ...args);
-}
-
-function StringLiteralTypeAnnotation(...args) {
- return (0, _builder.default)("StringLiteralTypeAnnotation", ...args);
-}
-
-function StringTypeAnnotation(...args) {
- return (0, _builder.default)("StringTypeAnnotation", ...args);
-}
-
-function ThisTypeAnnotation(...args) {
- return (0, _builder.default)("ThisTypeAnnotation", ...args);
-}
-
-function TupleTypeAnnotation(...args) {
- return (0, _builder.default)("TupleTypeAnnotation", ...args);
-}
-
-function TypeofTypeAnnotation(...args) {
- return (0, _builder.default)("TypeofTypeAnnotation", ...args);
-}
-
-function TypeAlias(...args) {
- return (0, _builder.default)("TypeAlias", ...args);
-}
-
-function TypeAnnotation(...args) {
- return (0, _builder.default)("TypeAnnotation", ...args);
-}
-
-function TypeCastExpression(...args) {
- return (0, _builder.default)("TypeCastExpression", ...args);
-}
-
-function TypeParameter(...args) {
- return (0, _builder.default)("TypeParameter", ...args);
-}
-
-function TypeParameterDeclaration(...args) {
- return (0, _builder.default)("TypeParameterDeclaration", ...args);
-}
-
-function TypeParameterInstantiation(...args) {
- return (0, _builder.default)("TypeParameterInstantiation", ...args);
-}
-
-function UnionTypeAnnotation(...args) {
- return (0, _builder.default)("UnionTypeAnnotation", ...args);
-}
-
-function Variance(...args) {
- return (0, _builder.default)("Variance", ...args);
-}
-
-function VoidTypeAnnotation(...args) {
- return (0, _builder.default)("VoidTypeAnnotation", ...args);
-}
-
-function JSXAttribute(...args) {
- return (0, _builder.default)("JSXAttribute", ...args);
-}
-
-function JSXClosingElement(...args) {
- return (0, _builder.default)("JSXClosingElement", ...args);
-}
-
-function JSXElement(...args) {
- return (0, _builder.default)("JSXElement", ...args);
-}
-
-function JSXEmptyExpression(...args) {
- return (0, _builder.default)("JSXEmptyExpression", ...args);
-}
-
-function JSXExpressionContainer(...args) {
- return (0, _builder.default)("JSXExpressionContainer", ...args);
-}
-
-function JSXSpreadChild(...args) {
- return (0, _builder.default)("JSXSpreadChild", ...args);
-}
-
-function JSXIdentifier(...args) {
- return (0, _builder.default)("JSXIdentifier", ...args);
-}
-
-function JSXMemberExpression(...args) {
- return (0, _builder.default)("JSXMemberExpression", ...args);
-}
-
-function JSXNamespacedName(...args) {
- return (0, _builder.default)("JSXNamespacedName", ...args);
-}
-
-function JSXOpeningElement(...args) {
- return (0, _builder.default)("JSXOpeningElement", ...args);
-}
-
-function JSXSpreadAttribute(...args) {
- return (0, _builder.default)("JSXSpreadAttribute", ...args);
-}
-
-function JSXText(...args) {
- return (0, _builder.default)("JSXText", ...args);
-}
-
-function JSXFragment(...args) {
- return (0, _builder.default)("JSXFragment", ...args);
-}
-
-function JSXOpeningFragment(...args) {
- return (0, _builder.default)("JSXOpeningFragment", ...args);
-}
-
-function JSXClosingFragment(...args) {
- return (0, _builder.default)("JSXClosingFragment", ...args);
-}
-
-function Noop(...args) {
- return (0, _builder.default)("Noop", ...args);
-}
-
-function ParenthesizedExpression(...args) {
- return (0, _builder.default)("ParenthesizedExpression", ...args);
-}
-
-function AwaitExpression(...args) {
- return (0, _builder.default)("AwaitExpression", ...args);
-}
-
-function BindExpression(...args) {
- return (0, _builder.default)("BindExpression", ...args);
-}
-
-function ClassProperty(...args) {
- return (0, _builder.default)("ClassProperty", ...args);
-}
-
-function OptionalMemberExpression(...args) {
- return (0, _builder.default)("OptionalMemberExpression", ...args);
-}
-
-function OptionalCallExpression(...args) {
- return (0, _builder.default)("OptionalCallExpression", ...args);
-}
-
-function ClassPrivateProperty(...args) {
- return (0, _builder.default)("ClassPrivateProperty", ...args);
-}
-
-function Import(...args) {
- return (0, _builder.default)("Import", ...args);
-}
-
-function Decorator(...args) {
- return (0, _builder.default)("Decorator", ...args);
-}
-
-function DoExpression(...args) {
- return (0, _builder.default)("DoExpression", ...args);
-}
-
-function ExportDefaultSpecifier(...args) {
- return (0, _builder.default)("ExportDefaultSpecifier", ...args);
-}
-
-function ExportNamespaceSpecifier(...args) {
- return (0, _builder.default)("ExportNamespaceSpecifier", ...args);
-}
-
-function PrivateName(...args) {
- return (0, _builder.default)("PrivateName", ...args);
-}
-
-function BigIntLiteral(...args) {
- return (0, _builder.default)("BigIntLiteral", ...args);
-}
-
-function TSParameterProperty(...args) {
- return (0, _builder.default)("TSParameterProperty", ...args);
-}
-
-function TSDeclareFunction(...args) {
- return (0, _builder.default)("TSDeclareFunction", ...args);
-}
-
-function TSDeclareMethod(...args) {
- return (0, _builder.default)("TSDeclareMethod", ...args);
-}
-
-function TSQualifiedName(...args) {
- return (0, _builder.default)("TSQualifiedName", ...args);
-}
-
-function TSCallSignatureDeclaration(...args) {
- return (0, _builder.default)("TSCallSignatureDeclaration", ...args);
-}
-
-function TSConstructSignatureDeclaration(...args) {
- return (0, _builder.default)("TSConstructSignatureDeclaration", ...args);
-}
-
-function TSPropertySignature(...args) {
- return (0, _builder.default)("TSPropertySignature", ...args);
-}
-
-function TSMethodSignature(...args) {
- return (0, _builder.default)("TSMethodSignature", ...args);
-}
-
-function TSIndexSignature(...args) {
- return (0, _builder.default)("TSIndexSignature", ...args);
-}
-
-function TSAnyKeyword(...args) {
- return (0, _builder.default)("TSAnyKeyword", ...args);
-}
-
-function TSNumberKeyword(...args) {
- return (0, _builder.default)("TSNumberKeyword", ...args);
-}
-
-function TSObjectKeyword(...args) {
- return (0, _builder.default)("TSObjectKeyword", ...args);
-}
-
-function TSBooleanKeyword(...args) {
- return (0, _builder.default)("TSBooleanKeyword", ...args);
-}
-
-function TSStringKeyword(...args) {
- return (0, _builder.default)("TSStringKeyword", ...args);
-}
-
-function TSSymbolKeyword(...args) {
- return (0, _builder.default)("TSSymbolKeyword", ...args);
-}
-
-function TSVoidKeyword(...args) {
- return (0, _builder.default)("TSVoidKeyword", ...args);
-}
-
-function TSUndefinedKeyword(...args) {
- return (0, _builder.default)("TSUndefinedKeyword", ...args);
-}
-
-function TSNullKeyword(...args) {
- return (0, _builder.default)("TSNullKeyword", ...args);
-}
-
-function TSNeverKeyword(...args) {
- return (0, _builder.default)("TSNeverKeyword", ...args);
-}
-
-function TSThisType(...args) {
- return (0, _builder.default)("TSThisType", ...args);
-}
-
-function TSFunctionType(...args) {
- return (0, _builder.default)("TSFunctionType", ...args);
-}
-
-function TSConstructorType(...args) {
- return (0, _builder.default)("TSConstructorType", ...args);
-}
-
-function TSTypeReference(...args) {
- return (0, _builder.default)("TSTypeReference", ...args);
-}
-
-function TSTypePredicate(...args) {
- return (0, _builder.default)("TSTypePredicate", ...args);
-}
-
-function TSTypeQuery(...args) {
- return (0, _builder.default)("TSTypeQuery", ...args);
-}
-
-function TSTypeLiteral(...args) {
- return (0, _builder.default)("TSTypeLiteral", ...args);
-}
-
-function TSArrayType(...args) {
- return (0, _builder.default)("TSArrayType", ...args);
-}
-
-function TSTupleType(...args) {
- return (0, _builder.default)("TSTupleType", ...args);
-}
-
-function TSUnionType(...args) {
- return (0, _builder.default)("TSUnionType", ...args);
-}
-
-function TSIntersectionType(...args) {
- return (0, _builder.default)("TSIntersectionType", ...args);
-}
-
-function TSConditionalType(...args) {
- return (0, _builder.default)("TSConditionalType", ...args);
-}
-
-function TSInferType(...args) {
- return (0, _builder.default)("TSInferType", ...args);
-}
-
-function TSParenthesizedType(...args) {
- return (0, _builder.default)("TSParenthesizedType", ...args);
-}
-
-function TSTypeOperator(...args) {
- return (0, _builder.default)("TSTypeOperator", ...args);
-}
-
-function TSIndexedAccessType(...args) {
- return (0, _builder.default)("TSIndexedAccessType", ...args);
-}
-
-function TSMappedType(...args) {
- return (0, _builder.default)("TSMappedType", ...args);
-}
-
-function TSLiteralType(...args) {
- return (0, _builder.default)("TSLiteralType", ...args);
-}
-
-function TSExpressionWithTypeArguments(...args) {
- return (0, _builder.default)("TSExpressionWithTypeArguments", ...args);
-}
-
-function TSInterfaceDeclaration(...args) {
- return (0, _builder.default)("TSInterfaceDeclaration", ...args);
-}
-
-function TSInterfaceBody(...args) {
- return (0, _builder.default)("TSInterfaceBody", ...args);
-}
-
-function TSTypeAliasDeclaration(...args) {
- return (0, _builder.default)("TSTypeAliasDeclaration", ...args);
-}
-
-function TSAsExpression(...args) {
- return (0, _builder.default)("TSAsExpression", ...args);
-}
-
-function TSTypeAssertion(...args) {
- return (0, _builder.default)("TSTypeAssertion", ...args);
-}
-
-function TSEnumDeclaration(...args) {
- return (0, _builder.default)("TSEnumDeclaration", ...args);
-}
-
-function TSEnumMember(...args) {
- return (0, _builder.default)("TSEnumMember", ...args);
-}
-
-function TSModuleDeclaration(...args) {
- return (0, _builder.default)("TSModuleDeclaration", ...args);
-}
-
-function TSModuleBlock(...args) {
- return (0, _builder.default)("TSModuleBlock", ...args);
-}
-
-function TSImportEqualsDeclaration(...args) {
- return (0, _builder.default)("TSImportEqualsDeclaration", ...args);
-}
-
-function TSExternalModuleReference(...args) {
- return (0, _builder.default)("TSExternalModuleReference", ...args);
-}
-
-function TSNonNullExpression(...args) {
- return (0, _builder.default)("TSNonNullExpression", ...args);
-}
-
-function TSExportAssignment(...args) {
- return (0, _builder.default)("TSExportAssignment", ...args);
-}
-
-function TSNamespaceExportDeclaration(...args) {
- return (0, _builder.default)("TSNamespaceExportDeclaration", ...args);
-}
-
-function TSTypeAnnotation(...args) {
- return (0, _builder.default)("TSTypeAnnotation", ...args);
-}
-
-function TSTypeParameterInstantiation(...args) {
- return (0, _builder.default)("TSTypeParameterInstantiation", ...args);
-}
-
-function TSTypeParameterDeclaration(...args) {
- return (0, _builder.default)("TSTypeParameterDeclaration", ...args);
-}
-
-function TSTypeParameter(...args) {
- return (0, _builder.default)("TSTypeParameter", ...args);
-}
-
-function NumberLiteral(...args) {
- console.trace("The node type NumberLiteral has been renamed to NumericLiteral");
- return NumberLiteral("NumberLiteral", ...args);
-}
-
-function RegexLiteral(...args) {
- console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
- return RegexLiteral("RegexLiteral", ...args);
-}
-
-function RestProperty(...args) {
- console.trace("The node type RestProperty has been renamed to RestElement");
- return RestProperty("RestProperty", ...args);
-}
-
-function SpreadProperty(...args) {
- console.trace("The node type SpreadProperty has been renamed to SpreadElement");
- return SpreadProperty("SpreadProperty", ...args);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/builders/react/buildChildren.js b/AuthenticationSDK/node_modules/@babel/types/lib/builders/react/buildChildren.js
deleted file mode 100644
index 91e7cbd9..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/builders/react/buildChildren.js
+++ /dev/null
@@ -1,31 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = buildChildren;
-
-var _generated = require("../../validators/generated");
-
-var _cleanJSXElementLiteralChild = _interopRequireDefault(require("../../utils/react/cleanJSXElementLiteralChild"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function buildChildren(node) {
- const elements = [];
-
- for (let i = 0; i < node.children.length; i++) {
- let child = node.children[i];
-
- if ((0, _generated.isJSXText)(child)) {
- (0, _cleanJSXElementLiteralChild.default)(child, elements);
- continue;
- }
-
- if ((0, _generated.isJSXExpressionContainer)(child)) child = child.expression;
- if ((0, _generated.isJSXEmptyExpression)(child)) continue;
- elements.push(child);
- }
-
- return elements;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/clone/clone.js b/AuthenticationSDK/node_modules/@babel/types/lib/clone/clone.js
deleted file mode 100644
index 9595f6e2..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/clone/clone.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = clone;
-
-var _cloneNode = _interopRequireDefault(require("./cloneNode"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function clone(node) {
- return (0, _cloneNode.default)(node, false);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/clone/cloneDeep.js b/AuthenticationSDK/node_modules/@babel/types/lib/clone/cloneDeep.js
deleted file mode 100644
index eb29c536..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/clone/cloneDeep.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = cloneDeep;
-
-var _cloneNode = _interopRequireDefault(require("./cloneNode"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function cloneDeep(node) {
- return (0, _cloneNode.default)(node);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/clone/cloneNode.js b/AuthenticationSDK/node_modules/@babel/types/lib/clone/cloneNode.js
deleted file mode 100644
index c8510839..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/clone/cloneNode.js
+++ /dev/null
@@ -1,70 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = cloneNode;
-
-var _definitions = require("../definitions");
-
-const has = Function.call.bind(Object.prototype.hasOwnProperty);
-
-function cloneIfNode(obj, deep) {
- if (obj && typeof obj.type === "string" && obj.type !== "CommentLine" && obj.type !== "CommentBlock") {
- return cloneNode(obj, deep);
- }
-
- return obj;
-}
-
-function cloneIfNodeOrArray(obj, deep) {
- if (Array.isArray(obj)) {
- return obj.map(node => cloneIfNode(node, deep));
- }
-
- return cloneIfNode(obj, deep);
-}
-
-function cloneNode(node, deep = true) {
- if (!node) return node;
- const {
- type
- } = node;
- const newNode = {
- type
- };
-
- if (type === "Identifier") {
- newNode.name = node.name;
- } else if (!has(_definitions.NODE_FIELDS, type)) {
- throw new Error(`Unknown node type: "${type}"`);
- } else {
- for (const field of Object.keys(_definitions.NODE_FIELDS[type])) {
- if (has(node, field)) {
- newNode[field] = deep ? cloneIfNodeOrArray(node[field], true) : node[field];
- }
- }
- }
-
- if (has(node, "loc")) {
- newNode.loc = node.loc;
- }
-
- if (has(node, "leadingComments")) {
- newNode.leadingComments = node.leadingComments;
- }
-
- if (has(node, "innerComments")) {
- newNode.innerComments = node.innerCmments;
- }
-
- if (has(node, "trailingComments")) {
- newNode.trailingComments = node.trailingComments;
- }
-
- if (has(node, "extra")) {
- newNode.extra = Object.assign({}, node.extra);
- }
-
- return newNode;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js b/AuthenticationSDK/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js
deleted file mode 100644
index 5622af7b..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = cloneWithoutLoc;
-
-var _clone = _interopRequireDefault(require("./clone"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function cloneWithoutLoc(node) {
- const newNode = (0, _clone.default)(node);
- newNode.loc = null;
- return newNode;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/comments/addComment.js b/AuthenticationSDK/node_modules/@babel/types/lib/comments/addComment.js
deleted file mode 100644
index ff586514..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/comments/addComment.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = addComment;
-
-var _addComments = _interopRequireDefault(require("./addComments"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function addComment(node, type, content, line) {
- return (0, _addComments.default)(node, type, [{
- type: line ? "CommentLine" : "CommentBlock",
- value: content
- }]);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/comments/addComments.js b/AuthenticationSDK/node_modules/@babel/types/lib/comments/addComments.js
deleted file mode 100644
index f3a61df7..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/comments/addComments.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = addComments;
-
-function addComments(node, type, comments) {
- if (!comments || !node) return node;
- const key = `${type}Comments`;
-
- if (node[key]) {
- if (type === "leading") {
- node[key] = comments.concat(node[key]);
- } else {
- node[key] = node[key].concat(comments);
- }
- } else {
- node[key] = comments;
- }
-
- return node;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritInnerComments.js b/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritInnerComments.js
deleted file mode 100644
index fbe59dec..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritInnerComments.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = inheritInnerComments;
-
-var _inherit = _interopRequireDefault(require("../utils/inherit"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function inheritInnerComments(child, parent) {
- (0, _inherit.default)("innerComments", child, parent);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritLeadingComments.js b/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritLeadingComments.js
deleted file mode 100644
index ccb02ec5..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritLeadingComments.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = inheritLeadingComments;
-
-var _inherit = _interopRequireDefault(require("../utils/inherit"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function inheritLeadingComments(child, parent) {
- (0, _inherit.default)("leadingComments", child, parent);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritTrailingComments.js b/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritTrailingComments.js
deleted file mode 100644
index bce1e2d9..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritTrailingComments.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = inheritTrailingComments;
-
-var _inherit = _interopRequireDefault(require("../utils/inherit"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function inheritTrailingComments(child, parent) {
- (0, _inherit.default)("trailingComments", child, parent);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritsComments.js b/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritsComments.js
deleted file mode 100644
index fd942d86..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/comments/inheritsComments.js
+++ /dev/null
@@ -1,21 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = inheritsComments;
-
-var _inheritTrailingComments = _interopRequireDefault(require("./inheritTrailingComments"));
-
-var _inheritLeadingComments = _interopRequireDefault(require("./inheritLeadingComments"));
-
-var _inheritInnerComments = _interopRequireDefault(require("./inheritInnerComments"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function inheritsComments(child, parent) {
- (0, _inheritTrailingComments.default)(child, parent);
- (0, _inheritLeadingComments.default)(child, parent);
- (0, _inheritInnerComments.default)(child, parent);
- return child;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/comments/removeComments.js b/AuthenticationSDK/node_modules/@babel/types/lib/comments/removeComments.js
deleted file mode 100644
index fe34f1a8..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/comments/removeComments.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = removeComments;
-
-var _constants = require("../constants");
-
-function removeComments(node) {
- _constants.COMMENT_KEYS.forEach(key => {
- node[key] = null;
- });
-
- return node;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/constants/generated/index.js b/AuthenticationSDK/node_modules/@babel/types/lib/constants/generated/index.js
deleted file mode 100644
index 6072495e..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/constants/generated/index.js
+++ /dev/null
@@ -1,93 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.TSTYPE_TYPES = exports.TSTYPEELEMENT_TYPES = exports.PRIVATE_TYPES = exports.JSX_TYPES = exports.FLOWPREDICATE_TYPES = exports.FLOWDECLARATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = exports.FLOWTYPE_TYPES = exports.FLOW_TYPES = exports.MODULESPECIFIER_TYPES = exports.EXPORTDECLARATION_TYPES = exports.MODULEDECLARATION_TYPES = exports.CLASS_TYPES = exports.PATTERN_TYPES = exports.UNARYLIKE_TYPES = exports.PROPERTY_TYPES = exports.OBJECTMEMBER_TYPES = exports.METHOD_TYPES = exports.USERWHITESPACABLE_TYPES = exports.IMMUTABLE_TYPES = exports.LITERAL_TYPES = exports.TSENTITYNAME_TYPES = exports.LVAL_TYPES = exports.PATTERNLIKE_TYPES = exports.DECLARATION_TYPES = exports.PUREISH_TYPES = exports.FUNCTIONPARENT_TYPES = exports.FUNCTION_TYPES = exports.FORXSTATEMENT_TYPES = exports.FOR_TYPES = exports.EXPRESSIONWRAPPER_TYPES = exports.WHILE_TYPES = exports.LOOP_TYPES = exports.CONDITIONAL_TYPES = exports.COMPLETIONSTATEMENT_TYPES = exports.TERMINATORLESS_TYPES = exports.STATEMENT_TYPES = exports.BLOCK_TYPES = exports.BLOCKPARENT_TYPES = exports.SCOPABLE_TYPES = exports.BINARY_TYPES = exports.EXPRESSION_TYPES = void 0;
-
-var _definitions = require("../../definitions");
-
-const EXPRESSION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Expression"];
-exports.EXPRESSION_TYPES = EXPRESSION_TYPES;
-const BINARY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Binary"];
-exports.BINARY_TYPES = BINARY_TYPES;
-const SCOPABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Scopable"];
-exports.SCOPABLE_TYPES = SCOPABLE_TYPES;
-const BLOCKPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["BlockParent"];
-exports.BLOCKPARENT_TYPES = BLOCKPARENT_TYPES;
-const BLOCK_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Block"];
-exports.BLOCK_TYPES = BLOCK_TYPES;
-const STATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Statement"];
-exports.STATEMENT_TYPES = STATEMENT_TYPES;
-const TERMINATORLESS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Terminatorless"];
-exports.TERMINATORLESS_TYPES = TERMINATORLESS_TYPES;
-const COMPLETIONSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["CompletionStatement"];
-exports.COMPLETIONSTATEMENT_TYPES = COMPLETIONSTATEMENT_TYPES;
-const CONDITIONAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Conditional"];
-exports.CONDITIONAL_TYPES = CONDITIONAL_TYPES;
-const LOOP_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Loop"];
-exports.LOOP_TYPES = LOOP_TYPES;
-const WHILE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["While"];
-exports.WHILE_TYPES = WHILE_TYPES;
-const EXPRESSIONWRAPPER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExpressionWrapper"];
-exports.EXPRESSIONWRAPPER_TYPES = EXPRESSIONWRAPPER_TYPES;
-const FOR_TYPES = _definitions.FLIPPED_ALIAS_KEYS["For"];
-exports.FOR_TYPES = FOR_TYPES;
-const FORXSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ForXStatement"];
-exports.FORXSTATEMENT_TYPES = FORXSTATEMENT_TYPES;
-const FUNCTION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Function"];
-exports.FUNCTION_TYPES = FUNCTION_TYPES;
-const FUNCTIONPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FunctionParent"];
-exports.FUNCTIONPARENT_TYPES = FUNCTIONPARENT_TYPES;
-const PUREISH_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pureish"];
-exports.PUREISH_TYPES = PUREISH_TYPES;
-const DECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Declaration"];
-exports.DECLARATION_TYPES = DECLARATION_TYPES;
-const PATTERNLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["PatternLike"];
-exports.PATTERNLIKE_TYPES = PATTERNLIKE_TYPES;
-const LVAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["LVal"];
-exports.LVAL_TYPES = LVAL_TYPES;
-const TSENTITYNAME_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSEntityName"];
-exports.TSENTITYNAME_TYPES = TSENTITYNAME_TYPES;
-const LITERAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Literal"];
-exports.LITERAL_TYPES = LITERAL_TYPES;
-const IMMUTABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Immutable"];
-exports.IMMUTABLE_TYPES = IMMUTABLE_TYPES;
-const USERWHITESPACABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UserWhitespacable"];
-exports.USERWHITESPACABLE_TYPES = USERWHITESPACABLE_TYPES;
-const METHOD_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Method"];
-exports.METHOD_TYPES = METHOD_TYPES;
-const OBJECTMEMBER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ObjectMember"];
-exports.OBJECTMEMBER_TYPES = OBJECTMEMBER_TYPES;
-const PROPERTY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Property"];
-exports.PROPERTY_TYPES = PROPERTY_TYPES;
-const UNARYLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UnaryLike"];
-exports.UNARYLIKE_TYPES = UNARYLIKE_TYPES;
-const PATTERN_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pattern"];
-exports.PATTERN_TYPES = PATTERN_TYPES;
-const CLASS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Class"];
-exports.CLASS_TYPES = CLASS_TYPES;
-const MODULEDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleDeclaration"];
-exports.MODULEDECLARATION_TYPES = MODULEDECLARATION_TYPES;
-const EXPORTDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExportDeclaration"];
-exports.EXPORTDECLARATION_TYPES = EXPORTDECLARATION_TYPES;
-const MODULESPECIFIER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleSpecifier"];
-exports.MODULESPECIFIER_TYPES = MODULESPECIFIER_TYPES;
-const FLOW_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Flow"];
-exports.FLOW_TYPES = FLOW_TYPES;
-const FLOWTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowType"];
-exports.FLOWTYPE_TYPES = FLOWTYPE_TYPES;
-const FLOWBASEANNOTATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"];
-exports.FLOWBASEANNOTATION_TYPES = FLOWBASEANNOTATION_TYPES;
-const FLOWDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowDeclaration"];
-exports.FLOWDECLARATION_TYPES = FLOWDECLARATION_TYPES;
-const FLOWPREDICATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowPredicate"];
-exports.FLOWPREDICATE_TYPES = FLOWPREDICATE_TYPES;
-const JSX_TYPES = _definitions.FLIPPED_ALIAS_KEYS["JSX"];
-exports.JSX_TYPES = JSX_TYPES;
-const PRIVATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Private"];
-exports.PRIVATE_TYPES = PRIVATE_TYPES;
-const TSTYPEELEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSTypeElement"];
-exports.TSTYPEELEMENT_TYPES = TSTYPEELEMENT_TYPES;
-const TSTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSType"];
-exports.TSTYPE_TYPES = TSTYPE_TYPES;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/constants/index.js b/AuthenticationSDK/node_modules/@babel/types/lib/constants/index.js
deleted file mode 100644
index a60b106f..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/constants/index.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.NOT_LOCAL_BINDING = exports.BLOCK_SCOPED_SYMBOL = exports.INHERIT_KEYS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.NUMBER_UNARY_OPERATORS = exports.BOOLEAN_UNARY_OPERATORS = exports.BINARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.EQUALITY_BINARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.UPDATE_OPERATORS = exports.LOGICAL_OPERATORS = exports.COMMENT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.STATEMENT_OR_BLOCK_KEYS = void 0;
-const STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"];
-exports.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS;
-const FLATTENABLE_KEYS = ["body", "expressions"];
-exports.FLATTENABLE_KEYS = FLATTENABLE_KEYS;
-const FOR_INIT_KEYS = ["left", "init"];
-exports.FOR_INIT_KEYS = FOR_INIT_KEYS;
-const COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"];
-exports.COMMENT_KEYS = COMMENT_KEYS;
-const LOGICAL_OPERATORS = ["||", "&&", "??"];
-exports.LOGICAL_OPERATORS = LOGICAL_OPERATORS;
-const UPDATE_OPERATORS = ["++", "--"];
-exports.UPDATE_OPERATORS = UPDATE_OPERATORS;
-const BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="];
-exports.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS;
-const EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="];
-exports.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS;
-const COMPARISON_BINARY_OPERATORS = [...EQUALITY_BINARY_OPERATORS, "in", "instanceof"];
-exports.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS;
-const BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS];
-exports.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS;
-const NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
-exports.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS;
-const BINARY_OPERATORS = ["+", ...NUMBER_BINARY_OPERATORS, ...BOOLEAN_BINARY_OPERATORS];
-exports.BINARY_OPERATORS = BINARY_OPERATORS;
-const BOOLEAN_UNARY_OPERATORS = ["delete", "!"];
-exports.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS;
-const NUMBER_UNARY_OPERATORS = ["+", "-", "~"];
-exports.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS;
-const STRING_UNARY_OPERATORS = ["typeof"];
-exports.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS;
-const UNARY_OPERATORS = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS, ...NUMBER_UNARY_OPERATORS, ...STRING_UNARY_OPERATORS];
-exports.UNARY_OPERATORS = UNARY_OPERATORS;
-const INHERIT_KEYS = {
- optional: ["typeAnnotation", "typeParameters", "returnType"],
- force: ["start", "loc", "end"]
-};
-exports.INHERIT_KEYS = INHERIT_KEYS;
-const BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped");
-exports.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL;
-const NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding");
-exports.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/ensureBlock.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/ensureBlock.js
deleted file mode 100644
index 2836b365..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/ensureBlock.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = ensureBlock;
-
-var _toBlock = _interopRequireDefault(require("./toBlock"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function ensureBlock(node, key = "body") {
- return node[key] = (0, _toBlock.default)(node[key], node);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js
deleted file mode 100644
index 2d05485b..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js
+++ /dev/null
@@ -1,73 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = gatherSequenceExpressions;
-
-var _getBindingIdentifiers = _interopRequireDefault(require("../retrievers/getBindingIdentifiers"));
-
-var _generated = require("../validators/generated");
-
-var _generated2 = require("../builders/generated");
-
-var _cloneNode = _interopRequireDefault(require("../clone/cloneNode"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function gatherSequenceExpressions(nodes, scope, declars) {
- const exprs = [];
- let ensureLastUndefined = true;
-
- for (const node of nodes) {
- ensureLastUndefined = false;
-
- if ((0, _generated.isExpression)(node)) {
- exprs.push(node);
- } else if ((0, _generated.isExpressionStatement)(node)) {
- exprs.push(node.expression);
- } else if ((0, _generated.isVariableDeclaration)(node)) {
- if (node.kind !== "var") return;
-
- for (const declar of node.declarations) {
- const bindings = (0, _getBindingIdentifiers.default)(declar);
-
- for (const key in bindings) {
- declars.push({
- kind: node.kind,
- id: (0, _cloneNode.default)(bindings[key])
- });
- }
-
- if (declar.init) {
- exprs.push((0, _generated2.assignmentExpression)("=", declar.id, declar.init));
- }
- }
-
- ensureLastUndefined = true;
- } else if ((0, _generated.isIfStatement)(node)) {
- const consequent = node.consequent ? gatherSequenceExpressions([node.consequent], scope, declars) : scope.buildUndefinedNode();
- const alternate = node.alternate ? gatherSequenceExpressions([node.alternate], scope, declars) : scope.buildUndefinedNode();
- if (!consequent || !alternate) return;
- exprs.push((0, _generated2.conditionalExpression)(node.test, consequent, alternate));
- } else if ((0, _generated.isBlockStatement)(node)) {
- const body = gatherSequenceExpressions(node.body, scope, declars);
- if (!body) return;
- exprs.push(body);
- } else if ((0, _generated.isEmptyStatement)(node)) {
- ensureLastUndefined = true;
- } else {
- return;
- }
- }
-
- if (ensureLastUndefined) {
- exprs.push(scope.buildUndefinedNode());
- }
-
- if (exprs.length === 1) {
- return exprs[0];
- } else {
- return (0, _generated2.sequenceExpression)(exprs);
- }
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js
deleted file mode 100644
index b9d165b6..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js
+++ /dev/null
@@ -1,16 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toBindingIdentifierName;
-
-var _toIdentifier = _interopRequireDefault(require("./toIdentifier"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function toBindingIdentifierName(name) {
- name = (0, _toIdentifier.default)(name);
- if (name === "eval" || name === "arguments") name = "_" + name;
- return name;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toBlock.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/toBlock.js
deleted file mode 100644
index 19886833..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toBlock.js
+++ /dev/null
@@ -1,34 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toBlock;
-
-var _generated = require("../validators/generated");
-
-var _generated2 = require("../builders/generated");
-
-function toBlock(node, parent) {
- if ((0, _generated.isBlockStatement)(node)) {
- return node;
- }
-
- let blockNodes = [];
-
- if ((0, _generated.isEmptyStatement)(node)) {
- blockNodes = [];
- } else {
- if (!(0, _generated.isStatement)(node)) {
- if ((0, _generated.isFunction)(parent)) {
- node = (0, _generated2.returnStatement)(node);
- } else {
- node = (0, _generated2.expressionStatement)(node);
- }
- }
-
- blockNodes = [node];
- }
-
- return (0, _generated2.blockStatement)(blockNodes);
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toComputedKey.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/toComputedKey.js
deleted file mode 100644
index 31e6770f..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toComputedKey.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toComputedKey;
-
-var _generated = require("../validators/generated");
-
-var _generated2 = require("../builders/generated");
-
-function toComputedKey(node, key = node.key || node.property) {
- if (!node.computed && (0, _generated.isIdentifier)(key)) key = (0, _generated2.stringLiteral)(key.name);
- return key;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toExpression.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/toExpression.js
deleted file mode 100644
index 6e58b0de..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toExpression.js
+++ /dev/null
@@ -1,30 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toExpression;
-
-var _generated = require("../validators/generated");
-
-function toExpression(node) {
- if ((0, _generated.isExpressionStatement)(node)) {
- node = node.expression;
- }
-
- if ((0, _generated.isExpression)(node)) {
- return node;
- }
-
- if ((0, _generated.isClass)(node)) {
- node.type = "ClassExpression";
- } else if ((0, _generated.isFunction)(node)) {
- node.type = "FunctionExpression";
- }
-
- if (!(0, _generated.isExpression)(node)) {
- throw new Error(`cannot turn ${node.type} to an expression`);
- }
-
- return node;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toIdentifier.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/toIdentifier.js
deleted file mode 100644
index e55db41f..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toIdentifier.js
+++ /dev/null
@@ -1,25 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toIdentifier;
-
-var _isValidIdentifier = _interopRequireDefault(require("../validators/isValidIdentifier"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function toIdentifier(name) {
- name = name + "";
- name = name.replace(/[^a-zA-Z0-9$_]/g, "-");
- name = name.replace(/^[-0-9]+/, "");
- name = name.replace(/[-\s]+(.)?/g, function (match, c) {
- return c ? c.toUpperCase() : "";
- });
-
- if (!(0, _isValidIdentifier.default)(name)) {
- name = `_${name}`;
- }
-
- return name || "_";
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toKeyAlias.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/toKeyAlias.js
deleted file mode 100644
index c48fd0e7..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toKeyAlias.js
+++ /dev/null
@@ -1,48 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toKeyAlias;
-
-var _generated = require("../validators/generated");
-
-var _cloneNode = _interopRequireDefault(require("../clone/cloneNode"));
-
-var _removePropertiesDeep = _interopRequireDefault(require("../modifications/removePropertiesDeep"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function toKeyAlias(node, key = node.key) {
- let alias;
-
- if (node.kind === "method") {
- return toKeyAlias.increment() + "";
- } else if ((0, _generated.isIdentifier)(key)) {
- alias = key.name;
- } else if ((0, _generated.isStringLiteral)(key)) {
- alias = JSON.stringify(key.value);
- } else {
- alias = JSON.stringify((0, _removePropertiesDeep.default)((0, _cloneNode.default)(key)));
- }
-
- if (node.computed) {
- alias = `[${alias}]`;
- }
-
- if (node.static) {
- alias = `static:${alias}`;
- }
-
- return alias;
-}
-
-toKeyAlias.uid = 0;
-
-toKeyAlias.increment = function () {
- if (toKeyAlias.uid >= Number.MAX_SAFE_INTEGER) {
- return toKeyAlias.uid = 0;
- } else {
- return toKeyAlias.uid++;
- }
-};
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toSequenceExpression.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/toSequenceExpression.js
deleted file mode 100644
index 2e221db4..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toSequenceExpression.js
+++ /dev/null
@@ -1,23 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toSequenceExpression;
-
-var _gatherSequenceExpressions = _interopRequireDefault(require("./gatherSequenceExpressions"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function toSequenceExpression(nodes, scope) {
- if (!nodes || !nodes.length) return;
- const declars = [];
- const result = (0, _gatherSequenceExpressions.default)(nodes, scope, declars);
- if (!result) return;
-
- for (const declar of declars) {
- scope.push(declar);
- }
-
- return result;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toStatement.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/toStatement.js
deleted file mode 100644
index 69b22ae0..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/toStatement.js
+++ /dev/null
@@ -1,44 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = toStatement;
-
-var _generated = require("../validators/generated");
-
-var _generated2 = require("../builders/generated");
-
-function toStatement(node, ignore) {
- if ((0, _generated.isStatement)(node)) {
- return node;
- }
-
- let mustHaveId = false;
- let newType;
-
- if ((0, _generated.isClass)(node)) {
- mustHaveId = true;
- newType = "ClassDeclaration";
- } else if ((0, _generated.isFunction)(node)) {
- mustHaveId = true;
- newType = "FunctionDeclaration";
- } else if ((0, _generated.isAssignmentExpression)(node)) {
- return (0, _generated2.expressionStatement)(node);
- }
-
- if (mustHaveId && !node.id) {
- newType = false;
- }
-
- if (!newType) {
- if (ignore) {
- return false;
- } else {
- throw new Error(`cannot turn ${node.type} to a statement`);
- }
- }
-
- node.type = newType;
- return node;
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/converters/valueToNode.js b/AuthenticationSDK/node_modules/@babel/types/lib/converters/valueToNode.js
deleted file mode 100644
index a7456ebf..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/converters/valueToNode.js
+++ /dev/null
@@ -1,104 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = valueToNode;
-
-function _isPlainObject() {
- const data = _interopRequireDefault(require("lodash/isPlainObject"));
-
- _isPlainObject = function () {
- return data;
- };
-
- return data;
-}
-
-function _isRegExp() {
- const data = _interopRequireDefault(require("lodash/isRegExp"));
-
- _isRegExp = function () {
- return data;
- };
-
- return data;
-}
-
-var _isValidIdentifier = _interopRequireDefault(require("../validators/isValidIdentifier"));
-
-var _generated = require("../builders/generated");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-function valueToNode(value) {
- if (value === undefined) {
- return (0, _generated.identifier)("undefined");
- }
-
- if (value === true || value === false) {
- return (0, _generated.booleanLiteral)(value);
- }
-
- if (value === null) {
- return (0, _generated.nullLiteral)();
- }
-
- if (typeof value === "string") {
- return (0, _generated.stringLiteral)(value);
- }
-
- if (typeof value === "number") {
- let result;
-
- if (Number.isFinite(value)) {
- result = (0, _generated.numericLiteral)(Math.abs(value));
- } else {
- let numerator;
-
- if (Number.isNaN(value)) {
- numerator = (0, _generated.numericLiteral)(0);
- } else {
- numerator = (0, _generated.numericLiteral)(1);
- }
-
- result = (0, _generated.binaryExpression)("/", numerator, (0, _generated.numericLiteral)(0));
- }
-
- if (value < 0 || Object.is(value, -0)) {
- result = (0, _generated.unaryExpression)("-", result);
- }
-
- return result;
- }
-
- if ((0, _isRegExp().default)(value)) {
- const pattern = value.source;
- const flags = value.toString().match(/\/([a-z]+|)$/)[1];
- return (0, _generated.regExpLiteral)(pattern, flags);
- }
-
- if (Array.isArray(value)) {
- return (0, _generated.arrayExpression)(value.map(valueToNode));
- }
-
- if ((0, _isPlainObject().default)(value)) {
- const props = [];
-
- for (const key in value) {
- let nodeKey;
-
- if ((0, _isValidIdentifier.default)(key)) {
- nodeKey = (0, _generated.identifier)(key);
- } else {
- nodeKey = (0, _generated.stringLiteral)(key);
- }
-
- props.push((0, _generated.objectProperty)(nodeKey, valueToNode(value[key])));
- }
-
- return (0, _generated.objectExpression)(props);
- }
-
- throw new Error("don't know how to turn this value into a node");
-}
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/core.js b/AuthenticationSDK/node_modules/@babel/types/lib/definitions/core.js
deleted file mode 100644
index a82b6e43..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/core.js
+++ /dev/null
@@ -1,716 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.patternLikeCommon = exports.functionDeclarationCommon = exports.functionTypeAnnotationCommon = exports.functionCommon = void 0;
-
-var _isValidIdentifier = _interopRequireDefault(require("../validators/isValidIdentifier"));
-
-var _constants = require("../constants");
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-(0, _utils.default)("ArrayExpression", {
- fields: {
- elements: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null", "Expression", "SpreadElement"))),
- default: []
- }
- },
- visitor: ["elements"],
- aliases: ["Expression"]
-});
-(0, _utils.default)("AssignmentExpression", {
- fields: {
- operator: {
- validate: (0, _utils.assertValueType)("string")
- },
- left: {
- validate: (0, _utils.assertNodeType)("LVal")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- },
- builder: ["operator", "left", "right"],
- visitor: ["left", "right"],
- aliases: ["Expression"]
-});
-(0, _utils.default)("BinaryExpression", {
- builder: ["operator", "left", "right"],
- fields: {
- operator: {
- validate: (0, _utils.assertOneOf)(..._constants.BINARY_OPERATORS)
- },
- left: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- },
- visitor: ["left", "right"],
- aliases: ["Binary", "Expression"]
-});
-(0, _utils.default)("InterpreterDirective", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- }
-});
-(0, _utils.default)("Directive", {
- visitor: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertNodeType)("DirectiveLiteral")
- }
- }
-});
-(0, _utils.default)("DirectiveLiteral", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- }
-});
-(0, _utils.default)("BlockStatement", {
- builder: ["body", "directives"],
- visitor: ["directives", "body"],
- fields: {
- directives: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))),
- default: []
- },
- body: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))
- }
- },
- aliases: ["Scopable", "BlockParent", "Block", "Statement"]
-});
-(0, _utils.default)("BreakStatement", {
- visitor: ["label"],
- fields: {
- label: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- }
- },
- aliases: ["Statement", "Terminatorless", "CompletionStatement"]
-});
-(0, _utils.default)("CallExpression", {
- visitor: ["callee", "arguments", "typeParameters"],
- builder: ["callee", "arguments"],
- aliases: ["Expression"],
- fields: {
- callee: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- arguments: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement", "JSXNamespacedName")))
- },
- optional: {
- validate: (0, _utils.assertOneOf)(true, false),
- optional: true
- },
- typeArguments: {
- validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
- optional: true
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"),
- optional: true
- }
- }
-});
-(0, _utils.default)("CatchClause", {
- visitor: ["param", "body"],
- fields: {
- param: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- },
- aliases: ["Scopable", "BlockParent"]
-});
-(0, _utils.default)("ConditionalExpression", {
- visitor: ["test", "consequent", "alternate"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- consequent: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- alternate: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- },
- aliases: ["Expression", "Conditional"]
-});
-(0, _utils.default)("ContinueStatement", {
- visitor: ["label"],
- fields: {
- label: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- }
- },
- aliases: ["Statement", "Terminatorless", "CompletionStatement"]
-});
-(0, _utils.default)("DebuggerStatement", {
- aliases: ["Statement"]
-});
-(0, _utils.default)("DoWhileStatement", {
- visitor: ["test", "body"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- }
- },
- aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"]
-});
-(0, _utils.default)("EmptyStatement", {
- aliases: ["Statement"]
-});
-(0, _utils.default)("ExpressionStatement", {
- visitor: ["expression"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- },
- aliases: ["Statement", "ExpressionWrapper"]
-});
-(0, _utils.default)("File", {
- builder: ["program", "comments", "tokens"],
- visitor: ["program"],
- fields: {
- program: {
- validate: (0, _utils.assertNodeType)("Program")
- }
- }
-});
-(0, _utils.default)("ForInStatement", {
- visitor: ["left", "right", "body"],
- aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
- fields: {
- left: {
- validate: (0, _utils.assertNodeType)("VariableDeclaration", "LVal")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- }
- }
-});
-(0, _utils.default)("ForStatement", {
- visitor: ["init", "test", "update", "body"],
- aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"],
- fields: {
- init: {
- validate: (0, _utils.assertNodeType)("VariableDeclaration", "Expression"),
- optional: true
- },
- test: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- },
- update: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- }
- }
-});
-const functionCommon = {
- params: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("LVal")))
- },
- generator: {
- default: false,
- validate: (0, _utils.assertValueType)("boolean")
- },
- async: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- }
-};
-exports.functionCommon = functionCommon;
-const functionTypeAnnotationCommon = {
- returnType: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
- optional: true
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
- optional: true
- }
-};
-exports.functionTypeAnnotationCommon = functionTypeAnnotationCommon;
-const functionDeclarationCommon = Object.assign({}, functionCommon, {
- declare: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- id: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- }
-});
-exports.functionDeclarationCommon = functionDeclarationCommon;
-(0, _utils.default)("FunctionDeclaration", {
- builder: ["id", "params", "body", "generator", "async"],
- visitor: ["id", "params", "body", "returnType", "typeParameters"],
- fields: Object.assign({}, functionDeclarationCommon, functionTypeAnnotationCommon, {
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- }),
- aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"]
-});
-(0, _utils.default)("FunctionExpression", {
- inherits: "FunctionDeclaration",
- aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
- fields: Object.assign({}, functionCommon, functionTypeAnnotationCommon, {
- id: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- })
-});
-const patternLikeCommon = {
- typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
- optional: true
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator")))
- }
-};
-exports.patternLikeCommon = patternLikeCommon;
-(0, _utils.default)("Identifier", {
- builder: ["name"],
- visitor: ["typeAnnotation"],
- aliases: ["Expression", "PatternLike", "LVal", "TSEntityName"],
- fields: Object.assign({}, patternLikeCommon, {
- name: {
- validate: (0, _utils.chain)(function (node, key, val) {
- if (!(0, _isValidIdentifier.default)(val)) {}
- }, (0, _utils.assertValueType)("string"))
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- }
- })
-});
-(0, _utils.default)("IfStatement", {
- visitor: ["test", "consequent", "alternate"],
- aliases: ["Statement", "Conditional"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- consequent: {
- validate: (0, _utils.assertNodeType)("Statement")
- },
- alternate: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Statement")
- }
- }
-});
-(0, _utils.default)("LabeledStatement", {
- visitor: ["label", "body"],
- aliases: ["Statement"],
- fields: {
- label: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- }
- }
-});
-(0, _utils.default)("StringLiteral", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- },
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
-(0, _utils.default)("NumericLiteral", {
- builder: ["value"],
- deprecatedAlias: "NumberLiteral",
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("number")
- }
- },
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
-(0, _utils.default)("NullLiteral", {
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
-(0, _utils.default)("BooleanLiteral", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("boolean")
- }
- },
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
-(0, _utils.default)("RegExpLiteral", {
- builder: ["pattern", "flags"],
- deprecatedAlias: "RegexLiteral",
- aliases: ["Expression", "Literal"],
- fields: {
- pattern: {
- validate: (0, _utils.assertValueType)("string")
- },
- flags: {
- validate: (0, _utils.assertValueType)("string"),
- default: ""
- }
- }
-});
-(0, _utils.default)("LogicalExpression", {
- builder: ["operator", "left", "right"],
- visitor: ["left", "right"],
- aliases: ["Binary", "Expression"],
- fields: {
- operator: {
- validate: (0, _utils.assertOneOf)(..._constants.LOGICAL_OPERATORS)
- },
- left: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("MemberExpression", {
- builder: ["object", "property", "computed", "optional"],
- visitor: ["object", "property"],
- aliases: ["Expression", "LVal"],
- fields: {
- object: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- property: {
- validate: function () {
- const normal = (0, _utils.assertNodeType)("Identifier", "PrivateName");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }()
- },
- computed: {
- default: false
- },
- optional: {
- validate: (0, _utils.assertOneOf)(true, false),
- optional: true
- }
- }
-});
-(0, _utils.default)("NewExpression", {
- inherits: "CallExpression"
-});
-(0, _utils.default)("Program", {
- visitor: ["directives", "body"],
- builder: ["body", "directives", "sourceType", "interpreter"],
- fields: {
- sourceFile: {
- validate: (0, _utils.assertValueType)("string")
- },
- sourceType: {
- validate: (0, _utils.assertOneOf)("script", "module"),
- default: "script"
- },
- interpreter: {
- validate: (0, _utils.assertNodeType)("InterpreterDirective"),
- default: null,
- optional: true
- },
- directives: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))),
- default: []
- },
- body: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))
- }
- },
- aliases: ["Scopable", "BlockParent", "Block"]
-});
-(0, _utils.default)("ObjectExpression", {
- visitor: ["properties"],
- aliases: ["Expression"],
- fields: {
- properties: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectMethod", "ObjectProperty", "SpreadElement")))
- }
- }
-});
-(0, _utils.default)("ObjectMethod", {
- builder: ["kind", "key", "params", "body", "computed"],
- fields: Object.assign({}, functionCommon, functionTypeAnnotationCommon, {
- kind: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("method", "get", "set")),
- default: "method"
- },
- computed: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- },
- key: {
- validate: function () {
- const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }()
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator")))
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- }),
- visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"],
- aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"]
-});
-(0, _utils.default)("ObjectProperty", {
- builder: ["key", "value", "computed", "shorthand", "decorators"],
- fields: {
- computed: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- },
- key: {
- validate: function () {
- const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }()
- },
- value: {
- validate: (0, _utils.assertNodeType)("Expression", "PatternLike")
- },
- shorthand: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- }
- },
- visitor: ["key", "value", "decorators"],
- aliases: ["UserWhitespacable", "Property", "ObjectMember"]
-});
-(0, _utils.default)("RestElement", {
- visitor: ["argument", "typeAnnotation"],
- builder: ["argument"],
- aliases: ["LVal", "PatternLike"],
- deprecatedAlias: "RestProperty",
- fields: Object.assign({}, patternLikeCommon, {
- argument: {
- validate: (0, _utils.assertNodeType)("LVal")
- }
- })
-});
-(0, _utils.default)("ReturnStatement", {
- visitor: ["argument"],
- aliases: ["Statement", "Terminatorless", "CompletionStatement"],
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- }
- }
-});
-(0, _utils.default)("SequenceExpression", {
- visitor: ["expressions"],
- fields: {
- expressions: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression")))
- }
- },
- aliases: ["Expression"]
-});
-(0, _utils.default)("SwitchCase", {
- visitor: ["test", "consequent"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- },
- consequent: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement")))
- }
- }
-});
-(0, _utils.default)("SwitchStatement", {
- visitor: ["discriminant", "cases"],
- aliases: ["Statement", "BlockParent", "Scopable"],
- fields: {
- discriminant: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- cases: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("SwitchCase")))
- }
- }
-});
-(0, _utils.default)("ThisExpression", {
- aliases: ["Expression"]
-});
-(0, _utils.default)("ThrowStatement", {
- visitor: ["argument"],
- aliases: ["Statement", "Terminatorless", "CompletionStatement"],
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("TryStatement", {
- visitor: ["block", "handler", "finalizer"],
- aliases: ["Statement"],
- fields: {
- block: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- },
- handler: {
- optional: true,
- validate: (0, _utils.assertNodeType)("CatchClause")
- },
- finalizer: {
- optional: true,
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- }
-});
-(0, _utils.default)("UnaryExpression", {
- builder: ["operator", "argument", "prefix"],
- fields: {
- prefix: {
- default: true
- },
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- operator: {
- validate: (0, _utils.assertOneOf)(..._constants.UNARY_OPERATORS)
- }
- },
- visitor: ["argument"],
- aliases: ["UnaryLike", "Expression"]
-});
-(0, _utils.default)("UpdateExpression", {
- builder: ["operator", "argument", "prefix"],
- fields: {
- prefix: {
- default: false
- },
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- operator: {
- validate: (0, _utils.assertOneOf)(..._constants.UPDATE_OPERATORS)
- }
- },
- visitor: ["argument"],
- aliases: ["Expression"]
-});
-(0, _utils.default)("VariableDeclaration", {
- builder: ["kind", "declarations"],
- visitor: ["declarations"],
- aliases: ["Statement", "Declaration"],
- fields: {
- declare: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- kind: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("var", "let", "const"))
- },
- declarations: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("VariableDeclarator")))
- }
- }
-});
-(0, _utils.default)("VariableDeclarator", {
- visitor: ["id", "init"],
- fields: {
- id: {
- validate: (0, _utils.assertNodeType)("LVal")
- },
- definite: {
- optional: true,
- validate: (0, _utils.assertValueType)("boolean")
- },
- init: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("WhileStatement", {
- visitor: ["test", "body"],
- aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"],
- fields: {
- test: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement", "Statement")
- }
- }
-});
-(0, _utils.default)("WithStatement", {
- visitor: ["object", "body"],
- aliases: ["Statement"],
- fields: {
- object: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement", "Statement")
- }
- }
-});
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/es2015.js b/AuthenticationSDK/node_modules/@babel/types/lib/definitions/es2015.js
deleted file mode 100644
index 1ef16a1c..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/es2015.js
+++ /dev/null
@@ -1,381 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.classMethodOrDeclareMethodCommon = exports.classMethodOrPropertyCommon = void 0;
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-var _core = require("./core");
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-(0, _utils.default)("AssignmentPattern", {
- visitor: ["left", "right"],
- builder: ["left", "right"],
- aliases: ["Pattern", "PatternLike", "LVal"],
- fields: Object.assign({}, _core.patternLikeCommon, {
- left: {
- validate: (0, _utils.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator")))
- }
- })
-});
-(0, _utils.default)("ArrayPattern", {
- visitor: ["elements", "typeAnnotation"],
- builder: ["elements"],
- aliases: ["Pattern", "PatternLike", "LVal"],
- fields: Object.assign({}, _core.patternLikeCommon, {
- elements: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("PatternLike")))
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator")))
- }
- })
-});
-(0, _utils.default)("ArrowFunctionExpression", {
- builder: ["params", "body", "async"],
- visitor: ["params", "body", "returnType", "typeParameters"],
- aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
- fields: Object.assign({}, _core.functionCommon, _core.functionTypeAnnotationCommon, {
- expression: {
- validate: (0, _utils.assertValueType)("boolean")
- },
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement", "Expression")
- }
- })
-});
-(0, _utils.default)("ClassBody", {
- visitor: ["body"],
- fields: {
- body: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ClassMethod", "ClassProperty", "ClassPrivateProperty", "TSDeclareMethod", "TSIndexSignature")))
- }
- }
-});
-const classCommon = {
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
- optional: true
- },
- body: {
- validate: (0, _utils.assertNodeType)("ClassBody")
- },
- superClass: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Expression")
- },
- superTypeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
- optional: true
- },
- implements: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSExpressionWithTypeArguments", "ClassImplements"))),
- optional: true
- }
-};
-(0, _utils.default)("ClassDeclaration", {
- builder: ["id", "superClass", "body", "decorators"],
- visitor: ["id", "body", "superClass", "mixins", "typeParameters", "superTypeParameters", "implements", "decorators"],
- aliases: ["Scopable", "Class", "Statement", "Declaration", "Pureish"],
- fields: Object.assign({}, classCommon, {
- declare: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- abstract: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- id: {
- validate: (0, _utils.assertNodeType)("Identifier"),
- optional: true
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- }
- })
-});
-(0, _utils.default)("ClassExpression", {
- inherits: "ClassDeclaration",
- aliases: ["Scopable", "Class", "Expression", "Pureish"],
- fields: Object.assign({}, classCommon, {
- id: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- body: {
- validate: (0, _utils.assertNodeType)("ClassBody")
- },
- superClass: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Expression")
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- }
- })
-});
-(0, _utils.default)("ExportAllDeclaration", {
- visitor: ["source"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],
- fields: {
- source: {
- validate: (0, _utils.assertNodeType)("StringLiteral")
- }
- }
-});
-(0, _utils.default)("ExportDefaultDeclaration", {
- visitor: ["declaration"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],
- fields: {
- declaration: {
- validate: (0, _utils.assertNodeType)("FunctionDeclaration", "TSDeclareFunction", "ClassDeclaration", "Expression")
- }
- }
-});
-(0, _utils.default)("ExportNamedDeclaration", {
- visitor: ["declaration", "specifiers", "source"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],
- fields: {
- declaration: {
- validate: (0, _utils.assertNodeType)("Declaration"),
- optional: true
- },
- specifiers: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier")))
- },
- source: {
- validate: (0, _utils.assertNodeType)("StringLiteral"),
- optional: true
- }
- }
-});
-(0, _utils.default)("ExportSpecifier", {
- visitor: ["local", "exported"],
- aliases: ["ModuleSpecifier"],
- fields: {
- local: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- exported: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("ForOfStatement", {
- visitor: ["left", "right", "body"],
- aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
- fields: {
- left: {
- validate: (0, _utils.assertNodeType)("VariableDeclaration", "LVal")
- },
- right: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- body: {
- validate: (0, _utils.assertNodeType)("Statement")
- },
- await: {
- default: false,
- validate: (0, _utils.assertValueType)("boolean")
- }
- }
-});
-(0, _utils.default)("ImportDeclaration", {
- visitor: ["specifiers", "source"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration"],
- fields: {
- specifiers: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier")))
- },
- source: {
- validate: (0, _utils.assertNodeType)("StringLiteral")
- }
- }
-});
-(0, _utils.default)("ImportDefaultSpecifier", {
- visitor: ["local"],
- aliases: ["ModuleSpecifier"],
- fields: {
- local: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("ImportNamespaceSpecifier", {
- visitor: ["local"],
- aliases: ["ModuleSpecifier"],
- fields: {
- local: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("ImportSpecifier", {
- visitor: ["local", "imported"],
- aliases: ["ModuleSpecifier"],
- fields: {
- local: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- imported: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- importKind: {
- validate: (0, _utils.assertOneOf)(null, "type", "typeof")
- }
- }
-});
-(0, _utils.default)("MetaProperty", {
- visitor: ["meta", "property"],
- aliases: ["Expression"],
- fields: {
- meta: {
- validate: (0, _utils.assertNodeType)("Identifier")
- },
- property: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-const classMethodOrPropertyCommon = {
- abstract: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- accessibility: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("public", "private", "protected")),
- optional: true
- },
- static: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- computed: {
- default: false,
- validate: (0, _utils.assertValueType)("boolean")
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- key: {
- validate: (0, _utils.chain)(function () {
- const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "Expression"))
- }
-};
-exports.classMethodOrPropertyCommon = classMethodOrPropertyCommon;
-const classMethodOrDeclareMethodCommon = Object.assign({}, _core.functionCommon, classMethodOrPropertyCommon, {
- kind: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("get", "set", "method", "constructor")),
- default: "method"
- },
- access: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("public", "private", "protected")),
- optional: true
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- }
-});
-exports.classMethodOrDeclareMethodCommon = classMethodOrDeclareMethodCommon;
-(0, _utils.default)("ClassMethod", {
- aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"],
- builder: ["kind", "key", "params", "body", "computed", "static"],
- visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"],
- fields: Object.assign({}, classMethodOrDeclareMethodCommon, _core.functionTypeAnnotationCommon, {
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- })
-});
-(0, _utils.default)("ObjectPattern", {
- visitor: ["properties", "typeAnnotation"],
- builder: ["properties"],
- aliases: ["Pattern", "PatternLike", "LVal"],
- fields: Object.assign({}, _core.patternLikeCommon, {
- properties: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("RestElement", "ObjectProperty")))
- }
- })
-});
-(0, _utils.default)("SpreadElement", {
- visitor: ["argument"],
- aliases: ["UnaryLike"],
- deprecatedAlias: "SpreadProperty",
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("Super", {
- aliases: ["Expression"]
-});
-(0, _utils.default)("TaggedTemplateExpression", {
- visitor: ["tag", "quasi"],
- aliases: ["Expression"],
- fields: {
- tag: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- quasi: {
- validate: (0, _utils.assertNodeType)("TemplateLiteral")
- }
- }
-});
-(0, _utils.default)("TemplateElement", {
- builder: ["value", "tail"],
- fields: {
- value: {},
- tail: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- }
- }
-});
-(0, _utils.default)("TemplateLiteral", {
- visitor: ["quasis", "expressions"],
- aliases: ["Expression", "Literal"],
- fields: {
- quasis: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TemplateElement")))
- },
- expressions: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression")))
- }
- }
-});
-(0, _utils.default)("YieldExpression", {
- builder: ["argument", "delegate"],
- visitor: ["argument"],
- aliases: ["Expression", "Terminatorless"],
- fields: {
- delegate: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- },
- argument: {
- optional: true,
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/experimental.js b/AuthenticationSDK/node_modules/@babel/types/lib/definitions/experimental.js
deleted file mode 100644
index 28691dd3..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/experimental.js
+++ /dev/null
@@ -1,170 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-var _es = require("./es2015");
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-(0, _utils.default)("AwaitExpression", {
- builder: ["argument"],
- visitor: ["argument"],
- aliases: ["Expression", "Terminatorless"],
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("BindExpression", {
- visitor: ["object", "callee"],
- aliases: ["Expression"],
- fields: {}
-});
-(0, _utils.default)("ClassProperty", {
- visitor: ["key", "value", "typeAnnotation", "decorators"],
- builder: ["key", "value", "typeAnnotation", "decorators", "computed"],
- aliases: ["Property"],
- fields: Object.assign({}, _es.classMethodOrPropertyCommon, {
- value: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- },
- definite: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
- optional: true
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- },
- readonly: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- }
- })
-});
-(0, _utils.default)("OptionalMemberExpression", {
- builder: ["object", "property", "computed", "optional"],
- visitor: ["object", "property"],
- aliases: ["Expression"],
- fields: {
- object: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- property: {
- validate: function () {
- const normal = (0, _utils.assertNodeType)("Identifier");
- const computed = (0, _utils.assertNodeType)("Expression");
- return function (node, key, val) {
- const validator = node.computed ? computed : normal;
- validator(node, key, val);
- };
- }()
- },
- computed: {
- default: false
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean")
- }
- }
-});
-(0, _utils.default)("OptionalCallExpression", {
- visitor: ["callee", "arguments", "typeParameters"],
- builder: ["callee", "arguments", "optional"],
- aliases: ["Expression"],
- fields: {
- callee: {
- validate: (0, _utils.assertNodeType)("Expression")
- },
- arguments: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement", "JSXNamespacedName")))
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean")
- },
- typeArguments: {
- validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"),
- optional: true
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"),
- optional: true
- }
- }
-});
-(0, _utils.default)("ClassPrivateProperty", {
- visitor: ["key", "value"],
- builder: ["key", "value"],
- aliases: ["Property", "Private"],
- fields: {
- key: {
- validate: (0, _utils.assertNodeType)("PrivateName")
- },
- value: {
- validate: (0, _utils.assertNodeType)("Expression"),
- optional: true
- }
- }
-});
-(0, _utils.default)("Import", {
- aliases: ["Expression"]
-});
-(0, _utils.default)("Decorator", {
- visitor: ["expression"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("DoExpression", {
- visitor: ["body"],
- aliases: ["Expression"],
- fields: {
- body: {
- validate: (0, _utils.assertNodeType)("BlockStatement")
- }
- }
-});
-(0, _utils.default)("ExportDefaultSpecifier", {
- visitor: ["exported"],
- aliases: ["ModuleSpecifier"],
- fields: {
- exported: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("ExportNamespaceSpecifier", {
- visitor: ["exported"],
- aliases: ["ModuleSpecifier"],
- fields: {
- exported: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("PrivateName", {
- visitor: ["id"],
- aliases: ["Private"],
- fields: {
- id: {
- validate: (0, _utils.assertNodeType)("Identifier")
- }
- }
-});
-(0, _utils.default)("BigIntLiteral", {
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- },
- aliases: ["Expression", "Pureish", "Literal", "Immutable"]
-});
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/flow.js b/AuthenticationSDK/node_modules/@babel/types/lib/definitions/flow.js
deleted file mode 100644
index e803b080..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/flow.js
+++ /dev/null
@@ -1,385 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const defineInterfaceishType = (name, typeParameterType = "TypeParameterDeclaration") => {
- (0, _utils.default)(name, {
- builder: ["id", "typeParameters", "extends", "body"],
- visitor: ["id", "typeParameters", "extends", "mixins", "implements", "body"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)(typeParameterType),
- extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")),
- mixins: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")),
- implements: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ClassImplements")),
- body: (0, _utils.validateType)("ObjectTypeAnnotation")
- }
- });
-};
-
-(0, _utils.default)("AnyTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("ArrayTypeAnnotation", {
- visitor: ["elementType"],
- aliases: ["Flow", "FlowType"],
- fields: {
- elementType: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("BooleanTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("BooleanLiteralTypeAnnotation", {
- builder: ["value"],
- aliases: ["Flow", "FlowType"],
- fields: {
- value: (0, _utils.validate)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("NullLiteralTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("ClassImplements", {
- visitor: ["id", "typeParameters"],
- aliases: ["Flow"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation")
- }
-});
-defineInterfaceishType("DeclareClass", "TypeParameterInstantiation");
-(0, _utils.default)("DeclareFunction", {
- visitor: ["id"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- predicate: (0, _utils.validateOptionalType)("DeclaredPredicate")
- }
-});
-defineInterfaceishType("DeclareInterface");
-(0, _utils.default)("DeclareModule", {
- builder: ["id", "body", "kind"],
- visitor: ["id", "body"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)(["Identifier", "StringLiteral"]),
- body: (0, _utils.validateType)("BlockStatement"),
- kind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("CommonJS", "ES"))
- }
-});
-(0, _utils.default)("DeclareModuleExports", {
- visitor: ["typeAnnotation"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("TypeAnnotation")
- }
-});
-(0, _utils.default)("DeclareTypeAlias", {
- visitor: ["id", "typeParameters", "right"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- right: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("DeclareOpaqueType", {
- visitor: ["id", "typeParameters", "supertype"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- supertype: (0, _utils.validateOptionalType)("FlowType")
- }
-});
-(0, _utils.default)("DeclareVariable", {
- visitor: ["id"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier")
- }
-});
-(0, _utils.default)("DeclareExportDeclaration", {
- visitor: ["declaration", "specifiers", "source"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- declaration: (0, _utils.validateOptionalType)("Flow"),
- specifiers: (0, _utils.validateOptional)((0, _utils.arrayOfType)(["ExportSpecifier", "ExportNamespaceSpecifier"])),
- source: (0, _utils.validateOptionalType)("StringLiteral"),
- default: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("DeclareExportAllDeclaration", {
- visitor: ["source"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- source: (0, _utils.validateType)("StringLiteral"),
- exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)(["type", "value"]))
- }
-});
-(0, _utils.default)("DeclaredPredicate", {
- visitor: ["value"],
- aliases: ["Flow", "FlowPredicate"],
- fields: {
- value: (0, _utils.validateType)("Flow")
- }
-});
-(0, _utils.default)("ExistsTypeAnnotation", {
- aliases: ["Flow", "FlowType"]
-});
-(0, _utils.default)("FunctionTypeAnnotation", {
- visitor: ["typeParameters", "params", "rest", "returnType"],
- aliases: ["Flow", "FlowType"],
- fields: {
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- params: (0, _utils.validate)((0, _utils.arrayOfType)("FunctionTypeParam")),
- rest: (0, _utils.validateOptionalType)("FunctionTypeParam"),
- returnType: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("FunctionTypeParam", {
- visitor: ["name", "typeAnnotation"],
- aliases: ["Flow"],
- fields: {
- name: (0, _utils.validateOptionalType)("Identifier"),
- typeAnnotation: (0, _utils.validateType)("FlowType"),
- optional: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("GenericTypeAnnotation", {
- visitor: ["id", "typeParameters"],
- aliases: ["Flow", "FlowType"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation")
- }
-});
-(0, _utils.default)("InferredPredicate", {
- aliases: ["Flow", "FlowPredicate"]
-});
-(0, _utils.default)("InterfaceExtends", {
- visitor: ["id", "typeParameters"],
- aliases: ["Flow"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation")
- }
-});
-defineInterfaceishType("InterfaceDeclaration");
-(0, _utils.default)("InterfaceTypeAnnotation", {
- visitor: ["extends", "body"],
- aliases: ["Flow", "FlowType"],
- fields: {
- extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")),
- body: (0, _utils.validateType)("ObjectTypeAnnotation")
- }
-});
-(0, _utils.default)("IntersectionTypeAnnotation", {
- visitor: ["types"],
- aliases: ["Flow", "FlowType"],
- fields: {
- types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))
- }
-});
-(0, _utils.default)("MixedTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("EmptyTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("NullableTypeAnnotation", {
- visitor: ["typeAnnotation"],
- aliases: ["Flow", "FlowType"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("NumberLiteralTypeAnnotation", {
- builder: ["value"],
- aliases: ["Flow", "FlowType"],
- fields: {
- value: (0, _utils.validate)((0, _utils.assertValueType)("number"))
- }
-});
-(0, _utils.default)("NumberTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("ObjectTypeAnnotation", {
- visitor: ["properties", "indexers", "callProperties", "internalSlots"],
- aliases: ["Flow", "FlowType"],
- builder: ["properties", "indexers", "callProperties", "internalSlots", "exact"],
- fields: {
- properties: (0, _utils.validate)((0, _utils.arrayOfType)(["ObjectTypeProperty", "ObjectTypeSpreadProperty"])),
- indexers: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ObjectTypeIndexer")),
- callProperties: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ObjectTypeCallProperty")),
- internalSlots: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ObjectTypeInternalSlot")),
- exact: {
- validate: (0, _utils.assertValueType)("boolean"),
- default: false
- }
- }
-});
-(0, _utils.default)("ObjectTypeInternalSlot", {
- visitor: ["id", "value", "optional", "static", "method"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- value: (0, _utils.validateType)("FlowType"),
- optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- method: (0, _utils.validate)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("ObjectTypeCallProperty", {
- visitor: ["value"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- value: (0, _utils.validateType)("FlowType"),
- static: (0, _utils.validate)((0, _utils.assertValueType)("boolean"))
- }
-});
-(0, _utils.default)("ObjectTypeIndexer", {
- visitor: ["id", "key", "value", "variance"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- id: (0, _utils.validateOptionalType)("Identifier"),
- key: (0, _utils.validateType)("FlowType"),
- value: (0, _utils.validateType)("FlowType"),
- static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- variance: (0, _utils.validateOptionalType)("Variance")
- }
-});
-(0, _utils.default)("ObjectTypeProperty", {
- visitor: ["key", "value", "variance"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- key: (0, _utils.validateType)(["Identifier", "StringLiteral"]),
- value: (0, _utils.validateType)("FlowType"),
- kind: (0, _utils.validate)((0, _utils.assertOneOf)("init", "get", "set")),
- static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- proto: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")),
- variance: (0, _utils.validateOptionalType)("Variance")
- }
-});
-(0, _utils.default)("ObjectTypeSpreadProperty", {
- visitor: ["argument"],
- aliases: ["Flow", "UserWhitespacable"],
- fields: {
- argument: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("OpaqueType", {
- visitor: ["id", "typeParameters", "supertype", "impltype"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- supertype: (0, _utils.validateOptionalType)("FlowType"),
- impltype: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("QualifiedTypeIdentifier", {
- visitor: ["id", "qualification"],
- aliases: ["Flow"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- qualification: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"])
- }
-});
-(0, _utils.default)("StringLiteralTypeAnnotation", {
- builder: ["value"],
- aliases: ["Flow", "FlowType"],
- fields: {
- value: (0, _utils.validate)((0, _utils.assertValueType)("string"))
- }
-});
-(0, _utils.default)("StringTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("ThisTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
-(0, _utils.default)("TupleTypeAnnotation", {
- visitor: ["types"],
- aliases: ["Flow", "FlowType"],
- fields: {
- types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))
- }
-});
-(0, _utils.default)("TypeofTypeAnnotation", {
- visitor: ["argument"],
- aliases: ["Flow", "FlowType"],
- fields: {
- argument: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("TypeAlias", {
- visitor: ["id", "typeParameters", "right"],
- aliases: ["Flow", "FlowDeclaration", "Statement", "Declaration"],
- fields: {
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"),
- right: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("TypeAnnotation", {
- aliases: ["Flow"],
- visitor: ["typeAnnotation"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("FlowType")
- }
-});
-(0, _utils.default)("TypeCastExpression", {
- visitor: ["expression", "typeAnnotation"],
- aliases: ["Flow", "ExpressionWrapper", "Expression"],
- fields: {
- expression: (0, _utils.validateType)("Expression"),
- typeAnnotation: (0, _utils.validateType)("TypeAnnotation")
- }
-});
-(0, _utils.default)("TypeParameter", {
- aliases: ["Flow"],
- visitor: ["bound", "default", "variance"],
- fields: {
- name: (0, _utils.validate)((0, _utils.assertValueType)("string")),
- bound: (0, _utils.validateOptionalType)("TypeAnnotation"),
- default: (0, _utils.validateOptionalType)("FlowType"),
- variance: (0, _utils.validateOptionalType)("Variance")
- }
-});
-(0, _utils.default)("TypeParameterDeclaration", {
- aliases: ["Flow"],
- visitor: ["params"],
- fields: {
- params: (0, _utils.validate)((0, _utils.arrayOfType)("TypeParameter"))
- }
-});
-(0, _utils.default)("TypeParameterInstantiation", {
- aliases: ["Flow"],
- visitor: ["params"],
- fields: {
- params: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))
- }
-});
-(0, _utils.default)("UnionTypeAnnotation", {
- visitor: ["types"],
- aliases: ["Flow", "FlowType"],
- fields: {
- types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType"))
- }
-});
-(0, _utils.default)("Variance", {
- aliases: ["Flow"],
- builder: ["kind"],
- fields: {
- kind: (0, _utils.validate)((0, _utils.assertOneOf)("minus", "plus"))
- }
-});
-(0, _utils.default)("VoidTypeAnnotation", {
- aliases: ["Flow", "FlowType", "FlowBaseAnnotation"]
-});
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/index.js b/AuthenticationSDK/node_modules/@babel/types/lib/definitions/index.js
deleted file mode 100644
index ddb9e510..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/index.js
+++ /dev/null
@@ -1,79 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-Object.defineProperty(exports, "VISITOR_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.VISITOR_KEYS;
- }
-});
-Object.defineProperty(exports, "ALIAS_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.ALIAS_KEYS;
- }
-});
-Object.defineProperty(exports, "FLIPPED_ALIAS_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.FLIPPED_ALIAS_KEYS;
- }
-});
-Object.defineProperty(exports, "NODE_FIELDS", {
- enumerable: true,
- get: function () {
- return _utils.NODE_FIELDS;
- }
-});
-Object.defineProperty(exports, "BUILDER_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.BUILDER_KEYS;
- }
-});
-Object.defineProperty(exports, "DEPRECATED_KEYS", {
- enumerable: true,
- get: function () {
- return _utils.DEPRECATED_KEYS;
- }
-});
-exports.TYPES = void 0;
-
-function _toFastProperties() {
- const data = _interopRequireDefault(require("to-fast-properties"));
-
- _toFastProperties = function () {
- return data;
- };
-
- return data;
-}
-
-require("./core");
-
-require("./es2015");
-
-require("./flow");
-
-require("./jsx");
-
-require("./misc");
-
-require("./experimental");
-
-require("./typescript");
-
-var _utils = require("./utils");
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-(0, _toFastProperties().default)(_utils.VISITOR_KEYS);
-(0, _toFastProperties().default)(_utils.ALIAS_KEYS);
-(0, _toFastProperties().default)(_utils.FLIPPED_ALIAS_KEYS);
-(0, _toFastProperties().default)(_utils.NODE_FIELDS);
-(0, _toFastProperties().default)(_utils.BUILDER_KEYS);
-(0, _toFastProperties().default)(_utils.DEPRECATED_KEYS);
-const TYPES = Object.keys(_utils.VISITOR_KEYS).concat(Object.keys(_utils.FLIPPED_ALIAS_KEYS)).concat(Object.keys(_utils.DEPRECATED_KEYS));
-exports.TYPES = TYPES;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/jsx.js b/AuthenticationSDK/node_modules/@babel/types/lib/definitions/jsx.js
deleted file mode 100644
index 0ed8978b..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/jsx.js
+++ /dev/null
@@ -1,156 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-(0, _utils.default)("JSXAttribute", {
- visitor: ["name", "value"],
- aliases: ["JSX", "Immutable"],
- fields: {
- name: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXNamespacedName")
- },
- value: {
- optional: true,
- validate: (0, _utils.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer")
- }
- }
-});
-(0, _utils.default)("JSXClosingElement", {
- visitor: ["name"],
- aliases: ["JSX", "Immutable"],
- fields: {
- name: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXMemberExpression")
- }
- }
-});
-(0, _utils.default)("JSXElement", {
- builder: ["openingElement", "closingElement", "children", "selfClosing"],
- visitor: ["openingElement", "children", "closingElement"],
- aliases: ["JSX", "Immutable", "Expression"],
- fields: {
- openingElement: {
- validate: (0, _utils.assertNodeType)("JSXOpeningElement")
- },
- closingElement: {
- optional: true,
- validate: (0, _utils.assertNodeType)("JSXClosingElement")
- },
- children: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment")))
- }
- }
-});
-(0, _utils.default)("JSXEmptyExpression", {
- aliases: ["JSX"]
-});
-(0, _utils.default)("JSXExpressionContainer", {
- visitor: ["expression"],
- aliases: ["JSX", "Immutable"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("JSXSpreadChild", {
- visitor: ["expression"],
- aliases: ["JSX", "Immutable"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("JSXIdentifier", {
- builder: ["name"],
- aliases: ["JSX"],
- fields: {
- name: {
- validate: (0, _utils.assertValueType)("string")
- }
- }
-});
-(0, _utils.default)("JSXMemberExpression", {
- visitor: ["object", "property"],
- aliases: ["JSX"],
- fields: {
- object: {
- validate: (0, _utils.assertNodeType)("JSXMemberExpression", "JSXIdentifier")
- },
- property: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier")
- }
- }
-});
-(0, _utils.default)("JSXNamespacedName", {
- visitor: ["namespace", "name"],
- aliases: ["JSX"],
- fields: {
- namespace: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier")
- },
- name: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier")
- }
- }
-});
-(0, _utils.default)("JSXOpeningElement", {
- builder: ["name", "attributes", "selfClosing"],
- visitor: ["name", "attributes"],
- aliases: ["JSX", "Immutable"],
- fields: {
- name: {
- validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXMemberExpression")
- },
- selfClosing: {
- default: false,
- validate: (0, _utils.assertValueType)("boolean")
- },
- attributes: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXAttribute", "JSXSpreadAttribute")))
- }
- }
-});
-(0, _utils.default)("JSXSpreadAttribute", {
- visitor: ["argument"],
- aliases: ["JSX"],
- fields: {
- argument: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
-(0, _utils.default)("JSXText", {
- aliases: ["JSX", "Immutable"],
- builder: ["value"],
- fields: {
- value: {
- validate: (0, _utils.assertValueType)("string")
- }
- }
-});
-(0, _utils.default)("JSXFragment", {
- builder: ["openingFragment", "closingFragment", "children"],
- visitor: ["openingFragment", "children", "closingFragment"],
- aliases: ["JSX", "Immutable", "Expression"],
- fields: {
- openingFragment: {
- validate: (0, _utils.assertNodeType)("JSXOpeningFragment")
- },
- closingFragment: {
- validate: (0, _utils.assertNodeType)("JSXClosingFragment")
- },
- children: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment")))
- }
- }
-});
-(0, _utils.default)("JSXOpeningFragment", {
- aliases: ["JSX", "Immutable"]
-});
-(0, _utils.default)("JSXClosingFragment", {
- aliases: ["JSX", "Immutable"]
-});
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/misc.js b/AuthenticationSDK/node_modules/@babel/types/lib/definitions/misc.js
deleted file mode 100644
index 714f2979..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/misc.js
+++ /dev/null
@@ -1,18 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-(0, _utils.default)("Noop", {
- visitor: []
-});
-(0, _utils.default)("ParenthesizedExpression", {
- visitor: ["expression"],
- aliases: ["Expression", "ExpressionWrapper"],
- fields: {
- expression: {
- validate: (0, _utils.assertNodeType)("Expression")
- }
- }
-});
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/typescript.js b/AuthenticationSDK/node_modules/@babel/types/lib/definitions/typescript.js
deleted file mode 100644
index e5582403..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/typescript.js
+++ /dev/null
@@ -1,388 +0,0 @@
-"use strict";
-
-var _utils = _interopRequireWildcard(require("./utils"));
-
-var _core = require("./core");
-
-var _es = require("./es2015");
-
-function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
-
-const bool = (0, _utils.assertValueType)("boolean");
-const tSFunctionTypeAnnotationCommon = {
- returnType: {
- validate: (0, _utils.assertNodeType)("TSTypeAnnotation", "Noop"),
- optional: true
- },
- typeParameters: {
- validate: (0, _utils.assertNodeType)("TSTypeParameterDeclaration", "Noop"),
- optional: true
- }
-};
-(0, _utils.default)("TSParameterProperty", {
- aliases: ["LVal"],
- visitor: ["parameter"],
- fields: {
- accessibility: {
- validate: (0, _utils.assertOneOf)("public", "private", "protected"),
- optional: true
- },
- readonly: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
- },
- parameter: {
- validate: (0, _utils.assertNodeType)("Identifier", "AssignmentPattern")
- }
- }
-});
-(0, _utils.default)("TSDeclareFunction", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "typeParameters", "params", "returnType"],
- fields: Object.assign({}, _core.functionDeclarationCommon, tSFunctionTypeAnnotationCommon)
-});
-(0, _utils.default)("TSDeclareMethod", {
- visitor: ["decorators", "key", "typeParameters", "params", "returnType"],
- fields: Object.assign({}, _es.classMethodOrDeclareMethodCommon, tSFunctionTypeAnnotationCommon)
-});
-(0, _utils.default)("TSQualifiedName", {
- aliases: ["TSEntityName"],
- visitor: ["left", "right"],
- fields: {
- left: (0, _utils.validateType)("TSEntityName"),
- right: (0, _utils.validateType)("Identifier")
- }
-});
-const signatureDeclarationCommon = {
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"),
- parameters: (0, _utils.validateArrayOfType)(["Identifier", "RestElement"]),
- typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation")
-};
-const callConstructSignatureDeclaration = {
- aliases: ["TSTypeElement"],
- visitor: ["typeParameters", "parameters", "typeAnnotation"],
- fields: signatureDeclarationCommon
-};
-(0, _utils.default)("TSCallSignatureDeclaration", callConstructSignatureDeclaration);
-(0, _utils.default)("TSConstructSignatureDeclaration", callConstructSignatureDeclaration);
-const namedTypeElementCommon = {
- key: (0, _utils.validateType)("Expression"),
- computed: (0, _utils.validate)(bool),
- optional: (0, _utils.validateOptional)(bool)
-};
-(0, _utils.default)("TSPropertySignature", {
- aliases: ["TSTypeElement"],
- visitor: ["key", "typeAnnotation", "initializer"],
- fields: Object.assign({}, namedTypeElementCommon, {
- readonly: (0, _utils.validateOptional)(bool),
- typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"),
- initializer: (0, _utils.validateOptionalType)("Expression")
- })
-});
-(0, _utils.default)("TSMethodSignature", {
- aliases: ["TSTypeElement"],
- visitor: ["key", "typeParameters", "parameters", "typeAnnotation"],
- fields: Object.assign({}, signatureDeclarationCommon, namedTypeElementCommon)
-});
-(0, _utils.default)("TSIndexSignature", {
- aliases: ["TSTypeElement"],
- visitor: ["parameters", "typeAnnotation"],
- fields: {
- readonly: (0, _utils.validateOptional)(bool),
- parameters: (0, _utils.validateArrayOfType)("Identifier"),
- typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation")
- }
-});
-const tsKeywordTypes = ["TSAnyKeyword", "TSNumberKeyword", "TSObjectKeyword", "TSBooleanKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSVoidKeyword", "TSUndefinedKeyword", "TSNullKeyword", "TSNeverKeyword"];
-
-for (const type of tsKeywordTypes) {
- (0, _utils.default)(type, {
- aliases: ["TSType"],
- visitor: [],
- fields: {}
- });
-}
-
-(0, _utils.default)("TSThisType", {
- aliases: ["TSType"],
- visitor: [],
- fields: {}
-});
-const fnOrCtr = {
- aliases: ["TSType"],
- visitor: ["typeParameters", "typeAnnotation"],
- fields: signatureDeclarationCommon
-};
-(0, _utils.default)("TSFunctionType", fnOrCtr);
-(0, _utils.default)("TSConstructorType", fnOrCtr);
-(0, _utils.default)("TSTypeReference", {
- aliases: ["TSType"],
- visitor: ["typeName", "typeParameters"],
- fields: {
- typeName: (0, _utils.validateType)("TSEntityName"),
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation")
- }
-});
-(0, _utils.default)("TSTypePredicate", {
- aliases: ["TSType"],
- visitor: ["parameterName", "typeAnnotation"],
- fields: {
- parameterName: (0, _utils.validateType)(["Identifier", "TSThisType"]),
- typeAnnotation: (0, _utils.validateType)("TSTypeAnnotation")
- }
-});
-(0, _utils.default)("TSTypeQuery", {
- aliases: ["TSType"],
- visitor: ["exprName"],
- fields: {
- exprName: (0, _utils.validateType)("TSEntityName")
- }
-});
-(0, _utils.default)("TSTypeLiteral", {
- aliases: ["TSType"],
- visitor: ["members"],
- fields: {
- members: (0, _utils.validateArrayOfType)("TSTypeElement")
- }
-});
-(0, _utils.default)("TSArrayType", {
- aliases: ["TSType"],
- visitor: ["elementType"],
- fields: {
- elementType: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSTupleType", {
- aliases: ["TSType"],
- visitor: ["elementTypes"],
- fields: {
- elementTypes: (0, _utils.validateArrayOfType)("TSType")
- }
-});
-const unionOrIntersection = {
- aliases: ["TSType"],
- visitor: ["types"],
- fields: {
- types: (0, _utils.validateArrayOfType)("TSType")
- }
-};
-(0, _utils.default)("TSUnionType", unionOrIntersection);
-(0, _utils.default)("TSIntersectionType", unionOrIntersection);
-(0, _utils.default)("TSConditionalType", {
- aliases: ["TSType"],
- visitor: ["checkType", "extendsType", "trueType", "falseType"],
- fields: {
- checkType: (0, _utils.validateType)("TSType"),
- extendsType: (0, _utils.validateType)("TSType"),
- trueType: (0, _utils.validateType)("TSType"),
- falseType: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSInferType", {
- aliases: ["TSType"],
- visitor: ["typeParameter"],
- fields: {
- typeParameter: (0, _utils.validateType)("TSTypeParameter")
- }
-});
-(0, _utils.default)("TSParenthesizedType", {
- aliases: ["TSType"],
- visitor: ["typeAnnotation"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSTypeOperator", {
- aliases: ["TSType"],
- visitor: ["typeAnnotation"],
- fields: {
- operator: (0, _utils.validate)((0, _utils.assertValueType)("string")),
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSIndexedAccessType", {
- aliases: ["TSType"],
- visitor: ["objectType", "indexType"],
- fields: {
- objectType: (0, _utils.validateType)("TSType"),
- indexType: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSMappedType", {
- aliases: ["TSType"],
- visitor: ["typeParameter", "typeAnnotation"],
- fields: {
- readonly: (0, _utils.validateOptional)(bool),
- typeParameter: (0, _utils.validateType)("TSTypeParameter"),
- optional: (0, _utils.validateOptional)(bool),
- typeAnnotation: (0, _utils.validateOptionalType)("TSType")
- }
-});
-(0, _utils.default)("TSLiteralType", {
- aliases: ["TSType"],
- visitor: ["literal"],
- fields: {
- literal: (0, _utils.validateType)(["NumericLiteral", "StringLiteral", "BooleanLiteral"])
- }
-});
-(0, _utils.default)("TSExpressionWithTypeArguments", {
- aliases: ["TSType"],
- visitor: ["expression", "typeParameters"],
- fields: {
- expression: (0, _utils.validateType)("TSEntityName"),
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation")
- }
-});
-(0, _utils.default)("TSInterfaceDeclaration", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "typeParameters", "extends", "body"],
- fields: {
- declare: (0, _utils.validateOptional)(bool),
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"),
- extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("TSExpressionWithTypeArguments")),
- body: (0, _utils.validateType)("TSInterfaceBody")
- }
-});
-(0, _utils.default)("TSInterfaceBody", {
- visitor: ["body"],
- fields: {
- body: (0, _utils.validateArrayOfType)("TSTypeElement")
- }
-});
-(0, _utils.default)("TSTypeAliasDeclaration", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "typeParameters", "typeAnnotation"],
- fields: {
- declare: (0, _utils.validateOptional)(bool),
- id: (0, _utils.validateType)("Identifier"),
- typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"),
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSAsExpression", {
- aliases: ["Expression"],
- visitor: ["expression", "typeAnnotation"],
- fields: {
- expression: (0, _utils.validateType)("Expression"),
- typeAnnotation: (0, _utils.validateType)("TSType")
- }
-});
-(0, _utils.default)("TSTypeAssertion", {
- aliases: ["Expression"],
- visitor: ["typeAnnotation", "expression"],
- fields: {
- typeAnnotation: (0, _utils.validateType)("TSType"),
- expression: (0, _utils.validateType)("Expression")
- }
-});
-(0, _utils.default)("TSEnumDeclaration", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "members"],
- fields: {
- declare: (0, _utils.validateOptional)(bool),
- const: (0, _utils.validateOptional)(bool),
- id: (0, _utils.validateType)("Identifier"),
- members: (0, _utils.validateArrayOfType)("TSEnumMember"),
- initializer: (0, _utils.validateOptionalType)("Expression")
- }
-});
-(0, _utils.default)("TSEnumMember", {
- visitor: ["id", "initializer"],
- fields: {
- id: (0, _utils.validateType)(["Identifier", "StringLiteral"]),
- initializer: (0, _utils.validateOptionalType)("Expression")
- }
-});
-(0, _utils.default)("TSModuleDeclaration", {
- aliases: ["Statement", "Declaration"],
- visitor: ["id", "body"],
- fields: {
- declare: (0, _utils.validateOptional)(bool),
- global: (0, _utils.validateOptional)(bool),
- id: (0, _utils.validateType)(["Identifier", "StringLiteral"]),
- body: (0, _utils.validateType)(["TSModuleBlock", "TSModuleDeclaration"])
- }
-});
-(0, _utils.default)("TSModuleBlock", {
- visitor: ["body"],
- fields: {
- body: (0, _utils.validateArrayOfType)("Statement")
- }
-});
-(0, _utils.default)("TSImportEqualsDeclaration", {
- aliases: ["Statement"],
- visitor: ["id", "moduleReference"],
- fields: {
- isExport: (0, _utils.validate)(bool),
- id: (0, _utils.validateType)("Identifier"),
- moduleReference: (0, _utils.validateType)(["TSEntityName", "TSExternalModuleReference"])
- }
-});
-(0, _utils.default)("TSExternalModuleReference", {
- visitor: ["expression"],
- fields: {
- expression: (0, _utils.validateType)("StringLiteral")
- }
-});
-(0, _utils.default)("TSNonNullExpression", {
- aliases: ["Expression"],
- visitor: ["expression"],
- fields: {
- expression: (0, _utils.validateType)("Expression")
- }
-});
-(0, _utils.default)("TSExportAssignment", {
- aliases: ["Statement"],
- visitor: ["expression"],
- fields: {
- expression: (0, _utils.validateType)("Expression")
- }
-});
-(0, _utils.default)("TSNamespaceExportDeclaration", {
- aliases: ["Statement"],
- visitor: ["id"],
- fields: {
- id: (0, _utils.validateType)("Identifier")
- }
-});
-(0, _utils.default)("TSTypeAnnotation", {
- visitor: ["typeAnnotation"],
- fields: {
- typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TSType")
- }
- }
-});
-(0, _utils.default)("TSTypeParameterInstantiation", {
- visitor: ["params"],
- fields: {
- params: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSType")))
- }
- }
-});
-(0, _utils.default)("TSTypeParameterDeclaration", {
- visitor: ["params"],
- fields: {
- params: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSTypeParameter")))
- }
- }
-});
-(0, _utils.default)("TSTypeParameter", {
- visitor: ["constraint", "default"],
- fields: {
- name: {
- validate: (0, _utils.assertValueType)("string")
- },
- constraint: {
- validate: (0, _utils.assertNodeType)("TSType"),
- optional: true
- },
- default: {
- validate: (0, _utils.assertNodeType)("TSType"),
- optional: true
- }
- }
-});
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/utils.js b/AuthenticationSDK/node_modules/@babel/types/lib/definitions/utils.js
deleted file mode 100644
index c8fee08c..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/definitions/utils.js
+++ /dev/null
@@ -1,220 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.validate = validate;
-exports.typeIs = typeIs;
-exports.validateType = validateType;
-exports.validateOptional = validateOptional;
-exports.validateOptionalType = validateOptionalType;
-exports.arrayOf = arrayOf;
-exports.arrayOfType = arrayOfType;
-exports.validateArrayOfType = validateArrayOfType;
-exports.assertEach = assertEach;
-exports.assertOneOf = assertOneOf;
-exports.assertNodeType = assertNodeType;
-exports.assertNodeOrValueType = assertNodeOrValueType;
-exports.assertValueType = assertValueType;
-exports.chain = chain;
-exports.default = defineType;
-exports.DEPRECATED_KEYS = exports.BUILDER_KEYS = exports.NODE_FIELDS = exports.FLIPPED_ALIAS_KEYS = exports.ALIAS_KEYS = exports.VISITOR_KEYS = void 0;
-
-var _is = _interopRequireDefault(require("../validators/is"));
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const VISITOR_KEYS = {};
-exports.VISITOR_KEYS = VISITOR_KEYS;
-const ALIAS_KEYS = {};
-exports.ALIAS_KEYS = ALIAS_KEYS;
-const FLIPPED_ALIAS_KEYS = {};
-exports.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS;
-const NODE_FIELDS = {};
-exports.NODE_FIELDS = NODE_FIELDS;
-const BUILDER_KEYS = {};
-exports.BUILDER_KEYS = BUILDER_KEYS;
-const DEPRECATED_KEYS = {};
-exports.DEPRECATED_KEYS = DEPRECATED_KEYS;
-
-function getType(val) {
- if (Array.isArray(val)) {
- return "array";
- } else if (val === null) {
- return "null";
- } else if (val === undefined) {
- return "undefined";
- } else {
- return typeof val;
- }
-}
-
-function validate(validate) {
- return {
- validate
- };
-}
-
-function typeIs(typeName) {
- return typeof typeName === "string" ? assertNodeType(typeName) : assertNodeType(...typeName);
-}
-
-function validateType(typeName) {
- return validate(typeIs(typeName));
-}
-
-function validateOptional(validate) {
- return {
- validate,
- optional: true
- };
-}
-
-function validateOptionalType(typeName) {
- return {
- validate: typeIs(typeName),
- optional: true
- };
-}
-
-function arrayOf(elementType) {
- return chain(assertValueType("array"), assertEach(elementType));
-}
-
-function arrayOfType(typeName) {
- return arrayOf(typeIs(typeName));
-}
-
-function validateArrayOfType(typeName) {
- return validate(arrayOfType(typeName));
-}
-
-function assertEach(callback) {
- function validator(node, key, val) {
- if (!Array.isArray(val)) return;
-
- for (let i = 0; i < val.length; i++) {
- callback(node, `${key}[${i}]`, val[i]);
- }
- }
-
- validator.each = callback;
- return validator;
-}
-
-function assertOneOf(...values) {
- function validate(node, key, val) {
- if (values.indexOf(val) < 0) {
- throw new TypeError(`Property ${key} expected value to be one of ${JSON.stringify(values)} but got ${JSON.stringify(val)}`);
- }
- }
-
- validate.oneOf = values;
- return validate;
-}
-
-function assertNodeType(...types) {
- function validate(node, key, val) {
- let valid = false;
-
- for (const type of types) {
- if ((0, _is.default)(type, val)) {
- valid = true;
- break;
- }
- }
-
- if (!valid) {
- throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} ` + `but instead got ${JSON.stringify(val && val.type)}`);
- }
- }
-
- validate.oneOfNodeTypes = types;
- return validate;
-}
-
-function assertNodeOrValueType(...types) {
- function validate(node, key, val) {
- let valid = false;
-
- for (const type of types) {
- if (getType(val) === type || (0, _is.default)(type, val)) {
- valid = true;
- break;
- }
- }
-
- if (!valid) {
- throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} ` + `but instead got ${JSON.stringify(val && val.type)}`);
- }
- }
-
- validate.oneOfNodeOrValueTypes = types;
- return validate;
-}
-
-function assertValueType(type) {
- function validate(node, key, val) {
- const valid = getType(val) === type;
-
- if (!valid) {
- throw new TypeError(`Property ${key} expected type of ${type} but got ${getType(val)}`);
- }
- }
-
- validate.type = type;
- return validate;
-}
-
-function chain(...fns) {
- function validate(...args) {
- for (const fn of fns) {
- fn(...args);
- }
- }
-
- validate.chainOf = fns;
- return validate;
-}
-
-function defineType(type, opts = {}) {
- const inherits = opts.inherits && store[opts.inherits] || {};
- const fields = opts.fields || inherits.fields || {};
- const visitor = opts.visitor || inherits.visitor || [];
- const aliases = opts.aliases || inherits.aliases || [];
- const builder = opts.builder || inherits.builder || opts.visitor || [];
-
- if (opts.deprecatedAlias) {
- DEPRECATED_KEYS[opts.deprecatedAlias] = type;
- }
-
- for (const key of visitor.concat(builder)) {
- fields[key] = fields[key] || {};
- }
-
- for (const key in fields) {
- const field = fields[key];
-
- if (builder.indexOf(key) === -1) {
- field.optional = true;
- }
-
- if (field.default === undefined) {
- field.default = null;
- } else if (!field.validate) {
- field.validate = assertValueType(getType(field.default));
- }
- }
-
- VISITOR_KEYS[type] = opts.visitor = visitor;
- BUILDER_KEYS[type] = opts.builder = builder;
- NODE_FIELDS[type] = opts.fields = fields;
- ALIAS_KEYS[type] = opts.aliases = aliases;
- aliases.forEach(alias => {
- FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || [];
- FLIPPED_ALIAS_KEYS[alias].push(type);
- });
- store[type] = opts;
-}
-
-const store = {};
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/index.d.ts b/AuthenticationSDK/node_modules/@babel/types/lib/index.d.ts
deleted file mode 100644
index f752e748..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/index.d.ts
+++ /dev/null
@@ -1,1916 +0,0 @@
-// NOTE: This file is autogenerated. Do not modify.
-// See scripts/generators/typescript.js for script used.
-
-interface BaseComment {
- value: string;
- start: number;
- end: number;
- loc: SourceLocation;
- type: "BlockComment" | "LineComment";
-}
-
-export interface BlockComment extends BaseComment {
- type: "BlockComment";
-}
-
-export interface LineComment extends BaseComment {
- type: "LineComment";
-}
-
-export type Comment = BlockComment | LineComment;
-
-export interface SourceLocation {
- start: {
- line: number;
- column: number;
- };
-
- end: {
- line: number;
- column: number;
- };
-}
-
-interface BaseNode {
- leadingComments: ReadonlyArray | null;
- innerComments: ReadonlyArray | null;
- trailingComments: ReadonlyArray | null;
- start: number | null;
- end: number | null;
- loc: SourceLocation | null;
- type: Node["type"];
-}
-
-export type Node = AnyTypeAnnotation | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | MemberExpression | MetaProperty | Method | MixedTypeAnnotation | ModuleDeclaration | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | SequenceExpression | SpreadElement | SpreadProperty | Statement | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | TSAnyKeyword | TSArrayType | TSAsExpression | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TryStatement | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression;
-
-export interface ArrayExpression extends BaseNode {
- type: "ArrayExpression";
- elements: Array;
-}
-
-export interface AssignmentExpression extends BaseNode {
- type: "AssignmentExpression";
- operator: string;
- left: LVal;
- right: Expression;
-}
-
-export interface BinaryExpression extends BaseNode {
- type: "BinaryExpression";
- operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=";
- left: Expression;
- right: Expression;
-}
-
-export interface InterpreterDirective extends BaseNode {
- type: "InterpreterDirective";
- value: string;
-}
-
-export interface Directive extends BaseNode {
- type: "Directive";
- value: DirectiveLiteral;
-}
-
-export interface DirectiveLiteral extends BaseNode {
- type: "DirectiveLiteral";
- value: string;
-}
-
-export interface BlockStatement extends BaseNode {
- type: "BlockStatement";
- body: Array;
- directives: Array;
-}
-
-export interface BreakStatement extends BaseNode {
- type: "BreakStatement";
- label: Identifier | null;
-}
-
-export interface CallExpression extends BaseNode {
- type: "CallExpression";
- callee: Expression;
- arguments: Array;
- optional: true | false | null;
- typeArguments: TypeParameterInstantiation | null;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface CatchClause extends BaseNode {
- type: "CatchClause";
- param: Identifier | null;
- body: BlockStatement;
-}
-
-export interface ConditionalExpression extends BaseNode {
- type: "ConditionalExpression";
- test: Expression;
- consequent: Expression;
- alternate: Expression;
-}
-
-export interface ContinueStatement extends BaseNode {
- type: "ContinueStatement";
- label: Identifier | null;
-}
-
-export interface DebuggerStatement extends BaseNode {
- type: "DebuggerStatement";
-}
-
-export interface DoWhileStatement extends BaseNode {
- type: "DoWhileStatement";
- test: Expression;
- body: Statement;
-}
-
-export interface EmptyStatement extends BaseNode {
- type: "EmptyStatement";
-}
-
-export interface ExpressionStatement extends BaseNode {
- type: "ExpressionStatement";
- expression: Expression;
-}
-
-export interface File extends BaseNode {
- type: "File";
- program: Program;
- comments: any;
- tokens: any;
-}
-
-export interface ForInStatement extends BaseNode {
- type: "ForInStatement";
- left: VariableDeclaration | LVal;
- right: Expression;
- body: Statement;
-}
-
-export interface ForStatement extends BaseNode {
- type: "ForStatement";
- init: VariableDeclaration | Expression | null;
- test: Expression | null;
- update: Expression | null;
- body: Statement;
-}
-
-export interface FunctionDeclaration extends BaseNode {
- type: "FunctionDeclaration";
- id: Identifier | null;
- params: Array;
- body: BlockStatement;
- generator: boolean;
- async: boolean;
- declare: boolean | null;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface FunctionExpression extends BaseNode {
- type: "FunctionExpression";
- id: Identifier | null;
- params: Array;
- body: BlockStatement;
- generator: boolean;
- async: boolean;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface Identifier extends BaseNode {
- type: "Identifier";
- name: string;
- decorators: Array | null;
- optional: boolean | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface IfStatement extends BaseNode {
- type: "IfStatement";
- test: Expression;
- consequent: Statement;
- alternate: Statement | null;
-}
-
-export interface LabeledStatement extends BaseNode {
- type: "LabeledStatement";
- label: Identifier;
- body: Statement;
-}
-
-export interface StringLiteral extends BaseNode {
- type: "StringLiteral";
- value: string;
-}
-
-export interface NumericLiteral extends BaseNode {
- type: "NumericLiteral";
- value: number;
-}
-
-export interface NullLiteral extends BaseNode {
- type: "NullLiteral";
-}
-
-export interface BooleanLiteral extends BaseNode {
- type: "BooleanLiteral";
- value: boolean;
-}
-
-export interface RegExpLiteral extends BaseNode {
- type: "RegExpLiteral";
- pattern: string;
- flags: string;
-}
-
-export interface LogicalExpression extends BaseNode {
- type: "LogicalExpression";
- operator: "||" | "&&" | "??";
- left: Expression;
- right: Expression;
-}
-
-export interface MemberExpression extends BaseNode {
- type: "MemberExpression";
- object: Expression;
- property: any;
- computed: boolean;
- optional: true | false | null;
-}
-
-export interface NewExpression extends BaseNode {
- type: "NewExpression";
- callee: Expression;
- arguments: Array;
- optional: true | false | null;
- typeArguments: TypeParameterInstantiation | null;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface Program extends BaseNode {
- type: "Program";
- body: Array;
- directives: Array;
- sourceType: "script" | "module";
- interpreter: InterpreterDirective | null;
- sourceFile: string | null;
-}
-
-export interface ObjectExpression extends BaseNode {
- type: "ObjectExpression";
- properties: Array;
-}
-
-export interface ObjectMethod extends BaseNode {
- type: "ObjectMethod";
- kind: "method" | "get" | "set";
- key: any;
- params: Array;
- body: BlockStatement;
- computed: boolean;
- async: boolean;
- decorators: Array | null;
- generator: boolean;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ObjectProperty extends BaseNode {
- type: "ObjectProperty";
- key: any;
- value: Expression | PatternLike;
- computed: boolean;
- shorthand: boolean;
- decorators: Array | null;
-}
-
-export interface RestElement extends BaseNode {
- type: "RestElement";
- argument: LVal;
- decorators: Array | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface ReturnStatement extends BaseNode {
- type: "ReturnStatement";
- argument: Expression | null;
-}
-
-export interface SequenceExpression extends BaseNode {
- type: "SequenceExpression";
- expressions: Array;
-}
-
-export interface SwitchCase extends BaseNode {
- type: "SwitchCase";
- test: Expression | null;
- consequent: Array;
-}
-
-export interface SwitchStatement extends BaseNode {
- type: "SwitchStatement";
- discriminant: Expression;
- cases: Array;
-}
-
-export interface ThisExpression extends BaseNode {
- type: "ThisExpression";
-}
-
-export interface ThrowStatement extends BaseNode {
- type: "ThrowStatement";
- argument: Expression;
-}
-
-export interface TryStatement extends BaseNode {
- type: "TryStatement";
- block: BlockStatement;
- handler: CatchClause | null;
- finalizer: BlockStatement | null;
-}
-
-export interface UnaryExpression extends BaseNode {
- type: "UnaryExpression";
- operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof";
- argument: Expression;
- prefix: boolean;
-}
-
-export interface UpdateExpression extends BaseNode {
- type: "UpdateExpression";
- operator: "++" | "--";
- argument: Expression;
- prefix: boolean;
-}
-
-export interface VariableDeclaration extends BaseNode {
- type: "VariableDeclaration";
- kind: "var" | "let" | "const";
- declarations: Array;
- declare: boolean | null;
-}
-
-export interface VariableDeclarator extends BaseNode {
- type: "VariableDeclarator";
- id: LVal;
- init: Expression | null;
- definite: boolean | null;
-}
-
-export interface WhileStatement extends BaseNode {
- type: "WhileStatement";
- test: Expression;
- body: BlockStatement | Statement;
-}
-
-export interface WithStatement extends BaseNode {
- type: "WithStatement";
- object: Expression;
- body: BlockStatement | Statement;
-}
-
-export interface AssignmentPattern extends BaseNode {
- type: "AssignmentPattern";
- left: Identifier | ObjectPattern | ArrayPattern;
- right: Expression;
- decorators: Array | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface ArrayPattern extends BaseNode {
- type: "ArrayPattern";
- elements: Array;
- decorators: Array | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface ArrowFunctionExpression extends BaseNode {
- type: "ArrowFunctionExpression";
- params: Array;
- body: BlockStatement | Expression;
- async: boolean;
- expression: boolean | null;
- generator: boolean;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ClassBody extends BaseNode {
- type: "ClassBody";
- body: Array;
-}
-
-export interface ClassDeclaration extends BaseNode {
- type: "ClassDeclaration";
- id: Identifier | null;
- superClass: Expression | null;
- body: ClassBody;
- decorators: Array | null;
- abstract: boolean | null;
- declare: boolean | null;
- mixins: any | null;
- superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ClassExpression extends BaseNode {
- type: "ClassExpression";
- id: Identifier | null;
- superClass: Expression | null;
- body: ClassBody;
- decorators: Array | null;
- mixins: any | null;
- superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ExportAllDeclaration extends BaseNode {
- type: "ExportAllDeclaration";
- source: StringLiteral;
-}
-
-export interface ExportDefaultDeclaration extends BaseNode {
- type: "ExportDefaultDeclaration";
- declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression;
-}
-
-export interface ExportNamedDeclaration extends BaseNode {
- type: "ExportNamedDeclaration";
- declaration: Declaration | null;
- specifiers: Array;
- source: StringLiteral | null;
-}
-
-export interface ExportSpecifier extends BaseNode {
- type: "ExportSpecifier";
- local: Identifier;
- exported: Identifier;
-}
-
-export interface ForOfStatement extends BaseNode {
- type: "ForOfStatement";
- left: VariableDeclaration | LVal;
- right: Expression;
- body: Statement;
-}
-
-export interface ImportDeclaration extends BaseNode {
- type: "ImportDeclaration";
- specifiers: Array;
- source: StringLiteral;
-}
-
-export interface ImportDefaultSpecifier extends BaseNode {
- type: "ImportDefaultSpecifier";
- local: Identifier;
-}
-
-export interface ImportNamespaceSpecifier extends BaseNode {
- type: "ImportNamespaceSpecifier";
- local: Identifier;
-}
-
-export interface ImportSpecifier extends BaseNode {
- type: "ImportSpecifier";
- local: Identifier;
- imported: Identifier;
- importKind: null | "type" | "typeof" | null;
-}
-
-export interface MetaProperty extends BaseNode {
- type: "MetaProperty";
- meta: Identifier;
- property: Identifier;
-}
-
-export interface ClassMethod extends BaseNode {
- type: "ClassMethod";
- kind: "get" | "set" | "method" | "constructor";
- key: Identifier | StringLiteral | NumericLiteral | Expression;
- params: Array;
- body: BlockStatement;
- computed: boolean;
- abstract: boolean | null;
- access: "public" | "private" | "protected" | null;
- accessibility: "public" | "private" | "protected" | null;
- async: boolean;
- decorators: Array | null;
- generator: boolean;
- optional: boolean | null;
- returnType: TypeAnnotation | TSTypeAnnotation | Noop | null;
- typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null;
-}
-
-export interface ObjectPattern extends BaseNode {
- type: "ObjectPattern";
- properties: Array;
- decorators: Array | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
-}
-
-export interface SpreadElement extends BaseNode {
- type: "SpreadElement";
- argument: Expression;
-}
-
-export interface Super extends BaseNode {
- type: "Super";
-}
-
-export interface TaggedTemplateExpression extends BaseNode {
- type: "TaggedTemplateExpression";
- tag: Expression;
- quasi: TemplateLiteral;
-}
-
-export interface TemplateElement extends BaseNode {
- type: "TemplateElement";
- value: any;
- tail: boolean;
-}
-
-export interface TemplateLiteral extends BaseNode {
- type: "TemplateLiteral";
- quasis: Array;
- expressions: Array;
-}
-
-export interface YieldExpression extends BaseNode {
- type: "YieldExpression";
- argument: Expression | null;
- delegate: boolean;
-}
-
-export interface AnyTypeAnnotation extends BaseNode {
- type: "AnyTypeAnnotation";
-}
-
-export interface ArrayTypeAnnotation extends BaseNode {
- type: "ArrayTypeAnnotation";
- elementType: FlowType;
-}
-
-export interface BooleanTypeAnnotation extends BaseNode {
- type: "BooleanTypeAnnotation";
-}
-
-export interface BooleanLiteralTypeAnnotation extends BaseNode {
- type: "BooleanLiteralTypeAnnotation";
- value: boolean;
-}
-
-export interface NullLiteralTypeAnnotation extends BaseNode {
- type: "NullLiteralTypeAnnotation";
-}
-
-export interface ClassImplements extends BaseNode {
- type: "ClassImplements";
- id: Identifier;
- typeParameters: TypeParameterInstantiation | null;
-}
-
-export interface DeclareClass extends BaseNode {
- type: "DeclareClass";
- id: Identifier;
- typeParameters: TypeParameterInstantiation | null;
- body: ObjectTypeAnnotation;
- mixins: Array | null;
-}
-
-export interface DeclareFunction extends BaseNode {
- type: "DeclareFunction";
- id: Identifier;
- predicate: DeclaredPredicate | null;
-}
-
-export interface DeclareInterface extends BaseNode {
- type: "DeclareInterface";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- body: ObjectTypeAnnotation;
- mixins: Array | null;
-}
-
-export interface DeclareModule extends BaseNode {
- type: "DeclareModule";
- id: Identifier | StringLiteral;
- body: BlockStatement;
- kind: "CommonJS" | "ES" | null;
-}
-
-export interface DeclareModuleExports extends BaseNode {
- type: "DeclareModuleExports";
- typeAnnotation: TypeAnnotation;
-}
-
-export interface DeclareTypeAlias extends BaseNode {
- type: "DeclareTypeAlias";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- right: FlowType;
-}
-
-export interface DeclareOpaqueType extends BaseNode {
- type: "DeclareOpaqueType";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- supertype: FlowType | null;
-}
-
-export interface DeclareVariable extends BaseNode {
- type: "DeclareVariable";
- id: Identifier;
-}
-
-export interface DeclareExportDeclaration extends BaseNode {
- type: "DeclareExportDeclaration";
- declaration: Flow | null;
- specifiers: Array | null;
- source: StringLiteral | null;
-}
-
-export interface DeclareExportAllDeclaration extends BaseNode {
- type: "DeclareExportAllDeclaration";
- source: StringLiteral;
- exportKind: ["type","value"] | null;
-}
-
-export interface DeclaredPredicate extends BaseNode {
- type: "DeclaredPredicate";
- value: Flow;
-}
-
-export interface ExistsTypeAnnotation extends BaseNode {
- type: "ExistsTypeAnnotation";
-}
-
-export interface FunctionTypeAnnotation extends BaseNode {
- type: "FunctionTypeAnnotation";
- typeParameters: TypeParameterDeclaration | null;
- params: Array;
- rest: FunctionTypeParam | null;
- returnType: FlowType;
-}
-
-export interface FunctionTypeParam extends BaseNode {
- type: "FunctionTypeParam";
- name: Identifier | null;
- typeAnnotation: FlowType;
- optional: boolean | null;
-}
-
-export interface GenericTypeAnnotation extends BaseNode {
- type: "GenericTypeAnnotation";
- id: Identifier;
- typeParameters: TypeParameterInstantiation | null;
-}
-
-export interface InferredPredicate extends BaseNode {
- type: "InferredPredicate";
-}
-
-export interface InterfaceExtends extends BaseNode {
- type: "InterfaceExtends";
- id: Identifier;
- typeParameters: TypeParameterInstantiation | null;
-}
-
-export interface InterfaceDeclaration extends BaseNode {
- type: "InterfaceDeclaration";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- body: ObjectTypeAnnotation;
- mixins: Array | null;
-}
-
-export interface InterfaceTypeAnnotation extends BaseNode {
- type: "InterfaceTypeAnnotation";
- body: ObjectTypeAnnotation;
-}
-
-export interface IntersectionTypeAnnotation extends BaseNode {
- type: "IntersectionTypeAnnotation";
- types: Array;
-}
-
-export interface MixedTypeAnnotation extends BaseNode {
- type: "MixedTypeAnnotation";
-}
-
-export interface EmptyTypeAnnotation extends BaseNode {
- type: "EmptyTypeAnnotation";
-}
-
-export interface NullableTypeAnnotation extends BaseNode {
- type: "NullableTypeAnnotation";
- typeAnnotation: FlowType;
-}
-
-export interface NumberLiteralTypeAnnotation extends BaseNode {
- type: "NumberLiteralTypeAnnotation";
- value: number;
-}
-
-export interface NumberTypeAnnotation extends BaseNode {
- type: "NumberTypeAnnotation";
-}
-
-export interface ObjectTypeAnnotation extends BaseNode {
- type: "ObjectTypeAnnotation";
- properties: Array;
- indexers: Array | null;
- callProperties: Array | null;
- internalSlots: Array | null;
- exact: boolean;
-}
-
-export interface ObjectTypeInternalSlot extends BaseNode {
- type: "ObjectTypeInternalSlot";
- id: Identifier;
- value: FlowType;
- optional: boolean;
- method: boolean;
-}
-
-export interface ObjectTypeCallProperty extends BaseNode {
- type: "ObjectTypeCallProperty";
- value: FlowType;
-}
-
-export interface ObjectTypeIndexer extends BaseNode {
- type: "ObjectTypeIndexer";
- id: Identifier | null;
- key: FlowType;
- value: FlowType;
- variance: Variance | null;
-}
-
-export interface ObjectTypeProperty extends BaseNode {
- type: "ObjectTypeProperty";
- key: Identifier | StringLiteral;
- value: FlowType;
- variance: Variance | null;
- kind: "init" | "get" | "set" | null;
- optional: boolean | null;
- proto: boolean | null;
-}
-
-export interface ObjectTypeSpreadProperty extends BaseNode {
- type: "ObjectTypeSpreadProperty";
- argument: FlowType;
-}
-
-export interface OpaqueType extends BaseNode {
- type: "OpaqueType";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- supertype: FlowType | null;
- impltype: FlowType;
-}
-
-export interface QualifiedTypeIdentifier extends BaseNode {
- type: "QualifiedTypeIdentifier";
- id: Identifier;
- qualification: Identifier | QualifiedTypeIdentifier;
-}
-
-export interface StringLiteralTypeAnnotation extends BaseNode {
- type: "StringLiteralTypeAnnotation";
- value: string;
-}
-
-export interface StringTypeAnnotation extends BaseNode {
- type: "StringTypeAnnotation";
-}
-
-export interface ThisTypeAnnotation extends BaseNode {
- type: "ThisTypeAnnotation";
-}
-
-export interface TupleTypeAnnotation extends BaseNode {
- type: "TupleTypeAnnotation";
- types: Array;
-}
-
-export interface TypeofTypeAnnotation extends BaseNode {
- type: "TypeofTypeAnnotation";
- argument: FlowType;
-}
-
-export interface TypeAlias extends BaseNode {
- type: "TypeAlias";
- id: Identifier;
- typeParameters: TypeParameterDeclaration | null;
- right: FlowType;
-}
-
-export interface TypeAnnotation extends BaseNode {
- type: "TypeAnnotation";
- typeAnnotation: FlowType;
-}
-
-export interface TypeCastExpression extends BaseNode {
- type: "TypeCastExpression";
- expression: Expression;
- typeAnnotation: TypeAnnotation;
-}
-
-export interface TypeParameter extends BaseNode {
- type: "TypeParameter";
- bound: TypeAnnotation | null;
- variance: Variance | null;
- name: string | null;
-}
-
-export interface TypeParameterDeclaration extends BaseNode {
- type: "TypeParameterDeclaration";
- params: Array;
-}
-
-export interface TypeParameterInstantiation extends BaseNode {
- type: "TypeParameterInstantiation";
- params: Array;
-}
-
-export interface UnionTypeAnnotation extends BaseNode {
- type: "UnionTypeAnnotation";
- types: Array;
-}
-
-export interface Variance extends BaseNode {
- type: "Variance";
- kind: "minus" | "plus";
-}
-
-export interface VoidTypeAnnotation extends BaseNode {
- type: "VoidTypeAnnotation";
-}
-
-export interface JSXAttribute extends BaseNode {
- type: "JSXAttribute";
- name: JSXIdentifier | JSXNamespacedName;
- value: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null;
-}
-
-export interface JSXClosingElement extends BaseNode {
- type: "JSXClosingElement";
- name: JSXIdentifier | JSXMemberExpression;
-}
-
-export interface JSXElement extends BaseNode {
- type: "JSXElement";
- openingElement: JSXOpeningElement;
- closingElement: JSXClosingElement | null;
- children: Array;
- selfClosing: any;
-}
-
-export interface JSXEmptyExpression extends BaseNode {
- type: "JSXEmptyExpression";
-}
-
-export interface JSXExpressionContainer extends BaseNode {
- type: "JSXExpressionContainer";
- expression: Expression;
-}
-
-export interface JSXSpreadChild extends BaseNode {
- type: "JSXSpreadChild";
- expression: Expression;
-}
-
-export interface JSXIdentifier extends BaseNode {
- type: "JSXIdentifier";
- name: string;
-}
-
-export interface JSXMemberExpression extends BaseNode {
- type: "JSXMemberExpression";
- object: JSXMemberExpression | JSXIdentifier;
- property: JSXIdentifier;
-}
-
-export interface JSXNamespacedName extends BaseNode {
- type: "JSXNamespacedName";
- namespace: JSXIdentifier;
- name: JSXIdentifier;
-}
-
-export interface JSXOpeningElement extends BaseNode {
- type: "JSXOpeningElement";
- name: JSXIdentifier | JSXMemberExpression;
- attributes: Array;
- selfClosing: boolean;
-}
-
-export interface JSXSpreadAttribute extends BaseNode {
- type: "JSXSpreadAttribute";
- argument: Expression;
-}
-
-export interface JSXText extends BaseNode {
- type: "JSXText";
- value: string;
-}
-
-export interface JSXFragment extends BaseNode {
- type: "JSXFragment";
- openingFragment: JSXOpeningFragment;
- closingFragment: JSXClosingFragment;
- children: Array;
-}
-
-export interface JSXOpeningFragment extends BaseNode {
- type: "JSXOpeningFragment";
-}
-
-export interface JSXClosingFragment extends BaseNode {
- type: "JSXClosingFragment";
-}
-
-export interface Noop extends BaseNode {
- type: "Noop";
-}
-
-export interface ParenthesizedExpression extends BaseNode {
- type: "ParenthesizedExpression";
- expression: Expression;
-}
-
-export interface AwaitExpression extends BaseNode {
- type: "AwaitExpression";
- argument: Expression;
-}
-
-export interface BindExpression extends BaseNode {
- type: "BindExpression";
- object: any;
- callee: any;
-}
-
-export interface ClassProperty extends BaseNode {
- type: "ClassProperty";
- key: Identifier | StringLiteral | NumericLiteral | Expression;
- value: Expression | null;
- typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null;
- decorators: Array | null;
- computed: boolean;
- abstract: boolean | null;
- accessibility: "public" | "private" | "protected" | null;
- definite: boolean | null;
- optional: boolean | null;
- readonly: boolean | null;
-}
-
-export interface OptionalMemberExpression extends BaseNode {
- type: "OptionalMemberExpression";
- object: Expression;
- property: any;
- computed: boolean;
- optional: boolean;
-}
-
-export interface OptionalCallExpression extends BaseNode {
- type: "OptionalCallExpression";
- callee: Expression;
- arguments: Array;
- optional: boolean;
- typeArguments: TypeParameterInstantiation | null;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface ClassPrivateProperty extends BaseNode {
- type: "ClassPrivateProperty";
- key: PrivateName;
- value: Expression | null;
-}
-
-export interface Import extends BaseNode {
- type: "Import";
-}
-
-export interface Decorator extends BaseNode {
- type: "Decorator";
- expression: Expression;
-}
-
-export interface DoExpression extends BaseNode {
- type: "DoExpression";
- body: BlockStatement;
-}
-
-export interface ExportDefaultSpecifier extends BaseNode {
- type: "ExportDefaultSpecifier";
- exported: Identifier;
-}
-
-export interface ExportNamespaceSpecifier extends BaseNode {
- type: "ExportNamespaceSpecifier";
- exported: Identifier;
-}
-
-export interface PrivateName extends BaseNode {
- type: "PrivateName";
- id: Identifier;
-}
-
-export interface BigIntLiteral extends BaseNode {
- type: "BigIntLiteral";
- value: string;
-}
-
-export interface TSParameterProperty extends BaseNode {
- type: "TSParameterProperty";
- parameter: Identifier | AssignmentPattern;
- accessibility: "public" | "private" | "protected" | null;
- readonly: boolean | null;
-}
-
-export interface TSDeclareFunction extends BaseNode {
- type: "TSDeclareFunction";
- id: Identifier | null;
- typeParameters: TSTypeParameterDeclaration | Noop | null;
- params: Array;
- returnType: TSTypeAnnotation | Noop | null;
- async: boolean;
- declare: boolean | null;
- generator: boolean;
-}
-
-export interface TSDeclareMethod extends BaseNode {
- type: "TSDeclareMethod";
- decorators: Array | null;
- key: Identifier | StringLiteral | NumericLiteral | Expression;
- typeParameters: TSTypeParameterDeclaration | Noop | null;
- params: Array;
- returnType: TSTypeAnnotation | Noop | null;
- abstract: boolean | null;
- access: "public" | "private" | "protected" | null;
- accessibility: "public" | "private" | "protected" | null;
- async: boolean;
- computed: boolean;
- generator: boolean;
- kind: "get" | "set" | "method" | "constructor";
- optional: boolean | null;
-}
-
-export interface TSQualifiedName extends BaseNode {
- type: "TSQualifiedName";
- left: TSEntityName;
- right: Identifier;
-}
-
-export interface TSCallSignatureDeclaration extends BaseNode {
- type: "TSCallSignatureDeclaration";
- typeParameters: TSTypeParameterDeclaration | null;
- parameters: Array | null;
- typeAnnotation: TSTypeAnnotation | null;
-}
-
-export interface TSConstructSignatureDeclaration extends BaseNode {
- type: "TSConstructSignatureDeclaration";
- typeParameters: TSTypeParameterDeclaration | null;
- parameters: Array | null;
- typeAnnotation: TSTypeAnnotation | null;
-}
-
-export interface TSPropertySignature extends BaseNode {
- type: "TSPropertySignature";
- key: Expression;
- typeAnnotation: TSTypeAnnotation | null;
- initializer: Expression | null;
- computed: boolean | null;
- optional: boolean | null;
- readonly: boolean | null;
-}
-
-export interface TSMethodSignature extends BaseNode {
- type: "TSMethodSignature";
- key: Expression;
- typeParameters: TSTypeParameterDeclaration | null;
- parameters: Array | null;
- typeAnnotation: TSTypeAnnotation | null;
- computed: boolean | null;
- optional: boolean | null;
-}
-
-export interface TSIndexSignature extends BaseNode {
- type: "TSIndexSignature";
- parameters: Array;
- typeAnnotation: TSTypeAnnotation | null;
- readonly: boolean | null;
-}
-
-export interface TSAnyKeyword extends BaseNode {
- type: "TSAnyKeyword";
-}
-
-export interface TSNumberKeyword extends BaseNode {
- type: "TSNumberKeyword";
-}
-
-export interface TSObjectKeyword extends BaseNode {
- type: "TSObjectKeyword";
-}
-
-export interface TSBooleanKeyword extends BaseNode {
- type: "TSBooleanKeyword";
-}
-
-export interface TSStringKeyword extends BaseNode {
- type: "TSStringKeyword";
-}
-
-export interface TSSymbolKeyword extends BaseNode {
- type: "TSSymbolKeyword";
-}
-
-export interface TSVoidKeyword extends BaseNode {
- type: "TSVoidKeyword";
-}
-
-export interface TSUndefinedKeyword extends BaseNode {
- type: "TSUndefinedKeyword";
-}
-
-export interface TSNullKeyword extends BaseNode {
- type: "TSNullKeyword";
-}
-
-export interface TSNeverKeyword extends BaseNode {
- type: "TSNeverKeyword";
-}
-
-export interface TSThisType extends BaseNode {
- type: "TSThisType";
-}
-
-export interface TSFunctionType extends BaseNode {
- type: "TSFunctionType";
- typeParameters: TSTypeParameterDeclaration | null;
- typeAnnotation: TSTypeAnnotation | null;
- parameters: Array | null;
-}
-
-export interface TSConstructorType extends BaseNode {
- type: "TSConstructorType";
- typeParameters: TSTypeParameterDeclaration | null;
- typeAnnotation: TSTypeAnnotation | null;
- parameters: Array | null;
-}
-
-export interface TSTypeReference extends BaseNode {
- type: "TSTypeReference";
- typeName: TSEntityName;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface TSTypePredicate extends BaseNode {
- type: "TSTypePredicate";
- parameterName: Identifier | TSThisType;
- typeAnnotation: TSTypeAnnotation;
-}
-
-export interface TSTypeQuery extends BaseNode {
- type: "TSTypeQuery";
- exprName: TSEntityName;
-}
-
-export interface TSTypeLiteral extends BaseNode {
- type: "TSTypeLiteral";
- members: Array;
-}
-
-export interface TSArrayType extends BaseNode {
- type: "TSArrayType";
- elementType: TSType;
-}
-
-export interface TSTupleType extends BaseNode {
- type: "TSTupleType";
- elementTypes: Array;
-}
-
-export interface TSUnionType extends BaseNode {
- type: "TSUnionType";
- types: Array;
-}
-
-export interface TSIntersectionType extends BaseNode {
- type: "TSIntersectionType";
- types: Array;
-}
-
-export interface TSConditionalType extends BaseNode {
- type: "TSConditionalType";
- checkType: TSType;
- extendsType: TSType;
- trueType: TSType;
- falseType: TSType;
-}
-
-export interface TSInferType extends BaseNode {
- type: "TSInferType";
- typeParameter: TSTypeParameter;
-}
-
-export interface TSParenthesizedType extends BaseNode {
- type: "TSParenthesizedType";
- typeAnnotation: TSType;
-}
-
-export interface TSTypeOperator extends BaseNode {
- type: "TSTypeOperator";
- typeAnnotation: TSType;
- operator: string | null;
-}
-
-export interface TSIndexedAccessType extends BaseNode {
- type: "TSIndexedAccessType";
- objectType: TSType;
- indexType: TSType;
-}
-
-export interface TSMappedType extends BaseNode {
- type: "TSMappedType";
- typeParameter: TSTypeParameter;
- typeAnnotation: TSType | null;
- optional: boolean | null;
- readonly: boolean | null;
-}
-
-export interface TSLiteralType extends BaseNode {
- type: "TSLiteralType";
- literal: NumericLiteral | StringLiteral | BooleanLiteral;
-}
-
-export interface TSExpressionWithTypeArguments extends BaseNode {
- type: "TSExpressionWithTypeArguments";
- expression: TSEntityName;
- typeParameters: TSTypeParameterInstantiation | null;
-}
-
-export interface TSInterfaceDeclaration extends BaseNode {
- type: "TSInterfaceDeclaration";
- id: Identifier;
- typeParameters: TSTypeParameterDeclaration | null;
- body: TSInterfaceBody;
- declare: boolean | null;
-}
-
-export interface TSInterfaceBody extends BaseNode {
- type: "TSInterfaceBody";
- body: Array;
-}
-
-export interface TSTypeAliasDeclaration extends BaseNode {
- type: "TSTypeAliasDeclaration";
- id: Identifier;
- typeParameters: TSTypeParameterDeclaration | null;
- typeAnnotation: TSType;
- declare: boolean | null;
-}
-
-export interface TSAsExpression extends BaseNode {
- type: "TSAsExpression";
- expression: Expression;
- typeAnnotation: TSType;
-}
-
-export interface TSTypeAssertion extends BaseNode {
- type: "TSTypeAssertion";
- typeAnnotation: TSType;
- expression: Expression;
-}
-
-export interface TSEnumDeclaration extends BaseNode {
- type: "TSEnumDeclaration";
- id: Identifier;
- members: Array;
- declare: boolean | null;
- initializer: Expression | null;
-}
-
-export interface TSEnumMember extends BaseNode {
- type: "TSEnumMember";
- id: Identifier | StringLiteral;
- initializer: Expression | null;
-}
-
-export interface TSModuleDeclaration extends BaseNode {
- type: "TSModuleDeclaration";
- id: Identifier | StringLiteral;
- body: TSModuleBlock | TSModuleDeclaration;
- declare: boolean | null;
- global: boolean | null;
-}
-
-export interface TSModuleBlock extends BaseNode {
- type: "TSModuleBlock";
- body: Array;
-}
-
-export interface TSImportEqualsDeclaration extends BaseNode {
- type: "TSImportEqualsDeclaration";
- id: Identifier;
- moduleReference: TSEntityName | TSExternalModuleReference;
- isExport: boolean | null;
-}
-
-export interface TSExternalModuleReference extends BaseNode {
- type: "TSExternalModuleReference";
- expression: StringLiteral;
-}
-
-export interface TSNonNullExpression extends BaseNode {
- type: "TSNonNullExpression";
- expression: Expression;
-}
-
-export interface TSExportAssignment extends BaseNode {
- type: "TSExportAssignment";
- expression: Expression;
-}
-
-export interface TSNamespaceExportDeclaration extends BaseNode {
- type: "TSNamespaceExportDeclaration";
- id: Identifier;
-}
-
-export interface TSTypeAnnotation extends BaseNode {
- type: "TSTypeAnnotation";
- typeAnnotation: TSType;
-}
-
-export interface TSTypeParameterInstantiation extends BaseNode {
- type: "TSTypeParameterInstantiation";
- params: Array;
-}
-
-export interface TSTypeParameterDeclaration extends BaseNode {
- type: "TSTypeParameterDeclaration";
- params: Array;
-}
-
-export interface TSTypeParameter extends BaseNode {
- type: "TSTypeParameter";
- constraint: TSType | null;
- name: string | null;
-}
-
-/**
- * @deprecated Use `NumericLiteral`
- */
-export type NumberLiteral = NumericLiteral;
-
-/**
- * @deprecated Use `RegExpLiteral`
- */
-export type RegexLiteral = RegExpLiteral;
-
-/**
- * @deprecated Use `RestElement`
- */
-export type RestProperty = RestElement;
-
-/**
- * @deprecated Use `SpreadElement`
- */
-export type SpreadProperty = SpreadElement;
-
-export type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | TypeCastExpression | JSXElement | JSXFragment | ParenthesizedExpression | AwaitExpression | BindExpression | OptionalMemberExpression | OptionalCallExpression | Import | DoExpression | BigIntLiteral | TSAsExpression | TSTypeAssertion | TSNonNullExpression;
-export type Binary = BinaryExpression | LogicalExpression;
-export type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassDeclaration | ClassExpression | ForOfStatement | ClassMethod;
-export type BlockParent = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod;
-export type Block = BlockStatement | Program;
-export type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration | TSExportAssignment | TSNamespaceExportDeclaration;
-export type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression;
-export type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement;
-export type Conditional = ConditionalExpression | IfStatement;
-export type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement;
-export type While = DoWhileStatement | WhileStatement;
-export type ExpressionWrapper = ExpressionStatement | TypeCastExpression | ParenthesizedExpression;
-export type For = ForInStatement | ForStatement | ForOfStatement;
-export type ForXStatement = ForInStatement | ForOfStatement;
-export type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod;
-export type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod;
-export type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | ArrowFunctionExpression | ClassDeclaration | ClassExpression | BigIntLiteral;
-export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration;
-export type PatternLike = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern;
-export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty;
-export type TSEntityName = Identifier | TSQualifiedName;
-export type Literal = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral;
-export type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | BigIntLiteral;
-export type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty;
-export type Method = ObjectMethod | ClassMethod;
-export type ObjectMember = ObjectMethod | ObjectProperty;
-export type Property = ObjectProperty | ClassProperty | ClassPrivateProperty;
-export type UnaryLike = UnaryExpression | SpreadElement;
-export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern;
-export type Class = ClassDeclaration | ClassExpression;
-export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration;
-export type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration;
-export type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportDefaultSpecifier | ExportNamespaceSpecifier;
-export type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | DeclaredPredicate | ExistsTypeAnnotation | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | InferredPredicate | InterfaceExtends | InterfaceDeclaration | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | QualifiedTypeIdentifier | StringLiteralTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | UnionTypeAnnotation | Variance | VoidTypeAnnotation;
-export type FlowType = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation;
-export type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | NullLiteralTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation;
-export type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias;
-export type FlowPredicate = DeclaredPredicate | InferredPredicate;
-export type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment;
-export type Private = ClassPrivateProperty | PrivateName;
-export type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature;
-export type TSType = TSAnyKeyword | TSNumberKeyword | TSObjectKeyword | TSBooleanKeyword | TSStringKeyword | TSSymbolKeyword | TSVoidKeyword | TSUndefinedKeyword | TSNullKeyword | TSNeverKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments;
-export function arrayExpression(elements?: Array): ArrayExpression;
-export function assignmentExpression(operator: string, left: LVal, right: Expression): AssignmentExpression;
-export function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left: Expression, right: Expression): BinaryExpression;
-export function interpreterDirective(value: string): InterpreterDirective;
-export function directive(value: DirectiveLiteral): Directive;
-export function directiveLiteral(value: string): DirectiveLiteral;
-export function blockStatement(body: Array, directives?: Array): BlockStatement;
-export function breakStatement(label?: Identifier | null): BreakStatement;
-export function callExpression(callee: Expression, _arguments: Array, optional?: true | false | null, typeArguments?: TypeParameterInstantiation | null, typeParameters?: TSTypeParameterInstantiation | null): CallExpression;
-export function catchClause(param: Identifier | null | undefined, body: BlockStatement): CatchClause;
-export function conditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression;
-export function continueStatement(label?: Identifier | null): ContinueStatement;
-export function debuggerStatement(): DebuggerStatement;
-export function doWhileStatement(test: Expression, body: Statement): DoWhileStatement;
-export function emptyStatement(): EmptyStatement;
-export function expressionStatement(expression: Expression): ExpressionStatement;
-export function file(program: Program, comments: any, tokens: any): File;
-export function forInStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement): ForInStatement;
-export function forStatement(init: VariableDeclaration | Expression | null | undefined, test: Expression | null | undefined, update: Expression | null | undefined, body: Statement): ForStatement;
-export function functionDeclaration(id: Identifier | null | undefined, params: Array, body: BlockStatement, generator?: boolean, async?: boolean, declare?: boolean | null, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): FunctionDeclaration;
-export function functionExpression(id: Identifier | null | undefined, params: Array, body: BlockStatement, generator?: boolean, async?: boolean, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): FunctionExpression;
-export function identifier(name: string, decorators?: Array | null, optional?: boolean | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): Identifier;
-export function ifStatement(test: Expression, consequent: Statement, alternate?: Statement | null): IfStatement;
-export function labeledStatement(label: Identifier, body: Statement): LabeledStatement;
-export function stringLiteral(value: string): StringLiteral;
-export function numericLiteral(value: number): NumericLiteral;
-export function nullLiteral(): NullLiteral;
-export function booleanLiteral(value: boolean): BooleanLiteral;
-export function regExpLiteral(pattern: string, flags?: string): RegExpLiteral;
-export function logicalExpression(operator: "||" | "&&" | "??", left: Expression, right: Expression): LogicalExpression;
-export function memberExpression(object: Expression, property: any, computed?: boolean, optional?: true | false | null): MemberExpression;
-export function newExpression(callee: Expression, _arguments: Array, optional?: true | false | null, typeArguments?: TypeParameterInstantiation | null, typeParameters?: TSTypeParameterInstantiation | null): NewExpression;
-export function program(body: Array, directives?: Array, sourceType?: "script" | "module", interpreter?: InterpreterDirective | null, sourceFile?: string | null): Program;
-export function objectExpression(properties: Array): ObjectExpression;
-export function objectMethod(kind: "method" | "get" | "set" | undefined, key: any, params: Array, body: BlockStatement, computed?: boolean, async?: boolean, decorators?: Array | null, generator?: boolean, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ObjectMethod;
-export function objectProperty(key: any, value: Expression | PatternLike, computed?: boolean, shorthand?: boolean, decorators?: Array | null): ObjectProperty;
-export function restElement(argument: LVal, decorators?: Array | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): RestElement;
-export function returnStatement(argument?: Expression | null): ReturnStatement;
-export function sequenceExpression(expressions: Array): SequenceExpression;
-export function switchCase(test: Expression | null | undefined, consequent: Array): SwitchCase;
-export function switchStatement(discriminant: Expression, cases: Array): SwitchStatement;
-export function thisExpression(): ThisExpression;
-export function throwStatement(argument: Expression): ThrowStatement;
-export function tryStatement(block: BlockStatement, handler?: CatchClause | null, finalizer?: BlockStatement | null): TryStatement;
-export function unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: Expression, prefix?: boolean): UnaryExpression;
-export function updateExpression(operator: "++" | "--", argument: Expression, prefix?: boolean): UpdateExpression;
-export function variableDeclaration(kind: "var" | "let" | "const", declarations: Array, declare?: boolean | null): VariableDeclaration;
-export function variableDeclarator(id: LVal, init?: Expression | null, definite?: boolean | null): VariableDeclarator;
-export function whileStatement(test: Expression, body: BlockStatement | Statement): WhileStatement;
-export function withStatement(object: Expression, body: BlockStatement | Statement): WithStatement;
-export function assignmentPattern(left: Identifier | ObjectPattern | ArrayPattern, right: Expression, decorators?: Array | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): AssignmentPattern;
-export function arrayPattern(elements: Array, decorators?: Array | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): ArrayPattern;
-export function arrowFunctionExpression(params: Array, body: BlockStatement | Expression, async?: boolean, expression?: boolean | null, generator?: boolean, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ArrowFunctionExpression;
-export function classBody(body: Array): ClassBody;
-export function classDeclaration(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array | null, abstract?: boolean | null, declare?: boolean | null, _implements?: Array | null, mixins?: any | null, superTypeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ClassDeclaration;
-export function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array | null, _implements?: Array | null, mixins?: any | null, superTypeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ClassExpression;
-export function exportAllDeclaration(source: StringLiteral): ExportAllDeclaration;
-export function exportDefaultDeclaration(declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression): ExportDefaultDeclaration;
-export function exportNamedDeclaration(declaration: Declaration | null | undefined, specifiers: Array, source?: StringLiteral | null): ExportNamedDeclaration;
-export function exportSpecifier(local: Identifier, exported: Identifier): ExportSpecifier;
-export function forOfStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement, _await?: boolean): ForOfStatement;
-export function importDeclaration(specifiers: Array, source: StringLiteral): ImportDeclaration;
-export function importDefaultSpecifier(local: Identifier): ImportDefaultSpecifier;
-export function importNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier;
-export function importSpecifier(local: Identifier, imported: Identifier, importKind?: null | "type" | "typeof" | null): ImportSpecifier;
-export function metaProperty(meta: Identifier, property: Identifier): MetaProperty;
-export function classMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, params: Array, body: BlockStatement, computed?: boolean, _static?: boolean | null, abstract?: boolean | null, access?: "public" | "private" | "protected" | null, accessibility?: "public" | "private" | "protected" | null, async?: boolean, decorators?: Array | null, generator?: boolean, optional?: boolean | null, returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null, typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null): ClassMethod;
-export function objectPattern(properties: Array, decorators?: Array | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null): ObjectPattern;
-export function spreadElement(argument: Expression): SpreadElement;
-export function taggedTemplateExpression(tag: Expression, quasi: TemplateLiteral): TaggedTemplateExpression;
-export function templateElement(value: any, tail?: boolean): TemplateElement;
-export function templateLiteral(quasis: Array, expressions: Array): TemplateLiteral;
-export function yieldExpression(argument?: Expression | null, delegate?: boolean): YieldExpression;
-export function anyTypeAnnotation(): AnyTypeAnnotation;
-export function arrayTypeAnnotation(elementType: FlowType): ArrayTypeAnnotation;
-export function booleanTypeAnnotation(): BooleanTypeAnnotation;
-export function booleanLiteralTypeAnnotation(value: boolean): BooleanLiteralTypeAnnotation;
-export function nullLiteralTypeAnnotation(): NullLiteralTypeAnnotation;
-export function classImplements(id: Identifier, typeParameters?: TypeParameterInstantiation | null): ClassImplements;
-export function declareClass(id: Identifier, typeParameters: TypeParameterInstantiation | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation, _implements?: Array | null, mixins?: Array | null): DeclareClass;
-export function declareFunction(id: Identifier, predicate?: DeclaredPredicate | null): DeclareFunction;
-export function declareInterface(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation, _implements?: Array | null, mixins?: Array | null): DeclareInterface;
-export function declareModule(id: Identifier | StringLiteral, body: BlockStatement, kind?: "CommonJS" | "ES" | null): DeclareModule;
-export function declareModuleExports(typeAnnotation: TypeAnnotation): DeclareModuleExports;
-export function declareTypeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): DeclareTypeAlias;
-export function declareOpaqueType(id: Identifier, typeParameters?: TypeParameterDeclaration | null, supertype?: FlowType | null): DeclareOpaqueType;
-export function declareVariable(id: Identifier): DeclareVariable;
-export function declareExportDeclaration(declaration?: Flow | null, specifiers?: Array | null, source?: StringLiteral | null, _default?: boolean | null): DeclareExportDeclaration;
-export function declareExportAllDeclaration(source: StringLiteral, exportKind?: ["type","value"] | null): DeclareExportAllDeclaration;
-export function declaredPredicate(value: Flow): DeclaredPredicate;
-export function existsTypeAnnotation(): ExistsTypeAnnotation;
-export function functionTypeAnnotation(typeParameters: TypeParameterDeclaration | null | undefined, params: Array, rest: FunctionTypeParam | null | undefined, returnType: FlowType): FunctionTypeAnnotation;
-export function functionTypeParam(name: Identifier | null | undefined, typeAnnotation: FlowType, optional?: boolean | null): FunctionTypeParam;
-export function genericTypeAnnotation(id: Identifier, typeParameters?: TypeParameterInstantiation | null): GenericTypeAnnotation;
-export function inferredPredicate(): InferredPredicate;
-export function interfaceExtends(id: Identifier, typeParameters?: TypeParameterInstantiation | null): InterfaceExtends;
-export function interfaceDeclaration(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation, _implements?: Array | null, mixins?: Array | null): InterfaceDeclaration;
-export function interfaceTypeAnnotation(_extends: Array | null | undefined, body: ObjectTypeAnnotation): InterfaceTypeAnnotation;
-export function intersectionTypeAnnotation(types: Array): IntersectionTypeAnnotation;
-export function mixedTypeAnnotation(): MixedTypeAnnotation;
-export function emptyTypeAnnotation(): EmptyTypeAnnotation;
-export function nullableTypeAnnotation(typeAnnotation: FlowType): NullableTypeAnnotation;
-export function numberLiteralTypeAnnotation(value: number): NumberLiteralTypeAnnotation;
-export function numberTypeAnnotation(): NumberTypeAnnotation;
-export function objectTypeAnnotation(properties: Array, indexers?: Array | null, callProperties?: Array | null, internalSlots?: Array | null, exact?: boolean): ObjectTypeAnnotation;
-export function objectTypeInternalSlot(id: Identifier, value: FlowType, optional: boolean, _static: boolean, method: boolean): ObjectTypeInternalSlot;
-export function objectTypeCallProperty(value: FlowType, _static?: boolean | null): ObjectTypeCallProperty;
-export function objectTypeIndexer(id: Identifier | null | undefined, key: FlowType, value: FlowType, variance?: Variance | null, _static?: boolean | null): ObjectTypeIndexer;
-export function objectTypeProperty(key: Identifier | StringLiteral, value: FlowType, variance?: Variance | null, kind?: "init" | "get" | "set" | null, optional?: boolean | null, proto?: boolean | null, _static?: boolean | null): ObjectTypeProperty;
-export function objectTypeSpreadProperty(argument: FlowType): ObjectTypeSpreadProperty;
-export function opaqueType(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, supertype: FlowType | null | undefined, impltype: FlowType): OpaqueType;
-export function qualifiedTypeIdentifier(id: Identifier, qualification: Identifier | QualifiedTypeIdentifier): QualifiedTypeIdentifier;
-export function stringLiteralTypeAnnotation(value: string): StringLiteralTypeAnnotation;
-export function stringTypeAnnotation(): StringTypeAnnotation;
-export function thisTypeAnnotation(): ThisTypeAnnotation;
-export function tupleTypeAnnotation(types: Array): TupleTypeAnnotation;
-export function typeofTypeAnnotation(argument: FlowType): TypeofTypeAnnotation;
-export function typeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): TypeAlias;
-export function typeAnnotation(typeAnnotation: FlowType): TypeAnnotation;
-export function typeCastExpression(expression: Expression, typeAnnotation: TypeAnnotation): TypeCastExpression;
-export function typeParameter(bound?: TypeAnnotation | null, _default?: FlowType | null, variance?: Variance | null, name?: string | null): TypeParameter;
-export function typeParameterDeclaration(params: Array): TypeParameterDeclaration;
-export function typeParameterInstantiation(params: Array): TypeParameterInstantiation;
-export function unionTypeAnnotation(types: Array): UnionTypeAnnotation;
-export function variance(kind: "minus" | "plus"): Variance;
-export function voidTypeAnnotation(): VoidTypeAnnotation;
-export function jsxAttribute(name: JSXIdentifier | JSXNamespacedName, value?: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null): JSXAttribute;
-export function jsxClosingElement(name: JSXIdentifier | JSXMemberExpression): JSXClosingElement;
-export function jsxElement(openingElement: JSXOpeningElement, closingElement: JSXClosingElement | null | undefined, children: Array, selfClosing: any): JSXElement;
-export function jsxEmptyExpression(): JSXEmptyExpression;
-export function jsxExpressionContainer(expression: Expression): JSXExpressionContainer;
-export function jsxSpreadChild(expression: Expression): JSXSpreadChild;
-export function jsxIdentifier(name: string): JSXIdentifier;
-export function jsxMemberExpression(object: JSXMemberExpression | JSXIdentifier, property: JSXIdentifier): JSXMemberExpression;
-export function jsxNamespacedName(namespace: JSXIdentifier, name: JSXIdentifier): JSXNamespacedName;
-export function jsxOpeningElement(name: JSXIdentifier | JSXMemberExpression, attributes: Array, selfClosing?: boolean): JSXOpeningElement;
-export function jsxSpreadAttribute(argument: Expression): JSXSpreadAttribute;
-export function jsxText(value: string): JSXText;
-export function jsxFragment(openingFragment: JSXOpeningFragment, closingFragment: JSXClosingFragment, children: Array): JSXFragment;
-export function jsxOpeningFragment(): JSXOpeningFragment;
-export function jsxClosingFragment(): JSXClosingFragment;
-export function noop(): Noop;
-export function parenthesizedExpression(expression: Expression): ParenthesizedExpression;
-export function awaitExpression(argument: Expression): AwaitExpression;
-export function bindExpression(object: any, callee: any): BindExpression;
-export function classProperty(key: Identifier | StringLiteral | NumericLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array | null, computed?: boolean, abstract?: boolean | null, accessibility?: "public" | "private" | "protected" | null, definite?: boolean | null, optional?: boolean | null, readonly?: boolean | null, _static?: boolean | null): ClassProperty;
-export function optionalMemberExpression(object: Expression, property: any, computed: boolean | undefined, optional: boolean): OptionalMemberExpression;
-export function optionalCallExpression(callee: Expression, _arguments: Array, optional: boolean, typeArguments?: TypeParameterInstantiation | null, typeParameters?: TSTypeParameterInstantiation | null): OptionalCallExpression;
-export function classPrivateProperty(key: PrivateName, value?: Expression | null): ClassPrivateProperty;
-export function decorator(expression: Expression): Decorator;
-export function doExpression(body: BlockStatement): DoExpression;
-export function exportDefaultSpecifier(exported: Identifier): ExportDefaultSpecifier;
-export function exportNamespaceSpecifier(exported: Identifier): ExportNamespaceSpecifier;
-export function privateName(id: Identifier): PrivateName;
-export function bigIntLiteral(value: string): BigIntLiteral;
-export function tsParameterProperty(parameter: Identifier | AssignmentPattern, accessibility?: "public" | "private" | "protected" | null, readonly?: boolean | null): TSParameterProperty;
-export function tsDeclareFunction(id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array, returnType?: TSTypeAnnotation | Noop | null, async?: boolean, declare?: boolean | null, generator?: boolean): TSDeclareFunction;
-export function tsDeclareMethod(decorators: Array | null | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array, returnType?: TSTypeAnnotation | Noop | null, abstract?: boolean | null, access?: "public" | "private" | "protected" | null, accessibility?: "public" | "private" | "protected" | null, async?: boolean, computed?: boolean, generator?: boolean, kind?: "get" | "set" | "method" | "constructor", optional?: boolean | null, _static?: boolean | null): TSDeclareMethod;
-export function tsQualifiedName(left: TSEntityName, right: Identifier): TSQualifiedName;
-export function tsCallSignatureDeclaration(typeParameters?: TSTypeParameterDeclaration | null, parameters?: Array | null, typeAnnotation?: TSTypeAnnotation | null): TSCallSignatureDeclaration;
-export function tsConstructSignatureDeclaration(typeParameters?: TSTypeParameterDeclaration | null, parameters?: Array | null, typeAnnotation?: TSTypeAnnotation | null): TSConstructSignatureDeclaration;
-export function tsPropertySignature(key: Expression, typeAnnotation?: TSTypeAnnotation | null, initializer?: Expression | null, computed?: boolean | null, optional?: boolean | null, readonly?: boolean | null): TSPropertySignature;
-export function tsMethodSignature(key: Expression, typeParameters?: TSTypeParameterDeclaration | null, parameters?: Array | null, typeAnnotation?: TSTypeAnnotation | null, computed?: boolean | null, optional?: boolean | null): TSMethodSignature;
-export function tsIndexSignature(parameters: Array, typeAnnotation?: TSTypeAnnotation | null, readonly?: boolean | null): TSIndexSignature;
-export function tsAnyKeyword(): TSAnyKeyword;
-export function tsNumberKeyword(): TSNumberKeyword;
-export function tsObjectKeyword(): TSObjectKeyword;
-export function tsBooleanKeyword(): TSBooleanKeyword;
-export function tsStringKeyword(): TSStringKeyword;
-export function tsSymbolKeyword(): TSSymbolKeyword;
-export function tsVoidKeyword(): TSVoidKeyword;
-export function tsUndefinedKeyword(): TSUndefinedKeyword;
-export function tsNullKeyword(): TSNullKeyword;
-export function tsNeverKeyword(): TSNeverKeyword;
-export function tsThisType(): TSThisType;
-export function tsFunctionType(typeParameters?: TSTypeParameterDeclaration | null, typeAnnotation?: TSTypeAnnotation | null, parameters?: Array | null): TSFunctionType;
-export function tsConstructorType(typeParameters?: TSTypeParameterDeclaration | null, typeAnnotation?: TSTypeAnnotation | null, parameters?: Array | null): TSConstructorType;
-export function tsTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSTypeReference;
-export function tsTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation: TSTypeAnnotation): TSTypePredicate;
-export function tsTypeQuery(exprName: TSEntityName): TSTypeQuery;
-export function tsTypeLiteral(members: Array): TSTypeLiteral;
-export function tsArrayType(elementType: TSType): TSArrayType;
-export function tsTupleType(elementTypes: Array): TSTupleType;
-export function tsUnionType(types: Array): TSUnionType;
-export function tsIntersectionType(types: Array): TSIntersectionType;
-export function tsConditionalType(checkType: TSType, extendsType: TSType, trueType: TSType, falseType: TSType): TSConditionalType;
-export function tsInferType(typeParameter: TSTypeParameter): TSInferType;
-export function tsParenthesizedType(typeAnnotation: TSType): TSParenthesizedType;
-export function tsTypeOperator(typeAnnotation: TSType, operator?: string | null): TSTypeOperator;
-export function tsIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType;
-export function tsMappedType(typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, optional?: boolean | null, readonly?: boolean | null): TSMappedType;
-export function tsLiteralType(literal: NumericLiteral | StringLiteral | BooleanLiteral): TSLiteralType;
-export function tsExpressionWithTypeArguments(expression: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSExpressionWithTypeArguments;
-export function tsInterfaceDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: TSInterfaceBody, declare?: boolean | null): TSInterfaceDeclaration;
-export function tsInterfaceBody(body: Array): TSInterfaceBody;
-export function tsTypeAliasDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, typeAnnotation: TSType, declare?: boolean | null): TSTypeAliasDeclaration;
-export function tsAsExpression(expression: Expression, typeAnnotation: TSType): TSAsExpression;
-export function tsTypeAssertion(typeAnnotation: TSType, expression: Expression): TSTypeAssertion;
-export function tsEnumDeclaration(id: Identifier, members: Array, _const?: boolean | null, declare?: boolean | null, initializer?: Expression | null): TSEnumDeclaration;
-export function tsEnumMember(id: Identifier | StringLiteral, initializer?: Expression | null): TSEnumMember;
-export function tsModuleDeclaration(id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration, declare?: boolean | null, global?: boolean | null): TSModuleDeclaration;
-export function tsModuleBlock(body: Array): TSModuleBlock;
-export function tsImportEqualsDeclaration(id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference, isExport?: boolean | null): TSImportEqualsDeclaration;
-export function tsExternalModuleReference(expression: StringLiteral): TSExternalModuleReference;
-export function tsNonNullExpression(expression: Expression): TSNonNullExpression;
-export function tsExportAssignment(expression: Expression): TSExportAssignment;
-export function tsNamespaceExportDeclaration(id: Identifier): TSNamespaceExportDeclaration;
-export function tsTypeAnnotation(typeAnnotation: TSType): TSTypeAnnotation;
-export function tsTypeParameterInstantiation(params: Array): TSTypeParameterInstantiation;
-export function tsTypeParameterDeclaration(params: Array): TSTypeParameterDeclaration;
-export function tsTypeParameter(constraint?: TSType | null, _default?: TSType | null, name?: string | null): TSTypeParameter;
-export function isAnyTypeAnnotation(node: object, opts?: object | null): node is AnyTypeAnnotation;
-export function isArrayExpression(node: object, opts?: object | null): node is ArrayExpression;
-export function isArrayPattern(node: object, opts?: object | null): node is ArrayPattern;
-export function isArrayTypeAnnotation(node: object, opts?: object | null): node is ArrayTypeAnnotation;
-export function isArrowFunctionExpression(node: object, opts?: object | null): node is ArrowFunctionExpression;
-export function isAssignmentExpression(node: object, opts?: object | null): node is AssignmentExpression;
-export function isAssignmentPattern(node: object, opts?: object | null): node is AssignmentPattern;
-export function isAwaitExpression(node: object, opts?: object | null): node is AwaitExpression;
-export function isBigIntLiteral(node: object, opts?: object | null): node is BigIntLiteral;
-export function isBinary(node: object, opts?: object | null): boolean;
-export function isBinaryExpression(node: object, opts?: object | null): node is BinaryExpression;
-export function isBindExpression(node: object, opts?: object | null): node is BindExpression;
-export function isBlock(node: object, opts?: object | null): boolean;
-export function isBlockParent(node: object, opts?: object | null): boolean;
-export function isBlockStatement(node: object, opts?: object | null): node is BlockStatement;
-export function isBooleanLiteral(node: object, opts?: object | null): node is BooleanLiteral;
-export function isBooleanLiteralTypeAnnotation(node: object, opts?: object | null): node is BooleanLiteralTypeAnnotation;
-export function isBooleanTypeAnnotation(node: object, opts?: object | null): node is BooleanTypeAnnotation;
-export function isBreakStatement(node: object, opts?: object | null): node is BreakStatement;
-export function isCallExpression(node: object, opts?: object | null): node is CallExpression;
-export function isCatchClause(node: object, opts?: object | null): node is CatchClause;
-export function isClass(node: object, opts?: object | null): boolean;
-export function isClassBody(node: object, opts?: object | null): node is ClassBody;
-export function isClassDeclaration(node: object, opts?: object | null): node is ClassDeclaration;
-export function isClassExpression(node: object, opts?: object | null): node is ClassExpression;
-export function isClassImplements(node: object, opts?: object | null): node is ClassImplements;
-export function isClassMethod(node: object, opts?: object | null): node is ClassMethod;
-export function isClassPrivateProperty(node: object, opts?: object | null): node is ClassPrivateProperty;
-export function isClassProperty(node: object, opts?: object | null): node is ClassProperty;
-export function isCompletionStatement(node: object, opts?: object | null): boolean;
-export function isConditional(node: object, opts?: object | null): boolean;
-export function isConditionalExpression(node: object, opts?: object | null): node is ConditionalExpression;
-export function isContinueStatement(node: object, opts?: object | null): node is ContinueStatement;
-export function isDebuggerStatement(node: object, opts?: object | null): node is DebuggerStatement;
-export function isDeclaration(node: object, opts?: object | null): boolean;
-export function isDeclareClass(node: object, opts?: object | null): node is DeclareClass;
-export function isDeclareExportAllDeclaration(node: object, opts?: object | null): node is DeclareExportAllDeclaration;
-export function isDeclareExportDeclaration(node: object, opts?: object | null): node is DeclareExportDeclaration;
-export function isDeclareFunction(node: object, opts?: object | null): node is DeclareFunction;
-export function isDeclareInterface(node: object, opts?: object | null): node is DeclareInterface;
-export function isDeclareModule(node: object, opts?: object | null): node is DeclareModule;
-export function isDeclareModuleExports(node: object, opts?: object | null): node is DeclareModuleExports;
-export function isDeclareOpaqueType(node: object, opts?: object | null): node is DeclareOpaqueType;
-export function isDeclareTypeAlias(node: object, opts?: object | null): node is DeclareTypeAlias;
-export function isDeclareVariable(node: object, opts?: object | null): node is DeclareVariable;
-export function isDeclaredPredicate(node: object, opts?: object | null): node is DeclaredPredicate;
-export function isDecorator(node: object, opts?: object | null): node is Decorator;
-export function isDirective(node: object, opts?: object | null): node is Directive;
-export function isDirectiveLiteral(node: object, opts?: object | null): node is DirectiveLiteral;
-export function isDoExpression(node: object, opts?: object | null): node is DoExpression;
-export function isDoWhileStatement(node: object, opts?: object | null): node is DoWhileStatement;
-export function isEmptyStatement(node: object, opts?: object | null): node is EmptyStatement;
-export function isEmptyTypeAnnotation(node: object, opts?: object | null): node is EmptyTypeAnnotation;
-export function isExistsTypeAnnotation(node: object, opts?: object | null): node is ExistsTypeAnnotation;
-export function isExportAllDeclaration(node: object, opts?: object | null): node is ExportAllDeclaration;
-export function isExportDeclaration(node: object, opts?: object | null): boolean;
-export function isExportDefaultDeclaration(node: object, opts?: object | null): node is ExportDefaultDeclaration;
-export function isExportDefaultSpecifier(node: object, opts?: object | null): node is ExportDefaultSpecifier;
-export function isExportNamedDeclaration(node: object, opts?: object | null): node is ExportNamedDeclaration;
-export function isExportNamespaceSpecifier(node: object, opts?: object | null): node is ExportNamespaceSpecifier;
-export function isExportSpecifier(node: object, opts?: object | null): node is ExportSpecifier;
-export function isExpression(node: object, opts?: object | null): boolean;
-export function isExpressionStatement(node: object, opts?: object | null): node is ExpressionStatement;
-export function isExpressionWrapper(node: object, opts?: object | null): boolean;
-export function isFile(node: object, opts?: object | null): node is File;
-export function isFlow(node: object, opts?: object | null): boolean;
-export function isFlowBaseAnnotation(node: object, opts?: object | null): boolean;
-export function isFlowDeclaration(node: object, opts?: object | null): boolean;
-export function isFlowPredicate(node: object, opts?: object | null): boolean;
-export function isFlowType(node: object, opts?: object | null): boolean;
-export function isFor(node: object, opts?: object | null): boolean;
-export function isForInStatement(node: object, opts?: object | null): node is ForInStatement;
-export function isForOfStatement(node: object, opts?: object | null): node is ForOfStatement;
-export function isForStatement(node: object, opts?: object | null): node is ForStatement;
-export function isForXStatement(node: object, opts?: object | null): boolean;
-export function isFunction(node: object, opts?: object | null): boolean;
-export function isFunctionDeclaration(node: object, opts?: object | null): node is FunctionDeclaration;
-export function isFunctionExpression(node: object, opts?: object | null): node is FunctionExpression;
-export function isFunctionParent(node: object, opts?: object | null): boolean;
-export function isFunctionTypeAnnotation(node: object, opts?: object | null): node is FunctionTypeAnnotation;
-export function isFunctionTypeParam(node: object, opts?: object | null): node is FunctionTypeParam;
-export function isGenericTypeAnnotation(node: object, opts?: object | null): node is GenericTypeAnnotation;
-export function isIdentifier(node: object, opts?: object | null): node is Identifier;
-export function isIfStatement(node: object, opts?: object | null): node is IfStatement;
-export function isImmutable(node: object, opts?: object | null): boolean;
-export function isImport(node: object, opts?: object | null): node is Import;
-export function isImportDeclaration(node: object, opts?: object | null): node is ImportDeclaration;
-export function isImportDefaultSpecifier(node: object, opts?: object | null): node is ImportDefaultSpecifier;
-export function isImportNamespaceSpecifier(node: object, opts?: object | null): node is ImportNamespaceSpecifier;
-export function isImportSpecifier(node: object, opts?: object | null): node is ImportSpecifier;
-export function isInferredPredicate(node: object, opts?: object | null): node is InferredPredicate;
-export function isInterfaceDeclaration(node: object, opts?: object | null): node is InterfaceDeclaration;
-export function isInterfaceExtends(node: object, opts?: object | null): node is InterfaceExtends;
-export function isInterfaceTypeAnnotation(node: object, opts?: object | null): node is InterfaceTypeAnnotation;
-export function isInterpreterDirective(node: object, opts?: object | null): node is InterpreterDirective;
-export function isIntersectionTypeAnnotation(node: object, opts?: object | null): node is IntersectionTypeAnnotation;
-export function isJSX(node: object, opts?: object | null): boolean;
-export function isJSXAttribute(node: object, opts?: object | null): node is JSXAttribute;
-export function isJSXClosingElement(node: object, opts?: object | null): node is JSXClosingElement;
-export function isJSXClosingFragment(node: object, opts?: object | null): node is JSXClosingFragment;
-export function isJSXElement(node: object, opts?: object | null): node is JSXElement;
-export function isJSXEmptyExpression(node: object, opts?: object | null): node is JSXEmptyExpression;
-export function isJSXExpressionContainer(node: object, opts?: object | null): node is JSXExpressionContainer;
-export function isJSXFragment(node: object, opts?: object | null): node is JSXFragment;
-export function isJSXIdentifier(node: object, opts?: object | null): node is JSXIdentifier;
-export function isJSXMemberExpression(node: object, opts?: object | null): node is JSXMemberExpression;
-export function isJSXNamespacedName(node: object, opts?: object | null): node is JSXNamespacedName;
-export function isJSXOpeningElement(node: object, opts?: object | null): node is JSXOpeningElement;
-export function isJSXOpeningFragment(node: object, opts?: object | null): node is JSXOpeningFragment;
-export function isJSXSpreadAttribute(node: object, opts?: object | null): node is JSXSpreadAttribute;
-export function isJSXSpreadChild(node: object, opts?: object | null): node is JSXSpreadChild;
-export function isJSXText(node: object, opts?: object | null): node is JSXText;
-export function isLVal(node: object, opts?: object | null): boolean;
-export function isLabeledStatement(node: object, opts?: object | null): node is LabeledStatement;
-export function isLiteral(node: object, opts?: object | null): boolean;
-export function isLogicalExpression(node: object, opts?: object | null): node is LogicalExpression;
-export function isLoop(node: object, opts?: object | null): boolean;
-export function isMemberExpression(node: object, opts?: object | null): node is MemberExpression;
-export function isMetaProperty(node: object, opts?: object | null): node is MetaProperty;
-export function isMethod(node: object, opts?: object | null): boolean;
-export function isMixedTypeAnnotation(node: object, opts?: object | null): node is MixedTypeAnnotation;
-export function isModuleDeclaration(node: object, opts?: object | null): boolean;
-export function isModuleSpecifier(node: object, opts?: object | null): boolean;
-export function isNewExpression(node: object, opts?: object | null): node is NewExpression;
-export function isNoop(node: object, opts?: object | null): node is Noop;
-export function isNullLiteral(node: object, opts?: object | null): node is NullLiteral;
-export function isNullLiteralTypeAnnotation(node: object, opts?: object | null): node is NullLiteralTypeAnnotation;
-export function isNullableTypeAnnotation(node: object, opts?: object | null): node is NullableTypeAnnotation;
-export function isNumberLiteral(node: object, opts?: object | null): boolean;
-export function isNumberLiteralTypeAnnotation(node: object, opts?: object | null): node is NumberLiteralTypeAnnotation;
-export function isNumberTypeAnnotation(node: object, opts?: object | null): node is NumberTypeAnnotation;
-export function isNumericLiteral(node: object, opts?: object | null): node is NumericLiteral;
-export function isObjectExpression(node: object, opts?: object | null): node is ObjectExpression;
-export function isObjectMember(node: object, opts?: object | null): boolean;
-export function isObjectMethod(node: object, opts?: object | null): node is ObjectMethod;
-export function isObjectPattern(node: object, opts?: object | null): node is ObjectPattern;
-export function isObjectProperty(node: object, opts?: object | null): node is ObjectProperty;
-export function isObjectTypeAnnotation(node: object, opts?: object | null): node is ObjectTypeAnnotation;
-export function isObjectTypeCallProperty(node: object, opts?: object | null): node is ObjectTypeCallProperty;
-export function isObjectTypeIndexer(node: object, opts?: object | null): node is ObjectTypeIndexer;
-export function isObjectTypeInternalSlot(node: object, opts?: object | null): node is ObjectTypeInternalSlot;
-export function isObjectTypeProperty(node: object, opts?: object | null): node is ObjectTypeProperty;
-export function isObjectTypeSpreadProperty(node: object, opts?: object | null): node is ObjectTypeSpreadProperty;
-export function isOpaqueType(node: object, opts?: object | null): node is OpaqueType;
-export function isOptionalCallExpression(node: object, opts?: object | null): node is OptionalCallExpression;
-export function isOptionalMemberExpression(node: object, opts?: object | null): node is OptionalMemberExpression;
-export function isParenthesizedExpression(node: object, opts?: object | null): node is ParenthesizedExpression;
-export function isPattern(node: object, opts?: object | null): boolean;
-export function isPatternLike(node: object, opts?: object | null): boolean;
-export function isPrivate(node: object, opts?: object | null): boolean;
-export function isPrivateName(node: object, opts?: object | null): node is PrivateName;
-export function isProgram(node: object, opts?: object | null): node is Program;
-export function isProperty(node: object, opts?: object | null): boolean;
-export function isPureish(node: object, opts?: object | null): boolean;
-export function isQualifiedTypeIdentifier(node: object, opts?: object | null): node is QualifiedTypeIdentifier;
-export function isRegExpLiteral(node: object, opts?: object | null): node is RegExpLiteral;
-export function isRegexLiteral(node: object, opts?: object | null): boolean;
-export function isRestElement(node: object, opts?: object | null): node is RestElement;
-export function isRestProperty(node: object, opts?: object | null): boolean;
-export function isReturnStatement(node: object, opts?: object | null): node is ReturnStatement;
-export function isScopable(node: object, opts?: object | null): boolean;
-export function isSequenceExpression(node: object, opts?: object | null): node is SequenceExpression;
-export function isSpreadElement(node: object, opts?: object | null): node is SpreadElement;
-export function isSpreadProperty(node: object, opts?: object | null): boolean;
-export function isStatement(node: object, opts?: object | null): boolean;
-export function isStringLiteral(node: object, opts?: object | null): node is StringLiteral;
-export function isStringLiteralTypeAnnotation(node: object, opts?: object | null): node is StringLiteralTypeAnnotation;
-export function isStringTypeAnnotation(node: object, opts?: object | null): node is StringTypeAnnotation;
-export function isSuper(node: object, opts?: object | null): node is Super;
-export function isSwitchCase(node: object, opts?: object | null): node is SwitchCase;
-export function isSwitchStatement(node: object, opts?: object | null): node is SwitchStatement;
-export function isTSAnyKeyword(node: object, opts?: object | null): node is TSAnyKeyword;
-export function isTSArrayType(node: object, opts?: object | null): node is TSArrayType;
-export function isTSAsExpression(node: object, opts?: object | null): node is TSAsExpression;
-export function isTSBooleanKeyword(node: object, opts?: object | null): node is TSBooleanKeyword;
-export function isTSCallSignatureDeclaration(node: object, opts?: object | null): node is TSCallSignatureDeclaration;
-export function isTSConditionalType(node: object, opts?: object | null): node is TSConditionalType;
-export function isTSConstructSignatureDeclaration(node: object, opts?: object | null): node is TSConstructSignatureDeclaration;
-export function isTSConstructorType(node: object, opts?: object | null): node is TSConstructorType;
-export function isTSDeclareFunction(node: object, opts?: object | null): node is TSDeclareFunction;
-export function isTSDeclareMethod(node: object, opts?: object | null): node is TSDeclareMethod;
-export function isTSEntityName(node: object, opts?: object | null): boolean;
-export function isTSEnumDeclaration(node: object, opts?: object | null): node is TSEnumDeclaration;
-export function isTSEnumMember(node: object, opts?: object | null): node is TSEnumMember;
-export function isTSExportAssignment(node: object, opts?: object | null): node is TSExportAssignment;
-export function isTSExpressionWithTypeArguments(node: object, opts?: object | null): node is TSExpressionWithTypeArguments;
-export function isTSExternalModuleReference(node: object, opts?: object | null): node is TSExternalModuleReference;
-export function isTSFunctionType(node: object, opts?: object | null): node is TSFunctionType;
-export function isTSImportEqualsDeclaration(node: object, opts?: object | null): node is TSImportEqualsDeclaration;
-export function isTSIndexSignature(node: object, opts?: object | null): node is TSIndexSignature;
-export function isTSIndexedAccessType(node: object, opts?: object | null): node is TSIndexedAccessType;
-export function isTSInferType(node: object, opts?: object | null): node is TSInferType;
-export function isTSInterfaceBody(node: object, opts?: object | null): node is TSInterfaceBody;
-export function isTSInterfaceDeclaration(node: object, opts?: object | null): node is TSInterfaceDeclaration;
-export function isTSIntersectionType(node: object, opts?: object | null): node is TSIntersectionType;
-export function isTSLiteralType(node: object, opts?: object | null): node is TSLiteralType;
-export function isTSMappedType(node: object, opts?: object | null): node is TSMappedType;
-export function isTSMethodSignature(node: object, opts?: object | null): node is TSMethodSignature;
-export function isTSModuleBlock(node: object, opts?: object | null): node is TSModuleBlock;
-export function isTSModuleDeclaration(node: object, opts?: object | null): node is TSModuleDeclaration;
-export function isTSNamespaceExportDeclaration(node: object, opts?: object | null): node is TSNamespaceExportDeclaration;
-export function isTSNeverKeyword(node: object, opts?: object | null): node is TSNeverKeyword;
-export function isTSNonNullExpression(node: object, opts?: object | null): node is TSNonNullExpression;
-export function isTSNullKeyword(node: object, opts?: object | null): node is TSNullKeyword;
-export function isTSNumberKeyword(node: object, opts?: object | null): node is TSNumberKeyword;
-export function isTSObjectKeyword(node: object, opts?: object | null): node is TSObjectKeyword;
-export function isTSParameterProperty(node: object, opts?: object | null): node is TSParameterProperty;
-export function isTSParenthesizedType(node: object, opts?: object | null): node is TSParenthesizedType;
-export function isTSPropertySignature(node: object, opts?: object | null): node is TSPropertySignature;
-export function isTSQualifiedName(node: object, opts?: object | null): node is TSQualifiedName;
-export function isTSStringKeyword(node: object, opts?: object | null): node is TSStringKeyword;
-export function isTSSymbolKeyword(node: object, opts?: object | null): node is TSSymbolKeyword;
-export function isTSThisType(node: object, opts?: object | null): node is TSThisType;
-export function isTSTupleType(node: object, opts?: object | null): node is TSTupleType;
-export function isTSType(node: object, opts?: object | null): boolean;
-export function isTSTypeAliasDeclaration(node: object, opts?: object | null): node is TSTypeAliasDeclaration;
-export function isTSTypeAnnotation(node: object, opts?: object | null): node is TSTypeAnnotation;
-export function isTSTypeAssertion(node: object, opts?: object | null): node is TSTypeAssertion;
-export function isTSTypeElement(node: object, opts?: object | null): boolean;
-export function isTSTypeLiteral(node: object, opts?: object | null): node is TSTypeLiteral;
-export function isTSTypeOperator(node: object, opts?: object | null): node is TSTypeOperator;
-export function isTSTypeParameter(node: object, opts?: object | null): node is TSTypeParameter;
-export function isTSTypeParameterDeclaration(node: object, opts?: object | null): node is TSTypeParameterDeclaration;
-export function isTSTypeParameterInstantiation(node: object, opts?: object | null): node is TSTypeParameterInstantiation;
-export function isTSTypePredicate(node: object, opts?: object | null): node is TSTypePredicate;
-export function isTSTypeQuery(node: object, opts?: object | null): node is TSTypeQuery;
-export function isTSTypeReference(node: object, opts?: object | null): node is TSTypeReference;
-export function isTSUndefinedKeyword(node: object, opts?: object | null): node is TSUndefinedKeyword;
-export function isTSUnionType(node: object, opts?: object | null): node is TSUnionType;
-export function isTSVoidKeyword(node: object, opts?: object | null): node is TSVoidKeyword;
-export function isTaggedTemplateExpression(node: object, opts?: object | null): node is TaggedTemplateExpression;
-export function isTemplateElement(node: object, opts?: object | null): node is TemplateElement;
-export function isTemplateLiteral(node: object, opts?: object | null): node is TemplateLiteral;
-export function isTerminatorless(node: object, opts?: object | null): boolean;
-export function isThisExpression(node: object, opts?: object | null): node is ThisExpression;
-export function isThisTypeAnnotation(node: object, opts?: object | null): node is ThisTypeAnnotation;
-export function isThrowStatement(node: object, opts?: object | null): node is ThrowStatement;
-export function isTryStatement(node: object, opts?: object | null): node is TryStatement;
-export function isTupleTypeAnnotation(node: object, opts?: object | null): node is TupleTypeAnnotation;
-export function isTypeAlias(node: object, opts?: object | null): node is TypeAlias;
-export function isTypeAnnotation(node: object, opts?: object | null): node is TypeAnnotation;
-export function isTypeCastExpression(node: object, opts?: object | null): node is TypeCastExpression;
-export function isTypeParameter(node: object, opts?: object | null): node is TypeParameter;
-export function isTypeParameterDeclaration(node: object, opts?: object | null): node is TypeParameterDeclaration;
-export function isTypeParameterInstantiation(node: object, opts?: object | null): node is TypeParameterInstantiation;
-export function isTypeofTypeAnnotation(node: object, opts?: object | null): node is TypeofTypeAnnotation;
-export function isUnaryExpression(node: object, opts?: object | null): node is UnaryExpression;
-export function isUnaryLike(node: object, opts?: object | null): boolean;
-export function isUnionTypeAnnotation(node: object, opts?: object | null): node is UnionTypeAnnotation;
-export function isUpdateExpression(node: object, opts?: object | null): node is UpdateExpression;
-export function isUserWhitespacable(node: object, opts?: object | null): boolean;
-export function isVariableDeclaration(node: object, opts?: object | null): node is VariableDeclaration;
-export function isVariableDeclarator(node: object, opts?: object | null): node is VariableDeclarator;
-export function isVariance(node: object, opts?: object | null): node is Variance;
-export function isVoidTypeAnnotation(node: object, opts?: object | null): node is VoidTypeAnnotation;
-export function isWhile(node: object, opts?: object | null): boolean;
-export function isWhileStatement(node: object, opts?: object | null): node is WhileStatement;
-export function isWithStatement(node: object, opts?: object | null): node is WithStatement;
-export function isYieldExpression(node: object, opts?: object | null): node is YieldExpression;
-export function validate(n: Node, key: string, value: any): void;
-export function clone(n: T): T;
-export function cloneDeep(n: T): T;
-export function removeProperties(
- n: Node,
- opts?: { preserveComments: boolean } | null
-): void;
-export function removePropertiesDeep(
- n: T,
- opts?: { preserveComments: boolean } | null
-): T;
-export type TraversalAncestors = ReadonlyArray<{
- node: Node,
- key: string,
- index?: number,
-}>;
-export type TraversalHandler = (node: Node, parent: TraversalAncestors, type: T) => void;
-export type TraversalHandlers = {
- enter?: TraversalHandler,
- exit?: TraversalHandler,
-};
-export function traverse(n: Node, h: TraversalHandler | TraversalHandlers, state?: T): void;
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/index.js b/AuthenticationSDK/node_modules/@babel/types/lib/index.js
deleted file mode 100644
index 8d9df04d..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/index.js
+++ /dev/null
@@ -1,570 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-var _exportNames = {
- react: true,
- assertNode: true,
- createTypeAnnotationBasedOnTypeof: true,
- createUnionTypeAnnotation: true,
- cloneNode: true,
- clone: true,
- cloneDeep: true,
- cloneWithoutLoc: true,
- addComment: true,
- addComments: true,
- inheritInnerComments: true,
- inheritLeadingComments: true,
- inheritsComments: true,
- inheritTrailingComments: true,
- removeComments: true,
- ensureBlock: true,
- toBindingIdentifierName: true,
- toBlock: true,
- toComputedKey: true,
- toExpression: true,
- toIdentifier: true,
- toKeyAlias: true,
- toSequenceExpression: true,
- toStatement: true,
- valueToNode: true,
- appendToMemberExpression: true,
- inherits: true,
- prependToMemberExpression: true,
- removeProperties: true,
- removePropertiesDeep: true,
- removeTypeDuplicates: true,
- getBindingIdentifiers: true,
- getOuterBindingIdentifiers: true,
- traverse: true,
- traverseFast: true,
- shallowEqual: true,
- is: true,
- isBinding: true,
- isBlockScoped: true,
- isImmutable: true,
- isLet: true,
- isNode: true,
- isNodesEquivalent: true,
- isReferenced: true,
- isScope: true,
- isSpecifierDefault: true,
- isType: true,
- isValidES3Identifier: true,
- isValidIdentifier: true,
- isVar: true,
- matchesPattern: true,
- validate: true,
- buildMatchMemberExpression: true
-};
-Object.defineProperty(exports, "assertNode", {
- enumerable: true,
- get: function () {
- return _assertNode.default;
- }
-});
-Object.defineProperty(exports, "createTypeAnnotationBasedOnTypeof", {
- enumerable: true,
- get: function () {
- return _createTypeAnnotationBasedOnTypeof.default;
- }
-});
-Object.defineProperty(exports, "createUnionTypeAnnotation", {
- enumerable: true,
- get: function () {
- return _createUnionTypeAnnotation.default;
- }
-});
-Object.defineProperty(exports, "cloneNode", {
- enumerable: true,
- get: function () {
- return _cloneNode.default;
- }
-});
-Object.defineProperty(exports, "clone", {
- enumerable: true,
- get: function () {
- return _clone.default;
- }
-});
-Object.defineProperty(exports, "cloneDeep", {
- enumerable: true,
- get: function () {
- return _cloneDeep.default;
- }
-});
-Object.defineProperty(exports, "cloneWithoutLoc", {
- enumerable: true,
- get: function () {
- return _cloneWithoutLoc.default;
- }
-});
-Object.defineProperty(exports, "addComment", {
- enumerable: true,
- get: function () {
- return _addComment.default;
- }
-});
-Object.defineProperty(exports, "addComments", {
- enumerable: true,
- get: function () {
- return _addComments.default;
- }
-});
-Object.defineProperty(exports, "inheritInnerComments", {
- enumerable: true,
- get: function () {
- return _inheritInnerComments.default;
- }
-});
-Object.defineProperty(exports, "inheritLeadingComments", {
- enumerable: true,
- get: function () {
- return _inheritLeadingComments.default;
- }
-});
-Object.defineProperty(exports, "inheritsComments", {
- enumerable: true,
- get: function () {
- return _inheritsComments.default;
- }
-});
-Object.defineProperty(exports, "inheritTrailingComments", {
- enumerable: true,
- get: function () {
- return _inheritTrailingComments.default;
- }
-});
-Object.defineProperty(exports, "removeComments", {
- enumerable: true,
- get: function () {
- return _removeComments.default;
- }
-});
-Object.defineProperty(exports, "ensureBlock", {
- enumerable: true,
- get: function () {
- return _ensureBlock.default;
- }
-});
-Object.defineProperty(exports, "toBindingIdentifierName", {
- enumerable: true,
- get: function () {
- return _toBindingIdentifierName.default;
- }
-});
-Object.defineProperty(exports, "toBlock", {
- enumerable: true,
- get: function () {
- return _toBlock.default;
- }
-});
-Object.defineProperty(exports, "toComputedKey", {
- enumerable: true,
- get: function () {
- return _toComputedKey.default;
- }
-});
-Object.defineProperty(exports, "toExpression", {
- enumerable: true,
- get: function () {
- return _toExpression.default;
- }
-});
-Object.defineProperty(exports, "toIdentifier", {
- enumerable: true,
- get: function () {
- return _toIdentifier.default;
- }
-});
-Object.defineProperty(exports, "toKeyAlias", {
- enumerable: true,
- get: function () {
- return _toKeyAlias.default;
- }
-});
-Object.defineProperty(exports, "toSequenceExpression", {
- enumerable: true,
- get: function () {
- return _toSequenceExpression.default;
- }
-});
-Object.defineProperty(exports, "toStatement", {
- enumerable: true,
- get: function () {
- return _toStatement.default;
- }
-});
-Object.defineProperty(exports, "valueToNode", {
- enumerable: true,
- get: function () {
- return _valueToNode.default;
- }
-});
-Object.defineProperty(exports, "appendToMemberExpression", {
- enumerable: true,
- get: function () {
- return _appendToMemberExpression.default;
- }
-});
-Object.defineProperty(exports, "inherits", {
- enumerable: true,
- get: function () {
- return _inherits.default;
- }
-});
-Object.defineProperty(exports, "prependToMemberExpression", {
- enumerable: true,
- get: function () {
- return _prependToMemberExpression.default;
- }
-});
-Object.defineProperty(exports, "removeProperties", {
- enumerable: true,
- get: function () {
- return _removeProperties.default;
- }
-});
-Object.defineProperty(exports, "removePropertiesDeep", {
- enumerable: true,
- get: function () {
- return _removePropertiesDeep.default;
- }
-});
-Object.defineProperty(exports, "removeTypeDuplicates", {
- enumerable: true,
- get: function () {
- return _removeTypeDuplicates.default;
- }
-});
-Object.defineProperty(exports, "getBindingIdentifiers", {
- enumerable: true,
- get: function () {
- return _getBindingIdentifiers.default;
- }
-});
-Object.defineProperty(exports, "getOuterBindingIdentifiers", {
- enumerable: true,
- get: function () {
- return _getOuterBindingIdentifiers.default;
- }
-});
-Object.defineProperty(exports, "traverse", {
- enumerable: true,
- get: function () {
- return _traverse.default;
- }
-});
-Object.defineProperty(exports, "traverseFast", {
- enumerable: true,
- get: function () {
- return _traverseFast.default;
- }
-});
-Object.defineProperty(exports, "shallowEqual", {
- enumerable: true,
- get: function () {
- return _shallowEqual.default;
- }
-});
-Object.defineProperty(exports, "is", {
- enumerable: true,
- get: function () {
- return _is.default;
- }
-});
-Object.defineProperty(exports, "isBinding", {
- enumerable: true,
- get: function () {
- return _isBinding.default;
- }
-});
-Object.defineProperty(exports, "isBlockScoped", {
- enumerable: true,
- get: function () {
- return _isBlockScoped.default;
- }
-});
-Object.defineProperty(exports, "isImmutable", {
- enumerable: true,
- get: function () {
- return _isImmutable.default;
- }
-});
-Object.defineProperty(exports, "isLet", {
- enumerable: true,
- get: function () {
- return _isLet.default;
- }
-});
-Object.defineProperty(exports, "isNode", {
- enumerable: true,
- get: function () {
- return _isNode.default;
- }
-});
-Object.defineProperty(exports, "isNodesEquivalent", {
- enumerable: true,
- get: function () {
- return _isNodesEquivalent.default;
- }
-});
-Object.defineProperty(exports, "isReferenced", {
- enumerable: true,
- get: function () {
- return _isReferenced.default;
- }
-});
-Object.defineProperty(exports, "isScope", {
- enumerable: true,
- get: function () {
- return _isScope.default;
- }
-});
-Object.defineProperty(exports, "isSpecifierDefault", {
- enumerable: true,
- get: function () {
- return _isSpecifierDefault.default;
- }
-});
-Object.defineProperty(exports, "isType", {
- enumerable: true,
- get: function () {
- return _isType.default;
- }
-});
-Object.defineProperty(exports, "isValidES3Identifier", {
- enumerable: true,
- get: function () {
- return _isValidES3Identifier.default;
- }
-});
-Object.defineProperty(exports, "isValidIdentifier", {
- enumerable: true,
- get: function () {
- return _isValidIdentifier.default;
- }
-});
-Object.defineProperty(exports, "isVar", {
- enumerable: true,
- get: function () {
- return _isVar.default;
- }
-});
-Object.defineProperty(exports, "matchesPattern", {
- enumerable: true,
- get: function () {
- return _matchesPattern.default;
- }
-});
-Object.defineProperty(exports, "validate", {
- enumerable: true,
- get: function () {
- return _validate.default;
- }
-});
-Object.defineProperty(exports, "buildMatchMemberExpression", {
- enumerable: true,
- get: function () {
- return _buildMatchMemberExpression.default;
- }
-});
-exports.react = void 0;
-
-var _isReactComponent = _interopRequireDefault(require("./validators/react/isReactComponent"));
-
-var _isCompatTag = _interopRequireDefault(require("./validators/react/isCompatTag"));
-
-var _buildChildren = _interopRequireDefault(require("./builders/react/buildChildren"));
-
-var _assertNode = _interopRequireDefault(require("./asserts/assertNode"));
-
-var _generated = require("./asserts/generated");
-
-Object.keys(_generated).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _generated[key];
- }
- });
-});
-
-var _createTypeAnnotationBasedOnTypeof = _interopRequireDefault(require("./builders/flow/createTypeAnnotationBasedOnTypeof"));
-
-var _createUnionTypeAnnotation = _interopRequireDefault(require("./builders/flow/createUnionTypeAnnotation"));
-
-var _generated2 = require("./builders/generated");
-
-Object.keys(_generated2).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _generated2[key];
- }
- });
-});
-
-var _cloneNode = _interopRequireDefault(require("./clone/cloneNode"));
-
-var _clone = _interopRequireDefault(require("./clone/clone"));
-
-var _cloneDeep = _interopRequireDefault(require("./clone/cloneDeep"));
-
-var _cloneWithoutLoc = _interopRequireDefault(require("./clone/cloneWithoutLoc"));
-
-var _addComment = _interopRequireDefault(require("./comments/addComment"));
-
-var _addComments = _interopRequireDefault(require("./comments/addComments"));
-
-var _inheritInnerComments = _interopRequireDefault(require("./comments/inheritInnerComments"));
-
-var _inheritLeadingComments = _interopRequireDefault(require("./comments/inheritLeadingComments"));
-
-var _inheritsComments = _interopRequireDefault(require("./comments/inheritsComments"));
-
-var _inheritTrailingComments = _interopRequireDefault(require("./comments/inheritTrailingComments"));
-
-var _removeComments = _interopRequireDefault(require("./comments/removeComments"));
-
-var _generated3 = require("./constants/generated");
-
-Object.keys(_generated3).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _generated3[key];
- }
- });
-});
-
-var _constants = require("./constants");
-
-Object.keys(_constants).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _constants[key];
- }
- });
-});
-
-var _ensureBlock = _interopRequireDefault(require("./converters/ensureBlock"));
-
-var _toBindingIdentifierName = _interopRequireDefault(require("./converters/toBindingIdentifierName"));
-
-var _toBlock = _interopRequireDefault(require("./converters/toBlock"));
-
-var _toComputedKey = _interopRequireDefault(require("./converters/toComputedKey"));
-
-var _toExpression = _interopRequireDefault(require("./converters/toExpression"));
-
-var _toIdentifier = _interopRequireDefault(require("./converters/toIdentifier"));
-
-var _toKeyAlias = _interopRequireDefault(require("./converters/toKeyAlias"));
-
-var _toSequenceExpression = _interopRequireDefault(require("./converters/toSequenceExpression"));
-
-var _toStatement = _interopRequireDefault(require("./converters/toStatement"));
-
-var _valueToNode = _interopRequireDefault(require("./converters/valueToNode"));
-
-var _definitions = require("./definitions");
-
-Object.keys(_definitions).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _definitions[key];
- }
- });
-});
-
-var _appendToMemberExpression = _interopRequireDefault(require("./modifications/appendToMemberExpression"));
-
-var _inherits = _interopRequireDefault(require("./modifications/inherits"));
-
-var _prependToMemberExpression = _interopRequireDefault(require("./modifications/prependToMemberExpression"));
-
-var _removeProperties = _interopRequireDefault(require("./modifications/removeProperties"));
-
-var _removePropertiesDeep = _interopRequireDefault(require("./modifications/removePropertiesDeep"));
-
-var _removeTypeDuplicates = _interopRequireDefault(require("./modifications/flow/removeTypeDuplicates"));
-
-var _getBindingIdentifiers = _interopRequireDefault(require("./retrievers/getBindingIdentifiers"));
-
-var _getOuterBindingIdentifiers = _interopRequireDefault(require("./retrievers/getOuterBindingIdentifiers"));
-
-var _traverse = _interopRequireDefault(require("./traverse/traverse"));
-
-var _traverseFast = _interopRequireDefault(require("./traverse/traverseFast"));
-
-var _shallowEqual = _interopRequireDefault(require("./utils/shallowEqual"));
-
-var _is = _interopRequireDefault(require("./validators/is"));
-
-var _isBinding = _interopRequireDefault(require("./validators/isBinding"));
-
-var _isBlockScoped = _interopRequireDefault(require("./validators/isBlockScoped"));
-
-var _isImmutable = _interopRequireDefault(require("./validators/isImmutable"));
-
-var _isLet = _interopRequireDefault(require("./validators/isLet"));
-
-var _isNode = _interopRequireDefault(require("./validators/isNode"));
-
-var _isNodesEquivalent = _interopRequireDefault(require("./validators/isNodesEquivalent"));
-
-var _isReferenced = _interopRequireDefault(require("./validators/isReferenced"));
-
-var _isScope = _interopRequireDefault(require("./validators/isScope"));
-
-var _isSpecifierDefault = _interopRequireDefault(require("./validators/isSpecifierDefault"));
-
-var _isType = _interopRequireDefault(require("./validators/isType"));
-
-var _isValidES3Identifier = _interopRequireDefault(require("./validators/isValidES3Identifier"));
-
-var _isValidIdentifier = _interopRequireDefault(require("./validators/isValidIdentifier"));
-
-var _isVar = _interopRequireDefault(require("./validators/isVar"));
-
-var _matchesPattern = _interopRequireDefault(require("./validators/matchesPattern"));
-
-var _validate = _interopRequireDefault(require("./validators/validate"));
-
-var _buildMatchMemberExpression = _interopRequireDefault(require("./validators/buildMatchMemberExpression"));
-
-var _generated4 = require("./validators/generated");
-
-Object.keys(_generated4).forEach(function (key) {
- if (key === "default" || key === "__esModule") return;
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
- Object.defineProperty(exports, key, {
- enumerable: true,
- get: function () {
- return _generated4[key];
- }
- });
-});
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-const react = {
- isReactComponent: _isReactComponent.default,
- isCompatTag: _isCompatTag.default,
- buildChildren: _buildChildren.default
-};
-exports.react = react;
\ No newline at end of file
diff --git a/AuthenticationSDK/node_modules/@babel/types/lib/index.js.flow b/AuthenticationSDK/node_modules/@babel/types/lib/index.js.flow
deleted file mode 100644
index b63e8bf2..00000000
--- a/AuthenticationSDK/node_modules/@babel/types/lib/index.js.flow
+++ /dev/null
@@ -1,1887 +0,0 @@
-// NOTE: This file is autogenerated. Do not modify.
-// See scripts/generators/flow.js for script used.
-
-declare class BabelNodeComment {
- value: string;
- start: number;
- end: number;
- loc: BabelNodeSourceLocation;
-}
-
-declare class BabelNodeBlockComment extends BabelNodeComment {
- type: "BlockComment";
-}
-
-declare class BabelNodeLineComment extends BabelNodeComment {
- type: "LineComment";
-}
-
-declare class BabelNodeSourceLocation {
- start: {
- line: number;
- column: number;
- };
-
- end: {
- line: number;
- column: number;
- };
-}
-
-declare class BabelNode {
- leadingComments?: Array;
- innerComments?: Array;
- trailingComments?: Array;
- start: ?number;
- end: ?number;
- loc: ?BabelNodeSourceLocation;
-}
-
-declare class BabelNodeArrayExpression extends BabelNode {
- type: "ArrayExpression";
- elements?: Array;
-}
-
-declare class BabelNodeAssignmentExpression extends BabelNode {
- type: "AssignmentExpression";
- operator: string;
- left: BabelNodeLVal;
- right: BabelNodeExpression;
-}
-
-declare class BabelNodeBinaryExpression extends BabelNode {
- type: "BinaryExpression";
- operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=";
- left: BabelNodeExpression;
- right: BabelNodeExpression;
-}
-
-declare class BabelNodeInterpreterDirective extends BabelNode {
- type: "InterpreterDirective";
- value: string;
-}
-
-declare class BabelNodeDirective extends BabelNode {
- type: "Directive";
- value: BabelNodeDirectiveLiteral;
-}
-
-declare class BabelNodeDirectiveLiteral extends BabelNode {
- type: "DirectiveLiteral";
- value: string;
-}
-
-declare class BabelNodeBlockStatement extends BabelNode {
- type: "BlockStatement";
- body: Array;
- directives?: Array;
-}
-
-declare class BabelNodeBreakStatement extends BabelNode {
- type: "BreakStatement";
- label?: BabelNodeIdentifier;
-}
-
-declare class BabelNodeCallExpression extends BabelNode {
- type: "CallExpression";
- callee: BabelNodeExpression;
- arguments: Array;
- optional?: true | false;
- typeArguments?: BabelNodeTypeParameterInstantiation;
- typeParameters?: BabelNodeTSTypeParameterInstantiation;
-}
-
-declare class BabelNodeCatchClause extends BabelNode {
- type: "CatchClause";
- param?: BabelNodeIdentifier;
- body: BabelNodeBlockStatement;
-}
-
-declare class BabelNodeConditionalExpression extends BabelNode {
- type: "ConditionalExpression";
- test: BabelNodeExpression;
- consequent: BabelNodeExpression;
- alternate: BabelNodeExpression;
-}
-
-declare class BabelNodeContinueStatement extends BabelNode {
- type: "ContinueStatement";
- label?: BabelNodeIdentifier;
-}
-
-declare class BabelNodeDebuggerStatement extends BabelNode {
- type: "DebuggerStatement";
-}
-
-declare class BabelNodeDoWhileStatement extends BabelNode {
- type: "DoWhileStatement";
- test: BabelNodeExpression;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeEmptyStatement extends BabelNode {
- type: "EmptyStatement";
-}
-
-declare class BabelNodeExpressionStatement extends BabelNode {
- type: "ExpressionStatement";
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeFile extends BabelNode {
- type: "File";
- program: BabelNodeProgram;
- comments: any;
- tokens: any;
-}
-
-declare class BabelNodeForInStatement extends BabelNode {
- type: "ForInStatement";
- left: BabelNodeVariableDeclaration | BabelNodeLVal;
- right: BabelNodeExpression;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeForStatement extends BabelNode {
- type: "ForStatement";
- init?: BabelNodeVariableDeclaration | BabelNodeExpression;
- test?: BabelNodeExpression;
- update?: BabelNodeExpression;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeFunctionDeclaration extends BabelNode {
- type: "FunctionDeclaration";
- id?: BabelNodeIdentifier;
- params: Array;
- body: BabelNodeBlockStatement;
- generator?: boolean;
- async?: boolean;
- declare?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeFunctionExpression extends BabelNode {
- type: "FunctionExpression";
- id?: BabelNodeIdentifier;
- params: Array;
- body: BabelNodeBlockStatement;
- generator?: boolean;
- async?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeIdentifier extends BabelNode {
- type: "Identifier";
- name: string;
- decorators?: Array;
- optional?: boolean;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeIfStatement extends BabelNode {
- type: "IfStatement";
- test: BabelNodeExpression;
- consequent: BabelNodeStatement;
- alternate?: BabelNodeStatement;
-}
-
-declare class BabelNodeLabeledStatement extends BabelNode {
- type: "LabeledStatement";
- label: BabelNodeIdentifier;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeStringLiteral extends BabelNode {
- type: "StringLiteral";
- value: string;
-}
-
-declare class BabelNodeNumericLiteral extends BabelNode {
- type: "NumericLiteral";
- value: number;
-}
-
-declare class BabelNodeNullLiteral extends BabelNode {
- type: "NullLiteral";
-}
-
-declare class BabelNodeBooleanLiteral extends BabelNode {
- type: "BooleanLiteral";
- value: boolean;
-}
-
-declare class BabelNodeRegExpLiteral extends BabelNode {
- type: "RegExpLiteral";
- pattern: string;
- flags?: string;
-}
-
-declare class BabelNodeLogicalExpression extends BabelNode {
- type: "LogicalExpression";
- operator: "||" | "&&" | "??";
- left: BabelNodeExpression;
- right: BabelNodeExpression;
-}
-
-declare class BabelNodeMemberExpression extends BabelNode {
- type: "MemberExpression";
- object: BabelNodeExpression;
- property: any;
- computed?: boolean;
- optional?: true | false;
-}
-
-declare class BabelNodeNewExpression extends BabelNode {
- type: "NewExpression";
- callee: BabelNodeExpression;
- arguments: Array;
- optional?: true | false;
- typeArguments?: BabelNodeTypeParameterInstantiation;
- typeParameters?: BabelNodeTSTypeParameterInstantiation;
-}
-
-declare class BabelNodeProgram extends BabelNode {
- type: "Program";
- body: Array;
- directives?: Array;
- sourceType?: "script" | "module";
- interpreter?: BabelNodeInterpreterDirective;
- sourceFile?: string;
-}
-
-declare class BabelNodeObjectExpression extends BabelNode {
- type: "ObjectExpression";
- properties: Array;
-}
-
-declare class BabelNodeObjectMethod extends BabelNode {
- type: "ObjectMethod";
- kind?: "method" | "get" | "set";
- key: any;
- params: Array;
- body: BabelNodeBlockStatement;
- computed?: boolean;
- async?: boolean;
- decorators?: Array;
- generator?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeObjectProperty extends BabelNode {
- type: "ObjectProperty";
- key: any;
- value: BabelNodeExpression | BabelNodePatternLike;
- computed?: boolean;
- shorthand?: boolean;
- decorators?: Array;
-}
-
-declare class BabelNodeRestElement extends BabelNode {
- type: "RestElement";
- argument: BabelNodeLVal;
- decorators?: Array;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeReturnStatement extends BabelNode {
- type: "ReturnStatement";
- argument?: BabelNodeExpression;
-}
-
-declare class BabelNodeSequenceExpression extends BabelNode {
- type: "SequenceExpression";
- expressions: Array;
-}
-
-declare class BabelNodeSwitchCase extends BabelNode {
- type: "SwitchCase";
- test?: BabelNodeExpression;
- consequent: Array;
-}
-
-declare class BabelNodeSwitchStatement extends BabelNode {
- type: "SwitchStatement";
- discriminant: BabelNodeExpression;
- cases: Array;
-}
-
-declare class BabelNodeThisExpression extends BabelNode {
- type: "ThisExpression";
-}
-
-declare class BabelNodeThrowStatement extends BabelNode {
- type: "ThrowStatement";
- argument: BabelNodeExpression;
-}
-
-declare class BabelNodeTryStatement extends BabelNode {
- type: "TryStatement";
- block: BabelNodeBlockStatement;
- handler?: BabelNodeCatchClause;
- finalizer?: BabelNodeBlockStatement;
-}
-
-declare class BabelNodeUnaryExpression extends BabelNode {
- type: "UnaryExpression";
- operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof";
- argument: BabelNodeExpression;
- prefix?: boolean;
-}
-
-declare class BabelNodeUpdateExpression extends BabelNode {
- type: "UpdateExpression";
- operator: "++" | "--";
- argument: BabelNodeExpression;
- prefix?: boolean;
-}
-
-declare class BabelNodeVariableDeclaration extends BabelNode {
- type: "VariableDeclaration";
- kind: "var" | "let" | "const";
- declarations: Array;
- declare?: boolean;
-}
-
-declare class BabelNodeVariableDeclarator extends BabelNode {
- type: "VariableDeclarator";
- id: BabelNodeLVal;
- init?: BabelNodeExpression;
- definite?: boolean;
-}
-
-declare class BabelNodeWhileStatement extends BabelNode {
- type: "WhileStatement";
- test: BabelNodeExpression;
- body: BabelNodeBlockStatement | BabelNodeStatement;
-}
-
-declare class BabelNodeWithStatement extends BabelNode {
- type: "WithStatement";
- object: BabelNodeExpression;
- body: BabelNodeBlockStatement | BabelNodeStatement;
-}
-
-declare class BabelNodeAssignmentPattern extends BabelNode {
- type: "AssignmentPattern";
- left: BabelNodeIdentifier | BabelNodeObjectPattern | BabelNodeArrayPattern;
- right: BabelNodeExpression;
- decorators?: Array;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeArrayPattern extends BabelNode {
- type: "ArrayPattern";
- elements: Array;
- decorators?: Array;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeArrowFunctionExpression extends BabelNode {
- type: "ArrowFunctionExpression";
- params: Array;
- body: BabelNodeBlockStatement | BabelNodeExpression;
- async?: boolean;
- expression?: boolean;
- generator?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeClassBody extends BabelNode {
- type: "ClassBody";
- body: Array;
-}
-
-declare class BabelNodeClassDeclaration extends BabelNode {
- type: "ClassDeclaration";
- id?: BabelNodeIdentifier;
- superClass?: BabelNodeExpression;
- body: BabelNodeClassBody;
- decorators?: Array;
- abstract?: boolean;
- declare?: boolean;
- mixins?: any;
- superTypeParameters?: BabelNodeTypeParameterInstantiation | BabelNodeTSTypeParameterInstantiation;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeClassExpression extends BabelNode {
- type: "ClassExpression";
- id?: BabelNodeIdentifier;
- superClass?: BabelNodeExpression;
- body: BabelNodeClassBody;
- decorators?: Array;
- mixins?: any;
- superTypeParameters?: BabelNodeTypeParameterInstantiation | BabelNodeTSTypeParameterInstantiation;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeExportAllDeclaration extends BabelNode {
- type: "ExportAllDeclaration";
- source: BabelNodeStringLiteral;
-}
-
-declare class BabelNodeExportDefaultDeclaration extends BabelNode {
- type: "ExportDefaultDeclaration";
- declaration: BabelNodeFunctionDeclaration | BabelNodeTSDeclareFunction | BabelNodeClassDeclaration | BabelNodeExpression;
-}
-
-declare class BabelNodeExportNamedDeclaration extends BabelNode {
- type: "ExportNamedDeclaration";
- declaration?: BabelNodeDeclaration;
- specifiers: Array;
- source?: BabelNodeStringLiteral;
-}
-
-declare class BabelNodeExportSpecifier extends BabelNode {
- type: "ExportSpecifier";
- local: BabelNodeIdentifier;
- exported: BabelNodeIdentifier;
-}
-
-declare class BabelNodeForOfStatement extends BabelNode {
- type: "ForOfStatement";
- left: BabelNodeVariableDeclaration | BabelNodeLVal;
- right: BabelNodeExpression;
- body: BabelNodeStatement;
-}
-
-declare class BabelNodeImportDeclaration extends BabelNode {
- type: "ImportDeclaration";
- specifiers: Array;
- source: BabelNodeStringLiteral;
-}
-
-declare class BabelNodeImportDefaultSpecifier extends BabelNode {
- type: "ImportDefaultSpecifier";
- local: BabelNodeIdentifier;
-}
-
-declare class BabelNodeImportNamespaceSpecifier extends BabelNode {
- type: "ImportNamespaceSpecifier";
- local: BabelNodeIdentifier;
-}
-
-declare class BabelNodeImportSpecifier extends BabelNode {
- type: "ImportSpecifier";
- local: BabelNodeIdentifier;
- imported: BabelNodeIdentifier;
- importKind?: null | "type" | "typeof";
-}
-
-declare class BabelNodeMetaProperty extends BabelNode {
- type: "MetaProperty";
- meta: BabelNodeIdentifier;
- property: BabelNodeIdentifier;
-}
-
-declare class BabelNodeClassMethod extends BabelNode {
- type: "ClassMethod";
- kind?: "get" | "set" | "method" | "constructor";
- key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression;
- params: Array;
- body: BabelNodeBlockStatement;
- computed?: boolean;
- abstract?: boolean;
- access?: "public" | "private" | "protected";
- accessibility?: "public" | "private" | "protected";
- async?: boolean;
- decorators?: Array;
- generator?: boolean;
- optional?: boolean;
- returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
-}
-
-declare class BabelNodeObjectPattern extends BabelNode {
- type: "ObjectPattern";
- properties: Array;
- decorators?: Array;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
-}
-
-declare class BabelNodeSpreadElement extends BabelNode {
- type: "SpreadElement";
- argument: BabelNodeExpression;
-}
-
-declare class BabelNodeSuper extends BabelNode {
- type: "Super";
-}
-
-declare class BabelNodeTaggedTemplateExpression extends BabelNode {
- type: "TaggedTemplateExpression";
- tag: BabelNodeExpression;
- quasi: BabelNodeTemplateLiteral;
-}
-
-declare class BabelNodeTemplateElement extends BabelNode {
- type: "TemplateElement";
- value: any;
- tail?: boolean;
-}
-
-declare class BabelNodeTemplateLiteral extends BabelNode {
- type: "TemplateLiteral";
- quasis: Array;
- expressions: Array;
-}
-
-declare class BabelNodeYieldExpression extends BabelNode {
- type: "YieldExpression";
- argument?: BabelNodeExpression;
- delegate?: boolean;
-}
-
-declare class BabelNodeAnyTypeAnnotation extends BabelNode {
- type: "AnyTypeAnnotation";
-}
-
-declare class BabelNodeArrayTypeAnnotation extends BabelNode {
- type: "ArrayTypeAnnotation";
- elementType: BabelNodeFlowType;
-}
-
-declare class BabelNodeBooleanTypeAnnotation extends BabelNode {
- type: "BooleanTypeAnnotation";
-}
-
-declare class BabelNodeBooleanLiteralTypeAnnotation extends BabelNode {
- type: "BooleanLiteralTypeAnnotation";
- value: boolean;
-}
-
-declare class BabelNodeNullLiteralTypeAnnotation extends BabelNode {
- type: "NullLiteralTypeAnnotation";
-}
-
-declare class BabelNodeClassImplements extends BabelNode {
- type: "ClassImplements";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterInstantiation;
-}
-
-declare class BabelNodeDeclareClass extends BabelNode {
- type: "DeclareClass";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterInstantiation;
- body: BabelNodeObjectTypeAnnotation;
- mixins?: Array;
-}
-
-declare class BabelNodeDeclareFunction extends BabelNode {
- type: "DeclareFunction";
- id: BabelNodeIdentifier;
- predicate?: BabelNodeDeclaredPredicate;
-}
-
-declare class BabelNodeDeclareInterface extends BabelNode {
- type: "DeclareInterface";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- body: BabelNodeObjectTypeAnnotation;
- mixins?: Array;
-}
-
-declare class BabelNodeDeclareModule extends BabelNode {
- type: "DeclareModule";
- id: BabelNodeIdentifier | BabelNodeStringLiteral;
- body: BabelNodeBlockStatement;
- kind?: "CommonJS" | "ES";
-}
-
-declare class BabelNodeDeclareModuleExports extends BabelNode {
- type: "DeclareModuleExports";
- typeAnnotation: BabelNodeTypeAnnotation;
-}
-
-declare class BabelNodeDeclareTypeAlias extends BabelNode {
- type: "DeclareTypeAlias";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- right: BabelNodeFlowType;
-}
-
-declare class BabelNodeDeclareOpaqueType extends BabelNode {
- type: "DeclareOpaqueType";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- supertype?: BabelNodeFlowType;
-}
-
-declare class BabelNodeDeclareVariable extends BabelNode {
- type: "DeclareVariable";
- id: BabelNodeIdentifier;
-}
-
-declare class BabelNodeDeclareExportDeclaration extends BabelNode {
- type: "DeclareExportDeclaration";
- declaration?: BabelNodeFlow;
- specifiers?: Array;
- source?: BabelNodeStringLiteral;
-}
-
-declare class BabelNodeDeclareExportAllDeclaration extends BabelNode {
- type: "DeclareExportAllDeclaration";
- source: BabelNodeStringLiteral;
- exportKind?: ["type","value"];
-}
-
-declare class BabelNodeDeclaredPredicate extends BabelNode {
- type: "DeclaredPredicate";
- value: BabelNodeFlow;
-}
-
-declare class BabelNodeExistsTypeAnnotation extends BabelNode {
- type: "ExistsTypeAnnotation";
-}
-
-declare class BabelNodeFunctionTypeAnnotation extends BabelNode {
- type: "FunctionTypeAnnotation";
- typeParameters?: BabelNodeTypeParameterDeclaration;
- params: Array;
- rest?: BabelNodeFunctionTypeParam;
- returnType: BabelNodeFlowType;
-}
-
-declare class BabelNodeFunctionTypeParam extends BabelNode {
- type: "FunctionTypeParam";
- name?: BabelNodeIdentifier;
- typeAnnotation: BabelNodeFlowType;
- optional?: boolean;
-}
-
-declare class BabelNodeGenericTypeAnnotation extends BabelNode {
- type: "GenericTypeAnnotation";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterInstantiation;
-}
-
-declare class BabelNodeInferredPredicate extends BabelNode {
- type: "InferredPredicate";
-}
-
-declare class BabelNodeInterfaceExtends extends BabelNode {
- type: "InterfaceExtends";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterInstantiation;
-}
-
-declare class BabelNodeInterfaceDeclaration extends BabelNode {
- type: "InterfaceDeclaration";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- body: BabelNodeObjectTypeAnnotation;
- mixins?: Array;
-}
-
-declare class BabelNodeInterfaceTypeAnnotation extends BabelNode {
- type: "InterfaceTypeAnnotation";
- body: BabelNodeObjectTypeAnnotation;
-}
-
-declare class BabelNodeIntersectionTypeAnnotation extends BabelNode {
- type: "IntersectionTypeAnnotation";
- types: Array;
-}
-
-declare class BabelNodeMixedTypeAnnotation extends BabelNode {
- type: "MixedTypeAnnotation";
-}
-
-declare class BabelNodeEmptyTypeAnnotation extends BabelNode {
- type: "EmptyTypeAnnotation";
-}
-
-declare class BabelNodeNullableTypeAnnotation extends BabelNode {
- type: "NullableTypeAnnotation";
- typeAnnotation: BabelNodeFlowType;
-}
-
-declare class BabelNodeNumberLiteralTypeAnnotation extends BabelNode {
- type: "NumberLiteralTypeAnnotation";
- value: number;
-}
-
-declare class BabelNodeNumberTypeAnnotation extends BabelNode {
- type: "NumberTypeAnnotation";
-}
-
-declare class BabelNodeObjectTypeAnnotation extends BabelNode {
- type: "ObjectTypeAnnotation";
- properties: Array;
- indexers?: Array;
- callProperties?: Array;
- internalSlots?: Array;
- exact?: boolean;
-}
-
-declare class BabelNodeObjectTypeInternalSlot extends BabelNode {
- type: "ObjectTypeInternalSlot";
- id: BabelNodeIdentifier;
- value: BabelNodeFlowType;
- optional: boolean;
- method: boolean;
-}
-
-declare class BabelNodeObjectTypeCallProperty extends BabelNode {
- type: "ObjectTypeCallProperty";
- value: BabelNodeFlowType;
-}
-
-declare class BabelNodeObjectTypeIndexer extends BabelNode {
- type: "ObjectTypeIndexer";
- id?: BabelNodeIdentifier;
- key: BabelNodeFlowType;
- value: BabelNodeFlowType;
- variance?: BabelNodeVariance;
-}
-
-declare class BabelNodeObjectTypeProperty extends BabelNode {
- type: "ObjectTypeProperty";
- key: BabelNodeIdentifier | BabelNodeStringLiteral;
- value: BabelNodeFlowType;
- variance?: BabelNodeVariance;
- kind?: "init" | "get" | "set";
- optional?: boolean;
- proto?: boolean;
-}
-
-declare class BabelNodeObjectTypeSpreadProperty extends BabelNode {
- type: "ObjectTypeSpreadProperty";
- argument: BabelNodeFlowType;
-}
-
-declare class BabelNodeOpaqueType extends BabelNode {
- type: "OpaqueType";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- supertype?: BabelNodeFlowType;
- impltype: BabelNodeFlowType;
-}
-
-declare class BabelNodeQualifiedTypeIdentifier extends BabelNode {
- type: "QualifiedTypeIdentifier";
- id: BabelNodeIdentifier;
- qualification: BabelNodeIdentifier | BabelNodeQualifiedTypeIdentifier;
-}
-
-declare class BabelNodeStringLiteralTypeAnnotation extends BabelNode {
- type: "StringLiteralTypeAnnotation";
- value: string;
-}
-
-declare class BabelNodeStringTypeAnnotation extends BabelNode {
- type: "StringTypeAnnotation";
-}
-
-declare class BabelNodeThisTypeAnnotation extends BabelNode {
- type: "ThisTypeAnnotation";
-}
-
-declare class BabelNodeTupleTypeAnnotation extends BabelNode {
- type: "TupleTypeAnnotation";
- types: Array;
-}
-
-declare class BabelNodeTypeofTypeAnnotation extends BabelNode {
- type: "TypeofTypeAnnotation";
- argument: BabelNodeFlowType;
-}
-
-declare class BabelNodeTypeAlias extends BabelNode {
- type: "TypeAlias";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTypeParameterDeclaration;
- right: BabelNodeFlowType;
-}
-
-declare class BabelNodeTypeAnnotation extends BabelNode {
- type: "TypeAnnotation";
- typeAnnotation: BabelNodeFlowType;
-}
-
-declare class BabelNodeTypeCastExpression extends BabelNode {
- type: "TypeCastExpression";
- expression: BabelNodeExpression;
- typeAnnotation: BabelNodeTypeAnnotation;
-}
-
-declare class BabelNodeTypeParameter extends BabelNode {
- type: "TypeParameter";
- bound?: BabelNodeTypeAnnotation;
- variance?: BabelNodeVariance;
- name?: string;
-}
-
-declare class BabelNodeTypeParameterDeclaration extends BabelNode {
- type: "TypeParameterDeclaration";
- params: Array;
-}
-
-declare class BabelNodeTypeParameterInstantiation extends BabelNode {
- type: "TypeParameterInstantiation";
- params: Array;
-}
-
-declare class BabelNodeUnionTypeAnnotation extends BabelNode {
- type: "UnionTypeAnnotation";
- types: Array;
-}
-
-declare class BabelNodeVariance extends BabelNode {
- type: "Variance";
- kind: "minus" | "plus";
-}
-
-declare class BabelNodeVoidTypeAnnotation extends BabelNode {
- type: "VoidTypeAnnotation";
-}
-
-declare class BabelNodeJSXAttribute extends BabelNode {
- type: "JSXAttribute";
- name: BabelNodeJSXIdentifier | BabelNodeJSXNamespacedName;
- value?: BabelNodeJSXElement | BabelNodeJSXFragment | BabelNodeStringLiteral | BabelNodeJSXExpressionContainer;
-}
-
-declare class BabelNodeJSXClosingElement extends BabelNode {
- type: "JSXClosingElement";
- name: BabelNodeJSXIdentifier | BabelNodeJSXMemberExpression;
-}
-
-declare class BabelNodeJSXElement extends BabelNode {
- type: "JSXElement";
- openingElement: BabelNodeJSXOpeningElement;
- closingElement?: BabelNodeJSXClosingElement;
- children: Array;
- selfClosing: any;
-}
-
-declare class BabelNodeJSXEmptyExpression extends BabelNode {
- type: "JSXEmptyExpression";
-}
-
-declare class BabelNodeJSXExpressionContainer extends BabelNode {
- type: "JSXExpressionContainer";
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeJSXSpreadChild extends BabelNode {
- type: "JSXSpreadChild";
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeJSXIdentifier extends BabelNode {
- type: "JSXIdentifier";
- name: string;
-}
-
-declare class BabelNodeJSXMemberExpression extends BabelNode {
- type: "JSXMemberExpression";
- object: BabelNodeJSXMemberExpression | BabelNodeJSXIdentifier;
- property: BabelNodeJSXIdentifier;
-}
-
-declare class BabelNodeJSXNamespacedName extends BabelNode {
- type: "JSXNamespacedName";
- namespace: BabelNodeJSXIdentifier;
- name: BabelNodeJSXIdentifier;
-}
-
-declare class BabelNodeJSXOpeningElement extends BabelNode {
- type: "JSXOpeningElement";
- name: BabelNodeJSXIdentifier | BabelNodeJSXMemberExpression;
- attributes: Array;
- selfClosing?: boolean;
-}
-
-declare class BabelNodeJSXSpreadAttribute extends BabelNode {
- type: "JSXSpreadAttribute";
- argument: BabelNodeExpression;
-}
-
-declare class BabelNodeJSXText extends BabelNode {
- type: "JSXText";
- value: string;
-}
-
-declare class BabelNodeJSXFragment extends BabelNode {
- type: "JSXFragment";
- openingFragment: BabelNodeJSXOpeningFragment;
- closingFragment: BabelNodeJSXClosingFragment;
- children: Array;
-}
-
-declare class BabelNodeJSXOpeningFragment extends BabelNode {
- type: "JSXOpeningFragment";
-}
-
-declare class BabelNodeJSXClosingFragment extends BabelNode {
- type: "JSXClosingFragment";
-}
-
-declare class BabelNodeNoop extends BabelNode {
- type: "Noop";
-}
-
-declare class BabelNodeParenthesizedExpression extends BabelNode {
- type: "ParenthesizedExpression";
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeAwaitExpression extends BabelNode {
- type: "AwaitExpression";
- argument: BabelNodeExpression;
-}
-
-declare class BabelNodeBindExpression extends BabelNode {
- type: "BindExpression";
- object: any;
- callee: any;
-}
-
-declare class BabelNodeClassProperty extends BabelNode {
- type: "ClassProperty";
- key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression;
- value?: BabelNodeExpression;
- typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
- decorators?: Array;
- computed?: boolean;
- abstract?: boolean;
- accessibility?: "public" | "private" | "protected";
- definite?: boolean;
- optional?: boolean;
- readonly?: boolean;
-}
-
-declare class BabelNodeOptionalMemberExpression extends BabelNode {
- type: "OptionalMemberExpression";
- object: BabelNodeExpression;
- property: any;
- computed?: boolean;
- optional: boolean;
-}
-
-declare class BabelNodeOptionalCallExpression extends BabelNode {
- type: "OptionalCallExpression";
- callee: BabelNodeExpression;
- arguments: Array;
- optional: boolean;
- typeArguments?: BabelNodeTypeParameterInstantiation;
- typeParameters?: BabelNodeTSTypeParameterInstantiation;
-}
-
-declare class BabelNodeClassPrivateProperty extends BabelNode {
- type: "ClassPrivateProperty";
- key: BabelNodePrivateName;
- value?: BabelNodeExpression;
-}
-
-declare class BabelNodeImport extends BabelNode {
- type: "Import";
-}
-
-declare class BabelNodeDecorator extends BabelNode {
- type: "Decorator";
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeDoExpression extends BabelNode {
- type: "DoExpression";
- body: BabelNodeBlockStatement;
-}
-
-declare class BabelNodeExportDefaultSpecifier extends BabelNode {
- type: "ExportDefaultSpecifier";
- exported: BabelNodeIdentifier;
-}
-
-declare class BabelNodeExportNamespaceSpecifier extends BabelNode {
- type: "ExportNamespaceSpecifier";
- exported: BabelNodeIdentifier;
-}
-
-declare class BabelNodePrivateName extends BabelNode {
- type: "PrivateName";
- id: BabelNodeIdentifier;
-}
-
-declare class BabelNodeBigIntLiteral extends BabelNode {
- type: "BigIntLiteral";
- value: string;
-}
-
-declare class BabelNodeTSParameterProperty extends BabelNode {
- type: "TSParameterProperty";
- parameter: BabelNodeIdentifier | BabelNodeAssignmentPattern;
- accessibility?: "public" | "private" | "protected";
- readonly?: boolean;
-}
-
-declare class BabelNodeTSDeclareFunction extends BabelNode {
- type: "TSDeclareFunction";
- id?: BabelNodeIdentifier;
- typeParameters?: BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
- params: Array;
- returnType?: BabelNodeTSTypeAnnotation | BabelNodeNoop;
- async?: boolean;
- declare?: boolean;
- generator?: boolean;
-}
-
-declare class BabelNodeTSDeclareMethod extends BabelNode {
- type: "TSDeclareMethod";
- decorators?: Array;
- key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression;
- typeParameters?: BabelNodeTSTypeParameterDeclaration | BabelNodeNoop;
- params: Array;
- returnType?: BabelNodeTSTypeAnnotation | BabelNodeNoop;
- abstract?: boolean;
- access?: "public" | "private" | "protected";
- accessibility?: "public" | "private" | "protected";
- async?: boolean;
- computed?: boolean;
- generator?: boolean;
- kind?: "get" | "set" | "method" | "constructor";
- optional?: boolean;
-}
-
-declare class BabelNodeTSQualifiedName extends BabelNode {
- type: "TSQualifiedName";
- left: BabelNodeTSEntityName;
- right: BabelNodeIdentifier;
-}
-
-declare class BabelNodeTSCallSignatureDeclaration extends BabelNode {
- type: "TSCallSignatureDeclaration";
- typeParameters?: BabelNodeTSTypeParameterDeclaration;
- parameters?: Array;
- typeAnnotation?: BabelNodeTSTypeAnnotation;
-}
-
-declare class BabelNodeTSConstructSignatureDeclaration extends BabelNode {
- type: "TSConstructSignatureDeclaration";
- typeParameters?: BabelNodeTSTypeParameterDeclaration;
- parameters?: Array;
- typeAnnotation?: BabelNodeTSTypeAnnotation;
-}
-
-declare class BabelNodeTSPropertySignature extends BabelNode {
- type: "TSPropertySignature";
- key: BabelNodeExpression;
- typeAnnotation?: BabelNodeTSTypeAnnotation;
- initializer?: BabelNodeExpression;
- computed?: boolean;
- optional?: boolean;
- readonly?: boolean;
-}
-
-declare class BabelNodeTSMethodSignature extends BabelNode {
- type: "TSMethodSignature";
- key: BabelNodeExpression;
- typeParameters?: BabelNodeTSTypeParameterDeclaration;
- parameters?: Array;
- typeAnnotation?: BabelNodeTSTypeAnnotation;
- computed?: boolean;
- optional?: boolean;
-}
-
-declare class BabelNodeTSIndexSignature extends BabelNode {
- type: "TSIndexSignature";
- parameters: Array;
- typeAnnotation?: BabelNodeTSTypeAnnotation;
- readonly?: boolean;
-}
-
-declare class BabelNodeTSAnyKeyword extends BabelNode {
- type: "TSAnyKeyword";
-}
-
-declare class BabelNodeTSNumberKeyword extends BabelNode {
- type: "TSNumberKeyword";
-}
-
-declare class BabelNodeTSObjectKeyword extends BabelNode {
- type: "TSObjectKeyword";
-}
-
-declare class BabelNodeTSBooleanKeyword extends BabelNode {
- type: "TSBooleanKeyword";
-}
-
-declare class BabelNodeTSStringKeyword extends BabelNode {
- type: "TSStringKeyword";
-}
-
-declare class BabelNodeTSSymbolKeyword extends BabelNode {
- type: "TSSymbolKeyword";
-}
-
-declare class BabelNodeTSVoidKeyword extends BabelNode {
- type: "TSVoidKeyword";
-}
-
-declare class BabelNodeTSUndefinedKeyword extends BabelNode {
- type: "TSUndefinedKeyword";
-}
-
-declare class BabelNodeTSNullKeyword extends BabelNode {
- type: "TSNullKeyword";
-}
-
-declare class BabelNodeTSNeverKeyword extends BabelNode {
- type: "TSNeverKeyword";
-}
-
-declare class BabelNodeTSThisType extends BabelNode {
- type: "TSThisType";
-}
-
-declare class BabelNodeTSFunctionType extends BabelNode {
- type: "TSFunctionType";
- typeParameters?: BabelNodeTSTypeParameterDeclaration;
- typeAnnotation?: BabelNodeTSTypeAnnotation;
- parameters?: Array;
-}
-
-declare class BabelNodeTSConstructorType extends BabelNode {
- type: "TSConstructorType";
- typeParameters?: BabelNodeTSTypeParameterDeclaration;
- typeAnnotation?: BabelNodeTSTypeAnnotation;
- parameters?: Array;
-}
-
-declare class BabelNodeTSTypeReference extends BabelNode {
- type: "TSTypeReference";
- typeName: BabelNodeTSEntityName;
- typeParameters?: BabelNodeTSTypeParameterInstantiation;
-}
-
-declare class BabelNodeTSTypePredicate extends BabelNode {
- type: "TSTypePredicate";
- parameterName: BabelNodeIdentifier | BabelNodeTSThisType;
- typeAnnotation: BabelNodeTSTypeAnnotation;
-}
-
-declare class BabelNodeTSTypeQuery extends BabelNode {
- type: "TSTypeQuery";
- exprName: BabelNodeTSEntityName;
-}
-
-declare class BabelNodeTSTypeLiteral extends BabelNode {
- type: "TSTypeLiteral";
- members: Array;
-}
-
-declare class BabelNodeTSArrayType extends BabelNode {
- type: "TSArrayType";
- elementType: BabelNodeTSType;
-}
-
-declare class BabelNodeTSTupleType extends BabelNode {
- type: "TSTupleType";
- elementTypes: Array;
-}
-
-declare class BabelNodeTSUnionType extends BabelNode {
- type: "TSUnionType";
- types: Array;
-}
-
-declare class BabelNodeTSIntersectionType extends BabelNode {
- type: "TSIntersectionType";
- types: Array;
-}
-
-declare class BabelNodeTSConditionalType extends BabelNode {
- type: "TSConditionalType";
- checkType: BabelNodeTSType;
- extendsType: BabelNodeTSType;
- trueType: BabelNodeTSType;
- falseType: BabelNodeTSType;
-}
-
-declare class BabelNodeTSInferType extends BabelNode {
- type: "TSInferType";
- typeParameter: BabelNodeTSTypeParameter;
-}
-
-declare class BabelNodeTSParenthesizedType extends BabelNode {
- type: "TSParenthesizedType";
- typeAnnotation: BabelNodeTSType;
-}
-
-declare class BabelNodeTSTypeOperator extends BabelNode {
- type: "TSTypeOperator";
- typeAnnotation: BabelNodeTSType;
- operator?: string;
-}
-
-declare class BabelNodeTSIndexedAccessType extends BabelNode {
- type: "TSIndexedAccessType";
- objectType: BabelNodeTSType;
- indexType: BabelNodeTSType;
-}
-
-declare class BabelNodeTSMappedType extends BabelNode {
- type: "TSMappedType";
- typeParameter: BabelNodeTSTypeParameter;
- typeAnnotation?: BabelNodeTSType;
- optional?: boolean;
- readonly?: boolean;
-}
-
-declare class BabelNodeTSLiteralType extends BabelNode {
- type: "TSLiteralType";
- literal: BabelNodeNumericLiteral | BabelNodeStringLiteral | BabelNodeBooleanLiteral;
-}
-
-declare class BabelNodeTSExpressionWithTypeArguments extends BabelNode {
- type: "TSExpressionWithTypeArguments";
- expression: BabelNodeTSEntityName;
- typeParameters?: BabelNodeTSTypeParameterInstantiation;
-}
-
-declare class BabelNodeTSInterfaceDeclaration extends BabelNode {
- type: "TSInterfaceDeclaration";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTSTypeParameterDeclaration;
- body: BabelNodeTSInterfaceBody;
- declare?: boolean;
-}
-
-declare class BabelNodeTSInterfaceBody extends BabelNode {
- type: "TSInterfaceBody";
- body: Array;
-}
-
-declare class BabelNodeTSTypeAliasDeclaration extends BabelNode {
- type: "TSTypeAliasDeclaration";
- id: BabelNodeIdentifier;
- typeParameters?: BabelNodeTSTypeParameterDeclaration;
- typeAnnotation: BabelNodeTSType;
- declare?: boolean;
-}
-
-declare class BabelNodeTSAsExpression extends BabelNode {
- type: "TSAsExpression";
- expression: BabelNodeExpression;
- typeAnnotation: BabelNodeTSType;
-}
-
-declare class BabelNodeTSTypeAssertion extends BabelNode {
- type: "TSTypeAssertion";
- typeAnnotation: BabelNodeTSType;
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeTSEnumDeclaration extends BabelNode {
- type: "TSEnumDeclaration";
- id: BabelNodeIdentifier;
- members: Array;
- declare?: boolean;
- initializer?: BabelNodeExpression;
-}
-
-declare class BabelNodeTSEnumMember extends BabelNode {
- type: "TSEnumMember";
- id: BabelNodeIdentifier | BabelNodeStringLiteral;
- initializer?: BabelNodeExpression;
-}
-
-declare class BabelNodeTSModuleDeclaration extends BabelNode {
- type: "TSModuleDeclaration";
- id: BabelNodeIdentifier | BabelNodeStringLiteral;
- body: BabelNodeTSModuleBlock | BabelNodeTSModuleDeclaration;
- declare?: boolean;
- global?: boolean;
-}
-
-declare class BabelNodeTSModuleBlock extends BabelNode {
- type: "TSModuleBlock";
- body: Array;
-}
-
-declare class BabelNodeTSImportEqualsDeclaration extends BabelNode {
- type: "TSImportEqualsDeclaration";
- id: BabelNodeIdentifier;
- moduleReference: BabelNodeTSEntityName | BabelNodeTSExternalModuleReference;
- isExport?: boolean;
-}
-
-declare class BabelNodeTSExternalModuleReference extends BabelNode {
- type: "TSExternalModuleReference";
- expression: BabelNodeStringLiteral;
-}
-
-declare class BabelNodeTSNonNullExpression extends BabelNode {
- type: "TSNonNullExpression";
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeTSExportAssignment extends BabelNode {
- type: "TSExportAssignment";
- expression: BabelNodeExpression;
-}
-
-declare class BabelNodeTSNamespaceExportDeclaration extends BabelNode {
- type: "TSNamespaceExportDeclaration";
- id: BabelNodeIdentifier;
-}
-
-declare class BabelNodeTSTypeAnnotation extends BabelNode {
- type: "TSTypeAnnotation";
- typeAnnotation: BabelNodeTSType;
-}
-
-declare class BabelNodeTSTypeParameterInstantiation extends BabelNode {
- type: "TSTypeParameterInstantiation";
- params: Array;
-}
-
-declare class BabelNodeTSTypeParameterDeclaration extends BabelNode {
- type: "TSTypeParameterDeclaration";
- params: Array;
-}
-
-declare class BabelNodeTSTypeParameter extends BabelNode {
- type: "TSTypeParameter";
- constraint?: BabelNodeTSType;
- name?: string;
-}
-
-type BabelNodeExpression = BabelNodeArrayExpression | BabelNodeAssignmentExpression | BabelNodeBinaryExpression | BabelNodeCallExpression | BabelNodeConditionalExpression | BabelNodeFunctionExpression | BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeNullLiteral | BabelNodeBooleanLiteral | BabelNodeRegExpLiteral | BabelNodeLogicalExpression | BabelNodeMemberExpression | BabelNodeNewExpression | BabelNodeObjectExpression | BabelNodeSequenceExpression | BabelNodeThisExpression | BabelNodeUnaryExpression | BabelNodeUpdateExpression | BabelNodeArrowFunctionExpression | BabelNodeClassExpression | BabelNodeMetaProperty | BabelNodeSuper | BabelNodeTaggedTemplateExpression | BabelNodeTemplateLiteral | BabelNodeYieldExpression | BabelNodeTypeCastExpression | BabelNodeJSXElement | BabelNodeJSXFragment | BabelNodeParenthesizedExpression | BabelNodeAwaitExpression | BabelNodeBindExpression | BabelNodeOptionalMemberExpression | BabelNodeOptionalCallExpression | BabelNodeImport | BabelNodeDoExpression | BabelNodeBigIntLiteral | BabelNodeTSAsExpression | BabelNodeTSTypeAssertion | BabelNodeTSNonNullExpression;
-type BabelNodeBinary = BabelNodeBinaryExpression | BabelNodeLogicalExpression;
-type BabelNodeScopable = BabelNodeBlockStatement | BabelNodeCatchClause | BabelNodeDoWhileStatement | BabelNodeForInStatement | BabelNodeForStatement | BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeProgram | BabelNodeObjectMethod | BabelNodeSwitchStatement | BabelNodeWhileStatement | BabelNodeArrowFunctionExpression | BabelNodeClassDeclaration | BabelNodeClassExpression | BabelNodeForOfStatement | BabelNodeClassMethod;
-type BabelNodeBlockParent = BabelNodeBlockStatement | BabelNodeCatchClause | BabelNodeDoWhileStatement | BabelNodeForInStatement | BabelNodeForStatement | BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeProgram | BabelNodeObjectMethod | BabelNodeSwitchStatement | BabelNodeWhileStatement | BabelNodeArrowFunctionExpression | BabelNodeForOfStatement | BabelNodeClassMethod;
-type BabelNodeBlock = BabelNodeBlockStatement | BabelNodeProgram;
-type BabelNodeStatement = BabelNodeBlockStatement | BabelNodeBreakStatement | BabelNodeContinueStatement | BabelNodeDebuggerStatement | BabelNodeDoWhileStatement | BabelNodeEmptyStatement | BabelNodeExpressionStatement | BabelNodeForInStatement | BabelNodeForStatement | BabelNodeFunctionDeclaration | BabelNodeIfStatement | BabelNodeLabeledStatement | BabelNodeReturnStatement | BabelNodeSwitchStatement | BabelNodeThrowStatement | BabelNodeTryStatement | BabelNodeVariableDeclaration | BabelNodeWhileStatement | BabelNodeWithStatement | BabelNodeClassDeclaration | BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeForOfStatement | BabelNodeImportDeclaration | BabelNodeDeclareClass | BabelNodeDeclareFunction | BabelNodeDeclareInterface | BabelNodeDeclareModule | BabelNodeDeclareModuleExports | BabelNodeDeclareTypeAlias | BabelNodeDeclareOpaqueType | BabelNodeDeclareVariable | BabelNodeDeclareExportDeclaration | BabelNodeDeclareExportAllDeclaration | BabelNodeInterfaceDeclaration | BabelNodeOpaqueType | BabelNodeTypeAlias | BabelNodeTSDeclareFunction | BabelNodeTSInterfaceDeclaration | BabelNodeTSTypeAliasDeclaration | BabelNodeTSEnumDeclaration | BabelNodeTSModuleDeclaration | BabelNodeTSImportEqualsDeclaration | BabelNodeTSExportAssignment | BabelNodeTSNamespaceExportDeclaration;
-type BabelNodeTerminatorless = BabelNodeBreakStatement | BabelNodeContinueStatement | BabelNodeReturnStatement | BabelNodeThrowStatement | BabelNodeYieldExpression | BabelNodeAwaitExpression;
-type BabelNodeCompletionStatement = BabelNodeBreakStatement | BabelNodeContinueStatement | BabelNodeReturnStatement | BabelNodeThrowStatement;
-type BabelNodeConditional = BabelNodeConditionalExpression | BabelNodeIfStatement;
-type BabelNodeLoop = BabelNodeDoWhileStatement | BabelNodeForInStatement | BabelNodeForStatement | BabelNodeWhileStatement | BabelNodeForOfStatement;
-type BabelNodeWhile = BabelNodeDoWhileStatement | BabelNodeWhileStatement;
-type BabelNodeExpressionWrapper = BabelNodeExpressionStatement | BabelNodeTypeCastExpression | BabelNodeParenthesizedExpression;
-type BabelNodeFor = BabelNodeForInStatement | BabelNodeForStatement | BabelNodeForOfStatement;
-type BabelNodeForXStatement = BabelNodeForInStatement | BabelNodeForOfStatement;
-type BabelNodeFunction = BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeObjectMethod | BabelNodeArrowFunctionExpression | BabelNodeClassMethod;
-type BabelNodeFunctionParent = BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeObjectMethod | BabelNodeArrowFunctionExpression | BabelNodeClassMethod;
-type BabelNodePureish = BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeNullLiteral | BabelNodeBooleanLiteral | BabelNodeArrowFunctionExpression | BabelNodeClassDeclaration | BabelNodeClassExpression | BabelNodeBigIntLiteral;
-type BabelNodeDeclaration = BabelNodeFunctionDeclaration | BabelNodeVariableDeclaration | BabelNodeClassDeclaration | BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeImportDeclaration | BabelNodeDeclareClass | BabelNodeDeclareFunction | BabelNodeDeclareInterface | BabelNodeDeclareModule | BabelNodeDeclareModuleExports | BabelNodeDeclareTypeAlias | BabelNodeDeclareOpaqueType | BabelNodeDeclareVariable | BabelNodeDeclareExportDeclaration | BabelNodeDeclareExportAllDeclaration | BabelNodeInterfaceDeclaration | BabelNodeOpaqueType | BabelNodeTypeAlias | BabelNodeTSDeclareFunction | BabelNodeTSInterfaceDeclaration | BabelNodeTSTypeAliasDeclaration | BabelNodeTSEnumDeclaration | BabelNodeTSModuleDeclaration;
-type BabelNodePatternLike = BabelNodeIdentifier | BabelNodeRestElement | BabelNodeAssignmentPattern | BabelNodeArrayPattern | BabelNodeObjectPattern;
-type BabelNodeLVal = BabelNodeIdentifier | BabelNodeMemberExpression | BabelNodeRestElement | BabelNodeAssignmentPattern | BabelNodeArrayPattern | BabelNodeObjectPattern | BabelNodeTSParameterProperty;
-type BabelNodeTSEntityName = BabelNodeIdentifier | BabelNodeTSQualifiedName;
-type BabelNodeLiteral = BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeNullLiteral | BabelNodeBooleanLiteral | BabelNodeRegExpLiteral | BabelNodeTemplateLiteral | BabelNodeBigIntLiteral;
-type BabelNodeImmutable = BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeNullLiteral | BabelNodeBooleanLiteral | BabelNodeJSXAttribute | BabelNodeJSXClosingElement | BabelNodeJSXElement | BabelNodeJSXExpressionContainer | BabelNodeJSXSpreadChild | BabelNodeJSXOpeningElement | BabelNodeJSXText | BabelNodeJSXFragment | BabelNodeJSXOpeningFragment | BabelNodeJSXClosingFragment | BabelNodeBigIntLiteral;
-type BabelNodeUserWhitespacable = BabelNodeObjectMethod | BabelNodeObjectProperty | BabelNodeObjectTypeInternalSlot | BabelNodeObjectTypeCallProperty | BabelNodeObjectTypeIndexer | BabelNodeObjectTypeProperty | BabelNodeObjectTypeSpreadProperty;
-type BabelNodeMethod = BabelNodeObjectMethod | BabelNodeClassMethod;
-type BabelNodeObjectMember = BabelNodeObjectMethod | BabelNodeObjectProperty;
-type BabelNodeProperty = BabelNodeObjectProperty | BabelNodeClassProperty | BabelNodeClassPrivateProperty;
-type BabelNodeUnaryLike = BabelNodeUnaryExpression | BabelNodeSpreadElement;
-type BabelNodePattern = BabelNodeAssignmentPattern | BabelNodeArrayPattern | BabelNodeObjectPattern;
-type BabelNodeClass = BabelNodeClassDeclaration | BabelNodeClassExpression;
-type BabelNodeModuleDeclaration = BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeImportDeclaration;
-type BabelNodeExportDeclaration = BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration;
-type BabelNodeModuleSpecifier = BabelNodeExportSpecifier | BabelNodeImportDefaultSpecifier | BabelNodeImportNamespaceSpecifier | BabelNodeImportSpecifier | BabelNodeExportDefaultSpecifier | BabelNodeExportNamespaceSpecifier;
-type BabelNodeFlow = BabelNodeAnyTypeAnnotation | BabelNodeArrayTypeAnnotation | BabelNodeBooleanTypeAnnotation | BabelNodeBooleanLiteralTypeAnnotation | BabelNodeNullLiteralTypeAnnotation | BabelNodeClassImplements | BabelNodeDeclareClass | BabelNodeDeclareFunction | BabelNodeDeclareInterface | BabelNodeDeclareModule | BabelNodeDeclareModuleExports | BabelNodeDeclareTypeAlias | BabelNodeDeclareOpaqueType | BabelNodeDeclareVariable | BabelNodeDeclareExportDeclaration | BabelNodeDeclareExportAllDeclaration | BabelNodeDeclaredPredicate | BabelNodeExistsTypeAnnotation | BabelNodeFunctionTypeAnnotation | BabelNodeFunctionTypeParam | BabelNodeGenericTypeAnnotation | BabelNodeInferredPredicate | BabelNodeInterfaceExtends | BabelNodeInterfaceDeclaration | BabelNodeInterfaceTypeAnnotation | BabelNodeIntersectionTypeAnnotation | BabelNodeMixedTypeAnnotation | BabelNodeEmptyTypeAnnotation | BabelNodeNullableTypeAnnotation | BabelNodeNumberLiteralTypeAnnotation | BabelNodeNumberTypeAnnotation | BabelNodeObjectTypeAnnotation | BabelNodeObjectTypeInternalSlot | BabelNodeObjectTypeCallProperty | BabelNodeObjectTypeIndexer | BabelNodeObjectTypeProperty | BabelNodeObjectTypeSpreadProperty | BabelNodeOpaqueType | BabelNodeQualifiedTypeIdentifier | BabelNodeStringLiteralTypeAnnotation | BabelNodeStringTypeAnnotation | BabelNodeThisTypeAnnotation | BabelNodeTupleTypeAnnotation | BabelNodeTypeofTypeAnnotation | BabelNodeTypeAlias | BabelNodeTypeAnnotation | BabelNodeTypeCastExpression | BabelNodeTypeParameter | BabelNodeTypeParameterDeclaration | BabelNodeTypeParameterInstantiation | BabelNodeUnionTypeAnnotation | BabelNodeVariance | BabelNodeVoidTypeAnnotation;
-type BabelNodeFlowType = BabelNodeAnyTypeAnnotation | BabelNodeArrayTypeAnnotation | BabelNodeBooleanTypeAnnotation | BabelNodeBooleanLiteralTypeAnnotation | BabelNodeNullLiteralTypeAnnotation | BabelNodeExistsTypeAnnotation | BabelNodeFunctionTypeAnnotation | BabelNodeGenericTypeAnnotation | BabelNodeInterfaceTypeAnnotation | BabelNodeIntersectionTypeAnnotation | BabelNodeMixedTypeAnnotation | BabelNodeEmptyTypeAnnotation | BabelNodeNullableTypeAnnotation | BabelNodeNumberLiteralTypeAnnotation | BabelNodeNumberTypeAnnotation | BabelNodeObjectTypeAnnotation | BabelNodeStringLiteralTypeAnnotation | BabelNodeStringTypeAnnotation | BabelNodeThisTypeAnnotation | BabelNodeTupleTypeAnnotation | BabelNodeTypeofTypeAnnotation | BabelNodeUnionTypeAnnotation | BabelNodeVoidTypeAnnotation;
-type BabelNodeFlowBaseAnnotation = BabelNodeAnyTypeAnnotation | BabelNodeBooleanTypeAnnotation | BabelNodeNullLiteralTypeAnnotation | BabelNodeMixedTypeAnnotation | BabelNodeEmptyTypeAnnotation | BabelNodeNumberTypeAnnotation | BabelNodeStringTypeAnnotation | BabelNodeThisTypeAnnotation | BabelNodeVoidTypeAnnotation;
-type BabelNodeFlowDeclaration = BabelNodeDeclareClass | BabelNodeDeclareFunction | BabelNodeDeclareInterface | BabelNodeDeclareModule | BabelNodeDeclareModuleExports | BabelNodeDeclareTypeAlias | BabelNodeDeclareOpaqueType | BabelNodeDeclareVariable | BabelNodeDeclareExportDeclaration | BabelNodeDeclareExportAllDeclaration | BabelNodeInterfaceDeclaration | BabelNodeOpaqueType | BabelNodeTypeAlias;
-type BabelNodeFlowPredicate = BabelNodeDeclaredPredicate | BabelNodeInferredPredicate;
-type BabelNodeJSX = BabelNodeJSXAttribute | BabelNodeJSXClosingElement | BabelNodeJSXElement | BabelNodeJSXEmptyExpression | BabelNodeJSXExpressionContainer | BabelNodeJSXSpreadChild | BabelNodeJSXIdentifier | BabelNodeJSXMemberExpression | BabelNodeJSXNamespacedName | BabelNodeJSXOpeningElement | BabelNodeJSXSpreadAttribute | BabelNodeJSXText | BabelNodeJSXFragment | BabelNodeJSXOpeningFragment | BabelNodeJSXClosingFragment;
-type BabelNodePrivate = BabelNodeClassPrivateProperty | BabelNodePrivateName;
-type BabelNodeTSTypeElement = BabelNodeTSCallSignatureDeclaration | BabelNodeTSConstructSignatureDeclaration | BabelNodeTSPropertySignature | BabelNodeTSMethodSignature | BabelNodeTSIndexSignature;
-type BabelNodeTSType = BabelNodeTSAnyKeyword | BabelNodeTSNumberKeyword | BabelNodeTSObjectKeyword | BabelNodeTSBooleanKeyword | BabelNodeTSStringKeyword | BabelNodeTSSymbolKeyword | BabelNodeTSVoidKeyword | BabelNodeTSUndefinedKeyword | BabelNodeTSNullKeyword | BabelNodeTSNeverKeyword | BabelNodeTSThisType | BabelNodeTSFunctionType | BabelNodeTSConstructorType | BabelNodeTSTypeReference | BabelNodeTSTypePredicate | BabelNodeTSTypeQuery | BabelNodeTSTypeLiteral | BabelNodeTSArrayType | BabelNodeTSTupleType | BabelNodeTSUnionType | BabelNodeTSIntersectionType | BabelNodeTSConditionalType | BabelNodeTSInferType | BabelNodeTSParenthesizedType | BabelNodeTSTypeOperator | BabelNodeTSIndexedAccessType | BabelNodeTSMappedType | BabelNodeTSLiteralType | BabelNodeTSExpressionWithTypeArguments;
-
-declare module "@babel/types" {
- declare function arrayExpression(elements?: Array): BabelNodeArrayExpression;
- declare function assignmentExpression(operator: string, left: BabelNodeLVal, right: BabelNodeExpression): BabelNodeAssignmentExpression;
- declare function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left: BabelNodeExpression, right: BabelNodeExpression): BabelNodeBinaryExpression;
- declare function interpreterDirective(value: string): BabelNodeInterpreterDirective;
- declare function directive(value: BabelNodeDirectiveLiteral): BabelNodeDirective;
- declare function directiveLiteral(value: string): BabelNodeDirectiveLiteral;
- declare function blockStatement(body: Array, directives?: Array): BabelNodeBlockStatement;
- declare function breakStatement(label?: BabelNodeIdentifier): BabelNodeBreakStatement;
- declare function callExpression(callee: BabelNodeExpression, _arguments: Array, optional?: true | false, typeArguments?: BabelNodeTypeParameterInstantiation, typeParameters?: BabelNodeTSTypeParameterInstantiation): BabelNodeCallExpression;
- declare function catchClause(param?: BabelNodeIdentifier, body: BabelNodeBlockStatement): BabelNodeCatchClause;
- declare function conditionalExpression(test: BabelNodeExpression, consequent: BabelNodeExpression, alternate: BabelNodeExpression): BabelNodeConditionalExpression;
- declare function continueStatement(label?: BabelNodeIdentifier): BabelNodeContinueStatement;
- declare function debuggerStatement(): BabelNodeDebuggerStatement;
- declare function doWhileStatement(test: BabelNodeExpression, body: BabelNodeStatement): BabelNodeDoWhileStatement;
- declare function emptyStatement(): BabelNodeEmptyStatement;
- declare function expressionStatement(expression: BabelNodeExpression): BabelNodeExpressionStatement;
- declare function file(program: BabelNodeProgram, comments: any, tokens: any): BabelNodeFile;
- declare function forInStatement(left: BabelNodeVariableDeclaration | BabelNodeLVal, right: BabelNodeExpression, body: BabelNodeStatement): BabelNodeForInStatement;
- declare function forStatement(init?: BabelNodeVariableDeclaration | BabelNodeExpression, test?: BabelNodeExpression, update?: BabelNodeExpression, body: BabelNodeStatement): BabelNodeForStatement;
- declare function functionDeclaration(id?: BabelNodeIdentifier, params: Array, body: BabelNodeBlockStatement, generator?: boolean, async?: boolean, declare?: boolean, returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop, typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop): BabelNodeFunctionDeclaration;
- declare function functionExpression(id?: BabelNodeIdentifier, params: Array, body: BabelNodeBlockStatement, generator?: boolean, async?: boolean, returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop, typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop): BabelNodeFunctionExpression;
- declare function identifier(name: string, decorators?: Array, optional?: boolean, typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop): BabelNodeIdentifier;
- declare function ifStatement(test: BabelNodeExpression, consequent: BabelNodeStatement, alternate?: BabelNodeStatement): BabelNodeIfStatement;
- declare function labeledStatement(label: BabelNodeIdentifier, body: BabelNodeStatement): BabelNodeLabeledStatement;
- declare function stringLiteral(value: string): BabelNodeStringLiteral;
- declare function numericLiteral(value: number): BabelNodeNumericLiteral;
- declare function nullLiteral(): BabelNodeNullLiteral;
- declare function booleanLiteral(value: boolean): BabelNodeBooleanLiteral;
- declare function regExpLiteral(pattern: string, flags?: string): BabelNodeRegExpLiteral;
- declare function logicalExpression(operator: "||" | "&&" | "??", left: BabelNodeExpression, right: BabelNodeExpression): BabelNodeLogicalExpression;
- declare function memberExpression(object: BabelNodeExpression, property: any, computed?: boolean, optional?: true | false): BabelNodeMemberExpression;
- declare function newExpression(callee: BabelNodeExpression, _arguments: Array, optional?: true | false, typeArguments?: BabelNodeTypeParameterInstantiation, typeParameters?: BabelNodeTSTypeParameterInstantiation): BabelNodeNewExpression;
- declare function program(body: Array