Socket
Socket
Sign inDemoInstall

scrubbr

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrubbr - npm Package Compare versions

Comparing version 0.0.1-alpha.5 to 0.0.1-alpha.6

8

dist/Logger.js

@@ -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) {

2

dist/Scrubbr.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc