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

visitor-as

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

visitor-as - npm Package Compare versions

Comparing version 0.5.1-0 to 0.6.0

dist/examples/functionCallTransform.js

2

dist/decorator.js

@@ -51,2 +51,2 @@ "use strict";

exports.VariableDecorator = VariableDecorator;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2RlY29yYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQ0FBdUU7QUFZdkUsbUNBQWtFO0FBRWxFLFNBQWdCLGlCQUFpQixDQUFDLFNBQTJCO0lBQzNELGlCQUFpQixDQUFDLGVBQWUsQ0FBQyxTQUFTLENBQUMsQ0FBQztJQUM3QyxPQUFPLGlCQUFpQixDQUFDO0FBQzNCLENBQUM7QUFIRCw4Q0FHQztBQU9ELE1BQWEsaUJBQWtCLFNBQVEsa0NBQW9CO0lBR3pELE1BQU0sQ0FBQyxlQUFlLENBQUMsT0FBeUI7UUFDOUMsaUJBQWlCLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQztJQUN2QyxDQUFDO0lBRUQsSUFBWSxPQUFPO1FBQ2pCLE9BQU8saUJBQWlCLENBQUMsUUFBUSxDQUFDO0lBQ3BDLENBQUM7SUFFRCxrQkFBa0IsQ0FBQyxJQUFtQjtRQUNwQyxJQUFJLGlCQUFTLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLEVBQUU7WUFDdEMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxXQUFXLEdBQUcsSUFBSSxDQUFDLGlCQUFpQixDQUFDO1lBQ2xELElBQUksQ0FB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7XG59XG4iXX0=
"use strict";
const utils_1 = require("../utils");
const decorator_1 = require("../decorator");

