Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codemaker

Package Overview
Dependencies
Maintainers
5
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemaker - npm Package Compare versions

Comparing version 1.13.0 to 1.14.0

9

lib/codemaker.d.ts

@@ -9,2 +9,7 @@ /**

indentation: number;
/**
* The character to use for indentation. When setting this to `\t`, consider
* also setting `indentation` to `1`.
*/
indentCharacter: ' ' | '\t';
private currIndent;

@@ -14,2 +19,6 @@ private currentFile?;

private readonly excludes;
constructor({ indentationLevel, indentCharacter, }?: {
indentationLevel?: CodeMaker['indentation'];
indentCharacter?: CodeMaker['indentCharacter'];
});
get currentIndentLength(): number;

@@ -16,0 +25,0 @@ /**

12

lib/codemaker.js

@@ -11,7 +11,3 @@ "use strict";

class CodeMaker {
constructor() {
/**
* The indentation level of the file.
*/
this.indentation = 4;
constructor({ indentationLevel = 4, indentCharacter = ' ', } = {}) {
this.currIndent = 0;

@@ -28,2 +24,4 @@ this.files = new Array();

this.closeBlockFormatter = () => '}';
this.indentation = indentationLevel;
this.indentCharacter = indentCharacter;
}

@@ -164,6 +162,6 @@ get currentIndentLength() {

}
return ' '.repeat(length);
return this.indentCharacter.repeat(length);
}
}
exports.CodeMaker = CodeMaker;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29kZW1ha2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY29kZW1ha2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUE2QjtBQUM3QiwwQ0FBMEM7QUFDMUMseUNBQW9DO0FBRXBDOztHQUVHO0FBQ0gsTUFBYSxTQUFTO0lBQXRCO1FBQ0U7O1dBRUc7UUFDSSxnQkFBVyxHQUFHLENBQUMsQ0FBQztRQUVmLGVBQVUsR0FBRyxDQUFDLENBQUM7UUFFTixV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lKC4uLmFyZ3M6IHN0cmluZ1tdKSB7XG4gICAgcmV0dXJuIGNhc2V1dGlscy50b1Bhc2NhbENhc2UoLi4uYXJncyk7XG4gIH1cblxuICAvKipcbiAgICogY29udmVydF9zdHJpbmdfdG9fc25ha2VfY2FzZVxuICAgKiBAcGFyYW0gc2VwIFNlcGFyYXRvciAoZGVmYXVsdHMgdG8gJ18nKVxuICAgKi9cbiAgcHVibGljIHRvU25ha2VDYXNlKHM6IHN0cmluZywgc2VwID0gJ18nKSB7XG4gICAgcmV0dXJuIGNhc2V1dGlscy50b1NuYWtlQ2FzZShzLCBzZXApO1xuICB9XG5cbiAgcHJpdmF0ZSBtYWtlSW5kZW50KCk6IHN0cmluZyB7XG4gICAgY29uc3QgbGVuZ3RoID0gdGhpcy5jdXJyZW50SW5kZW50TGVuZ3RoO1xuICAgIGlmIChsZW5ndGggPD0gMCkge1xuICAgICAgcmV0dXJuICcnO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5pbmRlbnRDaGFyYWN0ZXIucmVwZWF0KGxlbmd0aCk7XG4gIH1cbn1cbiJdfQ==
{
"name": "codemaker",
"version": "1.13.0",
"version": "1.14.0",
"description": "A tiny utility for generating source code",

@@ -34,3 +34,3 @@ "license": "Apache-2.0",

"dependencies": {
"camelcase": "^6.0.0",
"camelcase": "^6.2.0",
"decamelize": "^4.0.0",

@@ -41,31 +41,9 @@ "fs-extra": "^9.0.1"

"@types/fs-extra": "^8.1.1",
"@types/jest": "^26.0.14",
"@types/node": "^10.17.35",
"eslint": "^7.10.0",
"jest": "^26.4.2",
"@types/jest": "^26.0.15",
"@types/node": "^10.17.44",
"eslint": "^7.12.1",
"jest": "^26.6.1",
"prettier": "^2.1.2",
"typescript": "~3.9.7"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"**/bin/**/*.js",
"**/lib/**/*.js"
],
"coverageReporters": [
"lcov",
"text"
],
"coverageThreshold": {
"global": {
"branches": 60,
"statements": 85
}
},
"errorOnDeprecated": true,
"testEnvironment": "node",
"testMatch": [
"**/?(*.)+(spec|test).js"
]
}
}

