Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-block-app

Package Overview
Dependencies
Maintainers
5
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-block-app - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

11

create-block-app.js

@@ -10,2 +10,3 @@ #!/usr/bin/env node

const path = require("path");
const untildify = require("untildify");

@@ -24,5 +25,6 @@ const exec = promisify(child_process.exec);

const blockPath = process.argv[3] ?? blockName;
// @todo: replace with `process.argv[3] ?? blockName` after dropping Node 12 support
const blockPath = process.argv[3] ? process.argv[3] : blockName;
const resolvedBlockPath = path.resolve(blockPath);
const resolvedBlockPath = path.resolve(untildify(blockPath));

@@ -41,3 +43,5 @@ try {

await pacote.extract(templatePackageName, resolvedBlockPath);
await pacote.extract(templatePackageName, resolvedBlockPath, {
registry: process.env.NPM_CONFIG_REGISTRY,
});

@@ -62,2 +66,3 @@ console.log("Updating files...");

packageJson.description = `${blockName} block`;
packageJson.blockprotocol.displayName = blockName;
delete packageJson.homepage;

@@ -64,0 +69,0 @@ delete packageJson.repository;

{
"name": "create-block-app",
"version": "0.0.3",
"version": "0.0.4",
"description": "Create new https://blockprotocol.org blocks",

@@ -27,3 +27,4 @@ "keywords": [

"dependencies": {
"pacote": "12.0.2"
"pacote": "12.0.2",
"untildify": "4.0.0"
},

@@ -30,0 +31,0 @@ "devDependencies": {

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