@@ -12,13 +11,11 @@ class CapitalizeVisitor extends decorator_1.VariableDecorator {

visitStringLiteralExpression(node) {
const newNode = utils_1.cloneNode(node);
newNode.value = node.value.toUpperCase();
this.replaceCurrentNode(newNode);
this.stdout.write(node.value + " -> " + newNode.value + "\n");
const oldValue = node.value;
node.value = node.value.toUpperCase();
this.stdout.write(oldValue + " -> " + node.value + "\n");
}
visitTemplateLiteralExpression(node) {
if (node.parts.length == 1 && node.expressions.length == 0) {
const newNode = utils_1.cloneNode(node);
newNode.parts[0] = node.parts[0].toUpperCase();
this.replaceCurrentNode(newNode);
this.stdout.write(node.parts[0] + " -> " + newNode.parts[0] + "\n");
const oldValue = node.parts[0];
node.parts[0] = node.parts[0].toUpperCase();
this.stdout.write(oldValue + " -> " + node.parts[0] + "\n");
}

@@ -28,2 +25,2 @@ }

module.exports = decorator_1.registerDecorator(new CapitalizeVisitor());
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FwaXRhbGl6ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGFtcGxlcy9jYXBpdGFsaXplLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQ0FBcUM7QUFDckMsNENBQW9FO0FBR3BFLE1BQU0saUJBQWtCLFNBQVEsNkJBQWlCO0lBQy9DLHdCQUF3QixDQUFDLElBQXlCO1FBQ2hELElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxDQUFDO0lBQy9CLENBQUM7SUFFRCxJQUFJLElBQUk7UUFDTixPQUFPLFlBQVksQ0FBQztJQUN0QixDQUFDO0lBRUQsNEJBQTRCLENBQUMsSUFBNkI7UUFDeEQsTUFBTSxPQUFPLEdBQUcsaUJBQVMsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQU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mVzc2lvbj5kZWNvcmF0b3IuYXJnc1swXSkudmFsdWU7XG59XG5cbmNsYXNzIFRyYW5zZm9ybWVyIGV4dGVuZHMgVHJhbnNmb3JtIHtcbiAgYWZ0ZXJJbml0aWFsaXplKHByb2dyYW06IFByb2dyYW0pOiB2b2lkIHtcbiAgICBsZXQgZmlsZXMgPSBBcnJheS5mcm9tKHByb2dyYW0uZmlsZXNCeU5hbWUudmFsdWVzKCkpLmZpbHRlcihcbiAgICAgIChmaWxlKSA9PiBpc1VzZXJFbnRyeShmaWxlLnNvdXJjZSkgJiYgIWlzTGlicmFyeShmaWxlLnNvdXJjZSlcbiAgICApO1xuICAgIGZvciAobGV0IGZpbGUgb2YgZmlsZXMpIHtcbiAgICAgIGZvciAobGV0IF9leHBvcnQgb2YgZmlsZS5leHBvcnRzPy52YWx1ZXMoKSB8fCBbXSkge1xuICAgICAgICBpZiAoX2V4cG9ydCAhPSBudWxsICYmIGhhc0RlY29yYXRvcihfZXhwb3J0LCBcImV4cG9ydEFzXCIpKSB7XG4gICAgICAgICAgbGV0IG5ld05hbWUgPSBnZXROYW1lKF9leHBvcnQpO1xuICAgICAgICAgICAgZmlsZS5leHBvcnRzPy5kZWxldGUoX2V4cG9ydC5uYW1lKTtcbiAgICAgICAgICAgIGZpbGUuZXhwb3J0cz8uc2V0KG5ld05hbWUsIF9leHBvcnQpO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuICB9XG59XG5cbmV4cG9ydCA9IFRyYW5zZm9ybWVyO1xuIl19

@@ -41,2 +41,2 @@ "use strict";

module.exports = IncludeBytesTransform;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5jbHVkZUJ5dGVzVHJhbnNmb3JtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2V4YW1wbGVzL2luY2x1ZGVCeXRlc1RyYW5zZm9ybS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbm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ByZXNzaW9uXG4gICAgICAgIHJlcy5yYW5nZSA9IG5vZGUucmFuZ2U7IC8vc2FtZSByYW5nZVxuICAgICAgICByZXR1cm4gcmVzOyAvL3JlcGxhY2Ugbm9kZVxuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gc3VwZXIudmlzaXRDYWxsRXhwcmVzc2lvbihub2RlKTtcbiAgfVxuXG4gIGFmdGVyUGFyc2UoXzogUGFyc2VyKTogdm9pZCB7XG4gICAgbGV0IHNvdXJjZXMgPSBfLnNvdXJjZXMuZmlsdGVyKG5vdChpc0xpYnJhcnkpKTtcbiAgICB0aGlzLnZpc2l0KHNvdXJjZXMpO1xuICB9XG59XG5cbmV4cG9ydCA9IEluY2x1ZGVCeXRlc1RyYW5zZm9ybTtcbiJdfQ==

@@ -7,13 +7,13 @@ "use strict";

if (!node.name)
console.log(utils_1.toString(node) + "\n");
const name = utils_1.toString(node.name);
const _type = utils_1.toString(node.type);
console.log(utils_1.getName(node) + "\n");
const name = utils_1.getName(node);
const _type = utils_1.getName(node.type);
this.stdout.write(name + ": " + _type + "\n");
}
visitMethodDeclaration(node) {
const name = utils_1.toString(node.name);
const name = utils_1.getName(node);
if (name == "constructor") {
return;
}
const sig = utils_1.toString(node.signature);
const sig = utils_1.getName(node.signature);
this.stdout.write(name + ": " + sig + "\n");

@@ -29,2 +29,2 @@ }

