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

dn-middleware-pkginfo

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dn-middleware-pkginfo - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

7

lib/index.js

@@ -24,2 +24,4 @@ const fs = require('fs');

}
const prefix = opts && opts.prefix || '';
const defaultPkgName = prefix + path.basename(this.cwd);

@@ -29,6 +31,7 @@ opts.items = opts.items || [{

type: 'input',
default: path.basename(this.cwd),
default: defaultPkgName,
message: '请输入项目名称',
validate: function (name) {
return !!name;
const reg = new RegExp('^' + prefix);
return reg.test(name);
}

@@ -35,0 +38,0 @@ }, {

{
"name": "dn-middleware-pkginfo",
"version": "1.1.2",
"version": "1.1.3",
"description": "用于根据用户输入配置 package 中的信息",

@@ -11,2 +11,2 @@ "main": "./lib/index.js",

"license": "ISC"
}
}

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