babel-helper-call-delegate
Advanced tools
Comparing version 7.0.0-beta.2 to 7.0.0-beta.3
"use strict"; | ||
exports.__esModule = true; | ||
exports.default = _default; | ||
exports.default = function (path, scope) { | ||
var _babelHelperHoistVariables = _interopRequireDefault(require("babel-helper-hoist-variables")); | ||
var t = _interopRequireWildcard(require("babel-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)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var visitor = { | ||
enter: function enter(path, state) { | ||
if (path.isThisExpression()) { | ||
state.foundThis = true; | ||
} | ||
if (path.isReferencedIdentifier({ | ||
name: "arguments" | ||
})) { | ||
state.foundArguments = true; | ||
} | ||
}, | ||
Function: function Function(path) { | ||
path.skip(); | ||
} | ||
}; | ||
function _default(path, scope) { | ||
if (scope === void 0) { | ||
@@ -14,3 +40,3 @@ scope = path.scope; | ||
var args = []; | ||
(0, _babelHelperHoistVariables2.default)(path, function (id) { | ||
(0, _babelHelperHoistVariables.default)(path, function (id) { | ||
return scope.push({ | ||
@@ -43,31 +69,2 @@ id: id | ||
return t.returnStatement(call); | ||
}; | ||
var _babelHelperHoistVariables = require("babel-helper-hoist-variables"); | ||
var _babelHelperHoistVariables2 = _interopRequireDefault(_babelHelperHoistVariables); | ||
var _babelTypes = require("babel-types"); | ||
var t = _interopRequireWildcard(_babelTypes); | ||
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; } } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var visitor = { | ||
enter: function enter(path, state) { | ||
if (path.isThisExpression()) { | ||
state.foundThis = true; | ||
} | ||
if (path.isReferencedIdentifier({ | ||
name: "arguments" | ||
})) { | ||
state.foundArguments = true; | ||
} | ||
}, | ||
Function: function Function(path) { | ||
path.skip(); | ||
} | ||
}; | ||
} |
{ | ||
"name": "babel-helper-call-delegate", | ||
"version": "7.0.0-beta.2", | ||
"version": "7.0.0-beta.3", | ||
"description": "Helper function to call delegate", | ||
@@ -9,6 +9,6 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-call-delegate", | ||
"dependencies": { | ||
"babel-helper-hoist-variables": "7.0.0-beta.2", | ||
"babel-traverse": "7.0.0-beta.2", | ||
"babel-types": "7.0.0-beta.2" | ||
"babel-helper-hoist-variables": "7.0.0-beta.3", | ||
"babel-traverse": "7.0.0-beta.3", | ||
"babel-types": "7.0.0-beta.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2296
54
+ Addedbabel-code-frame@7.0.0-beta.3(transitive)
+ Addedbabel-helper-function-name@7.0.0-beta.3(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-beta.3(transitive)
+ Addedbabel-helper-hoist-variables@7.0.0-beta.3(transitive)
+ Addedbabel-template@7.0.0-beta.3(transitive)
+ Addedbabel-traverse@7.0.0-beta.3(transitive)
+ Addedbabel-types@7.0.0-beta.3(transitive)
+ Addedbabylon@7.0.0-beta.27(transitive)
- Removedbabel-code-frame@7.0.0-beta.2(transitive)
- Removedbabel-helper-function-name@7.0.0-beta.2(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-beta.2(transitive)
- Removedbabel-helper-hoist-variables@7.0.0-beta.2(transitive)
- Removedbabel-messages@7.0.0-beta.2(transitive)
- Removedbabel-template@7.0.0-beta.2(transitive)
- Removedbabel-traverse@7.0.0-beta.2(transitive)
- Removedbabel-types@7.0.0-beta.2(transitive)
- Removedbabylon@7.0.0-beta.25(transitive)
Updatedbabel-traverse@7.0.0-beta.3
Updatedbabel-types@7.0.0-beta.3