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

create-warlock

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-warlock - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

cjs/commands/create-new-app/index.js

@@ -5,2 +5,3 @@ 'use strict';var prompts=require('@clack/prompts'),copper=require('@mongez/copper'),app=require('../../helpers/app.js'),packageManager=require('../../helpers/package-manager.js'),index=require('../create-warlock-app/index.js'),getAppPath=require('./get-app-path.js');const appDetails = {

appPath: "",
pkgManager: "",
options: {},

@@ -39,2 +40,3 @@ };

appDetails.appPath = getAppPath(appName);
appDetails.pkgManager = packageManager$1;
if (!appDetails.appPath)

@@ -41,0 +43,0 @@ return;

@@ -6,4 +6,5 @@ export type App = {

options?: any;
pkgManager?: string;
};
export type Application = Required<App>;
//# sourceMappingURL=types.d.ts.map

4

cjs/commands/create-warlock-app/index.js

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

'use strict';var prompts=require('@clack/prompts');async function createWarlockApp(application) {
'use strict';var prompts=require('@clack/prompts'),packageManager=require('../../helpers/package-manager.js');async function createWarlockApp(application) {
application.init().use("warlock").updatePackageJson().updateDotEnv();

@@ -14,3 +14,3 @@ await application.install();

loading.start("🔑 Generating JWT Secret");
await application.exec("npx jwt");
await application.exec(packageManager.runPackageManagerCommand("jwt"));
loading.stop("🔑 JWT Secret generated 🔒");

@@ -17,0 +17,0 @@ }

@@ -5,2 +5,3 @@ export declare function getPackageManager(): any;

export declare function startCommand(): string;
export declare function runPackageManagerCommand(command: string): string;
//# sourceMappingURL=package-manager.d.ts.map

@@ -16,2 +16,8 @@ 'use strict';var detectPackageManager=require('which-pm-runs');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var detectPackageManager__default=/*#__PURE__*/_interopDefault(detectPackageManager);let detectedPackageManager;

return `${getPackageManager()} start`;
}exports.getPackageManager=getPackageManager;exports.setPackageManager=setPackageManager;exports.startCommand=startCommand;//# sourceMappingURL=package-manager.js.map
}
function runPackageManagerCommand(command) {
const packageManager = getPackageManager();
if (packageManager === "npm")
return `npm run ${command}`;
return `${packageManager} ${command}`;
}exports.getPackageManager=getPackageManager;exports.runPackageManagerCommand=runPackageManagerCommand;exports.setPackageManager=setPackageManager;exports.startCommand=startCommand;//# sourceMappingURL=package-manager.js.map

@@ -5,2 +5,3 @@ import {intro,text,isCancel,cancel,select}from'@clack/prompts';import {colors}from'@mongez/copper';import {App}from'../../helpers/app.js';import {getPackageManager,setPackageManager}from'../../helpers/package-manager.js';import {createWarlockApp}from'../create-warlock-app/index.js';import getAppPath from'./get-app-path.js';const appDetails = {

appPath: "",
pkgManager: "",
options: {},

@@ -39,2 +40,3 @@ };

appDetails.appPath = getAppPath(appName);
appDetails.pkgManager = packageManager;
if (!appDetails.appPath)

@@ -41,0 +43,0 @@ return;

@@ -6,4 +6,5 @@ export type App = {

options?: any;
pkgManager?: string;
};
export type Application = Required<App>;
//# sourceMappingURL=types.d.ts.map

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

import {spinner}from'@clack/prompts';async function createWarlockApp(application) {
import {spinner}from'@clack/prompts';import {runPackageManagerCommand}from'../../helpers/package-manager.js';async function createWarlockApp(application) {
application.init().use("warlock").updatePackageJson().updateDotEnv();

@@ -14,3 +14,3 @@ await application.install();

loading.start("🔑 Generating JWT Secret");
await application.exec("npx jwt");
await application.exec(runPackageManagerCommand("jwt"));
loading.stop("🔑 JWT Secret generated 🔒");

@@ -17,0 +17,0 @@ }

@@ -5,2 +5,3 @@ export declare function getPackageManager(): any;

export declare function startCommand(): string;
export declare function runPackageManagerCommand(command: string): string;
//# sourceMappingURL=package-manager.d.ts.map

@@ -16,2 +16,8 @@ import detectPackageManager from'which-pm-runs';let detectedPackageManager;

return `${getPackageManager()} start`;
}export{getPackageManager,setPackageManager,startCommand};//# sourceMappingURL=package-manager.js.map
}
function runPackageManagerCommand(command) {
const packageManager = getPackageManager();
if (packageManager === "npm")
return `npm run ${command}`;
return `${packageManager} ${command}`;
}export{getPackageManager,runPackageManagerCommand,setPackageManager,startCommand};//# sourceMappingURL=package-manager.js.map
{
"name": "create-warlock",
"version": "1.0.5",
"version": "1.0.6",
"main": "./esm/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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