Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

6to5

Package Overview
Dependencies
Maintainers
1
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

6to5 - npm Package Compare versions

Comparing version 1.9.10 to 1.10.1

coverage/coverage.json

25

bin/6to5/index.js

@@ -19,2 +19,3 @@ #!/usr/bin/env node

commander.option("-m, --modules [modules]", "Module formatter type to use [common]", "common");
commander.option("-w, --whitelist [whitelist]", "Whitelist of transformers to ONLY use", util2.list);

@@ -26,9 +27,16 @@ commander.option("-b, --blacklist [blacklist]", "Blacklist of transformers to NOT use", util2.list);

commander.on("--help", function(){
console.log(" Transformers:");
console.log();
_.each(_.keys(transform.transformers).sort(), function (key) {
if (key[0] === "_") return;
console.log(" - " + key);
});
console.log();
var outKeys = function (title, obj) {
console.log(" " + title + ":");
console.log();
_.each(_.keys(obj).sort(), function (key) {
if (key[0] === "_") return;
console.log(" - " + key);
});
console.log();
};
outKeys("Transformers", transform.transformers);
outKeys("Module formatters", transform.moduleFormatters);
});

@@ -88,3 +96,4 @@

whitelist: commander.whitelist,
sourceMap: commander.sourceMaps || commander.sourceMapsInline
sourceMap: commander.sourceMaps || commander.sourceMapsInline,
modules: commander.modules
};

@@ -91,0 +100,0 @@

@@ -6,11 +6,13 @@ module.exports = File;

var transform = require("./transform");
var recast = require("recast");
var recast = require("acorn-recast");
var util = require("./util");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");
function File(opts) {
this.opts = File.normaliseOptions(opts);
this.moduleFormatter = this.getModuleFormatter(opts.modules);
this.declarations = {};
this.uids = {};
this.opts = File.normaliseOptions(opts);
this.ast = {};

@@ -26,3 +28,4 @@ }

sourceMap: false,
filename: "unknown"
filename: "unknown",
modules: "common"
});

@@ -41,2 +44,17 @@

