typescript-json-schema
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -25,3 +25,2 @@ "main": "typescript-json-schema.js", | ||
], | ||
"optionalDependencies": {}, | ||
"keywords": [ | ||
@@ -35,7 +34,14 @@ "typescript", | ||
"dependencies": { | ||
"glob": "~7.1.1", | ||
"json-stable-stringify": "^1.0.1", | ||
"typescript": "~2.0.3", | ||
"glob": "~7.1.1", | ||
"yargs": "^6.3.0" | ||
}, | ||
"devDependencies": { | ||
"@types/assertion-error": "^1.0.30", | ||
"@types/chai": "^3.4.34", | ||
"@types/glob": "^5.0.30", | ||
"@types/json-stable-stringify": "^1.0.29", | ||
"@types/mocha": "^2.2.32", | ||
"@types/node": "^6.0.46", | ||
"chai": "^3.5.0", | ||
@@ -42,0 +48,0 @@ "mocha": "^3.1.2", |
@@ -15,7 +15,8 @@ { | ||
"sourceMap": true, | ||
"watch": false | ||
"watch": false, | ||
"typeRoots" : ["node_modules/@types"] | ||
}, | ||
"include": [ | ||
"**/*.ts", | ||
"typings/**/*.d.ts" | ||
"node_modules/@types/**/*.d.ts" | ||
], | ||
@@ -22,0 +23,0 @@ "exclude": [ |
@@ -5,2 +5,3 @@ "use strict"; | ||
var path = require("path"); | ||
var stringify = require("json-stable-stringify"); | ||
var vm = require("vm"); | ||
@@ -688,3 +689,3 @@ function getDefaultArgs() { | ||
var definition = generateSchema(program, fullTypeName, args); | ||
var json = JSON.stringify(definition, null, 4) + "\n"; | ||
var json = stringify(definition, { space: 4 }) + "\n\n"; | ||
if (args.out) { | ||
@@ -691,0 +692,0 @@ require("fs").writeFile(args.out, json, function (err) { |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
103086
2167
0
4
10
+ Addedjson-stable-stringify@^1.0.1
+ Addedcall-bind@1.0.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedjson-stable-stringify@1.1.1(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedset-function-length@1.2.2(transitive)