aboutsummaryrefslogtreecommitdiff
path: root/node_modules/acorn-dynamic-import
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/acorn-dynamic-import')
-rw-r--r--node_modules/acorn-dynamic-import/CHANGELOG.md24
-rwxr-xr-xnode_modules/acorn-dynamic-import/LICENSE21
-rwxr-xr-xnode_modules/acorn-dynamic-import/README.md51
-rw-r--r--node_modules/acorn-dynamic-import/lib/index.js17
-rw-r--r--node_modules/acorn-dynamic-import/lib/inject.js72
l---------node_modules/acorn-dynamic-import/node_modules/.bin/acorn1
-rw-r--r--node_modules/acorn-dynamic-import/package.json45
-rw-r--r--node_modules/acorn-dynamic-import/src/index.js4
-rw-r--r--node_modules/acorn-dynamic-import/src/inject.js52
9 files changed, 0 insertions, 287 deletions
diff --git a/node_modules/acorn-dynamic-import/CHANGELOG.md b/node_modules/acorn-dynamic-import/CHANGELOG.md
deleted file mode 100644
index 8a7e86a41..000000000
--- a/node_modules/acorn-dynamic-import/CHANGELOG.md
+++ /dev/null
@@ -1,24 +0,0 @@
-# 3.0.0
-
-- Adding acorn walk support.
-- Bump acorn version.
-
-# 2.0.2
-
-- Fixing parsing of `yield import()`.
-
-# 2.0.1
-
-- Removing unnecessary `in-publish` dependency.
-
-# 2.0.0
-
-- Updating acorn version to >= 4.
-
-# 1.0.1
-
-- Fixes for publishing the module.
-
-# 1.0.0
-
-- Initial release of plugin.
diff --git a/node_modules/acorn-dynamic-import/LICENSE b/node_modules/acorn-dynamic-import/LICENSE
deleted file mode 100755
index 25c6dc8be..000000000
--- a/node_modules/acorn-dynamic-import/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2016 Jordan Gensler
-
-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/node_modules/acorn-dynamic-import/README.md b/node_modules/acorn-dynamic-import/README.md
deleted file mode 100755
index 5c326a495..000000000
--- a/node_modules/acorn-dynamic-import/README.md
+++ /dev/null
@@ -1,51 +0,0 @@
-# Dynamic import support in acorn
-
-This is plugin for [Acorn](http://marijnhaverbeke.nl/acorn/) - a tiny, fast JavaScript parser, written completely in JavaScript.
-
-For more information, check out the [proposal repo](https://github.com/tc39/proposal-dynamic-import).
-
-## Usage
-
-You can use this module directly in order to get Acorn instance with plugin installed:
-
-```js
-import acorn from 'acorn-dynamic-import';
-// or...
-const acorn = require('acorn-dynamic-import').default;
-```
-
-Or you can use `inject.js` for injecting plugin into your own version of Acorn like this:
-
-```js
-const acorn = require('acorn-dynamic-import/lib/inject').default(require('./custom-acorn'));
-```
-
-Then, use the `plugins` option whenever you need to support dynamicImport while parsing:
-
-```js
-const ast = acorn.parse(code, {
- plugins: { dynamicImport: true }
-});
-```
-
-To use the updated walk functionality the process is similar. You can require the default implementation as:
-
-```js
-import walk from 'acorn-dynamic-import/lib/walk';
-// or...
-const dynamicImportWalk = require('acorn-dynamic-import/lib/walk').default;
-```
-
-Or you can use the injectable version for injecting the new walk functionality into your own version of Acorn like this:
-
-```js
-import { inject } from 'acorn-dynamic-import/lib/walk';
-import acornWalk from 'acorn/dist/walk';
-
-const walk = inject(acornWalk);
-
-```
-
-## License
-
-This plugin is issued under the [MIT license](./LICENSE).
diff --git a/node_modules/acorn-dynamic-import/lib/index.js b/node_modules/acorn-dynamic-import/lib/index.js
deleted file mode 100644
index b6087debf..000000000
--- a/node_modules/acorn-dynamic-import/lib/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-var _acorn = require('acorn');
-
-var acorn = _interopRequireWildcard(_acorn);
-
-var _inject = require('./inject');
-
-var _inject2 = _interopRequireDefault(_inject);
-
-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)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }
-
-exports['default'] = (0, _inject2['default'])(acorn); \ No newline at end of file
diff --git a/node_modules/acorn-dynamic-import/lib/inject.js b/node_modules/acorn-dynamic-import/lib/inject.js
deleted file mode 100644
index bd10a09b4..000000000
--- a/node_modules/acorn-dynamic-import/lib/inject.js
+++ /dev/null
@@ -1,72 +0,0 @@
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports['default'] = injectDynamicImport;
-/* eslint-disable no-underscore-dangle */
-
-var DynamicImportKey = exports.DynamicImportKey = 'Import';
-
-function injectDynamicImport(acorn) {
- var tt = acorn.tokTypes;
-
- // NOTE: This allows `yield import()` to parse correctly.
- tt._import.startsExpr = true;
-
- function parseDynamicImport() {
- var node = this.startNode();
- this.next();
- if (this.type !== tt.parenL) {
- this.unexpected();
- }
- return this.finishNode(node, DynamicImportKey);
- }
-
- function peekNext() {
- return this.input[this.pos];
- }
-
- // eslint-disable-next-line no-param-reassign
- acorn.plugins.dynamicImport = function () {
- function dynamicImportPlugin(instance) {
- instance.extend('parseStatement', function (nextMethod) {
- return function () {
- function parseStatement() {
- var node = this.startNode();
- if (this.type === tt._import) {
- var nextToken = peekNext.call(this);
- if (nextToken === tt.parenL.label) {
- var expr = this.parseExpression();
- return this.parseExpressionStatement(node, expr);
- }
- }
-
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
- args[_key] = arguments[_key];
- }
-
- return nextMethod.apply(this, args);
- }
-
- return parseStatement;
- }();
- });
-
- instance.extend('parseExprAtom', function (nextMethod) {
- return function () {
- function parseExprAtom(refDestructuringErrors) {
- if (this.type === tt._import) {
- return parseDynamicImport.call(this);
- }
- return nextMethod.call(this, refDestructuringErrors);
- }
-
- return parseExprAtom;
- }();
- });
- }
-
- return dynamicImportPlugin;
- }();
-
- return acorn;
-} \ No newline at end of file
diff --git a/node_modules/acorn-dynamic-import/node_modules/.bin/acorn b/node_modules/acorn-dynamic-import/node_modules/.bin/acorn
deleted file mode 120000
index fa65fee8d..000000000
--- a/node_modules/acorn-dynamic-import/node_modules/.bin/acorn
+++ /dev/null
@@ -1 +0,0 @@
-../../../acorn/bin/acorn \ No newline at end of file
diff --git a/node_modules/acorn-dynamic-import/package.json b/node_modules/acorn-dynamic-import/package.json
deleted file mode 100644
index 275a59dd9..000000000
--- a/node_modules/acorn-dynamic-import/package.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "name": "acorn-dynamic-import",
- "description": "Support dynamic imports in acorn",
- "main": "lib/index.js",
- "homepage": "https://github.com/kesne/acorn-dynamic-import",
- "author": "Jordan Gensler <jordangens@gmail.com>",
- "repository": {
- "type": "git",
- "url": "https://github.com/kesne/acorn-dynamic-import"
- },
- "license": "MIT",
- "scripts": {
- "build": "babel src --out-dir lib",
- "test": "npm run lint && npm run tests-only",
- "lint": "eslint .",
- "tests-only": "mocha",
- "prepublish": "in-publish && safe-publish-latest && npm run build || not-in-publish",
- "check-changelog": "expr $(git status --porcelain 2>/dev/null| grep \"^\\s*M.*CHANGELOG.md\" | wc -l) >/dev/null || (echo 'Please edit CHANGELOG.md' && exit 1)",
- "check-only-changelog-changed": "(expr $(git status --porcelain 2>/dev/null| grep -v \"CHANGELOG.md\" | wc -l) >/dev/null && echo 'Only CHANGELOG.md may have uncommitted changes' && exit 1) || exit 0",
- "version:major": "npm --no-git-tag-version version major",
- "version:minor": "npm --no-git-tag-version version minor",
- "version:patch": "npm --no-git-tag-version version patch",
- "postversion": "git commit package.json CHANGELOG.md -m \"v$npm_package_version\" && npm run tag && git push && git push --tags",
- "preversion": "npm run test && npm run check-changelog && npm run check-only-changelog-changed",
- "tag": "git tag v$npm_package_version"
- },
- "dependencies": {
- "acorn": "^5.0.0"
- },
- "devDependencies": {
- "babel-cli": "^6.18.0",
- "babel-eslint": "^7.1.1",
- "babel-preset-airbnb": "^2.1.1",
- "babel-register": "^6.18.0",
- "chai": "^3.0.0",
- "eslint": "^3.10.2",
- "eslint-config-airbnb-base": "^10.0.1",
- "eslint-plugin-import": "^2.2.0",
- "in-publish": "^2.0.0",
- "mocha": "^2.2.5",
- "rimraf": "^2.5.4",
- "safe-publish-latest": "^1.1.1"
- },
- "version": "3.0.0"
-}
diff --git a/node_modules/acorn-dynamic-import/src/index.js b/node_modules/acorn-dynamic-import/src/index.js
deleted file mode 100644
index 6eb1d4140..000000000
--- a/node_modules/acorn-dynamic-import/src/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import * as acorn from 'acorn';
-import inject from './inject';
-
-export default inject(acorn);
diff --git a/node_modules/acorn-dynamic-import/src/inject.js b/node_modules/acorn-dynamic-import/src/inject.js
deleted file mode 100644
index 796d87db5..000000000
--- a/node_modules/acorn-dynamic-import/src/inject.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/* eslint-disable no-underscore-dangle */
-
-export const DynamicImportKey = 'Import';
-
-export default function injectDynamicImport(acorn) {
- const tt = acorn.tokTypes;
-
- // NOTE: This allows `yield import()` to parse correctly.
- tt._import.startsExpr = true;
-
- function parseDynamicImport() {
- const node = this.startNode();
- this.next();
- if (this.type !== tt.parenL) {
- this.unexpected();
- }
- return this.finishNode(node, DynamicImportKey);
- }
-
- function peekNext() {
- return this.input[this.pos];
- }
-
- // eslint-disable-next-line no-param-reassign
- acorn.plugins.dynamicImport = function dynamicImportPlugin(instance) {
- instance.extend('parseStatement', nextMethod => (
- function parseStatement(...args) {
- const node = this.startNode();
- if (this.type === tt._import) {
- const nextToken = peekNext.call(this);
- if (nextToken === tt.parenL.label) {
- const expr = this.parseExpression();
- return this.parseExpressionStatement(node, expr);
- }
- }
-
- return nextMethod.apply(this, args);
- }
- ));
-
- instance.extend('parseExprAtom', nextMethod => (
- function parseExprAtom(refDestructuringErrors) {
- if (this.type === tt._import) {
- return parseDynamicImport.call(this);
- }
- return nextMethod.call(this, refDestructuringErrors);
- }
- ));
- };
-
- return acorn;
-}