New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

docuporter

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docuporter - npm Package Compare versions

Comparing version 0.6.4 to 0.7.0

25

dist/index.d.ts

@@ -10,8 +10,9 @@ export declare class DocuPorter {

private append;
appendHeader(header: string, order?: 1 | 2 | 3 | 4 | 5): void;
appendText(...text: string[]): void;
appendCode(code: string, lang?: string, comment?: string): void;
appendJson(json: any): void;
appendJs(js: string, comment?: string): void;
appendTs(ts: string, comment?: string): void;
private appendHeader;
private appendText;
private appendCode;
private appendJson;
private appendJs;
private appendTs;
private appendLabeledJson;
text: (...text: string[]) => void;

@@ -22,10 +23,12 @@ json: (json: any) => void;

header: (header: string, order?: 1 | 2 | 3 | 4 | 5) => void;
h1: (header: string) => void;
h2: (header: string) => void;
h3: (header: string) => void;
h4: (header: string) => void;
h5: (header: string) => void;
h1: (...header: string[]) => void;
h2: (...header: string[]) => void;
h3: (...header: string[]) => void;
h4: (...header: string[]) => void;
h5: (...header: string[]) => void;
ljson: (label: string, code: any) => void;
match(key: string): boolean;
valuesMatch(): boolean;
log(...args: any[]): void;
logState(): void;
mute(): void;

@@ -32,0 +35,0 @@ unMute(): void;

@@ -46,7 +46,8 @@ "use strict";

this.header = this.appendHeader;
this.h1 = (header) => this.appendHeader(header, 1);
this.h2 = (header) => this.appendHeader(header, 2);
this.h3 = (header) => this.appendHeader(header, 3);
this.h4 = (header) => this.appendHeader(header, 4);
this.h5 = (header) => this.appendHeader(header, 5);
this.h1 = (...header) => this.appendHeader(header.join(' '), 1);
this.h2 = (...header) => this.appendHeader(header.join(' '), 2);
this.h3 = (...header) => this.appendHeader(header.join(' '), 3);
this.h4 = (...header) => this.appendHeader(header.join(' '), 4);
this.h5 = (...header) => this.appendHeader(header.join(' '), 5);
this.ljson = this.appendLabeledJson;
this.filePath = path.join(process.cwd(), fileName);

@@ -83,2 +84,6 @@ fs.writeFileSync(this.filePath, '');

}
appendLabeledJson(label, code) {
this.appendText(label);
this.appendJson(code);
}
match(key) {

@@ -99,2 +104,13 @@ // if no condition is set, return true

}
logState() {
const values = Object.fromEntries(this.values);
const conditions = Object.fromEntries(this.conditions);
const tickets = Object.fromEntries(this.ticket);
console.log({
values,
conditions,
tickets,
muted: this.muted,
});
}
mute() {

@@ -101,0 +117,0 @@ this.muted = true;

{
"name": "docuporter",
"version": "0.6.4",
"version": "0.7.0",
"description": "Understand a file by documenting it in a markdown file",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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