emscripten-library-decorator
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -34,3 +34,2 @@ // dump-lib is a public domain tool for inspecting emscripten-library-decorator output. | ||
} | ||
; | ||
return (output.join('\n')); | ||
@@ -37,0 +36,0 @@ } |
@@ -5,2 +5,7 @@ /** Allow decorators to call eval() in the context that called them. | ||
export declare function setEvil(otherEval: (code: string) => any): void; | ||
export interface ClassType { | ||
new (...args: any[]): ClassType; | ||
[key: string]: any; | ||
} | ||
export declare function __extends(Class: ClassType, Parent: ClassType): any; | ||
/** @dep decorator. | ||
@@ -7,0 +12,0 @@ * Apply to a function, to list other required variables needing protection |
// This file is part of emscripten-library-decorator, | ||
// copyright (c) 2015-2016 BusFaster Ltd. | ||
// copyright (c) 2015-2017 BusFaster Ltd. | ||
// Released under the MIT license, see LICENSE. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var evil; | ||
@@ -12,2 +13,12 @@ /** Allow decorators to call eval() in the context that called them. | ||
exports.setEvil = setEvil; | ||
function __extends(Class, Parent) { | ||
// tslint:disable-next-line:no-invalid-this | ||
function Base() { this.constructor = Class; } | ||
Base.prototype = Parent.prototype; | ||
for (var key in Parent) | ||
if (Parent.hasOwnProperty(key)) | ||
Class[key] = Parent[key]; | ||
return (new Base()); | ||
} | ||
exports.__extends = __extends; | ||
/** @dep decorator. | ||
@@ -90,5 +101,5 @@ * Apply to a function, to list other required variables needing protection | ||
evil(name + '={};'); | ||
evil('__extends=' + __extends.toString() + ';'); | ||
var lib = { | ||
_decorate: evil('__decorate'), | ||
_extends: evil('__extends'), | ||
defineHidden: defineHidden | ||
@@ -95,0 +106,0 @@ }; |
{ | ||
"name": "emscripten-library-decorator", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Decorators for writing Emscripten libraries", | ||
@@ -14,3 +14,3 @@ "main": "dist/index.js", | ||
"docts": "docts", | ||
"lint": "tslint -c src/tslint.json src/*.ts", | ||
"lint": "tslint --type-check -c src/tslint.json -p src/tsconfig.json", | ||
"prepublish": "npm run lint && tsc -p src", | ||
@@ -31,5 +31,5 @@ "test": "node dist/index.js" | ||
"docts": "~0.1.0", | ||
"tslint": "^4.0.2", | ||
"typescript": "^2.1.4" | ||
"tslint": "^5.1.0", | ||
"typescript": "^2.2.2" | ||
} | ||
} |
@@ -94,2 +94,2 @@ emscripten-library-decorator | ||
Copyright (c) 2015-2016 BusFaster Ltd | ||
Copyright (c) 2015-2017 BusFaster Ltd |
Sorry, the diff of this file is not supported yet
15959
201