Comparing version 0.0.7 to 0.0.8
@@ -1,3 +0,3 @@ | ||
declare module csproj2ts { | ||
const DEFAULT_TYPESCRIPT_VERSION: string; | ||
declare namespace csproj2ts { | ||
const DEFAULT_TYPESCRIPT_VERSION = "1.6.2"; | ||
interface TypeScriptSettings extends TypeScriptConfiguration { | ||
@@ -25,4 +25,5 @@ VSProjectDetails?: VSProjectDetails; | ||
AllowSyntheticDefaultImports?: boolean; | ||
AllowUnreachableCode?: boolean; | ||
AllowUnusedLabels?: boolean; | ||
AllowUnreachableCode?: boolean; | ||
BaseUrl?: string; | ||
Charset?: string; | ||
@@ -32,2 +33,3 @@ CodePage?: string; | ||
CompileOnSaveEnabled?: boolean; | ||
DeclarationDir?: string; | ||
EmitBOM?: boolean; | ||
@@ -47,8 +49,11 @@ EmitDecoratorMetadata?: boolean; | ||
NewLine?: string; | ||
NoEmitHelpers?: boolean; | ||
NoEmitOnError?: boolean; | ||
NoEmitHelpers?: boolean; | ||
NoFallthroughCasesInSwitch?: boolean; | ||
NoImplicitAny?: boolean; | ||
NoImplicitReturns?: boolean; | ||
NoImplicitThis?: boolean; | ||
NoImplicitUseStrict?: boolean; | ||
NoUnusedLocals?: boolean; | ||
NoUnusedParameters?: boolean; | ||
NoLib?: boolean; | ||
@@ -63,7 +68,9 @@ NoResolve?: boolean; | ||
RootDir?: boolean; | ||
SkipLibCheck?: boolean; | ||
SkipDefaultLibCheck?: boolean; | ||
SourceMap?: boolean; | ||
SourceRoot?: string; | ||
StrictNullChecks?: boolean; | ||
SuppressExcessPropertyErrors?: boolean; | ||
SuppressImplicitAnyIndexErrors?: boolean; | ||
SuppressExcessPropertyErrors?: boolean; | ||
Target?: string; | ||
@@ -70,0 +77,0 @@ } |
@@ -1,7 +0,8 @@ | ||
var fs = require('fs'); | ||
var xml2js = require('xml2js'); | ||
var _ = require('lodash'); | ||
var path = require('path'); | ||
var es6_promise_1 = require('es6-promise'); | ||
var semver = require('semver'); | ||
"use strict"; | ||
var fs = require("fs"); | ||
var xml2js = require("xml2js"); | ||
var _ = require("lodash"); | ||
var path = require("path"); | ||
var es6_promise_1 = require("es6-promise"); | ||
var semver = require("semver"); | ||
var csproj2ts; | ||
@@ -109,4 +110,5 @@ (function (csproj2ts) { | ||
AllowSyntheticDefaultImports: cboolean(getTSSetting(project, "AllowSyntheticDefaultImports", projectActiveConfig, projectActivePlat, undefined)), | ||
AllowUnreachableCode: cboolean(getTSSetting(project, "AllowUnreachableCode", projectActiveConfig, projectActivePlat, undefined)), | ||
AllowUnusedLabels: cboolean(getTSSetting(project, "AllowUnusedLabels", projectActiveConfig, projectActivePlat, undefined)), | ||
AllowUnreachableCode: cboolean(getTSSetting(project, "AllowUnreachableCode", projectActiveConfig, projectActivePlat, undefined)), | ||
BaseUrl: getTSSetting(project, "BaseUrl", projectActiveConfig, projectActivePlat, undefined), | ||
Charset: getTSSetting(project, "Charset", projectActiveConfig, projectActivePlat, undefined), | ||
@@ -116,2 +118,3 @@ CodePage: getTSSetting(project, "CodePage", projectActiveConfig, projectActivePlat, undefined), | ||
CompileOnSaveEnabled: cboolean(getTSSetting(project, "CompileOnSaveEnabled", projectActiveConfig, projectActivePlat, undefined)), | ||
DeclarationDir: getTSSetting(project, "DeclarationDir", projectActiveConfig, projectActivePlat, undefined), | ||
EmitBOM: cboolean(getTSSetting(project, "EmitBOM", projectActiveConfig, projectActivePlat, undefined)), | ||
@@ -131,6 +134,7 @@ EmitDecoratorMetadata: cboolean(getTSSetting(project, "EmitDecoratorMetadata", projectActiveConfig, projectActivePlat, undefined)), | ||
NewLine: getTSSetting(project, "NewLine", projectActiveConfig, projectActivePlat, undefined), | ||
NoEmitHelpers: cboolean(getTSSetting(project, "NoEmitHelpers", projectActiveConfig, projectActivePlat, undefined)), | ||
NoEmitOnError: cboolean(getTSSetting(project, "NoEmitOnError", projectActiveConfig, projectActivePlat, undefined)), | ||
NoEmitHelpers: cboolean(getTSSetting(project, "NoEmitHelpers", projectActiveConfig, projectActivePlat, undefined)), | ||
NoFallthroughCasesInSwitch: cboolean(getTSSetting(project, "NoFallthroughCasesInSwitch", projectActiveConfig, projectActivePlat, undefined)), | ||
NoImplicitAny: cboolean(getTSSetting(project, "NoImplicitAny", projectActiveConfig, projectActivePlat, undefined)), | ||
NoImplicitThis: cboolean(getTSSetting(project, "NoImplicitThis", projectActiveConfig, projectActivePlat, undefined)), | ||
NoImplicitReturns: cboolean(getTSSetting(project, "NoImplicitReturns", projectActiveConfig, projectActivePlat, undefined)), | ||
@@ -140,2 +144,4 @@ NoImplicitUseStrict: cboolean(getTSSetting(project, "NoImplicitUseStrict", projectActiveConfig, projectActivePlat, undefined)), | ||
NoResolve: cboolean(getTSSetting(project, "NoResolve", projectActiveConfig, projectActivePlat, undefined)), | ||
NoUnusedLocals: cboolean(getTSSetting(project, "NoUnusedLocals", projectActiveConfig, projectActivePlat, undefined)), | ||
NoUnusedParameters: cboolean(getTSSetting(project, "NoUnusedParameters", projectActiveConfig, projectActivePlat, undefined)), | ||
OutDir: getTSSetting(project, "OutDir", projectActiveConfig, projectActivePlat, undefined), | ||
@@ -148,5 +154,7 @@ OutFile: getTSSetting(project, "OutFile", projectActiveConfig, projectActivePlat, undefined), | ||
RootDir: getTSSetting(project, "RootDir", projectActiveConfig, projectActivePlat, undefined), | ||
SkipDefaultLibCheck: getTSSetting(project, "SkipDefaultLibCheck", projectActiveConfig, projectActivePlat, undefined), | ||
SkipDefaultLibCheck: cboolean(getTSSetting(project, "SkipDefaultLibCheck", projectActiveConfig, projectActivePlat, undefined)), | ||
SkipLibCheck: cboolean(getTSSetting(project, "SkipLibCheck", projectActiveConfig, projectActivePlat, undefined)), | ||
SourceMap: cboolean(getTSSetting(project, "SourceMap", projectActiveConfig, projectActivePlat, undefined)), | ||
SourceRoot: getTSSetting(project, "SourceRoot", projectActiveConfig, projectActivePlat, undefined), | ||
StrictNullChecks: cboolean(getTSSetting(project, "StrictNullChecks", projectActiveConfig, projectActivePlat, undefined)), | ||
SuppressImplicitAnyIndexErrors: cboolean(getTSSetting(project, "SuppressImplicitAnyIndexErrors", projectActiveConfig, projectActivePlat, undefined)), | ||
@@ -153,0 +161,0 @@ SuppressExcessPropertyErrors: cboolean(getTSSetting(project, "SuppressExcessPropertyErrors", projectActiveConfig, projectActivePlat, undefined)), |
The MIT License (MIT) | ||
Copyright (c) 2015 Steve Ognibene | ||
Copyright (c) 2017 Steve Ognibene | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "csproj2ts", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Library to parse TypeScript config info from a Visual Studio Project file", | ||
"main": "csproj2ts.js", | ||
"dependencies": { | ||
"es6-promise": "^2.0.1", | ||
"lodash": "^3.3.1", | ||
"semver": "^5.0.1", | ||
"xml2js": "^0.4.5" | ||
"es6-promise": "^4.0.5", | ||
"lodash": "^4.17.4", | ||
"semver": "^5.3.0", | ||
"xml2js": "^0.4.17" | ||
}, | ||
"devDependencies": { | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-nodeunit": "^0.4.1", | ||
"grunt-run": "^0.3.0", | ||
"grunt-ts": "^4.2.0" | ||
"grunt": "^1.0.1", | ||
"grunt-contrib-nodeunit": "^1.0.0", | ||
"grunt-run": "^0.6.0", | ||
"grunt-ts": "^4.2.0", | ||
"typescript": "^2.1.4" | ||
}, | ||
@@ -18,0 +19,0 @@ "scripts": { |
@@ -5,5 +5,5 @@ # csproj2ts | ||
Visual Studio TypeScript settings are documented on the TypeScript wiki [here](https://github.com/Microsoft/TypeScript/wiki/Setting-Compiler-Options-in-MSBuild-projects). | ||
Visual Studio TypeScript settings are documented on the TypeScript wiki [here](http://www.typescriptlang.org/docs/handbook/compiler-options-in-msbuild.html). | ||
Tested with new project configuration settings in TypeScript 1.6.2. | ||
Tested with latest project configuration settings in TypeScript 2.1.4. | ||
@@ -60,4 +60,6 @@ ## Install | ||
The returned settings object has the following documented properties: | ||
The main function of csproj2ts, getTypeScriptSettings(), returns a promise. | ||
In the then() result of the promise, the returned settings object has the following documented properties: | ||
* files: string[] - This is an array of the files that will be compiled. | ||
@@ -78,3 +80,3 @@ * VSProjectDetails - This object has the following properties which correspond to what was passed-in to csproj2ts (not what was found in the project file): | ||
The returned settings object has the following properties that correspond to the TypeScript configuration settings found in the project file: | ||
The returned settings object also has the following properties that correspond to the TypeScript configuration settings found in the project file: | ||
@@ -81,0 +83,0 @@ * AdditionalFlags?: string; |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
47974
462
122
5
+ Addedes6-promise@4.2.8(transitive)
+ Addedlodash@4.17.21(transitive)
- Removedes6-promise@2.3.0(transitive)
- Removedlodash@3.10.1(transitive)
Updatedes6-promise@^4.0.5
Updatedlodash@^4.17.4
Updatedsemver@^5.3.0
Updatedxml2js@^0.4.17