module.exports = decorator_1.registerDecorator(new ListMembers());
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leGFtcGxlcy9saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFLQSw0Q0FBaUU7QUFDakUsb0NBQW9DO0FBRXBDLE1BQU0sV0FBWSxTQUFRLDBCQUFjO0lBQ3RDLHFCQUFxQixDQUFDLElBQXNCO1FBQzFDLElBQUksQ0FBQyxJQUFJLENBQUMsS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tcbiAgICB0aGlzLnN0ZG91dC53cml0ZShuYW1lICsgXCI6IFwiICsgX3R5cGUgKyBcIlxcblwiKTtcbiAgfVxuXG4gIHZpc2l0TWV0aG9kRGVjbGFyYXRpb24obm9kZTogTWV0aG9kRGVjbGFyYXRpb24pOiB2b2lkIHtcbiAgICBjb25zdCBuYW1lID0gZ2V0TmFtZShub2RlKTtcbiAgICBpZiAobmFtZSA9PSBcImNvbnN0cnVjdG9yXCIpIHtcbiAgICAgIHJldHVybjtcbiAgICB9XG4gICAgY29uc3Qgc2lnID0gZ2V0TmFtZShub2RlLnNpZ25hdHVyZSk7XG4gICAgdGhpcy5zdGRvdXQud3JpdGUobmFtZSArIFwiOiBcIiArIHNpZyArIFwiXFxuXCIpO1xuICB9XG5cbiAgdmlzaXRDbGFzc0RlY2xhcmF0aW9uKG5vZGU6IENsYXNzRGVjbGFyYXRpb24pOiB2b2lkIHtcbiAgICB0aGlzLnZpc2l0KG5vZGUubWVtYmVycyk7XG4gIH1cblxuICBnZXQgbmFtZSgpOiBzdHJpbmcge1xuICAgIHJldHVybiBcImxpc3RcIjtcbiAgfVxufVxuXG5leHBvcnQgPSByZWdpc3RlckRlY29yYXRvcihuZXcgTGlzdE1lbWJlcnMoKSk7XG4iXX0=
export * from "./base";
export * from "./transformer";
export * from "./baseTransform";
export * from "./visitor";

@@ -4,0 +5,0 @@ export * from "./astBuilder";

@@ -16,2 +16,3 @@ "use strict";

__exportStar(require("./transformer"), exports);
__exportStar(require("./baseTransform"), exports);
__exportStar(require("./visitor"), exports);

@@ -24,2 +25,2 @@ __exportStar(require("./astBuilder"), exports);

exports.utils = utils;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLHlDQUF1QjtB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RlO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG59XG4iXX0=

@@ -1,7 +0,9 @@

import { Expression, Statement } from "../as";
import { Expression, Statement, NamespaceDeclaration, ClassDeclaration, DeclarationStatement } from "../as";
export declare class SimpleParser {
private static parser;
private static get parser();
private static getTokenizer;
static parseExpression(s: string): Expression;
static parseStatement(s: string, topLevel?: boolean): Statement;
static parseTopLevelStatement(s: string, namespace?: NamespaceDeclaration | null): Statement;
static parseClassMember(s: string, _class: ClassDeclaration): DeclarationStatement;
}

@@ -6,7 +6,10 @@ "use strict";