@@ -19,2 +19,2 @@ "use strict";

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZWJ1ZmYudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImZpbGVidWZmLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQkFBK0I7QUFDL0IseUJBQXlCO0FBQ3pCLDZCQUE2QjtBQUM3Qiw4Q0FBeUM7QUFFekMsSUFBSSxDQUFDLGFBQWEsRUFBRSxLQUFLLElBQUksRUFBRTtJQUM3QixNQUFNLEVBQUUsR0FBRyxJQUFJLGtCQUFVLENBQUMsY0FBYyxDQUFDLENBQUM7SUFDMUMsRUFBRSxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUNsQixFQUFFLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ2YsRUFBRSxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUVsQixnQkFBZ0I7SUFDaEIsTUFBTSxPQUFPLEdBQUcsTUFBTSxFQUFFLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLE1BQU0sRUFBRSxFQUFFLGtCQUFrQixDQUFDLENBQUMsQ0FBQztJQUM3RSxNQUFNLEVBQUUsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7SUFFdkIsc0NBQXNDO0lBQ3RDLE1BQU0sSUFBSSxHQUFHLENBQUMsTUFBTSxFQUFFLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLEVBQUUsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLENBQUMsUUFBUSxFQUFFLENBQUM7SUFDN0UsTUFBTSxDQUFDLElBQUksQ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mxvY2soKTtcbiAgbWFrZXIuY2xvc2VCbG9jaygpO1xuICBtYWtlci5jbG9zZUZpbGUoJ2N1c3RvbS1ibG9ja3MuY3BwJyk7XG5cbiAgY29uc3QgZGlybmFtZSA9IGF3YWl0IGZzLm1rZHRlbXAocGF0aC5qb2luKG9zLnRtcGRpcigpLCAnc291cmNlLWZpbGVzJykpO1xuICBjb25zdCBmaWxlcyA9IGF3YWl0IG1ha2VyLnNhdmUoZGlybmFtZSk7XG5cbiAgY29uc3QgYWN0dWFsID0gKGF3YWl0IGZzLnJlYWRGaWxlKGZpbGVzWzBdKSkudG9TdHJpbmcoKTtcblxuICBleHBlY3QoYWN0dWFsKS50b0JlKGV4cGVjdGVkQ3VzdG9tQmxvY2tzKTtcbn0pO1xuXG5jb25zdCBleHBlY3RlZE15RmlsZSA9IGBmaXJzdCBsaW5lXG5vcGVuIHtcbiAgICBzZWNvbmQgbGluZVxufVxuZ2VuZXJpYyBvcGVuIFtcbiAgICBib29tXG4gICAgYmFtXG5dXG5gO1xuXG5jb25zdCBleHBlY3RlZFlvdXJGaWxlID0gYHRoaXMgaXMgeW91ciBmaWxlIHNwZWFraW5nXG4oLS0tIGJsb2NrMSAtLS1cbiAgICAgICAgICBibG9jazEubGluZTFcbiAgICAgICAgICBibG9jazEubGluZTJcbiAgICAgICAgICAoLS0tIGJsb2NrMiAtLS1cbiAgICAgICAgICAgICAgICAgICAgYmxvY2syLmxpbmUxXG4gICAgICAgICAgLS0tIGJsb2NrMiAoY2xvc2UpIC0tLSlcbiAgICAgICAgICBibG9jazEubGluZTNcbi0tLSBibG9jazEgKGNsb3NlKSAtLS0pXG5gO1xuXG5jb25zdCBleHBlY3RlZEN1c3RvbUJsb2NrcyA9IGBCbG9jazEoKVxue1xuICAgIEwxXG4gICAgQmxvY2syKClcbiAgICB7XG4gICAgICAgIEwyXG4gICAgfVxufVxuYDtcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIj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ICAgICAgIGJsb2NrMS5saW5lMlxuICAgICAgICAgICgtLS0gYmxvY2syIC0tLVxuICAgICAgICAgICAgICAgICAgICBibG9jazIubGluZTFcbiAgICAgICAgICAtLS0gYmxvY2syIChjbG9zZSkgLS0tKVxuICAgICAgICAgIGJsb2NrMS5saW5lM1xuLS0tIGJsb2NrMSAoY2xvc2UpIC0tLSlcbmA7XG5cbmNvbnN0IGV4cGVjdGVkQ3VzdG9tQmxvY2tzID0gYEJsb2NrMSgpXG57XG4gICAgTDFcbiAgICBCbG9jazIoKVxuICAgIHtcbiAgICAgICAgTDJcbiAgICB9XG59XG5gO1xuIl19
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