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

@dtinsight/create

Package Overview
Dependencies
Maintainers
7
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dtinsight/create - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

35

dist/cli.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -27,3 +8,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const child_process_1 = require("child_process");
const chalk = __importStar(require("chalk"));
const chalk_1 = __importDefault(require("chalk"));
const rimraf_1 = __importDefault(require("rimraf"));

@@ -62,6 +43,6 @@ const commander_1 = require("commander");

forked.send({ cwd: projectPath, typescript: isTypeScript });
console.log(`${chalk.greenBright("Success")}! Created ${projectName} at ${projectPath} by create-react-app`);
console.log(`${chalk_1.default.greenBright("Success")}! Created ${projectName} at ${projectPath} by create-react-app`);
console.log("We rewrote several files:");
console.log("");
console.log(` * ${path_1.join(projectPath, "src", isTypeScript ? "App.tsx" : "App.js")} ${chalk.cyan("and")}`);
console.log(` * ${path_1.join(projectPath, "src", isTypeScript ? "App.tsx" : "App.js")} ${chalk_1.default.cyan("and")}`);
console.log(` * ${path_1.join(projectPath, "src", isTypeScript ? "index.tsx" : "index.js")}.`);

@@ -71,10 +52,10 @@ console.log("");

console.log("");
console.log(` ${chalk.cyan("cd")} ${projectName}`);
console.log(` ${chalk.cyan(useYarn ? "yarn" : "npm run")} start`);
console.log(` ${chalk_1.default.cyan("cd")} ${projectName}`);
console.log(` ${chalk_1.default.cyan(useYarn ? "yarn" : "npm run")} start`);
console.log("");
console.log("Or if you want to review the diff of lines:");
console.log("");
console.log(` ${chalk.cyan("cd")} ${projectName}`);
console.log(` ${chalk.cyan(`git diff src/${isTypeScript ? "App.tsx" : "App.js"}`)}`);
console.log(` ${chalk.cyan(`git diff src/${isTypeScript ? "index.tsx" : "index.js"}`)}`);
console.log(` ${chalk_1.default.cyan("cd")} ${projectName}`);
console.log(` ${chalk_1.default.cyan(`git diff src/${isTypeScript ? "App.tsx" : "App.js"}`)}`);
console.log(` ${chalk_1.default.cyan(`git diff src/${isTypeScript ? "index.tsx" : "index.js"}`)}`);
console.log("");

@@ -81,0 +62,0 @@ console.log("Happy coding!😊");

{
"name": "@dtinsight/create",
"version": "1.0.3",
"version": "1.0.4",
"description": "Create Molecule Application with create-react-app.",

@@ -5,0 +5,0 @@ "keywords": [

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