summaryrefslogtreecommitdiffstats
path: root/node_modules/babel-plugin-transform-es2015-block-scoped-functions
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/babel-plugin-transform-es2015-block-scoped-functions
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/babel-plugin-transform-es2015-block-scoped-functions')
-rw-r--r--node_modules/babel-plugin-transform-es2015-block-scoped-functions/.npmignore4
-rw-r--r--node_modules/babel-plugin-transform-es2015-block-scoped-functions/README.md35
-rw-r--r--node_modules/babel-plugin-transform-es2015-block-scoped-functions/lib/index.js63
-rw-r--r--node_modules/babel-plugin-transform-es2015-block-scoped-functions/package.json45
4 files changed, 0 insertions, 147 deletions
diff --git a/node_modules/babel-plugin-transform-es2015-block-scoped-functions/.npmignore b/node_modules/babel-plugin-transform-es2015-block-scoped-functions/.npmignore
deleted file mode 100644
index 3185290..0000000
--- a/node_modules/babel-plugin-transform-es2015-block-scoped-functions/.npmignore
+++ /dev/null
@@ -1,4 +0,0 @@
-node_modules
-*.log
-src
-test
diff --git a/node_modules/babel-plugin-transform-es2015-block-scoped-functions/README.md b/node_modules/babel-plugin-transform-es2015-block-scoped-functions/README.md
deleted file mode 100644
index 4119eb9..0000000
--- a/node_modules/babel-plugin-transform-es2015-block-scoped-functions/README.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# babel-plugin-transform-es2015-block-scoped-functions
-
-> Babel plugin to ensure function declarations at the block level are block scoped.
-
-## Installation
-
-```sh
-npm install --save-dev babel-plugin-transform-es2015-block-scoped-functions
-```
-
-## Usage
-
-### Via `.babelrc` (Recommended)
-
-**.babelrc**
-
-```json
-{
- "plugins": ["transform-es2015-block-scoped-functions"]
-}
-```
-
-### Via CLI
-
-```sh
-babel --plugins transform-es2015-block-scoped-functions script.js
-```
-
-### Via Node API
-
-```javascript
-require("babel-core").transform("code", {
- plugins: ["transform-es2015-block-scoped-functions"]
-});
-```
diff --git a/node_modules/babel-plugin-transform-es2015-block-scoped-functions/lib/index.js b/node_modules/babel-plugin-transform-es2015-block-scoped-functions/lib/index.js
deleted file mode 100644
index f18cfc3..0000000
--- a/node_modules/babel-plugin-transform-es2015-block-scoped-functions/lib/index.js
+++ /dev/null
@@ -1,63 +0,0 @@
-"use strict";
-
-exports.__esModule = true;
-
-var _getIterator2 = require("babel-runtime/core-js/get-iterator");
-
-var _getIterator3 = _interopRequireDefault(_getIterator2);
-
-exports.default = function (_ref) {
- var t = _ref.types;
-
- function statementList(key, path) {
- var paths = path.get(key);
-
- for (var _iterator = paths, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : (0, _getIterator3.default)(_iterator);;) {
- var _ref2;
-
- if (_isArray) {
- if (_i >= _iterator.length) break;
- _ref2 = _iterator[_i++];
- } else {
- _i = _iterator.next();
- if (_i.done) break;
- _ref2 = _i.value;
- }
-
- var _path = _ref2;
-
- var func = _path.node;
- if (!_path.isFunctionDeclaration()) continue;
-
- var declar = t.variableDeclaration("let", [t.variableDeclarator(func.id, t.toExpression(func))]);
-
- declar._blockHoist = 2;
-
- func.id = null;
-
- _path.replaceWith(declar);
- }
- }
-
- return {
- visitor: {
- BlockStatement: function BlockStatement(path) {
- var node = path.node,
- parent = path.parent;
-
- if (t.isFunction(parent, { body: node }) || t.isExportDeclaration(parent)) {
- return;
- }
-
- statementList("body", path);
- },
- SwitchCase: function SwitchCase(path) {
- statementList("consequent", path);
- }
- }
- };
-};
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-module.exports = exports["default"]; \ No newline at end of file
diff --git a/node_modules/babel-plugin-transform-es2015-block-scoped-functions/package.json b/node_modules/babel-plugin-transform-es2015-block-scoped-functions/package.json
deleted file mode 100644
index e2010f0..0000000
--- a/node_modules/babel-plugin-transform-es2015-block-scoped-functions/package.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "_from": "babel-plugin-transform-es2015-block-scoped-functions@^6.22.0",
- "_id": "babel-plugin-transform-es2015-block-scoped-functions@6.22.0",
- "_inBundle": false,
- "_integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=",
- "_location": "/babel-plugin-transform-es2015-block-scoped-functions",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "babel-plugin-transform-es2015-block-scoped-functions@^6.22.0",
- "name": "babel-plugin-transform-es2015-block-scoped-functions",
- "escapedName": "babel-plugin-transform-es2015-block-scoped-functions",
- "rawSpec": "^6.22.0",
- "saveSpec": null,
- "fetchSpec": "^6.22.0"
- },
- "_requiredBy": [
- "/babel-preset-es2015"
- ],
- "_resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz",
- "_shasum": "bbc51b49f964d70cb8d8e0b94e820246ce3a6141",
- "_spec": "babel-plugin-transform-es2015-block-scoped-functions@^6.22.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/babel-preset-es2015",
- "bundleDependencies": false,
- "dependencies": {
- "babel-runtime": "^6.22.0"
- },
- "deprecated": false,
- "description": "Babel plugin to ensure function declarations at the block level are block scoped",
- "devDependencies": {
- "babel-helper-plugin-test-runner": "^6.22.0"
- },
- "keywords": [
- "babel-plugin"
- ],
- "license": "MIT",
- "main": "lib/index.js",
- "name": "babel-plugin-transform-es2015-block-scoped-functions",
- "repository": {
- "type": "git",
- "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-block-scoped-functions"
- },
- "version": "6.22.0"
-}