codemaker
Advanced tools
Comparing version 1.29.0 to 1.30.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fs = require("fs-extra"); | ||
const path = require("path"); | ||
@@ -17,2 +16,5 @@ /** | ||
async save(rootDir) { | ||
// just-in-time require so that this file can be loaded in browsers as well. | ||
// eslint-disable-next-line @typescript-eslint/no-require-imports,@typescript-eslint/no-var-requires | ||
const fs = require('fs-extra'); | ||
const fullPath = path.join(rootDir, this.filePath); | ||
@@ -25,2 +27,2 @@ await fs.mkdirs(path.dirname(fullPath)); | ||
exports.default = FileBuffer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZWJ1ZmYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJmaWxlYnVmZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLCtCQUErQjtBQUMvQiw2QkFBNkI7QUFFN0I7O0dBRUc7QUFDSCxNQUFxQixVQUFVO0lBSTdCLFlBQW1CLFFBQWdCO1FBRjNCLFdBQU0sR0FBRyxFQUFFLENBQUM7UUFHbEIsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUM7SUFDM0IsQ0FBQztJQUVNLEtBQUssQ0FBQyxDQUFTO1FBQ3BCLElBQUksQ0FBQyxNQUFNLElBQUksQ0FBQyxDQUFDO0lBQ25CLENBQUM7SUFFTSxLQUFLLENBQUMsSUFBSSxDQUFDLE9BQWU7UUFDL0IsTUFBTSxRQUFRLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQ25ELE1BQU0sRUFBRSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUM7UUFDeEMsTUFBTSxFQUFFLENBQUMsU0FBUyxDQUFDLFFBQVEsRUFBRSxJQUF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VQYXRoOiBzdHJpbmcpIHtcbiAgICB0aGlzLmZpbGVQYXRoID0gZmlsZVBhdGg7XG4gIH1cblxuICBwdWJsaWMgd3JpdGUoczogc3RyaW5nKSB7XG4gICAgdGhpcy5idWZmZXIgKz0gcztcbiAgfVxuXG4gIHB1YmxpYyBhc3luYyBzYXZlKHJvb3REaXI6IHN0cmluZykge1xuICAgIC8vIGp1c3QtaW4tdGltZSByZXF1aXJlIHNvIHRoYXQgdGhpcyBmaWxlIGNhbiBiZSBsb2FkZWQgaW4gYnJvd3NlcnMgYXMgd2VsbC5cbiAgICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLXJlcXVpcmUtaW1wb3J0cyxAdHlwZXNjcmlwdC1lc2xpbnQvbm8tdmFyLXJlcXVpcmVzXG4gICAgY29uc3QgZnMgPSByZXF1aXJlKCdmcy1leHRyYScpO1xuXG4gICAgY29uc3QgZnVsbFBhdGggPSBwYXRoLmpvaW4ocm9vdERpciwgdGhpcy5maWxlUGF0aCk7XG4gICAgYXdhaXQgZnMubWtkaXJzKHBhdGguZGlybmFtZShmdWxsUGF0aCkpO1xuICAgIGF3YWl0IGZzLndyaXRlRmlsZShmdWxsUGF0aCwgdGhpcy5idWZmZXIpO1xuICAgIHJldHVybiBmdWxsUGF0aDtcbiAgfVxufVxuIl19 |
{ | ||
"name": "codemaker", | ||
"version": "1.29.0", | ||
"version": "1.30.0", | ||
"description": "A tiny utility for generating source code", | ||
@@ -40,9 +40,9 @@ "license": "Apache-2.0", | ||
"@types/fs-extra": "^8.1.1", | ||
"@types/jest": "^26.0.22", | ||
"@types/node": "^10.17.56", | ||
"eslint": "^7.24.0", | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^10.17.59", | ||
"eslint": "^7.26.0", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.1", | ||
"prettier": "^2.3.0", | ||
"typescript": "~3.9.9" | ||
} | ||
} |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
65555
506