regenerator-transform
Advanced tools
Comparing version 0.14.4 to 0.14.5
@@ -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(); |
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
127735
1
3352
- Removedprivate@^0.1.8
- Removedprivate@0.1.8(transitive)