Socket
Socket
Sign inDemoInstall

regenerator-transform

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regenerator-transform - npm Package Compare versions

Comparing version 0.14.4 to 0.14.5

13

lib/meta.js

@@ -9,4 +9,2 @@ "use strict";

var _private = require("private");
/**

@@ -18,3 +16,12 @@ * Copyright (c) 2014-present, Facebook, Inc.

*/
var m = (0, _private.makeAccessor)();
var mMap = new WeakMap();
function m(node) {
if (!mMap.has(node)) {
mMap.set(node, {});
}
return mMap.get(node);
}
var hasOwn = Object.prototype.hasOwnProperty;

@@ -21,0 +28,0 @@

@@ -23,4 +23,2 @@ /**

var _private = require("private");
exports.getVisitor = function (_ref) {

@@ -244,4 +242,12 @@ var t = _ref.types;

var getMarkInfo = (0, _private.makeAccessor)();
var markInfo = new WeakMap();
function getMarkInfo(node) {
if (!markInfo.has(node)) {
markInfo.set(node, {});
}
return markInfo.get(node);
}
function getMarkedFunctionId(funPath) {

@@ -248,0 +254,0 @@ var t = util.getTypes();

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

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

@@ -36,4 +36,3 @@ "keywords": [

"dependencies": {
"@babel/runtime": "^7.8.4",
"private": "^0.1.8"
"@babel/runtime": "^7.8.4"
},

@@ -40,0 +39,0 @@ "devDependencies": {

@@ -10,7 +10,13 @@ /**

import { getTypes } from "./util.js";
import { makeAccessor } from "private";
let m = makeAccessor();
let hasOwn = Object.prototype.hasOwnProperty;
const mMap = new WeakMap();
function m(node) {
if (!mMap.has(node)) {
mMap.set(node, {});
}
return mMap.get(node);
}
const hasOwn = Object.prototype.hasOwnProperty;
function makePredicate(propertyName, knownTypes) {

@@ -17,0 +23,0 @@ function onlyChildren(node) {

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

import * as util from "./util";
import { makeAccessor } from "private";

@@ -259,4 +258,11 @@ exports.getVisitor = ({ types: t }) => ({

const getMarkInfo = makeAccessor();
const markInfo = new WeakMap();
function getMarkInfo(node) {
if (!markInfo.has(node)) {
markInfo.set(node, {});
}
return markInfo.get(node);
}
function getMarkedFunctionId(funPath) {

@@ -263,0 +269,0 @@ const t = util.getTypes();

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc