visitor-as
Advanced tools
Comparing version 0.10.2 to 0.11.0
@@ -1,2 +0,1 @@ | ||
import { LiteralKind, } from "assemblyscript/dist/assemblyscript.js"; | ||
import { Transform } from "assemblyscript/dist/transform.js"; | ||
@@ -12,3 +11,3 @@ import { getDecorator, hasDecorator, isLibrary, isUserEntry } from "../utils.js"; | ||
} | ||
if (!decorator.args[0].isLiteralKind(LiteralKind.STRING)) { | ||
if (!decorator.args[0].isLiteralKind(2 /* LiteralKind.String */)) { | ||
throw Error("exportAs expects a string argument"); | ||
@@ -33,2 +32,2 @@ } | ||
export default Transformer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwb3J0QXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZXhhbXBsZXMvZXhwb3J0QXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFdBQVcsR0FJWixNQUFNLHVDQUF1QyxDQUFDO0FBQy9DLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUM3RCxPQUFPLEVBQUUsWUFBWSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBRWpGLFNBQVMsT0FBTyxDQUFDLE9BQXdCO0lBQ3ZDLElBQUksU0FBUyxHQUFHLFlBQVksQ0FBQyxPQUFPLENBQUMsV0FBVyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0lBQzlELElBQUksU0FBUyxDQUFDLElBQUksSUFBSSxJQUFJLEVBQUU7UUFDMUIsTUFBTSxLQUFLLENBQUMsa0RBQWtELENBQUMsQ0FBQztLQUNqRTtJQUNELElBQUksU0FBUyxDQUFDLElBQUksQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO1FBQzlCLE1BQU0sS0FBSyxDQUFDLHVDQUF1QyxTQUFTLENBQUMs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cnJheS5mcm9tKHByb2dyYW0uZmlsZXNCeU5hbWUudmFsdWVzKCkpLmZpbHRlcihcclxuICAgICAgKGZpbGUpID0+IGlzVXNlckVudHJ5KGZpbGUuc291cmNlKSAmJiAhaXNMaWJyYXJ5KGZpbGUuc291cmNlKVxyXG4gICAgKTtcclxuICAgIGZvciAobGV0IGZpbGUgb2YgZmlsZXMpIHtcclxuICAgICAgZm9yIChsZXQgX2V4cG9ydCBvZiBmaWxlLmV4cG9ydHM/LnZhbHVlcygpIHx8IFtdKSB7XHJcbiAgICAgICAgaWYgKF9leHBvcnQgIT0gbnVsbCAmJiBoYXNEZWNvcmF0b3IoX2V4cG9ydCwgXCJleHBvcnRBc1wiKSkge1xyXG4gICAgICAgICAgbGV0IG5ld05hbWUgPSBnZXROYW1lKF9leHBvcnQpO1xyXG4gICAgICAgICAgZmlsZS5leHBvcnRzPy5kZWxldGUoX2V4cG9ydC5uYW1lKTtcclxuICAgICAgICAgIGZpbGUuZXhwb3J0cz8uc2V0KG5ld05hbWUsIF9leHBvcnQpO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxufVxyXG5cclxuZXhwb3J0IGRlZmF1bHQgVHJhbnNmb3JtZXI7XHJcbiJdfQ== |
import { TransformVisitor, SimpleParser } from "../index.js"; | ||
import { IdentifierExpression, LiteralKind, } from "assemblyscript/dist/assemblyscript.js"; | ||
import { IdentifierExpression, } from "assemblyscript/dist/assemblyscript.js"; | ||
import { not, isStdlib } from "../utils.js"; | ||
@@ -10,3 +10,3 @@ import * as path from "path"; | ||
if (node.expression.text == "includeBytes") { | ||
if (!node.args[0].isLiteralKind(LiteralKind.STRING)) | ||
if (!node.args[0].isLiteralKind(2 /* LiteralKind.String */)) | ||
throw "[Error] includeBytes requires a constant literal filename"; | ||
@@ -41,2 +41,2 @@ let arg0 = node.args[0]; | ||
export default IncludeBytesTransform; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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oXzogUGFyc2VyKTogdm9pZCB7XHJcbiAgICBsZXQgc291cmNlcyA9IF8uc291cmNlcy5maWx0ZXIobm90KGlzU3RkbGliKSk7XHJcbiAgICB0aGlzLnZpc2l0KHNvdXJjZXMpO1xyXG4gIH1cclxufVxyXG5cclxuZXhwb3J0IGRlZmF1bHQgSW5jbHVkZUJ5dGVzVHJhbnNmb3JtO1xyXG4iXX0= |
@@ -1,2 +0,2 @@ | ||
import { Parser, Tokenizer, Source, SourceKind, } from "assemblyscript/dist/assemblyscript.js"; | ||
import { Parser, Tokenizer, Source, } from "assemblyscript/dist/assemblyscript.js"; | ||
export class SimpleParser { | ||
@@ -7,3 +7,3 @@ static get parser() { | ||
static getTokenizer(s, file = "index.ts") { | ||
return new Tokenizer(new Source(SourceKind.USER, file, s)); | ||
return new Tokenizer(new Source(0 /* SourceKind.User */, file, s)); | ||
} | ||
@@ -39,2 +39,2 @@ static parseExpression(s) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlUGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3NpbXBsZVBhcnNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsTUFBTSxFQUNOLFNBQVMsRUFDVCxNQUFNLEVBQ04sVUFBVSxHQU1YLE1BQU0sdUNBQXVDLENBQUM7QUFHL0MsTUFBTSxPQUFPLFlBQVk7SUFDZixNQUFNLEtBQUssTUFBTTtRQUN2QixPQUFPLElBQUksTUFBTSxFQUFFLENBQUM7SUFDdEIsQ0FBQztJQUVPLE1BQU0sQ0FBQyxZQUFZLENBQUMsQ0FBUyxFQUFFLE9BQWUsVUFBVTtRQUM5RCxPQUFPLElBQUksU0FBUyxDQUFDLElBQUksTUFBTSxDQUFDLFVBQVUsQ0FBQyxJQUFJLEVBQUUsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQ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
@@ -1,2 +0,2 @@ | ||
import { DeclarationStatement, Source, SourceKind, ClassDeclaration, TypeNode, NodeKind, InterfaceDeclaration, FunctionDeclaration, TypeName, DiagnosticCategory, NamedTypeNode, util, } from "assemblyscript/dist/assemblyscript.js"; | ||
import { DeclarationStatement, Source, ClassDeclaration, TypeNode, InterfaceDeclaration, FunctionDeclaration, TypeName, NamedTypeNode, util, } from "assemblyscript/dist/assemblyscript.js"; | ||
import { ASTBuilder } from "./astBuilder.js"; | ||
@@ -71,6 +71,6 @@ import cloneDeep from "lodash.clonedeep"; | ||
export function isUserEntry(node) { | ||
return node.range.source.sourceKind == SourceKind.USER_ENTRY; | ||
return node.range.source.sourceKind == 1 /* SourceKind.UserEntry */; | ||
} | ||
export function isEntry(node) { | ||
return isUserEntry(node) || node.range.source.sourceKind == SourceKind.LIBRARY_ENTRY; | ||
return isUserEntry(node) || node.range.source.sourceKind == 3 /* SourceKind.LibraryEntry */; | ||
} | ||
@@ -86,3 +86,3 @@ export function className(_class) { | ||
export function isMethodNamed(name) { | ||
return (stmt) => stmt.kind == NodeKind.METHODDECLARATION && toString(stmt.name) === name; | ||
return (stmt) => stmt.kind == 58 /* NodeKind.MethodDeclaration */ && toString(stmt.name) === name; | ||
} | ||
@@ -116,3 +116,3 @@ export function updateSource(program, newSource) { | ||
export function hasErrorMessage(emitter) { | ||
return hasMessage(emitter, DiagnosticCategory.ERROR); | ||
return hasMessage(emitter, 3 /* DiagnosticCategory.Error */); | ||
} | ||
@@ -125,3 +125,3 @@ /** | ||
export function hasWarningMessage(emitter) { | ||
return hasMessage(emitter, DiagnosticCategory.WARNING); | ||
return hasMessage(emitter, 2 /* DiagnosticCategory.Warning */); | ||
} | ||
@@ -148,2 +148,2 @@ /** | ||
export const indent = util.indent; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdXRpbHMud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sdGluc3xjcnlwdG98Y29uc29sZXxjb21wYXR8ZGF0YXZpZXd8ZGF0ZXxkaWFnbm9zdGljc3xlcnJvcnxmdW5jdGlvbnxpdGVyYXRvcnxtYXB8bWF0aHxudW1iZXJ8b2JqZWN0fHByb2Nlc3N8cmVmZXJlbmNlfHJlZ2V4cHxzZXR8c3RhdGljYXJyYXl8c3RyaW5nfHN5bWJvbHx0YWJsZXx0eXBlZGFycmF5fHZlY3RvcnxydFxcLz98YmluZGluZ3NcXC98c2hhcmVkXFwvdHlwZWluZm8pfHV0aWxcXC98dXJpfHBvbHlmaWxsc3xtZW1vcnkvO1xyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIGlzU3RkbGliKHM6IFNvdXJjZSB8IHsgcmFuZ2U6IFJhbmdlIH0pOiBib29sZWFuIHtcclxuICBsZXQgc291cmNlID0gcyBpbnN0YW5jZW9mIFNvdXJjZSA/IHMgOiBzLnJhbmdlLnNvdXJjZTtcclxuICByZXR1cm4gaXNTdGRsaWJSZWdleC50ZXN0KHNvdXJjZS5pbnRlcm5hbFBhdGgpO1xyXG59XHJcblxyXG5leHBvcnQgY29uc3QgaW5kZW50ID0gdXRpbC5pbmRlbnQ7XHJcbiJdfQ== |
{ | ||
"name": "visitor-as", | ||
"version": "0.10.2", | ||
"version": "0.11.0", | ||
"description": "A generic visitor framework for AssemblyScript", | ||
"main": "dist/index.js", | ||
"types": "dist", | ||
"repository": "https://github.com/willemneal/visitor-as", | ||
"repository": "https://github.com/as-pect/visitor-as", | ||
"author": "Willem Wyndham", | ||
@@ -18,20 +18,20 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"assemblyscript": "^0.21.2" | ||
"assemblyscript": "^0.23.1" | ||
}, | ||
"devDependencies": { | ||
"@assemblyscript/loader": "^0.21.2", | ||
"@assemblyscript/loader": "^0.23.1", | ||
"@types/lodash.clonedeep": "^4.5.7", | ||
"@types/node": "^18.7.6", | ||
"assemblyscript": "^0.21.2", | ||
"chai": "^4.3.6", | ||
"mocha": "^10.0.0", | ||
"@types/node": "^18.11.9", | ||
"assemblyscript": "^0.23.1", | ||
"chai": "^4.3.7", | ||
"mocha": "^10.1.0", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.2", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.8.4" | ||
}, | ||
"dependencies": { | ||
"lodash.clonedeep": "^4.5.0", | ||
"ts-mixer": "^6.0.1" | ||
"ts-mixer": "^6.0.2" | ||
} | ||
} |
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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
462203
39
3761
+ Addedassemblyscript@0.23.1(transitive)
+ Addedbinaryen@110.0.0-nightly.20221105(transitive)
- Removedassemblyscript@0.21.7(transitive)
- Removedbinaryen@110.0.0-nightly.20221006(transitive)
Updatedts-mixer@^6.0.2