class SimpleParser {
static getTokenizer(s) {
return new as_1.Tokenizer(new as_1.Source(as_1.SourceKind.USER, "index.ts", s));
static get parser() {
return new as_1.Parser();
}
static getTokenizer(s, file = "index.ts") {
return new as_1.Tokenizer(new as_1.Source(as_1.SourceKind.USER, file, s));
}
static parseExpression(s) {
let res = this.parser.parseExpression(this.getTokenizer(s));
const res = this.parser.parseExpression(this.getTokenizer(s));
if (res == null) {

@@ -18,3 +21,3 @@ throw new Error("Failed to parse the expression: '" + s + "'");

static parseStatement(s, topLevel = false) {
let res = this.parser.parseStatement(this.getTokenizer(s), topLevel);
const res = this.parser.parseStatement(this.getTokenizer(s), topLevel);
if (res == null) {

@@ -25,5 +28,18 @@ throw new Error("Failed to parse the statement: '" + s + "'");

}
static parseTopLevelStatement(s, namespace) {
const res = this.parser.parseTopLevelStatement(this.getTokenizer(s), namespace);
if (res == null) {
throw new Error("Failed to parse the top level statement: '" + s + "'");
}
return res;
}
static parseClassMember(s, _class) {
let res = this.parser.parseClassMember(this.getTokenizer(s, _class.range.source.normalizedPath), _class);
if (res == null) {
throw new Error("Failed to parse the class member: '" + s + "'");
}
return res;
}
}
exports.SimpleParser = SimpleParser;
SimpleParser.parser = new as_1.Parser();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlUGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiL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VNUQnVpbGRlciwgVHJhbnNmb3JtKSB7fVxuXG5leHBvcnQgY2xhc3MgUGF0aFRyYW5zZm9ybVZpc2l0b3IgZXh0ZW5kcyBNaXhpbihQYXRoVmlzaXRvciwgVHJhbnNmb3JtKSB7fVxuXG5leHBvcnQgZnVuY3Rpb24gbWVyZ2VUcmFuc2Zvcm1lcihmcm9tOiBUcmFuc2Zvcm0sIHRvOiBUcmFuc2Zvcm0pOiB2b2lkIHtcbiAgLy8gQHRzLWlnbm9yZVxuICB0by5wcm9ncmFtID0gZnJvbS5wcm9ncmFtO1xuICAvLyBAdHMtaWdub3JlXG4gIHRvLmJhc2VEaXIgPSBmcm9tLmJhc2VEaXI7XG4gIC8vIEB0cy1pZ25vcmVcbiAgdG8uc3Rkb3V0ID0gZnJvbS5zdGRvdXQ7XG4gIC8vIEB0cy1pZ25vcmVcbiAgdG8uc3RkZXJyID0gZnJvbS5zdGRlcnI7XG4gIC8vIEB0cy1pZ25vcmVcbiAgdG8ubG9nID0gZnJvbS5sb2c7XG4gIHRvLndyaXRlRmlsZSA9IGZyb20ud3JpdGVGaWxlO1xuICB0by5yZWFkRmlsZSA9IGZyb20ucmVhZEZpbGU7XG4gIHRvLmxpc3RGaWxlcyA9IGZyb20ubGlzdEZpbGVzO1xufVxuXG5leHBvcnQgY2xhc3MgVHJhbnNmb3JtVmlzaXRvciBleHRlbmRzIE1peGluKEJhc2VUcmFuc2Zvcm1WaXNpdG9yLCBUcmFuc2Zvcm0pIHt9Il19

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

import { DecoratorNode, DeclarationStatement, Source, Node } from "../as";
import { DecoratorNode, IdentifierExpression, DeclarationStatement, Source, Node, ClassDeclaration, TypeNode, InterfaceDeclaration } from "../as";
export declare function decorates(node: DecoratorNode, name: string): boolean;

@@ -11,3 +11,16 @@ export declare function isDecorator(name: string): (node: DecoratorNode) => boolean;

export declare function toString(node: Node): string;
interface Named {
name: IdentifierExpression;
}
export declare function getName(node: Node & Named | TypeNode): string;
export declare function cloneNode<T extends Node>(node: T): T;
export declare function isUserEntry(source: Source): boolean;
export declare function className(_class: ClassDeclaration | InterfaceDeclaration): string;
export declare function isMethodNamed(name: string): (_: DeclarationStatement) => boolean;
export declare class StringBuilder {
private sb;
push(s: string): void;
finish(separator?: string): string;
get last(): string;
}
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isUserEntry = exports.cloneNode = exports.toString = exports.not = exports.isLibrary = exports.getDecorator = exports.hasDecorator = exports.isDecorator = exports.decorates = void 0;
exports.StringBuilder = exports.isMethodNamed = exports.className = exports.isUserEntry = exports.cloneNode = exports.getName = exports.toString = exports.not = exports.isLibrary = exports.getDecorator = exports.hasDecorator = exports.isDecorator = exports.decorates = void 0;
const as_1 = require("../as");

@@ -45,2 +45,12 @@ const astBuilder_1 = require("./astBuilder");

exports.toString = toString;
function getName(node) {
if (node instanceof as_1.TypeNode) {
return node.range.toString();
}
if (node instanceof as_1.ClassDeclaration || node instanceof as_1.InterfaceDeclaration) {
return className(node);
}
return node.name.range.toString();
}
exports.getName = getName;
function cloneNode(node) {

@@ -54,2 +64,30 @@ return cloneDeep(node);

exports.isUserEntry = isUserEntry;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOEJBT2U7QUFDZiw2Q0FBMEM7QUFFMUMsTUFBTSxTQUFTLEdBQW1CLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0FBRTlELFNBQWdCLFNBQVMsQ0FBQyxJQUFtQixFQUFFLElBQVk7SUFDekQsT0FBOEIsSUFBSSxDQUFDLElBQUssQ0FBQyxJQUFJLEtBQUssSUFBSSxDQUFDO0FBQ3pELENBQUM7QUFGRCw4QkFFQztBQUVELFNBQWdCLFdBQVcsQ0FBQyxJQUFZ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XHJcbn1cclxuXHJcbmV4cG9ydCBmdW5jdGlvbiB0b1N0cmluZyhub2RlOiBOb2RlKTogc3RyaW5nIHtcclxuICByZXR1cm4gQVNUQnVpbGRlci5idWlsZChub2RlKTtcclxufVxyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIGNsb25lTm9kZTxUIGV4dGVuZHMgTm9kZT4obm9kZTogVCk6IFQge1xyXG4gIHJldHVybiBjbG9uZURlZXAobm9kZSk7XHJcbn1cclxuXHJcbmV4cG9ydCBmdW5jdGlvbiBpc1VzZXJFbnRyeShzb3VyY2U6IFNvdXJjZSk6IGJvb2xlYW4ge1xyXG4gIHJldHVybiBzb3VyY2Uuc291cmNlS2luZCA9PSBTb3VyY2VLaW5kLlVTRVJfRU5UUlk7XHJcbn1cclxuIl19
function className(_class) {
let name = _class.name.range.toString();
const typeParameters = _class.typeParameters;
if (typeParameters) {
name += `<${typeParameters.map(getName).join(", ")}>`;
}
return name;
}
exports.className = className;
function isMethodNamed(name) {
return (stmt) => stmt.kind == as_1.NodeKind.METHODDECLARATION && toString(stmt.name) === name;
}
exports.isMethodNamed = isMethodNamed;
class StringBuilder {
constructor() {
this.sb = [];
}
push(s) {
this.sb.push(s);
}
finish(separator = "\n") {
let res = this.sb.join(separator);
this.sb = [];
return res;
}
get last() { return this.sb[this.sb.length - 1]; }
}
exports.StringBuilder = StringBuilder;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOEJBWWU7QUFDZiw2Q0FBMEM7QUFFMUMsTUFBTSxTQUFTLEdBQW1CLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO0FBRTlELFNBQWdCLFNBQVMsQ0FBQyxJQUFtQixFQUFFLElBQVk7SUFDekQsT0FBOEIsSUFBS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ZTtcbn1cblxuZXhwb3J0IGNsYXNzIFN0cmluZ0J1aWxkZXIge1xuICBwcml2YXRlIHNiOiBzdHJpbmdbXSA9IFtdO1xuXG4gIHB1c2goczogc3RyaW5nKTogdm9pZCB7XG4gICAgdGhpcy5zYi5wdXNoKHMpO1xuICB9XG5cbiAgZmluaXNoKHNlcGFyYXRvciA9IFwiXFxuXCIpOiBzdHJpbmcge1xuICAgIGxldCByZXMgPSB0aGlzLnNiLmpvaW4oc2VwYXJhdG9yKTtcbiAgICB0aGlzLnNiID0gW107XG4gICAgcmV0dXJuIHJlcztcbiAgfVxuXG4gIGdldCAgbGFzdCgpOiBzdHJpbmcgeyByZXR1cm4gdGhpcy5zYlt0aGlzLnNiLmxlbmd0aCAtMV19XG59Il19

@@ -69,2 +69,2 @@ "use strict";

exports.AbstractTransformVisitor = AbstractTransformVisitor;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlzaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy92aXNpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQU9BLFNBQVMsVUFBVSxDQUFJLE1BQVM7SUFDOUIsYUFBYTtJQUNiLE9BQU8sTUFBTSxJQUFJLElBQUksSUFBSSxPQUFPLE1BQU0sQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLEtBQUssVUFBVSxDQUFDO0FBQ3pFLENBQUM7QUFDRDs7OztHQUlHO0FBQ0gsTUFBc0IsZUFBZTtJQUNuQyxLQUFLLENBQUMsSUFBMEI7UUFDOUIsSUFBSSxJQUFJLElBQUksSUFBSTtZQUFFLE9BQU87UUFDekIsSUFBSSxJQUFJLFlBQVksS0FBSyxFQUFFO1lBQ3pCLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLEVBQUUsRUFBRSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFD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0dXJuIG51bGw7XG4gICAgaWYgKG5vZGUgaW5zdGFuY2VvZiBBcnJheSkge1xuICAgICAgcmV0dXJuIG5vZGUubWFwKChub2RlKSA9PiB0aGlzLnZpc2l0KG5vZGUpIGFzIFQpO1xuICAgIH0gZWxzZSBpZiAobm9kZSBpbnN0YW5jZW9mIE1hcCkge1xuICAgICAgbGV0IHJlcyA9IG5ldyBNYXAoKTtcbiAgICAgIGZvciAobGV0IFtrZXksIF9ub2RlXSBvZiBub2RlLmVudHJpZXMoKSkge1xuICAgICAgICByZXMuc2V0KGtleSwgdGhpcy52aXNpdChfbm9kZSkpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHJlcztcbiAgICB9IGVsc2UgaWYgKGlzSXRlcmFibGUobm9kZSkpIHtcbiAgICAgIGxldCByZXM6IFRbXSA9IFtdO1xuICAgICAgLy8gVE9ETzogRmluZCBiZXR0ZXIgd2F5IHRvIHRlc3QgaWYgaXRlcmFibGVcbiAgICAgIC8vIEB0cy1pZ25vcmUgaXMgaXRlcmFibGVcbiAgICAgIGZvciAobGV0IF9ub2RlIG9mIG5vZGUpIHtcbiAgICAgICAgcmVzLnB1c2godGhpcy52aXNpdChfbm9kZSkgYXMgVCk7XG4gICAgICB9XG4gICAgICByZXR1cm4gcmVzO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLy8gQHRzLWlnbm9yZSBOb2RlIGlzIG5vdCBpdGVyYWJsZS5cbiAgICAgIHJldHVybiB0aGlzLl92aXNpdChub2RlKTtcbiAgICB9XG4gIH1cblxuICBwcm90ZWN0ZWQgYWJzdHJhY3QgX3Zpc2l0KG5vZGU6IFQpOiBUO1xufSJdfQ==
{
"name": "visitor-as",
"version": "0.5.1-0",
"version": "0.6.0",
"description": "A generic visitor framework for AssemblyScript",

@@ -21,3 +21,3 @@ "main": "dist",

"@types/jest": "^25.1.4",
"@types/node": "^13.9.1",
"@types/node": "^15.3.1",
"assemblyscript": "^0.18.31",

@@ -24,0 +24,0 @@ "jest": "^25.1.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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