Comparing version 0.0.12 to 0.0.13
/// <reference path='./typings/node.d.ts' /> | ||
/// <reference path='./typings/colors.d.ts' /> | ||
/// <reference path='./node_modules/typescript/lib/typescript.d.ts' /> | ||
"use strict"; | ||
var readline = require('readline'); | ||
@@ -54,4 +55,4 @@ var util = require('util'); | ||
noEmitOnError: true, | ||
target: 1 /* ES5 */, | ||
module: 1 /* CommonJS */, | ||
target: ts.ScriptTarget.ES5, | ||
module: ts.ModuleKind.CommonJS, | ||
experimentalDecorators: true | ||
@@ -75,4 +76,4 @@ }); | ||
var files = ['node_modules', 'typings']; | ||
for (var _i = 0; _i < files.length; _i++) { | ||
var file = files[_i]; | ||
for (var _i = 0, files_1 = files; _i < files_1.length; _i++) { | ||
var file = files_1[_i]; | ||
var srcpath = path.join(src, file); | ||
@@ -108,4 +109,4 @@ var destpath = path.join(dest, file); | ||
var dirs = fs.readdirSync('typings'); | ||
for (var _i = 0; _i < dirs.length; _i++) { | ||
var dir = dirs[_i]; | ||
for (var _i = 0, dirs_1 = dirs; _i < dirs_1.length; _i++) { | ||
var dir = dirs_1[_i]; | ||
libPaths.push(path.join('typings', dir)); | ||
@@ -130,4 +131,4 @@ } | ||
getCompilationSettings: function () { return ({ | ||
module: 1 /* CommonJS */, | ||
target: 1 /* ES5 */, | ||
module: ts.ModuleKind.CommonJS, | ||
target: ts.ScriptTarget.ES5, | ||
experimentalDecorators: true | ||
@@ -232,4 +233,4 @@ }); }, | ||
var declFiles = getDeclarationFiles().concat(path.join(__dirname, '../node_modules/typescript/lib/lib.core.es6.d.ts')); | ||
for (var _i = 0; _i < declFiles.length; _i++) { | ||
var file = declFiles[_i]; | ||
for (var _i = 0, declFiles_1 = declFiles; _i < declFiles_1.length; _i++) { | ||
var file = declFiles_1[_i]; | ||
declarations[file] = collectDeclaration(service.getSourceFile(file)); | ||
@@ -256,4 +257,4 @@ } | ||
var declarations = getDeclarations(true)[file][name]; | ||
for (var _i = 0; _i < declarations.length; _i++) { | ||
var decl = declarations[_i]; | ||
for (var _i = 0, declarations_1 = declarations; _i < declarations_1.length; _i++) { | ||
var decl = declarations_1[_i]; | ||
var d = decl; | ||
@@ -403,3 +404,4 @@ if (parentDeclaration.parent.name.getText() == d.parent.parent.name.getText()) { | ||
var closeParen = (code.match(/\)/g) || []).length; | ||
if (openCurly === closeCurly && openParen === closeParen) { | ||
var templateClosed = (code.match(/`/g) || []).length % 2 === 0; | ||
if (openCurly === closeCurly && openParen === closeParen && templateClosed) { | ||
startEvaluate(code); | ||
@@ -406,0 +408,0 @@ repl(defaultPrompt); |
{ | ||
"name": "tsun", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "TSUN: a repl for TypeScript Upgraded Node", | ||
@@ -10,3 +10,3 @@ "bin": "./bin/tsun", | ||
"temp": "^0.8.1", | ||
"typescript": "^1.7.0-dev.20151001" | ||
"typescript": "^1.8.0-dev.20151219" | ||
}, | ||
@@ -13,0 +13,0 @@ "scripts": { |
@@ -431,3 +431,4 @@ /// <reference path='./typings/node.d.ts' /> | ||
var closeParen = (code.match(/\)/g) || []).length; | ||
if (openCurly === closeCurly && openParen === closeParen) { | ||
var templateClosed = (code.match(/`/g) || []).length % 2 === 0; | ||
if (openCurly === closeCurly && openParen === closeParen && templateClosed) { | ||
startEvaluate(code) | ||
@@ -434,0 +435,0 @@ repl(defaultPrompt) |
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
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
278868
2355