Socket
Socket
Sign inDemoInstall

regenerator-transform

Package Overview
Dependencies
8
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.9 to 0.9.10

lib/replaceShorthandObjectMethod.js

28

lib/visit.js

@@ -15,2 +15,6 @@ "use strict";

var _replaceShorthandObjectMethod = require("./replaceShorthandObjectMethod");
var _replaceShorthandObjectMethod2 = _interopRequireDefault(_replaceShorthandObjectMethod);
var _util = require("./util");

@@ -24,12 +28,14 @@

var getMarkInfo = require("private").makeAccessor(); /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
*/
/**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
* additional grant of patent rights can be found in the PATENTS file in
* the same directory.
*/
var getMarkInfo = require("private").makeAccessor();
exports.visitor = {

@@ -56,2 +62,6 @@ Function: {

// if this is an ObjectMethod, we need to convert it to an ObjectProperty
path = (0, _replaceShorthandObjectMethod2.default)(path);
node = path.node;
var contextId = path.scope.generateUidIdentifier("context");

@@ -58,0 +68,0 @@ var argsId = path.scope.generateUidIdentifier("args");

@@ -5,3 +5,3 @@ {

"description": "Explode async and generator functions into a state machine.",
"version": "0.9.9",
"version": "0.9.10",
"main": "lib/index.js",

@@ -8,0 +8,0 @@ "keywords": [

@@ -15,2 +15,3 @@ /**

import { Emitter } from "./emit";
import replaceShorthandObjectMethod from "./replaceShorthandObjectMethod";
import * as util from "./util";

@@ -41,2 +42,6 @@

// if this is an ObjectMethod, we need to convert it to an ObjectProperty
path = replaceShorthandObjectMethod(path);
node = path.node;
let contextId = path.scope.generateUidIdentifier("context");

@@ -43,0 +48,0 @@ let argsId = path.scope.generateUidIdentifier("args");

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc