Comparing version 0.0.1-alpha.5 to 0.0.1-alpha.6
@@ -18,4 +18,10 @@ "use strict"; | ||
this.logLevel = options.logLevel || LogLevel.NONE; | ||
this.prefix = options.logPrefix || ''; | ||
this.nestLevel = nestLevel; | ||
this.prefix = ''; | ||
if (options.logPrefix) { | ||
this.prefix = options.logPrefix; | ||
if (!this.prefix.endsWith(' ')) { | ||
this.prefix += ' '; | ||
} | ||
} | ||
var logNesting = options.logNesting; | ||
@@ -22,0 +28,0 @@ if (logNesting === true) { |
@@ -30,3 +30,3 @@ import { JSONSchema7 } from 'json-schema'; | ||
}; | ||
export declare type JSONSchemaDefinitions = { | ||
export declare type JSONSchemaDefinitions = JSONSchema7 | { | ||
definitions: { | ||
@@ -33,0 +33,0 @@ [k: string]: JSONSchema7; |
{ | ||
"name": "scrubbr", | ||
"version": "0.0.1-alpha.5", | ||
"version": "0.0.1-alpha.6", | ||
"description": "Serialize and sanitize JSON data using TypeScript.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/jgillick/scrubbr", |
@@ -19,5 +19,12 @@ import { ScrubbrOptions } from './Scrubbr'; | ||
this.logLevel = options.logLevel || LogLevel.NONE; | ||
this.prefix = options.logPrefix || ''; | ||
this.nestLevel = nestLevel; | ||
this.prefix = ''; | ||
if (options.logPrefix) { | ||
this.prefix = options.logPrefix; | ||
if (!this.prefix.endsWith(' ')) { | ||
this.prefix += ' '; | ||
} | ||
} | ||
const { logNesting } = options; | ||
@@ -24,0 +31,0 @@ if (logNesting === true) { |
@@ -55,7 +55,9 @@ import * as fs from 'fs'; | ||
type ObjectNode = Record<string, any>; | ||
export type JSONSchemaDefinitions = { | ||
definitions: { | ||
[k: string]: JSONSchema7; | ||
}; | ||
}; | ||
export type JSONSchemaDefinitions = | ||
| JSONSchema7 | ||
| { | ||
definitions: { | ||
[k: string]: JSONSchema7; | ||
}; | ||
}; | ||
@@ -62,0 +64,0 @@ export default class Scrubbr { |
Sorry, the diff of this file is not supported yet
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
879504
2010
0