File.prototype.getModuleFormatter = function (type) {
var ModuleLoader = transform.moduleFormatters[type];
if (!ModuleLoader) {
var loc = util.resolve(type);
if (loc) ModuleLoader = require(loc);
}
if (!ModuleLoader) {
throw new ReferenceError("unknown module formatter type " + type);
}
return new ModuleLoader(this);
};
File.prototype.parseShebang = function (code) {

@@ -92,5 +110,3 @@ var shebangMatch = code.match(SHEBANG_REGEX);

var printOpts = {
tabWidth: 2
};
var printOpts = { tabWidth: 2 };

@@ -121,2 +137,13 @@ if (opts.sourceMap) {

File.prototype.generateUid = function (name) {
// replace all non-valid identifiers with dashes
name = name.replace(/[^a-zA-Z0-9]/g, "-");
// remove all dashes and numbers from start of name
name = name.replace(/^[-0-9]+/, "");
// camel case
name = name.replace(/[-_\s]+(.)?/g, function (match, c) {
return c ? c.toUpperCase() : "";
});
var uids = this.uids;

@@ -123,0 +150,0 @@ var i = uids[name] || 1;

require("es6-symbol/implement");
require("es6-shim");
require("regenerator").runtime();
require("regenerator/runtime");

@@ -24,3 +24,3 @@ require("./polyfill");

var ignoreRegex = /node_modules/;
var exts = [];
var exts = {};
var maps = {};

@@ -44,9 +44,10 @@ var old = require.extensions[".js"];

var hookExtensions = function (_exts) {
_.each(exts, function (ext) {
_.each(exts, function (old, ext) {
require.extensions[ext] = old;
});
exts = _exts;
exts = {};
_.each(exts, function (ext) {
_.each(_exts, function (ext) {
exts[ext] = require.extensions[ext];
require.extensions[ext] = loader;

@@ -53,0 +54,0 @@ });

@@ -5,3 +5,3 @@ module.exports = transform;

var sourceMap = require("source-map");
var recast = require("recast");
var recast = require("acorn-recast");
var File = require("./file");

@@ -106,2 +106,3 @@ var util = require("./util");

_declarations: require("./transformers/_declarations"),
_moduleFormatter: require("./transformers/_module-formatter"),

@@ -111,4 +112,10 @@ useStrict: require("./transformers/use-strict")

transform.moduleFormatters = {
common: require("./modules/common"),
amd: require("./modules/amd"),
umd: require("./modules/umd")
};
_.each(transform.transformers, function (transformer, key) {
transform.transformers[key] = new Transformer(key, transformer);
});

@@ -14,9 +14,9 @@ module.exports = Transformer;

transformer = { ast: transformer };
} else {
_.each(transformer, function (fns, type) {
if (type === "ast") return;
if (_.isFunction(fns)) fns = { enter: fns };
transformer[type] = fns;
});
}
_.each(transformer, function (fns, type) {
if (_.isFunction(fns)) fns = { enter: fns };
transformer[type] = fns;
});
return transformer;

@@ -31,4 +31,4 @@ };

if (transformer.ast) {
transformer.ast(ast, file);
if (transformer.ast && transformer.ast.enter) {
transformer.ast.enter(ast, file);
}

@@ -62,7 +62,9 @@

});
if (transformer.ast && transformer.ast.exit) {
transformer.ast.exit(ast, file);
}
};
Transformer.prototype.canRun = function (file) {
if (this.key[0] === "_") return true;
var opts = file.opts;

@@ -69,0 +71,0 @@

var traverse = require("../traverse");
var util = require("../util");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;

@@ -5,0 +5,0 @@ var go = function (getBody, node, file) {

@@ -1,2 +0,2 @@

var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -3,0 +3,0 @@

var util = require("../util");
var b = require("recast").types.builders;
var _ = require("lodash");
var b = require("acorn-ast-types").builders;

@@ -71,8 +70,2 @@ var single = function (node) {

exports.ComprehensionExpression = function (node, parent, file) {
_.each(node.blocks, function (block) {
if (!block.of) {
throw util.errorWithNode(block, "for-in array comprehension is not supported");
}
});
if (node.blocks.length === 1) {

@@ -79,0 +72,0 @@ return single(node);

var traverse = require("../traverse");
var util = require("../util");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -53,14 +53,4 @@

if (superName) {
// inherit prototype
body.push(util.template("class-inherits-prototype", {
SUPER_NAME: superName,
CLASS_NAME: className
}, true));
body.push(b.expressionStatement(b.callExpression(file.addDeclaration("extends"), [className, superName])));
// inherit static properties
body.push(util.template("class-inherits-properties", {
SUPER_NAME: superName,
CLASS_NAME: className
}, true));
container.arguments.push(superClassArgument);

@@ -67,0 +57,0 @@ container.callee.params.push(superClassCallee);

var util = require("../util");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -4,0 +4,0 @@

var traverse = require("../traverse");
var util = require("../util");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -5,0 +5,0 @@

var util = require("../util");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;

@@ -4,0 +4,0 @@ exports.ForOfStatement = function (node, parent, file) {

@@ -5,3 +5,3 @@ // Based upon the excellent jsx-transpiler by Ingvar Stepanyan (RReverser)

var esutils = require("esutils");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -89,9 +89,7 @@

var children = node.children;
var args = callExpr.arguments;
switch (children.length) {
case 0: break;
case 1: args.push(children[0]); break;
default: args.push(b.arrayExpression(children));
}
_.each(children, function (child) {
delete child.raw;
callExpr.arguments.push(child);
});

@@ -98,0 +96,0 @@ callExpr.loc = node.loc;

var traverse = require("../traverse");
var util = require("../util");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -5,0 +5,0 @@

@@ -1,6 +0,4 @@

var util = require("../util");
var b = require("recast").types.builders;
var _ = require("lodash");
var _ = require("lodash");
exports.ImportDeclaration = function (node) {
exports.ImportDeclaration = function (node, parent, file) {
var nodes = [];

@@ -10,26 +8,6 @@

_.each(node.specifiers, function (specifier) {
var variableName = getSpecifierName(specifier);
var key = specifier.id.name;
// import foo from "foo";
if (specifier.type === "ImportDefaultSpecifier") {
key = b.identifier("default");
}
var templateName = "require-assign";
// import * as bar from "foo";
if (specifier.type !== "ImportNamespaceSpecifier") templateName += "-key";
nodes.push(util.template(templateName, {
VARIABLE_NAME: variableName.name,
MODULE_NAME: node.source.raw,
KEY: key
}));
file.moduleFormatter.importSpecifier(specifier, node, nodes);
});
} else {
// import "foo";
nodes.push(util.template("require", {
MODULE_NAME: node.source.raw
}, true));
file.moduleFormatter.import(node, nodes);
}

@@ -40,71 +18,11 @@

var pushExportSpecifiers = function (node, nodes) {
_.each(node.specifiers, function (specifier) {
var variableName = getSpecifierName(specifier);
if (node.source) {
if (specifier.type === "ExportBatchSpecifier") {
// export * from "foo";
nodes.push(util.template("exports-wildcard", {
MODULE_NAME: node.source.raw
}, true));
} else {
// export { foo } from "test";
nodes.push(util.template("exports-require-assign-key", {
VARIABLE_NAME: variableName.name,
MODULE_NAME: node.source.raw,
KEY: specifier.id
}, true));
}
} else {
// export { foo };
nodes.push(util.template("exports-assign", {
VALUE: specifier.id,
KEY: variableName
}, true));
}
});
};
var getSpecifierName = function (specifier) {
return specifier.name || specifier.id;
};
var pushExportDeclaration = function (node, parent, nodes) {
var declar = node.declaration;
if (node.default) {
util.ensureExpressionType(declar);
nodes.push(util.template("exports-default", {
VALUE: declar
}, true));
} else {
var id = declar.id;
if (declar.type === "VariableDeclaration") {
id = declar.declarations[0].id;
}
var assign = util.template("exports-assign", {
VALUE: id,
KEY: id
}, true);
nodes.push(declar);
if (declar.type === "FunctionDeclaration") {
assign._blockHoist = true;
}
nodes.push(assign);
}
};
exports.ExportDeclaration = function (node, parent) {
exports.ExportDeclaration = function (node, parent, file) {
var nodes = [];
if (node.declaration) {
pushExportDeclaration(node, parent, nodes);
file.moduleFormatter.export(node, nodes);
} else {
pushExportSpecifiers(node, nodes);
_.each(node.specifiers, function (specifier) {
file.moduleFormatter.exportSpecifier(specifier, node, nodes);
});
}

@@ -111,0 +29,0 @@

@@ -1,2 +0,2 @@

var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -3,0 +3,0 @@

var util = require("../util");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;

@@ -4,0 +4,0 @@ exports.Function = function (node, parent, file) {

var util = require("../util");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -17,5 +17,37 @@

var hasSpread = function (nodes) {
return nodes.length && _.last(nodes).type === "SpreadElement";
var has = false;
_.each(nodes, function (node) {
if (node.type === "SpreadElement") {
has = true;
return false;
}
});
return has;
};
var build = function (props, file) {
var nodes = [];
var _props = [];
var push = function () {
if (!_props.length) return;
nodes.push(b.arrayExpression(_props));
_props = [];
};
_.each(props, function (prop) {
if (prop.type === "SpreadElement") {
push();
nodes.push(getSpreadLiteral(prop, file));
} else {
_props.push(prop);
}
});
push();
return nodes;
};
exports.ArrayExpression = function (node, parent, file) {

@@ -25,11 +57,8 @@ var elements = node.elements;

var spread = elements.pop();
var nodes = build(elements, file);
var first = nodes.shift();
var concat = util.template("array-concat", {
ARGUMENT: getSpreadLiteral(spread, file)
});
if (!nodes.length) return first;
concat.callee.object.elements = elements;
return concat;
return b.callExpression(b.memberExpression(first, b.identifier("concat"), false), nodes);
};

@@ -41,5 +70,2 @@

var spread = args.pop();
var spreadLiteral = getSpreadLiteral(spread, file);
var contextLiteral = b.literal(null);

@@ -49,9 +75,9 @@

if (args.length) {
var concat = util.template("array-concat");
concat.arguments = [spreadLiteral];
concat.callee.object.elements = args;
node.arguments.push(concat);
var nodes = build(args, file);
var first = nodes.shift();
if (nodes.length) {
node.arguments.push(b.callExpression(b.memberExpression(first, b.identifier("concat"), false), nodes));
} else {
node.arguments.push(spreadLiteral);
node.arguments.push(first);
}

@@ -58,0 +84,0 @@

@@ -1,2 +0,2 @@

var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -3,0 +3,0 @@

var rewritePattern = require("regexpu/rewrite-pattern");
var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;
var _ = require("lodash");

@@ -4,0 +4,0 @@

@@ -1,2 +0,2 @@

var b = require("recast").types.builders;
var b = require("acorn-ast-types").builders;

@@ -3,0 +3,0 @@ module.exports = function (ast, file) {

var traverse = require("./traverse");
var astTypes = require("recast").types;
var recast = require("recast");
var astTypes = require("acorn-ast-types");
var recast = require("acorn-recast");
var path = require("path");
var util = require("util");
var fs = require("fs");

@@ -11,2 +12,4 @@ var _ = require("lodash");

exports.inherits = util.inherits;
exports.ensureBlock = function (node) {

@@ -24,2 +27,10 @@ var block = node.body;

exports.resolve = function (loc) {
try {
return require.resolve(loc);
} catch (err) {
return null;
}
};
exports.list = function (val) {

@@ -29,2 +40,6 @@ return val ? val.split(",") : [];

exports.getSpecifierName = function (specifier) {
return specifier.name || specifier.id;
};
exports.ensureExpressionType = function (node) {

@@ -113,3 +128,3 @@ node.type = {

var ext = path.extname(filename);
return _.contains([".js", ".es6", ".jsx"], ext);
return _.contains([".js", ".es6"], ext);
};

@@ -244,2 +259,3 @@

var recastOpts = {};
if (opts.sourceMap) {

@@ -262,7 +278,5 @@ recastOpts.sourceFileName = opts.sourceFileName;

if (err.lineNumber) {
var frame = exports.codeFrame(code, err.lineNumber, err.column);
var err2 = new SyntaxError(err.message + frame);
err2._6to5 = true;
throw err2;
if (err.loc) {
var frame = exports.codeFrame(code, err.loc.line, err.loc.column);
err.message = err.message + frame;
}

@@ -269,0 +283,0 @@ }

{
"name": "6to5",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"version": "1.9.10",
"version": "1.10.1",
"author": "Sebastian McKenzie <sebmck@gmail.com>",

@@ -37,3 +37,3 @@ "homepage": "https://github.com/sebmck/6to5",

"dependencies": {
"commander": "2.3.0",
"commander": "2.4.0",
"fs-readdir-recursive": "0.0.2",

@@ -48,15 +48,13 @@ "lodash": "2.4.1",

"regenerator": "0.6.7",
"chokidar": "^0.9.0",
"source-map-support": "^0.2.7",
"esutils": "^1.1.4"
"chokidar": "0.10.0",
"source-map-support": "0.2.7",
"esutils": "1.1.4",
"acorn-jsx": "https://github.com/sebmck/acorn-jsx/archive/master.tar.gz",
"acorn-recast": "0.8.0-3",
"acorn-ast-types": "0.5.3-1"
},
"devDependencies": {
"es6-transpiler": "0.7.17",
"istanbul": "0.3.2",
"matcha": "0.5.0",
"mocha": "1.21.5",
"traceur": "0.0.67",
"esnext": "0.11.1",
"es6now": "0.8.11",
"jstransform": "6.3.2",
"uglify-js": "2.4.15",

@@ -63,0 +61,0 @@ "browserify": "6.1.0",

@@ -1,1 +0,1 @@

{"arguments-slice-assign-arg":{"type":"Program","body":[{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"VARIABLE_NAME"},"init":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"SLICE_KEY"},"property":{"type":"Identifier","name":"call"}},"arguments":[{"type":"Identifier","name":"arguments"},{"type":"Identifier","name":"SLICE_ARG"}]}}],"kind":"var"}],"errors":[]},"arguments-slice-assign":{"type":"Program","body":[{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"VARIABLE_NAME"},"init":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"SLICE_KEY"},"property":{"type":"Identifier","name":"call"}},"arguments":[{"type":"Identifier","name":"arguments"}]}}],"kind":"var"}],"errors":[]},"arguments-slice":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"SLICE_KEY"},"property":{"type":"Identifier","name":"call"}},"arguments":[{"type":"Identifier","name":"arguments"}]}}],"errors":[]},"array-comprehension-container":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"FunctionExpression","id":null,"params":[],"defaults":[],"body":{"type":"BlockStatement","body":[{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"KEY"},"init":{"type":"ArrayExpression","elements":[]}}],"kind":"var"},{"type":"ReturnStatement","argument":{"type":"Identifier","name":"KEY"}}]},"rest":null,"generator":false,"expression":false},"arguments":[]}}],"errors":[]},"array-comprehension-filter":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"ARRAY"},"property":{"type":"Identifier","name":"filter"}},"arguments":[{"type":"FunctionExpression","id":null,"params":[{"type":"Identifier","name":"KEY"}],"defaults":[],"body":{"type":"BlockStatement","body":[{"type":"ReturnStatement","argument":{"type":"Identifier","name":"FILTER"}}]},"rest":null,"generator":false,"expression":false}]},"property":{"type":"Identifier","name":"map"}},"arguments":[{"type":"FunctionExpression","id":null,"params":[{"type":"Identifier","name":"KEY"}],"defaults":[],"body":{"type":"BlockStatement","body":[{"type":"ReturnStatement","argument":{"type":"Identifier","name":"STATEMENT"}}]},"rest":null,"generator":false,"expression":false}]}}],"errors":[]},"array-comprehension-for-each":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"ARRAY"},"property":{"type":"Identifier","name":"forEach"}},"arguments":[{"type":"FunctionExpression","id":null,"params":[{"type":"Identifier","name":"KEY"}],"defaults":[],"body":{"type":"BlockStatement","body":[]},"rest":null,"generator":false,"expression":false}]}}],"errors":[]},"array-comprehension-map":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"ARRAY"},"property":{"type":"Identifier","name":"map"}},"arguments":[{"type":"FunctionExpression","id":null,"params":[{"type":"Identifier","name":"KEY"}],"defaults":[],"body":{"type":"BlockStatement","body":[{"type":"ReturnStatement","argument":{"type":"Identifier","name":"STATEMENT"}}]},"rest":null,"generator":false,"expression":false}]}}],"errors":[]},"array-concat":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"ArrayExpression","elements":[]},"property":{"type":"Identifier","name":"concat"}},"arguments":[{"type":"Identifier","name":"ARGUMENT"}]}}],"errors":[]},"array-push":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"KEY"},"property":{"type":"Identifier","name":"push"}},"arguments":[{"type":"Identifier","name":"STATEMENT"}]}}],"errors":[]},"call":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"OBJECT"},"property":{"type":"Identifier","name":"call"}},"arguments":[{"type":"Identifier","name":"CONTEXT"}]}}],"errors":[]},"class-inherits-properties":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"AssignmentExpression","operator":"=","left":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"CLASS_NAME"},"property":{"type":"Identifier","name":"__proto__"}},"right":{"type":"Identifier","name":"SUPER_NAME"}}}],"errors":[]},"class-inherits-prototype":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"AssignmentExpression","operator":"=","left":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"CLASS_NAME"},"property":{"type":"Identifier","name":"prototype"}},"right":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"Object"},"property":{"type":"Identifier","name":"create"}},"arguments":[{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"SUPER_NAME"},"property":{"type":"Identifier","name":"prototype"}},{"type":"ObjectExpression","properties":[{"type":"Property","key":{"type":"Identifier","name":"constructor"},"value":{"type":"ObjectExpression","properties":[{"type":"Property","key":{"type":"Identifier","name":"value"},"value":{"type":"Identifier","name":"CLASS_NAME"},"kind":"init","method":false,"shorthand":false,"computed":false},{"type":"Property","key":{"type":"Identifier","name":"enumerable"},"value":{"type":"Literal","value":false,"raw":"false"},"kind":"init","method":false,"shorthand":false,"computed":false},{"type":"Property","key":{"type":"Identifier","name":"writable"},"value":{"type":"Literal","value":true,"raw":"true"},"kind":"init","method":false,"shorthand":false,"computed":false},{"type":"Property","key":{"type":"Identifier","name":"configurable"},"value":{"type":"Literal","value":true,"raw":"true"},"kind":"init","method":false,"shorthand":false,"computed":false}]},"kind":"init","method":false,"shorthand":false,"computed":false}]}]}}}],"errors":[]},"class-super-constructor-call":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"SUPER_NAME"},"property":{"type":"Identifier","name":"apply"}},"arguments":[{"type":"ThisExpression"},{"type":"Identifier","name":"arguments"}]}}],"errors":[]},"class":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"FunctionExpression","id":null,"params":[],"defaults":[],"body":{"type":"BlockStatement","body":[{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"CLASS_NAME"},"init":{"type":"FunctionExpression","id":null,"params":[],"defaults":[],"body":{"type":"BlockStatement","body":[]},"rest":null,"generator":false,"expression":false}}],"kind":"var"},{"type":"ReturnStatement","argument":{"type":"Identifier","name":"CLASS_NAME"}}]},"rest":null,"generator":false,"expression":false},"arguments":[]}}],"errors":[]},"exports-assign":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"AssignmentExpression","operator":"=","left":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"exports"},"property":{"type":"Identifier","name":"KEY"}},"right":{"type":"Identifier","name":"VALUE"}}}],"errors":[]},"exports-default":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"AssignmentExpression","operator":"=","left":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"exports"},"property":{"type":"Identifier","name":"default"}},"right":{"type":"Identifier","name":"VALUE"}}}],"errors":[]},"exports-require-assign-key":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"AssignmentExpression","operator":"=","left":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"exports"},"property":{"type":"Identifier","name":"VARIABLE_NAME"}},"right":{"type":"MemberExpression","computed":false,"object":{"type":"CallExpression","callee":{"type":"Identifier","name":"require"},"arguments":[{"type":"Identifier","name":"MODULE_NAME"}]},"property":{"type":"Identifier","name":"KEY"}}}}],"errors":[]},"exports-wildcard":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"FunctionExpression","id":null,"params":[{"type":"Identifier","name":"obj"}],"defaults":[],"body":{"type":"BlockStatement","body":[{"type":"ForInStatement","left":{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"i"},"init":null}],"kind":"var"},"right":{"type":"Identifier","name":"obj"},"body":{"type":"BlockStatement","body":[{"type":"ExpressionStatement","expression":{"type":"AssignmentExpression","operator":"=","left":{"type":"MemberExpression","computed":true,"object":{"type":"Identifier","name":"exports"},"property":{"type":"Identifier","name":"i"}},"right":{"type":"MemberExpression","computed":true,"object":{"type":"Identifier","name":"obj"},"property":{"type":"Identifier","name":"i"}}}}]},"each":false}]},"rest":null,"generator":false,"expression":false},"arguments":[{"type":"CallExpression","callee":{"type":"Identifier","name":"require"},"arguments":[{"type":"Identifier","name":"MODULE_NAME"}]}]}}],"errors":[]},"for-of":{"type":"Program","body":[{"type":"ForStatement","init":{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"ITERATOR_KEY"},"init":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":true,"object":{"type":"Identifier","name":"OBJECT"},"property":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"Symbol"},"property":{"type":"Identifier","name":"iterator"}}},"arguments":[]}},{"type":"VariableDeclarator","id":{"type":"Identifier","name":"STEP_KEY"},"init":null}],"kind":"var"},"test":{"type":"UnaryExpression","operator":"!","argument":{"type":"MemberExpression","computed":false,"object":{"type":"AssignmentExpression","operator":"=","left":{"type":"Identifier","name":"STEP_KEY"},"right":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"ITERATOR_KEY"},"property":{"type":"Identifier","name":"next"}},"arguments":[]}},"property":{"type":"Identifier","name":"done"}},"prefix":true},"update":null,"body":{"type":"BlockStatement","body":[]}}],"errors":[]},"function-return-obj":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"FunctionExpression","id":null,"params":[{"type":"Identifier","name":"KEY"}],"defaults":[],"body":{"type":"BlockStatement","body":[{"type":"ReturnStatement","argument":{"type":"Identifier","name":"KEY"}}]},"rest":null,"generator":false,"expression":false},"arguments":[{"type":"Identifier","name":"OBJECT"}]}}],"errors":[]},"if-undefined-set-to":{"type":"Program","body":[{"type":"IfStatement","test":{"type":"BinaryExpression","operator":"===","left":{"type":"Identifier","name":"VARIABLE"},"right":{"type":"Identifier","name":"undefined"}},"consequent":{"type":"ExpressionStatement","expression":{"type":"AssignmentExpression","operator":"=","left":{"type":"Identifier","name":"VARIABLE"},"right":{"type":"Identifier","name":"DEFAULT"}}},"alternate":null}],"errors":[]},"object-define-properties-closure":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"FunctionExpression","id":null,"params":[{"type":"Identifier","name":"KEY"}],"defaults":[],"body":{"type":"BlockStatement","body":[{"type":"ExpressionStatement","expression":{"type":"Identifier","name":"CONTENT"}},{"type":"ReturnStatement","argument":{"type":"Identifier","name":"KEY"}}]},"rest":null,"generator":false,"expression":false},"arguments":[{"type":"Identifier","name":"OBJECT"}]}}],"errors":[]},"object-define-properties":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"Object"},"property":{"type":"Identifier","name":"defineProperties"}},"arguments":[{"type":"Identifier","name":"OBJECT"},{"type":"Identifier","name":"PROPS"}]}}],"errors":[]},"prototype-identifier":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"CLASS_NAME"},"property":{"type":"Identifier","name":"prototype"}}}],"errors":[]},"require-assign-key":{"type":"Program","body":[{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"VARIABLE_NAME"},"init":{"type":"MemberExpression","computed":false,"object":{"type":"CallExpression","callee":{"type":"Identifier","name":"require"},"arguments":[{"type":"Identifier","name":"MODULE_NAME"}]},"property":{"type":"Identifier","name":"KEY"}}}],"kind":"var"}],"errors":[]},"require-assign":{"type":"Program","body":[{"type":"VariableDeclaration","declarations":[{"type":"VariableDeclarator","id":{"type":"Identifier","name":"VARIABLE_NAME"},"init":{"type":"CallExpression","callee":{"type":"Identifier","name":"require"},"arguments":[{"type":"Identifier","name":"MODULE_NAME"}]}}],"kind":"var"}],"errors":[]},"require":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"CallExpression","callee":{"type":"Identifier","name":"require"},"arguments":[{"type":"Identifier","name":"MODULE_NAME"}]}}],"errors":[]},"slice":{"type":"Program","body":[{"type":"ExpressionStatement","expression":{"type":"MemberExpression","computed":false,"object":{"type":"MemberExpression","computed":false,"object":{"type":"Identifier","name":"Array"},"property":{"type":"Identifier","name":"prototype"}},"property":{"type":"Identifier","name":"slice"}}}],"errors":[]}}
{"arguments-slice-assign-arg":{"type":"Program","start":0,"end":57,"body":[{"type":"VariableDeclaration","start":0,"end":57,"declarations":[{"type":"VariableDeclarator","start":4,"end":56,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"CallExpression","start":20,"end":56,"callee":{"type":"MemberExpression","start":20,"end":34,"object":{"type":"Identifier","start":20,"end":29,"name":"SLICE_KEY"},"property":{"type":"Identifier","start":30,"end":34,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":35,"end":44,"name":"arguments"},{"type":"Identifier","start":46,"end":55,"name":"SLICE_ARG"}]}}],"kind":"var"}]},"arguments-slice-assign":{"type":"Program","start":0,"end":46,"body":[{"type":"VariableDeclaration","start":0,"end":46,"declarations":[{"type":"VariableDeclarator","start":4,"end":45,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"CallExpression","start":20,"end":45,"callee":{"type":"MemberExpression","start":20,"end":34,"object":{"type":"Identifier","start":20,"end":29,"name":"SLICE_KEY"},"property":{"type":"Identifier","start":30,"end":34,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":35,"end":44,"name":"arguments"}]}}],"kind":"var"}]},"arguments-slice":{"type":"Program","start":0,"end":26,"body":[{"type":"ExpressionStatement","start":0,"end":26,"expression":{"type":"CallExpression","start":0,"end":25,"callee":{"type":"MemberExpression","start":0,"end":14,"object":{"type":"Identifier","start":0,"end":9,"name":"SLICE_KEY"},"property":{"type":"Identifier","start":10,"end":14,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":15,"end":24,"name":"arguments"}]}}]},"array-comprehension-container":{"type":"Program","start":0,"end":51,"body":[{"type":"ExpressionStatement","start":0,"end":51,"expression":{"type":"CallExpression","start":0,"end":50,"callee":{"type":"FunctionExpression","start":1,"end":47,"id":null,"params":[],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":13,"end":47,"body":[{"type":"VariableDeclaration","start":17,"end":30,"declarations":[{"type":"VariableDeclarator","start":21,"end":29,"id":{"type":"Identifier","start":21,"end":24,"name":"KEY"},"init":{"type":"ArrayExpression","start":27,"end":29,"elements":[]}}],"kind":"var"},{"type":"ReturnStatement","start":34,"end":45,"argument":{"type":"Identifier","start":41,"end":44,"name":"KEY"}}]},"expression":false},"arguments":[]}}]},"array-comprehension-filter":{"type":"Program","start":0,"end":94,"body":[{"type":"ExpressionStatement","start":0,"end":94,"expression":{"type":"CallExpression","start":0,"end":93,"callee":{"type":"MemberExpression","start":0,"end":53,"object":{"type":"CallExpression","start":0,"end":49,"callee":{"type":"MemberExpression","start":0,"end":12,"object":{"type":"Identifier","start":0,"end":5,"name":"ARRAY"},"property":{"type":"Identifier","start":6,"end":12,"name":"filter"},"computed":false},"arguments":[{"type":"FunctionExpression","start":13,"end":48,"id":null,"params":[{"type":"Identifier","start":23,"end":26,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":28,"end":48,"body":[{"type":"ReturnStatement","start":32,"end":46,"argument":{"type":"Identifier","start":39,"end":45,"name":"FILTER"}}]},"expression":false}]},"property":{"type":"Identifier","start":50,"end":53,"name":"map"},"computed":false},"arguments":[{"type":"FunctionExpression","start":54,"end":92,"id":null,"params":[{"type":"Identifier","start":64,"end":67,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":69,"end":92,"body":[{"type":"ReturnStatement","start":73,"end":90,"argument":{"type":"Identifier","start":80,"end":89,"name":"STATEMENT"}}]},"expression":false}]}}]},"array-comprehension-for-each":{"type":"Program","start":0,"end":35,"body":[{"type":"ExpressionStatement","start":0,"end":35,"expression":{"type":"CallExpression","start":0,"end":34,"callee":{"type":"MemberExpression","start":0,"end":13,"object":{"type":"Identifier","start":0,"end":5,"name":"ARRAY"},"property":{"type":"Identifier","start":6,"end":13,"name":"forEach"},"computed":false},"arguments":[{"type":"FunctionExpression","start":14,"end":33,"id":null,"params":[{"type":"Identifier","start":24,"end":27,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":29,"end":33,"body":[]},"expression":false}]}}]},"array-comprehension-map":{"type":"Program","start":0,"end":50,"body":[{"type":"ExpressionStatement","start":0,"end":50,"expression":{"type":"CallExpression","start":0,"end":49,"callee":{"type":"MemberExpression","start":0,"end":9,"object":{"type":"Identifier","start":0,"end":5,"name":"ARRAY"},"property":{"type":"Identifier","start":6,"end":9,"name":"map"},"computed":false},"arguments":[{"type":"FunctionExpression","start":10,"end":48,"id":null,"params":[{"type":"Identifier","start":20,"end":23,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":25,"end":48,"body":[{"type":"ReturnStatement","start":29,"end":46,"argument":{"type":"Identifier","start":36,"end":45,"name":"STATEMENT"}}]},"expression":false}]}}]},"array-push":{"type":"Program","start":0,"end":20,"body":[{"type":"ExpressionStatement","start":0,"end":20,"expression":{"type":"CallExpression","start":0,"end":19,"callee":{"type":"MemberExpression","start":0,"end":8,"object":{"type":"Identifier","start":0,"end":3,"name":"KEY"},"property":{"type":"Identifier","start":4,"end":8,"name":"push"},"computed":false},"arguments":[{"type":"Identifier","start":9,"end":18,"name":"STATEMENT"}]}}]},"call":{"type":"Program","start":0,"end":21,"body":[{"type":"ExpressionStatement","start":0,"end":21,"expression":{"type":"CallExpression","start":0,"end":20,"callee":{"type":"MemberExpression","start":0,"end":11,"object":{"type":"Identifier","start":0,"end":6,"name":"OBJECT"},"property":{"type":"Identifier","start":7,"end":11,"name":"call"},"computed":false},"arguments":[{"type":"Identifier","start":12,"end":19,"name":"CONTEXT"}]}}]},"class-super-constructor-call":{"type":"Program","start":0,"end":34,"body":[{"type":"ExpressionStatement","start":0,"end":34,"expression":{"type":"CallExpression","start":0,"end":33,"callee":{"type":"MemberExpression","start":0,"end":16,"object":{"type":"Identifier","start":0,"end":10,"name":"SUPER_NAME"},"property":{"type":"Identifier","start":11,"end":16,"name":"apply"},"computed":false},"arguments":[{"type":"ThisExpression","start":17,"end":21},{"type":"Identifier","start":23,"end":32,"name":"arguments"}]}}]},"class":{"type":"Program","start":0,"end":80,"body":[{"type":"ExpressionStatement","start":0,"end":80,"expression":{"type":"CallExpression","start":0,"end":80,"callee":{"type":"FunctionExpression","start":1,"end":77,"id":null,"params":[],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":13,"end":77,"body":[{"type":"VariableDeclaration","start":17,"end":53,"declarations":[{"type":"VariableDeclarator","start":21,"end":52,"id":{"type":"Identifier","start":21,"end":31,"name":"CLASS_NAME"},"init":{"type":"FunctionExpression","start":34,"end":52,"id":null,"params":[],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":46,"end":52,"body":[]},"expression":false}}],"kind":"var"},{"type":"ReturnStatement","start":57,"end":75,"argument":{"type":"Identifier","start":64,"end":74,"name":"CLASS_NAME"}}]},"expression":false},"arguments":[]}}]},"exports-assign-key":{"type":"Program","start":0,"end":35,"body":[{"type":"ExpressionStatement","start":0,"end":35,"expression":{"type":"AssignmentExpression","start":0,"end":34,"operator":"=","left":{"type":"MemberExpression","start":0,"end":21,"object":{"type":"Identifier","start":0,"end":7,"name":"exports"},"property":{"type":"Identifier","start":8,"end":21,"name":"VARIABLE_NAME"},"computed":false},"right":{"type":"MemberExpression","start":24,"end":34,"object":{"type":"Identifier","start":24,"end":30,"name":"OBJECT"},"property":{"type":"Identifier","start":31,"end":34,"name":"KEY"},"computed":false}}}]},"exports-assign":{"type":"Program","start":0,"end":20,"body":[{"type":"ExpressionStatement","start":0,"end":20,"expression":{"type":"AssignmentExpression","start":0,"end":19,"operator":"=","left":{"type":"MemberExpression","start":0,"end":11,"object":{"type":"Identifier","start":0,"end":7,"name":"exports"},"property":{"type":"Identifier","start":8,"end":11,"name":"KEY"},"computed":false},"right":{"type":"Identifier","start":14,"end":19,"name":"VALUE"}}}]},"exports-default":{"type":"Program","start":0,"end":24,"body":[{"type":"ExpressionStatement","start":0,"end":24,"expression":{"type":"AssignmentExpression","start":0,"end":23,"operator":"=","left":{"type":"MemberExpression","start":0,"end":15,"object":{"type":"Identifier","start":0,"end":7,"name":"exports"},"property":{"type":"Identifier","start":8,"end":15,"name":"default"},"computed":false},"right":{"type":"Identifier","start":18,"end":23,"name":"VALUE"}}}]},"exports-wildcard":{"type":"Program","start":0,"end":81,"body":[{"type":"ExpressionStatement","start":0,"end":81,"expression":{"type":"CallExpression","start":0,"end":80,"callee":{"type":"FunctionExpression","start":1,"end":71,"id":null,"params":[{"type":"Identifier","start":11,"end":14,"name":"obj"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":16,"end":71,"body":[{"type":"ForInStatement","start":20,"end":69,"left":{"type":"VariableDeclaration","start":25,"end":30,"declarations":[{"type":"VariableDeclarator","start":29,"end":30,"id":{"type":"Identifier","start":29,"end":30,"name":"i"},"init":null}],"kind":"var"},"right":{"type":"Identifier","start":34,"end":37,"name":"obj"},"body":{"type":"BlockStatement","start":39,"end":69,"body":[{"type":"ExpressionStatement","start":45,"end":65,"expression":{"type":"AssignmentExpression","start":45,"end":64,"operator":"=","left":{"type":"MemberExpression","start":45,"end":55,"object":{"type":"Identifier","start":45,"end":52,"name":"exports"},"property":{"type":"Identifier","start":53,"end":54,"name":"i"},"computed":true},"right":{"type":"MemberExpression","start":58,"end":64,"object":{"type":"Identifier","start":58,"end":61,"name":"obj"},"property":{"type":"Identifier","start":62,"end":63,"name":"i"},"computed":true}}}]}}]},"expression":false},"arguments":[{"type":"Identifier","start":73,"end":79,"name":"OBJECT"}]}}]},"extends":{"type":"Program","start":0,"end":235,"body":[{"type":"ExpressionStatement","start":0,"end":235,"expression":{"type":"FunctionExpression","start":1,"end":234,"id":null,"params":[{"type":"Identifier","start":11,"end":16,"name":"child"},{"type":"Identifier","start":18,"end":24,"name":"parent"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":26,"end":234,"body":[{"type":"ExpressionStatement","start":30,"end":204,"expression":{"type":"AssignmentExpression","start":30,"end":203,"operator":"=","left":{"type":"MemberExpression","start":30,"end":45,"object":{"type":"Identifier","start":30,"end":35,"name":"child"},"property":{"type":"Identifier","start":36,"end":45,"name":"prototype"},"computed":false},"right":{"type":"CallExpression","start":48,"end":203,"callee":{"type":"MemberExpression","start":48,"end":61,"object":{"type":"Identifier","start":48,"end":54,"name":"Object"},"property":{"type":"Identifier","start":55,"end":61,"name":"create"},"computed":false},"arguments":[{"type":"MemberExpression","start":62,"end":78,"object":{"type":"Identifier","start":62,"end":68,"name":"parent"},"property":{"type":"Identifier","start":69,"end":78,"name":"prototype"},"computed":false},{"type":"ObjectExpression","start":80,"end":202,"properties":[{"type":"Property","start":86,"end":198,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":86,"end":97,"name":"constructor"},"value":{"type":"ObjectExpression","start":99,"end":198,"properties":[{"type":"Property","start":107,"end":119,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":107,"end":112,"name":"value"},"value":{"type":"Identifier","start":114,"end":119,"name":"child"},"kind":"init"},{"type":"Property","start":127,"end":144,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":127,"end":137,"name":"enumerable"},"value":{"type":"Literal","start":139,"end":144,"value":false,"raw":"false"},"kind":"init"},{"type":"Property","start":152,"end":166,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":152,"end":160,"name":"writable"},"value":{"type":"Literal","start":162,"end":166,"value":true,"raw":"true"},"kind":"init"},{"type":"Property","start":174,"end":192,"method":false,"shorthand":false,"computed":false,"key":{"type":"Identifier","start":174,"end":186,"name":"configurable"},"value":{"type":"Literal","start":188,"end":192,"value":true,"raw":"true"},"kind":"init"}]},"kind":"init"}]}]}}},{"type":"ExpressionStatement","start":207,"end":232,"expression":{"type":"AssignmentExpression","start":207,"end":231,"operator":"=","left":{"type":"MemberExpression","start":207,"end":222,"object":{"type":"Identifier","start":207,"end":212,"name":"child"},"property":{"type":"Identifier","start":213,"end":222,"name":"__proto__"},"computed":false},"right":{"type":"Identifier","start":225,"end":231,"name":"parent"}}}]},"expression":false}}]},"for-of":{"type":"Program","start":0,"end":107,"body":[{"type":"ForStatement","start":0,"end":107,"init":{"type":"VariableDeclaration","start":5,"end":59,"declarations":[{"type":"VariableDeclarator","start":9,"end":49,"id":{"type":"Identifier","start":9,"end":21,"name":"ITERATOR_KEY"},"init":{"type":"CallExpression","start":24,"end":49,"callee":{"type":"MemberExpression","start":24,"end":47,"object":{"type":"Identifier","start":24,"end":30,"name":"OBJECT"},"property":{"type":"MemberExpression","start":31,"end":46,"object":{"type":"Identifier","start":31,"end":37,"name":"Symbol"},"property":{"type":"Identifier","start":38,"end":46,"name":"iterator"},"computed":false},"computed":true},"arguments":[]}},{"type":"VariableDeclarator","start":51,"end":59,"id":{"type":"Identifier","start":51,"end":59,"name":"STEP_KEY"},"init":null}],"kind":"var"},"test":{"type":"UnaryExpression","start":61,"end":99,"operator":"!","prefix":true,"argument":{"type":"MemberExpression","start":62,"end":99,"object":{"type":"AssignmentExpression","start":63,"end":93,"operator":"=","left":{"type":"Identifier","start":63,"end":71,"name":"STEP_KEY"},"right":{"type":"CallExpression","start":74,"end":93,"callee":{"type":"MemberExpression","start":74,"end":91,"object":{"type":"Identifier","start":74,"end":86,"name":"ITERATOR_KEY"},"property":{"type":"Identifier","start":87,"end":91,"name":"next"},"computed":false},"arguments":[]}},"property":{"type":"Identifier","start":95,"end":99,"name":"done"},"computed":false}},"update":null,"body":{"type":"BlockStatement","start":103,"end":107,"body":[]}}]},"function-return-obj":{"type":"Program","start":0,"end":42,"body":[{"type":"ExpressionStatement","start":0,"end":42,"expression":{"type":"CallExpression","start":0,"end":42,"callee":{"type":"FunctionExpression","start":1,"end":33,"id":null,"params":[{"type":"Identifier","start":11,"end":14,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":16,"end":33,"body":[{"type":"ReturnStatement","start":20,"end":31,"argument":{"type":"Identifier","start":27,"end":30,"name":"KEY"}}]},"expression":false},"arguments":[{"type":"Identifier","start":35,"end":41,"name":"OBJECT"}]}}]},"if-undefined-set-to":{"type":"Program","start":0,"end":47,"body":[{"type":"IfStatement","start":0,"end":47,"test":{"type":"BinaryExpression","start":4,"end":26,"left":{"type":"Identifier","start":4,"end":12,"name":"VARIABLE"},"operator":"===","right":{"type":"Identifier","start":17,"end":26,"name":"undefined"}},"consequent":{"type":"ExpressionStatement","start":28,"end":47,"expression":{"type":"AssignmentExpression","start":28,"end":46,"operator":"=","left":{"type":"Identifier","start":28,"end":36,"name":"VARIABLE"},"right":{"type":"Identifier","start":39,"end":46,"name":"DEFAULT"}}},"alternate":null}]},"object-define-properties-closure":{"type":"Program","start":0,"end":54,"body":[{"type":"ExpressionStatement","start":0,"end":54,"expression":{"type":"CallExpression","start":0,"end":53,"callee":{"type":"FunctionExpression","start":1,"end":44,"id":null,"params":[{"type":"Identifier","start":11,"end":14,"name":"KEY"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":16,"end":44,"body":[{"type":"ExpressionStatement","start":20,"end":28,"expression":{"type":"Identifier","start":20,"end":27,"name":"CONTENT"}},{"type":"ReturnStatement","start":31,"end":42,"argument":{"type":"Identifier","start":38,"end":41,"name":"KEY"}}]},"expression":false},"arguments":[{"type":"Identifier","start":46,"end":52,"name":"OBJECT"}]}}]},"object-define-properties":{"type":"Program","start":0,"end":39,"body":[{"type":"ExpressionStatement","start":0,"end":39,"expression":{"type":"CallExpression","start":0,"end":38,"callee":{"type":"MemberExpression","start":0,"end":23,"object":{"type":"Identifier","start":0,"end":6,"name":"Object"},"property":{"type":"Identifier","start":7,"end":23,"name":"defineProperties"},"computed":false},"arguments":[{"type":"Identifier","start":24,"end":30,"name":"OBJECT"},{"type":"Identifier","start":32,"end":37,"name":"PROPS"}]}}]},"prototype-identifier":{"type":"Program","start":0,"end":20,"body":[{"type":"ExpressionStatement","start":0,"end":20,"expression":{"type":"MemberExpression","start":0,"end":20,"object":{"type":"Identifier","start":0,"end":10,"name":"CLASS_NAME"},"property":{"type":"Identifier","start":11,"end":20,"name":"prototype"},"computed":false}}]},"require-assign-key":{"type":"Program","start":0,"end":45,"body":[{"type":"VariableDeclaration","start":0,"end":45,"declarations":[{"type":"VariableDeclarator","start":4,"end":44,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"MemberExpression","start":20,"end":44,"object":{"type":"CallExpression","start":20,"end":40,"callee":{"type":"Identifier","start":20,"end":27,"name":"require"},"arguments":[{"type":"Identifier","start":28,"end":39,"name":"MODULE_NAME"}]},"property":{"type":"Identifier","start":41,"end":44,"name":"KEY"},"computed":false}}],"kind":"var"}]},"require-assign":{"type":"Program","start":0,"end":41,"body":[{"type":"VariableDeclaration","start":0,"end":41,"declarations":[{"type":"VariableDeclarator","start":4,"end":40,"id":{"type":"Identifier","start":4,"end":17,"name":"VARIABLE_NAME"},"init":{"type":"CallExpression","start":20,"end":40,"callee":{"type":"Identifier","start":20,"end":27,"name":"require"},"arguments":[{"type":"Identifier","start":28,"end":39,"name":"MODULE_NAME"}]}}],"kind":"var"}]},"require":{"type":"Program","start":0,"end":21,"body":[{"type":"ExpressionStatement","start":0,"end":21,"expression":{"type":"CallExpression","start":0,"end":20,"callee":{"type":"Identifier","start":0,"end":7,"name":"require"},"arguments":[{"type":"Identifier","start":8,"end":19,"name":"MODULE_NAME"}]}}]},"slice":{"type":"Program","start":0,"end":22,"body":[{"type":"ExpressionStatement","start":0,"end":22,"expression":{"type":"MemberExpression","start":0,"end":21,"object":{"type":"MemberExpression","start":0,"end":15,"object":{"type":"Identifier","start":0,"end":5,"name":"Array"},"property":{"type":"Identifier","start":6,"end":15,"name":"prototype"},"computed":false},"property":{"type":"Identifier","start":16,"end":21,"name":"slice"},"computed":false}}]},"umd-runner-body":{"type":"Program","start":0,"end":204,"body":[{"type":"ExpressionStatement","start":0,"end":204,"expression":{"type":"FunctionExpression","start":1,"end":202,"id":null,"params":[{"type":"Identifier","start":11,"end":18,"name":"factory"}],"defaults":[],"rest":null,"generator":false,"body":{"type":"BlockStatement","start":20,"end":202,"body":[{"type":"IfStatement","start":24,"end":200,"test":{"type":"LogicalExpression","start":28,"end":70,"left":{"type":"BinaryExpression","start":28,"end":56,"left":{"type":"UnaryExpression","start":28,"end":41,"operator":"typeof","prefix":true,"argument":{"type":"Identifier","start":35,"end":41,"name":"define"}},"operator":"===","right":{"type":"Literal","start":46,"end":56,"value":"function","raw":"\"function\""}},"operator":"&&","right":{"type":"MemberExpression","start":60,"end":70,"object":{"type":"Identifier","start":60,"end":66,"name":"define"},"property":{"type":"Identifier","start":67,"end":70,"name":"amd"},"computed":false}},"consequent":{"type":"BlockStatement","start":72,"end":113,"body":[{"type":"ExpressionStatement","start":78,"end":109,"expression":{"type":"CallExpression","start":78,"end":108,"callee":{"type":"Identifier","start":78,"end":84,"name":"define"},"arguments":[{"type":"Identifier","start":85,"end":98,"name":"AMD_ARGUMENTS"},{"type":"Identifier","start":100,"end":107,"name":"factory"}]}}]},"alternate":{"type":"IfStatement","start":119,"end":200,"test":{"type":"BinaryExpression","start":123,"end":153,"left":{"type":"UnaryExpression","start":123,"end":137,"operator":"typeof","prefix":true,"argument":{"type":"Identifier","start":130,"end":137,"name":"exports"}},"operator":"!==","right":{"type":"Literal","start":142,"end":153,"value":"undefined","raw":"\"undefined\""}},"consequent":{"type":"BlockStatement","start":155,"end":200,"body":[{"type":"ExpressionStatement","start":161,"end":196,"expression":{"type":"CallExpression","start":161,"end":195,"callee":{"type":"Identifier","start":161,"end":168,"name":"factory"},"arguments":[{"type":"Identifier","start":169,"end":176,"name":"exports"},{"type":"Identifier","start":178,"end":194,"name":"COMMON_ARGUMENTS"}]}}]},"alternate":null}}]},"expression":false}}]},"umd":{"type":"Program","start":0,"end":0,"body":[]}}
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