Socket
Socket
Sign inDemoInstall

plop

Package Overview
Dependencies
196
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.3 to 3.0.4

2

package.json
{
"name": "plop",
"version": "3.0.3",
"version": "3.0.4",
"description": "Micro-generator framework that makes it easy for an entire team to create files with a level of uniformity",

@@ -5,0 +5,0 @@ "main": "./src/plop.js",

@@ -55,3 +55,3 @@ import chalk from "chalk";

namedBypassArr = promptNames.map((name) =>
plopArgV[name] ? plopArgV[name] : undefined
plopArgV[name] !== undefined ? plopArgV[name] : undefined
);

@@ -58,0 +58,0 @@ }

@@ -9,8 +9,2 @@ export default function (plop) {

message: "What is your name?",
validate: function (value) {
if (/.+/.test(value)) {
return true;
}
return "name is required";
},
},

@@ -17,0 +11,0 @@ {

@@ -97,2 +97,11 @@ import { resolve, dirname } from "node:path";

test("Should allow for empty string bypassing", async () => {
const { queryByText, findByText } = await renderPlop(["--", "--name", `""`], {
cwd: resolve(__dirname, "./examples/prompt-only"),
});
expect(await queryByText("What is your name?")).toBeFalsy();
expect(await findByText("What pizza toppings do you like?")).toBeTruthy();
});
test.todo("Dynamic actions");
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc