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

inprint

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inprint - npm Package Compare versions

Comparing version

to
1.3.0

2

bin/index.js
#!/usr/bin/env node
require("../lib/cjs/index.js").run();
require("../lib/cjs/index.js").inprintRunFromCmd();

@@ -10,2 +10,3 @@ "use strict";

exports.expectFeature = expectFeature;
exports.inprintRunFromCmd = inprintRunFromCmd;
exports.inprint = inprint;

@@ -170,3 +171,5 @@ exports.writeFileSyncIfChanged = exports.usageNotice = exports.endPrefix = exports.startPrefix = exports.inprint_prefix = void 0;

function inprint(options0) {
function inprintRunFromCmd(options0) {
var _options;
if (process.argv[2] === "--version" || process.argv[2] === "-v") {

@@ -235,21 +238,21 @@ // @ts-ignore

if (!options0) optionsPath = "<default options>";
if ((_options = options0) !== null && _options !== void 0 && _options.logging) console.log(`CODE00000005 INPRINT options from ${optionsPath}`);
inprint(options0).then();
}
async function inprint(options0) {
const options = _objectSpread(_objectSpread({}, _InprintOptions.defaultInprintOptions), options0);
let processedCount = 0;
const paths = await (0, _globby.default)(options.files);
(async () => {
if (options.logging) console.log(`CODE00000005 INPRINT options from ${optionsPath}`);
const paths = await (0, _globby.default)(options.files);
for (const filePath of paths) {
if (options.logging === "files") console.log(`CODE00000006 INPRINT ${filePath}`);
if (filePath.includes("node_modules") && options.skipNodeModules) continue;
if (handleFile(filePath, options)) processedCount++;
}
for (const filePath of paths) {
if (options.logging === "files") console.log(`CODE00000006 INPRINT ${filePath}`);
if (filePath.includes("node_modules") && options.skipNodeModules) continue;
if (handleFile(filePath, options)) processedCount++;
}
if (options.logging) console.log(`CODE00000007 INPRINT finished, ${paths.length} - total files, ${processedCount} - processed, ${paths.length - processedCount} - skipped`);
if (options.forceProcessTermination) process.exit(0);
})();
if (options.logging) console.log(`CODE00000007 INPRINT finished, ${paths.length} - total files, ${processedCount} - processed, ${paths.length - processedCount} - skipped`);
if (options.forceProcessTermination) process.exit(0);
}
//# sourceMappingURL=inprint.js.map
"use strict";
module.exports = {version: '1.2.14', packageName: 'inprint'};
module.exports = {version: '1.3.0', packageName: 'inprint'};
Object.defineProperty(exports, "__esModule", {value: true});

@@ -135,3 +135,5 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

export function inprint(options0) {
export function inprintRunFromCmd(options0) {
var _options;
if (process.argv[2] === "--version" || process.argv[2] === "-v") {

@@ -200,21 +202,20 @@ // @ts-ignore

if (!options0) optionsPath = "<default options>";
if ((_options = options0) !== null && _options !== void 0 && _options.logging) console.log(`CODE00000005 INPRINT options from ${optionsPath}`);
inprint(options0).then();
}
export async function inprint(options0) {
const options = _objectSpread(_objectSpread({}, defaultInprintOptions), options0);
let processedCount = 0;
const paths = await globby(options.files);
(async () => {
if (options.logging) console.log(`CODE00000005 INPRINT options from ${optionsPath}`);
const paths = await globby(options.files);
for (const filePath of paths) {
if (options.logging === "files") console.log(`CODE00000006 INPRINT ${filePath}`);
if (filePath.includes("node_modules") && options.skipNodeModules) continue;
if (handleFile(filePath, options)) processedCount++;
}
for (const filePath of paths) {
if (options.logging === "files") console.log(`CODE00000006 INPRINT ${filePath}`);
if (filePath.includes("node_modules") && options.skipNodeModules) continue;
if (handleFile(filePath, options)) processedCount++;
}
if (options.logging) console.log(`CODE00000007 INPRINT finished, ${paths.length} - total files, ${processedCount} - processed, ${paths.length - processedCount} - skipped`);
if (options.forceProcessTermination) process.exit(0);
})();
if (options.logging) console.log(`CODE00000007 INPRINT finished, ${paths.length} - total files, ${processedCount} - processed, ${paths.length - processedCount} - skipped`);
if (options.forceProcessTermination) process.exit(0);
}
//# sourceMappingURL=inprint.js.map

@@ -1,2 +0,2 @@

export const version = '1.2.14';
export const version = '1.3.0';
export const packageName = 'inprint';
{
"name": "inprint",
"version": "1.2.14",
"version": "1.3.0",
"keywords": [

@@ -5,0 +5,0 @@ "generator",