Huge News!Announcing our $40M Series B led by Abstract Ventures.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 1.0.4 to 1.0.5

8

lib/inprint.js

@@ -137,2 +137,8 @@ "use strict";

function run(options0) {
if (process.argv[2] === "--version" || process.argv[2] === "-v") {
// @ts-ignore
console.log("1.0.5");
return;
}
let optionsPath = undefined;

@@ -180,2 +186,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbnByaW50LnRzIl0sIm5hbWVzIjpbImlucHJpbnRfcHJlZml4Iiwic3RhcnRQcmVmaXgiLCJlbmRQcmVmaXgiLCJ1c2FnZU5vdGljZSIsIndyaXRlRmlsZVN5bmNJZkNoYW5nZWQiLCJmaWxlTmFtZSIsImNvbnRlbnQiLCJjdXJyZW50IiwiZSIsImlucHJpbnRGdW5jdGlvbiIsInBhcmFtczAiLCJwYXJhbXMiLCJKU09OIiwic3RyaW5naWZ5IiwiZGVmYXVsdElucHJpbnRPcHRpb25zIiwic2tpcE5vZGVNb2R1bGVzIiwiZmlsZXMiLCJsb2dnaW5nIiwiaGFuZGxlRmlsZSIsImZpbGVQYXRoIiwib3B0aW9ucyIsImNvbnRlbnRTdHIiLCJpbmNsdWRlcyIsImZpbGVIZWFkZXIiLCJwYXJ0czAiLCJzcGxpdCIsInBhcnRzIiwiaSIsImxlbmd0aCIsInMiLCJzdGFydHNXaXRoIiwiY29uc29sZSIsImVycm9yIiwiaGVhZGVyIiwibWlkZGxlUGFydHMiLCJsYXN0UGFydCIsInBvcCIsInBhcmFtc1N0ciIsInN1YnN0ciIsInRyaW0iLCJtaWRkbGUiLCJqb2luIiwidGFpbCIsImFic29sdXRlUGF0aCIsIkpTT041IiwicGFyc2UiLCJwdXNoIiwibm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bGVQYXRofWApO1xuICAgICAgICB9XG5cbiAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIGNvbnN0IFtoZWFkZXIsIC4uLm1pZGRsZVBhcnRzXSA9IHMuc3BsaXQoXCJcXG5cIik7XG4gICAgICAgICAgICBjb25zdCBsYXN0UGFydCA9IG1pZGRsZVBhcnRzLnBvcCgpO1xuXG4gICAgICAgICAgICBjb25zdCBwYXJhbXNTdHIgPSBoZWFkZXIuc3Vic3RyKHN0YXJ0UHJlZml4Lmxlbmd0aCkudHJpbSgpO1xuICAgICAgICAgICAgY29uc3QgbWlkZGxlID0gbWlkZGxlUGFydHMuam9pbihcIlxcblwiKTtcbiAgICAgICAgICAgIGNvbnN0IHRhaWwgPSBsYXN0UGFydCArIGlucHJpbnRfcHJlZml4ICsgcGFydHMwW2kgKyAxXTtcblxuICAgICAgICAgICAgY29uc3QgcGFyYW1zID0ge1xuICAgICAgICAgICAgICAgIGNvbnRlbnQ6IG1pZGRsZSxcbiAgICAgICAgICAgICAgICBhYnNvbHV0ZVBhdGg6IGZpbGVQYXRoLFxuICAgICAgICAgICAgICAgIC4uLkpTT041LnBhcnNlKHBhcmFtc1N0ciksXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgcGFydHMucHVzaCh7IGhlYWRlciwgcGFyYW1zLCBtaWRkbGUsIHRhaWwsIG5ld01pZGRsZTogXCJcIiB9KTtcbiAgICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICAgICAgY29uc29sZS5lcnJvcihgQ09ERTAwMDAwMDAzIElOUFJJTlRfRVJST1IgJHtlLm1lc3NhZ2V9IGluICR7ZmlsZVBhdGh9YCk7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBmb3IgKGxldCBwYXJ0IG9mIHBhcnRzKSB7XG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgICBwYXJ0Lm5ld01pZGRsZSA9IGlucHJpbnRGdW5jdGlvbihwYXJ0LnBhcmF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MDUgSU5QUklOVCBvcHRpb25zIGZyb20gJHtvcHRpb25zUGF0aH1gKTtcbiAgICAgICAgICAgIGNvbnN0IHBhdGhzID0gYXdhaXQgZ2xvYmJ5KG9wdGlvbnMuZmlsZXMpO1xuXG4gICAgICAgICAgICBmb3IgKGxldCBmaWxlUGF0aCBvZiBwYXRocykge1xuICAgICAgICAgICAgICAgIGlmIChvcHRpb25zLmxvZ2dpbmcgPT09IFwiZmlsZXNcIikgY29uc29sZS5sb2coYENPREUwMDAwMDAwNiBJTlBSSU5UICR7ZmlsZVBhdGh9YCk7XG4gICAgICAgICAgICAgICAgaWYgKGZpbGVQYXRoLmluY2x1ZGVzKFwibm9kZV9tb2R1bGVzXCIpICYmIG9wdGlvbnMuc2tpcE5vZGVNb2R1bGVzKSBjb250aW51ZTtcbiAgICAgICAgICAgICAgICBoYW5kbGVGaWxlKGZpbGVQYXRoLCBvcHRpb25zKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChvcHRpb25zLmxvZ2dpbmcpIGNvbnNvbGUubG9nKGBDT0RFMDAwMDAwMDcgSU5QUklOVCBmaW5pc2hlZCwgJHtwYXRocy5sZW5ndGh9IC0gZmlsZXNgKTtcblxuICAgICAgICAgICAgLy89PiBbJ3VuaWNvcm4nLCAncmFpbmJvdyddXG4gICAgICAgIH0pKCk7XG4gICAgfVxufVxuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbnByaW50LnRzIl0sIm5hbWVzIjpbImlucHJpbnRfcHJlZml4Iiwic3RhcnRQcmVmaXgiLCJlbmRQcmVmaXgiLCJ1c2FnZU5vdGljZSIsIndyaXRlRmlsZVN5bmNJZkNoYW5nZWQiLCJmaWxlTmFtZSIsImNvbnRlbnQiLCJjdXJyZW50IiwiZSIsImlucHJpbnRGdW5jdGlvbiIsInBhcmFtczAiLCJwYXJhbXMiLCJKU09OIiwic3RyaW5naWZ5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wW2kgKyAxXTtcblxuICAgICAgICAgICAgY29uc3QgcGFyYW1zID0ge1xuICAgICAgICAgICAgICAgIGNvbnRlbnQ6IG1pZGRsZSxcbiAgICAgICAgICAgICAgICBhYnNvbHV0ZVBhdGg6IGZpbGVQYXRoLFxuICAgICAgICAgICAgICAgIC4uLkpTT041LnBhcnNlKHBhcmFtc1N0ciksXG4gICAgICAgICAgICB9O1xuICAgICAgICAgICAgcGFydHMucHVzaCh7IGhlYWRlciwgcGFyYW1zLCBtaWRkbGUsIHRhaWwsIG5ld01pZGRsZTogXCJcIiB9KTtcbiAgICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICAgICAgY29uc29sZS5lcnJvcihgQ09ERTAwMDAwMDAzIElOUFJJTlRfRVJST1IgJHtlLm1lc3NhZ2V9IGluICR7ZmlsZVBhdGh9YCk7XG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBmb3IgKGxldCBwYXJ0IG9mIHBhcnRzKSB7XG4gICAgICAgIHRyeSB7XG4gICAgICAgICAgICBwYXJ0Lm5ld01pZGRsZSA9IGlucHJpbnRGdW5jdGlvbihwYXJ0LnBhcmFtcyk7XG4gICAgICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgICAgICAgIHBhcnQubmV3TWlkZGxlID0gYC8vIElOUFJJTlRfRkFJTEVEIGJlY2F1c2Ugb2YgZXhjZXB0aW9uOlxcbiR7ZS5tZXNzYWdlIHx8IFwiTk9fRVJST1JfTUVTU0FHRVwifVxcXFxuJHtcbiAgICAgICAgICAgICAgICBlLnN0YWNrIHx8IFwiTk9fU1RBQ0tfVFJBQ0VcIlxuICAgICAgICAgICAgfWBcbiAgICAgICAgICAgICAgICAuc3BsaXQoXCJcXG5cIilcbiAgICAgICAgICAgICAgICAuam9pbihcIlxcbi8vICAgICBcIik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBjb25zdCBuZXdDb250ZW50ID1cbiAgICAgICAgZmlsZUhlYW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pbnByaW50LmNqc1wiKTtcbiAgICAgICAgICAgIG9wdGlvbnMwID0gcmVxdWlyZShvcHRpb25zUGF0aCk7XG4gICAgICAgIH1cbiAgICB9IGNhdGNoIChlKSB7fVxuXG4gICAgdHJ5IHtcbiAgICAgICAgaWYgKCFvcHRpb25zMCkge1xuICAgICAgICAgICAgb3B0aW9uc1BhdGggPSByZXNvbHZlKHByb2Nlc3MuY3dkKCksIFwiaW5wcmludC5qc1wiKTtcbiAgICAgICAgICAgIG9wdGlvbnMwID0gcmVxdWlyZShvcHRpb25zUGF0aCk7XG4gICAgICAgIH1cbiAgICB9IGNhdGNoIChlKSB7fVxuXG4gICAgaWYgKCFvcHRpb25zMCkge1xuICAgICAgICBjb25zb2xlLmVycm9yKFxuICAgICAgICAgICAgYENPREUwMDAwMDAwNCBJTlBSSU5UX0VSUk9SIENvdWxkbid0IGZpbmQgb3B0aW9ucyBmaWxlLiBDcmVhdGUgaW5wcmludC5janMgb3Igc3BlY2lmeSBwYXRoIHRvIG9wdGlvbnMgaW4gY29tbWFuZCBsaW5lIGFyZ3VtZW50YFxuICAgICAgICApO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIGNvbnN0IG9wdGlvbnM6IElucHJpbnRPcHRpb25zID0geyAuLi5kZWZhdWx0SW5wcmludE9wdGlvbnMsIC4uLm9wdGlvbnMwIH07XG4gICAgICAgIChhc3luYyAoKSA9PiB7XG4gICAgICAgICAgICBpZiAob3B0aW9ucy5sb2dnaW5nKSBjb25zb2xlLmxvZyhgQ09ERTAwMDAwMDA1IElOUFJJTlQgb3B0aW9ucyBmcm9tICR7b3B0aW9uc1BhdGh9YCk7XG4gICAgICAgICAgICBjb25zdCBwYXRocyA9IGF3YWl0IGdsb2JieShvcHRpb25zLmZpbGVzKTtcblxuICAgICAgICAgICAgZm9yIChsZXQgZmlsZVBhdGggb2YgcGF0aHMpIHtcbiAgICAgICAgICAgICAgICBpZiAob3B0aW9ucy5sb2dnaW5nID09PSBcImZpbGVzXCIpIGNvbnNvbGUubG9nKGBDT0RFMDAwMDAwMDYgSU5QUklOVCAke2ZpbGVQYXRofWApO1xuICAgICAgICAgICAgICAgIGlmIChmaWxlUGF0aC5pbmNsdWRlcyhcIm5vZGVfbW9kdWxlc1wiKSAmJiBvcHRpb25zLnNraXBOb2RlTW9kdWxlcykgY29udGludWU7XG4gICAgICAgICAgICAgICAgaGFuZGxlRmlsZShmaWxlUGF0aCwgb3B0aW9ucyk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAob3B0aW9ucy5sb2dnaW5nKSBjb25zb2xlLmxvZyhgQ09ERTAwMDAwMDA3IElOUFJJTlQgZmluaXNoZWQsICR7cGF0aHMubGVuZ3RofSAtIGZpbGVzYCk7XG5cbiAgICAgICAgICAgIC8vPT4gWyd1bmljb3JuJywgJ3JhaW5ib3cnXVxuICAgICAgICB9KSgpO1xuICAgIH1cbn1cbiJdfQ==

10

package.json
{
"name": "inprint",
"version": "1.0.4",
"version": "1.0.5",
"private": false,
"description": "A very simple precompiler written in typescript. With it you can make a dynamically generated blocks in your code.",
"keywords": ["generator","precompiler","inprint","inprinter"],
"keywords": [
"generator",
"precompiler",
"inprint",
"inprinter"
],
"main": "index.js",

@@ -84,2 +89,3 @@ "bin": {

"babel-loader": "^8.2.2",
"babel-plugin-inline-replace-variables": "^1.3.1",
"babel-plugin-module-resolver": "^4.1.0",

@@ -86,0 +92,0 @@ "babel-watch": "^7.4.1",

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