New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lys

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lys - npm Package Compare versions

Comparing version 0.1.10-20190829143148.commit-24362b5 to 0.1.10-20191210161346.commit-4a00ac4

dist/support/std.d.ts

2

dist/compiler/annotations.d.ts
import { Local, Nodes, Global } from './nodes';
export declare abstract class Annotation {
readonly name: string;
get name(): string;
toString(): string;

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

@@ -53,7 +53,8 @@ import { TokenError } from 'ebnf';

constructor(astNode: ASTNode);
scope: Scope | undefined;
get scope(): Scope | undefined;
set scope(scope: Scope | undefined);
/** Name of the node constructor */
readonly nodeName: string;
readonly children: Node[];
abstract readonly childrenOrEmpty: (Node | void)[];
get nodeName(): string;
get children(): Node[];
abstract get childrenOrEmpty(): (Node | void)[];
hasAnnotation<T extends Annotation = Annotation>(name: Annotation | IAnnotationConstructor<T>): boolean;

@@ -75,3 +76,3 @@ getAnnotationsByClass<T extends Annotation>(klass: IAnnotationConstructor<T>): T[];

parentNamespace?: NameIdentifierNode;
readonly childrenOrEmpty: Node[];
get childrenOrEmpty(): Node[];
constructor(astNode: ASTNode, name: string);

@@ -84,3 +85,3 @@ static fromString(name: string, astNode: ASTNode): NameIdentifierNode;

static fromString(name: string, astNode: ASTNode): QNameNode;
readonly childrenOrEmpty: NameIdentifierNode[];
get childrenOrEmpty(): NameIdentifierNode[];
deconstruct(): {

@@ -90,3 +91,3 @@ moduleName: string;

};
readonly text: string;
get text(): string;
}

@@ -96,3 +97,3 @@ abstract class TypeNode extends Node {

class TypeReducerNode extends Node {
readonly childrenOrEmpty: Node[];
get childrenOrEmpty(): Node[];
}

@@ -103,3 +104,3 @@ class FunctionParameterTypeNode extends TypeNode {

constructor(astNode: ASTNode, parameterType: TypeNode);
readonly childrenOrEmpty: (NameIdentifierNode | TypeNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | TypeNode | undefined)[];
}

@@ -112,3 +113,3 @@ class FunctionTypeNode extends TypeNode {

constructor(astNode: ASTNode, parameters: FunctionParameterTypeNode[]);
readonly childrenOrEmpty: (TypeNode | undefined)[];
get childrenOrEmpty(): (TypeNode | undefined)[];
}

@@ -120,3 +121,3 @@ class EffectMemberDeclarationNode extends TypeNode {

returnType?: TypeNode;
readonly childrenOrEmpty: (NameIdentifierNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | undefined)[];
}

@@ -128,3 +129,3 @@ class ReferenceNode extends ExpressionNode {

constructor(astNode: ASTNode, variable: QNameNode);
readonly childrenOrEmpty: QNameNode[];
get childrenOrEmpty(): QNameNode[];
}

@@ -135,3 +136,3 @@ class BlockNode extends ExpressionNode {

constructor(astNode: ASTNode, statements: Node[]);
readonly childrenOrEmpty: Node[];
get childrenOrEmpty(): Node[];
}

@@ -144,3 +145,3 @@ class MemberNode extends ExpressionNode {

constructor(astNode: ASTNode, lhs: ExpressionNode, operator: string, memberName: NameIdentifierNode);
readonly childrenOrEmpty: (NameIdentifierNode | ExpressionNode)[];
get childrenOrEmpty(): (NameIdentifierNode | ExpressionNode)[];
}

@@ -151,3 +152,3 @@ class DecoratorNode extends Node {

constructor(astNode: ASTNode, decoratorName: NameIdentifierNode, args: LiteralNode<any>[]);
readonly childrenOrEmpty: (NameIdentifierNode | LiteralNode<any>)[];
get childrenOrEmpty(): (NameIdentifierNode | LiteralNode<any>)[];
}

@@ -173,3 +174,3 @@ abstract class DirectiveNode extends Node {

importedBy: Set<string>;
readonly childrenOrEmpty: DirectiveNode[];
get childrenOrEmpty(): DirectiveNode[];
}

@@ -181,3 +182,3 @@ class ParameterNode extends Node {

constructor(astNode: ASTNode, parameterName: NameIdentifierNode);
readonly childrenOrEmpty: (NameIdentifierNode | ExpressionNode | TypeNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | ExpressionNode | TypeNode | undefined)[];
}

@@ -189,3 +190,3 @@ class FunctionNode extends Node {

body?: ExpressionNode;
readonly childrenOrEmpty: (NameIdentifierNode | ExpressionNode | TypeNode | ParameterNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | ExpressionNode | TypeNode | ParameterNode | undefined)[];
/** Array of locals by index. */

@@ -214,3 +215,3 @@ localsByIndex: Local[];

constructor(astNode: ASTNode, reference: ReferenceNode, directives: DirectiveNode[]);
readonly childrenOrEmpty: (ReferenceNode | DirectiveNode | DecoratorNode)[];
get childrenOrEmpty(): (ReferenceNode | DirectiveNode | DecoratorNode)[];
}

@@ -222,3 +223,3 @@ class ImportDirectiveNode extends DirectiveNode {

constructor(astNode: ASTNode, module: QNameNode);
readonly childrenOrEmpty: (NameIdentifierNode | QNameNode | DecoratorNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | QNameNode | DecoratorNode | undefined)[];
}

@@ -229,7 +230,7 @@ class FunDirectiveNode extends DirectiveNode {

constructor(astNode: ASTNode, functionNode: FunctionNode, decorators: DecoratorNode[]);
readonly childrenOrEmpty: (DecoratorNode | FunctionNode)[];
get childrenOrEmpty(): (DecoratorNode | FunctionNode)[];
}
class EffectDirectiveNode extends DirectiveNode {
effect?: EffectDeclarationNode;
readonly childrenOrEmpty: (DecoratorNode | EffectDeclarationNode | undefined)[];
get childrenOrEmpty(): (DecoratorNode | EffectDeclarationNode | undefined)[];
}

@@ -240,3 +241,3 @@ class OverloadedFunctionNode extends DirectiveNode {

constructor(astNode: ASTNode, functionName: NameIdentifierNode);
readonly childrenOrEmpty: (NameIdentifierNode | DecoratorNode | FunDirectiveNode)[];
get childrenOrEmpty(): (NameIdentifierNode | DecoratorNode | FunDirectiveNode)[];
}

@@ -248,3 +249,3 @@ class VarDeclarationNode extends Node {

constructor(astNode: ASTNode, variableName: NameIdentifierNode, value: ExpressionNode);
readonly childrenOrEmpty: (NameIdentifierNode | ExpressionNode | TypeNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | ExpressionNode | TypeNode | undefined)[];
}

@@ -254,3 +255,3 @@ class VarDirectiveNode extends DirectiveNode {

constructor(astNode: ASTNode, decl: VarDeclarationNode);
readonly childrenOrEmpty: (DecoratorNode | VarDeclarationNode)[];
get childrenOrEmpty(): (DecoratorNode | VarDeclarationNode)[];
}

@@ -261,3 +262,3 @@ class AssignmentNode extends Node {

constructor(astNode: ASTNode, lhs: ExpressionNode, rhs: ExpressionNode);
readonly childrenOrEmpty: ExpressionNode[];
get childrenOrEmpty(): ExpressionNode[];
}

@@ -268,3 +269,3 @@ class TypeDirectiveNode extends DirectiveNode {

constructor(astNode: ASTNode, variableName: NameIdentifierNode);
readonly childrenOrEmpty: (NameIdentifierNode | TypeNode | DecoratorNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | TypeNode | DecoratorNode | undefined)[];
}

@@ -275,3 +276,3 @@ class EnumDirectiveNode extends DirectiveNode {

constructor(astNode: ASTNode, variableName: NameIdentifierNode, declarations: StructDeclarationNode[]);
readonly childrenOrEmpty: (NameIdentifierNode | DecoratorNode | StructDeclarationNode)[];
get childrenOrEmpty(): (NameIdentifierNode | DecoratorNode | StructDeclarationNode)[];
}

@@ -287,12 +288,14 @@ abstract class LiteralNode<T> extends ExpressionNode {

suffixReference?: ReferenceNode;
value: number;
readonly childrenOrEmpty: (ReferenceNode | undefined)[];
get value(): number;
set value(value: number);
get childrenOrEmpty(): (ReferenceNode | undefined)[];
}
class IntegerLiteral extends LiteralNode<number> {
suffixReference?: ReferenceNode;
value: number;
readonly childrenOrEmpty: (ReferenceNode | undefined)[];
get value(): number;
set value(value: number);
get childrenOrEmpty(): (ReferenceNode | undefined)[];
}
class UnknownExpressionNode extends ExpressionNode {
readonly childrenOrEmpty: never[];
get childrenOrEmpty(): never[];
}

@@ -302,19 +305,21 @@ class StructTypeNode extends TypeNode {

constructor(astNode: ASTNode, parameters: ParameterNode[]);
readonly childrenOrEmpty: ParameterNode[];
get childrenOrEmpty(): ParameterNode[];
}
class StackTypeNode extends TypeNode {
metadata: Record<string, LiteralNode<any>>;
readonly childrenOrEmpty: never[];
get childrenOrEmpty(): never[];
}
class InjectedTypeNode extends TypeNode {
readonly childrenOrEmpty: never[];
get childrenOrEmpty(): never[];
}
class HexLiteral extends IntegerLiteral {
suffixReference?: ReferenceNode;
value: number;
readonly childrenOrEmpty: (ReferenceNode | undefined)[];
get value(): number;
set value(value: number);
get childrenOrEmpty(): (ReferenceNode | undefined)[];
}
class BooleanLiteral extends LiteralNode<boolean> {
value: boolean;
readonly childrenOrEmpty: never[];
get value(): boolean;
set value(value: boolean);
get childrenOrEmpty(): never[];
}

@@ -325,3 +330,3 @@ class StringLiteral extends LiteralNode<string> {

length?: number;
readonly childrenOrEmpty: never[];
get childrenOrEmpty(): never[];
}

@@ -334,3 +339,3 @@ abstract class AbstractFunctionCallNode extends ExpressionNode {

argumentsNode: ExpressionNode[];
readonly childrenOrEmpty: ExpressionNode[];
get childrenOrEmpty(): ExpressionNode[];
}

@@ -342,3 +347,3 @@ class FunctionCallNode extends AbstractFunctionCallNode {

constructor(astNode: ASTNode, functionNode: ExpressionNode, argumentsNode: ExpressionNode[]);
readonly childrenOrEmpty: ExpressionNode[];
get childrenOrEmpty(): ExpressionNode[];
}

@@ -350,13 +355,15 @@ class BinaryExpressionNode extends ExpressionNode {

constructor(astNode: ASTNode, operator: NameIdentifierNode, lhs: ExpressionNode, rhs: ExpressionNode);
readonly childrenOrEmpty: (NameIdentifierNode | ExpressionNode)[];
get childrenOrEmpty(): (NameIdentifierNode | ExpressionNode)[];
}
class AsExpressionNode extends AbstractFunctionCallNode {
lhs: ExpressionNode;
get lhs(): ExpressionNode;
set lhs(value: ExpressionNode);
argumentsNode: ExpressionNode[];
rhs: TypeNode;
constructor(astNode: ASTNode, lhs: ExpressionNode, rhs: TypeNode);
readonly childrenOrEmpty: (ExpressionNode | TypeNode)[];
get childrenOrEmpty(): (ExpressionNode | TypeNode)[];
}
class IsExpressionNode extends AbstractFunctionCallNode {
lhs: ExpressionNode;
get lhs(): ExpressionNode;
set lhs(value: ExpressionNode);
booleanReference?: Reference;

@@ -366,10 +373,11 @@ argumentsNode: ExpressionNode[];

constructor(astNode: ASTNode, lhs: ExpressionNode, rhs: TypeNode);
readonly childrenOrEmpty: (ExpressionNode | TypeNode)[];
get childrenOrEmpty(): (ExpressionNode | TypeNode)[];
}
class UnaryExpressionNode extends AbstractFunctionCallNode {
readonly operator: NameIdentifierNode;
rhs: TypeNode;
get rhs(): TypeNode;
set rhs(value: TypeNode);
argumentsNode: Node[];
constructor(astNode: ASTNode, operator: NameIdentifierNode, rhs: TypeNode);
readonly childrenOrEmpty: TypeNode[];
get childrenOrEmpty(): TypeNode[];
}

@@ -380,3 +388,3 @@ class WasmAtomNode extends Node {

constructor(astNode: ASTNode, symbol: string, args: ExpressionNode[]);
readonly childrenOrEmpty: ExpressionNode[];
get childrenOrEmpty(): ExpressionNode[];
}

@@ -386,3 +394,3 @@ class WasmExpressionNode extends ExpressionNode {

constructor(astNode: ASTNode, atoms: WasmAtomNode[]);
readonly childrenOrEmpty: WasmAtomNode[];
get childrenOrEmpty(): WasmAtomNode[];
}

@@ -395,3 +403,3 @@ abstract class MatcherNode extends ExpressionNode {

constructor(astNode: ASTNode, rhs: ExpressionNode);
readonly childrenOrEmpty: (NameIdentifierNode | ExpressionNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | ExpressionNode | undefined)[];
}

@@ -404,3 +412,3 @@ class IfNode extends ExpressionNode {

constructor(astNode: ASTNode, condition: ExpressionNode, truePart: ExpressionNode, falsePart?: ExpressionNode | undefined);
readonly childrenOrEmpty: (ExpressionNode | undefined)[];
get childrenOrEmpty(): (ExpressionNode | undefined)[];
}

@@ -411,3 +419,3 @@ class MatchConditionNode extends MatcherNode {

constructor(astNode: ASTNode, condition: ExpressionNode, rhs: ExpressionNode);
readonly childrenOrEmpty: (NameIdentifierNode | ExpressionNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | ExpressionNode | undefined)[];
}

@@ -420,3 +428,3 @@ class MatchCaseIsNode extends MatcherNode {

constructor(astNode: ASTNode, typeReference: ReferenceNode, rhs: ExpressionNode);
readonly childrenOrEmpty: (NameIdentifierNode | ExpressionNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | ExpressionNode | undefined)[];
}

@@ -428,11 +436,11 @@ class MatchLiteralNode extends MatcherNode {

constructor(astNode: ASTNode, literal: LiteralNode<any>, rhs: ExpressionNode);
readonly childrenOrEmpty: (NameIdentifierNode | ExpressionNode | undefined)[];
get childrenOrEmpty(): (NameIdentifierNode | ExpressionNode | undefined)[];
}
class UnionTypeNode extends TypeNode {
of: TypeNode[];
readonly childrenOrEmpty: TypeNode[];
get childrenOrEmpty(): TypeNode[];
}
class IntersectionTypeNode extends TypeNode {
of: TypeNode[];
readonly childrenOrEmpty: TypeNode[];
get childrenOrEmpty(): TypeNode[];
}

@@ -444,3 +452,3 @@ class StructDeclarationNode extends TypeNode {

constructor(astNode: ASTNode, declaredName: NameIdentifierNode, parameters: ParameterNode[]);
readonly childrenOrEmpty: (NameIdentifierNode | ParameterNode)[];
get childrenOrEmpty(): (NameIdentifierNode | ParameterNode)[];
}

@@ -451,3 +459,3 @@ class EffectDeclarationNode extends Node {

constructor(astNode: ASTNode, name: NameIdentifierNode);
readonly childrenOrEmpty: (NameIdentifierNode | FunctionTypeNode)[];
get childrenOrEmpty(): (NameIdentifierNode | FunctionTypeNode)[];
}

@@ -461,3 +469,3 @@ class MatchDefaultNode extends MatcherNode {

constructor(astNode: ASTNode, lhs: ExpressionNode, matchingSet: MatcherNode[]);
readonly childrenOrEmpty: Node[];
get childrenOrEmpty(): Node[];
}

@@ -467,9 +475,9 @@ class LoopNode extends ExpressionNode {

constructor(astNode: ASTNode, body: ExpressionNode);
readonly childrenOrEmpty: ExpressionNode[];
get childrenOrEmpty(): ExpressionNode[];
}
class ContinueNode extends Node {
readonly childrenOrEmpty: never[];
get childrenOrEmpty(): never[];
}
class BreakNode extends Node {
readonly childrenOrEmpty: never[];
get childrenOrEmpty(): never[];
}

@@ -476,0 +484,0 @@ }

@@ -11,3 +11,3 @@ import { Nodes } from './nodes';

/** Returns true if the reference points to a declaration in the same module */
readonly isLocalReference: boolean;
get isLocalReference(): boolean;
/** Returns a copy of the reference with the moduleSource set */

@@ -14,0 +14,0 @@ withModule(moduleName: string): Reference;

@@ -14,3 +14,3 @@ import { Nodes } from './nodes';

nativeType?: NativeTypes;
readonly binaryenType: Valtype | void;
get binaryenType(): Valtype | void;
equals(otherType: Type): boolean;

@@ -100,3 +100,3 @@ canBeAssignedTo(otherType: Type): boolean;

readonly simplified: boolean;
readonly binaryenType: Valtype;
get binaryenType(): Valtype;
constructor(of?: Type[], simplified?: boolean);

@@ -135,3 +135,3 @@ static of(x: Type[] | Type): UnionType;

};
getSchemaValue(name: string): number;
getSchemaValue(name: string): any;
}

@@ -141,4 +141,4 @@ export declare class TypeAlias extends Type {

readonly of: Type;
readonly binaryenType: void | "i32" | "i64" | "f32" | "f64" | "u32" | "label";
readonly nativeType: NativeTypes;
get binaryenType(): void | "i32" | "i64" | "f32" | "f64" | "u32" | "label";
get nativeType(): NativeTypes;
discriminant: number | null;

@@ -168,3 +168,3 @@ constructor(name: Nodes.NameIdentifierNode, of: Type);

static isNeverType(otherType: Type): boolean;
readonly nativeType: NativeTypes;
get nativeType(): NativeTypes;
toString(): string;

@@ -178,3 +178,3 @@ inspect(): string;

export declare class AnyType extends Type {
readonly nativeType: NativeTypes;
get nativeType(): NativeTypes;
toString(): string;

@@ -181,0 +181,0 @@ inspect(): string;

@@ -221,4 +221,4 @@ "use strict";

}
exports.StackType = StackType;
StackType.nativeTypes = new Map();
exports.StackType = StackType;
const u32 = StackType.of('u32', NativeTypes.i32, 4);

@@ -272,4 +272,4 @@ const voidType = StackType.of('void', NativeTypes.void, 0);

}
exports.RefType = RefType;
RefType.instance = new RefType();
exports.RefType = RefType;
class IntersectionType extends Type {

@@ -718,4 +718,4 @@ constructor(of = []) {

}
exports.TypeType = TypeType;
TypeType.memMap = new WeakMap();
exports.TypeType = TypeType;
// https://en.wikipedia.org/wiki/Bottom_type

@@ -722,0 +722,0 @@ // https://en.wikipedia.org/wiki/Fail-stop

{
"name": "lys",
"version": "0.1.10-20190829143148.commit-24362b5",
"version": "0.1.10-20191210161346.commit-4a00ac4",
"description": "",

@@ -33,32 +33,32 @@ "main": "dist/index.js",

"@webassemblyjs/wast-printer": "^1.8.5",
"arg": "^4.1.0",
"binaryen": "^84.0.0-nightly.20190530",
"ebnf": "^1.6.3",
"arg": "^4.1.2",
"binaryen": "^89.0.0",
"ebnf": "^1.7.0",
"utf8-bytes": "0.0.1",
"wabt": "^1.0.11"
"wabt": "^1.0.12"
},
"devDependencies": {
"@types/chai": "^4.1.7",
"@types/chai": "^4.2.6",
"@types/git-rev-sync": "^1.12.0",
"@types/glob": "^7.1.1",
"@types/node": "^10.14.8",
"@types/node-fetch": "^2.3.5",
"@types/semver": "^6.0.0",
"@types/node": "^12.12.16",
"@types/node-fetch": "^2.5.4",
"@types/semver": "^6.2.0",
"chai": "^4.2.0",
"dcl-tslint-config-standard": "^1.1.0",
"expect": "^24.8.0",
"expect": "^24.9.0",
"git-rev-sync": "^1.12.0",
"glob": "^7.1.4",
"glob": "^7.1.6",
"istanbul": "^0.4.5",
"mocha": "^6.1.4",
"mocha-junit-reporter": "^1.23.0",
"mocha": "^6.2.2",
"mocha-junit-reporter": "^1.23.1",
"mocha-performance": "^0.1.1",
"node-fetch": "^2.6.0",
"nyc": "^14.1.1",
"semver": "^6.1.1",
"source-map-support": "^0.5.12",
"ts-node": "^8.2.0",
"tslint": "^5.17.0",
"semver": "^6.3.0",
"source-map-support": "^0.5.16",
"ts-node": "^8.5.4",
"tslint": "^5.20.1",
"tslint-language-service": "^0.9.9",
"typescript": "^3.5.1"
"typescript": "^3.7.3"
},

@@ -65,0 +65,0 @@ "nyc": {

Sorry, the diff of this file is not supported yet

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