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

yeoman-generator

Package Overview
Dependencies
Maintainers
10
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yeoman-generator - npm Package Compare versions

Comparing version 6.0.0-beta.7 to 6.0.0-rc.0

2

dist/actions/package-json.d.ts

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

import type BaseGenerator from '../generator.js';
import type { BaseGenerator } from '../generator.js';
export declare class PackageJsonMixin {

@@ -3,0 +3,0 @@ /**

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

import latestVersion from 'latest-version';
export class PackageJsonMixin {

@@ -12,8 +13,17 @@ /**

}
else if (!Array.isArray(dependencies)) {
const deps = await Promise.all(Object.entries(dependencies).map(async ([pkg, version]) => version ? Promise.resolve([pkg, version]) : this.env.resolvePackage(pkg, version)));
return Object.fromEntries(deps.filter(args => args.length > 0 && args[0]));
}
const entries = await Promise.all(dependencies.map(async (dependency) => this.env.resolvePackage(dependency)));
return Object.fromEntries(entries);
const depMap = Array.isArray(dependencies)
? Object.fromEntries(dependencies.map(dependency => {
const lastIndex = dependency.lastIndexOf('@');
if (lastIndex > 0) {
const depName = dependency.slice(0, lastIndex);
const version = dependency.slice(lastIndex + 1);
return [depName, version];
}
return [dependency, undefined];
}))
: dependencies;
return Object.fromEntries(await Promise.all(
// Make sure to convert empty string too
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
Object.entries(depMap).map(async ([pkg, version]) => [pkg, version || (await latestVersion(pkg))])));
}

@@ -20,0 +30,0 @@ /**

{
"name": "yeoman-generator",
"version": "6.0.0-beta.7",
"version": "6.0.0-rc.0",
"description": "Rails-inspired generator system that provides scaffolding for your apps",

@@ -61,2 +61,3 @@ "keywords": [

"json-schema": "^0.4.0",
"latest-version": "^7.0.0",
"lodash": "^4.17.11",

@@ -94,3 +95,3 @@ "mem-fs-editor": "^10.0.1",

"yeoman-environment": "^3.18.4",
"yeoman-test": "^8.0.0-beta.6"
"yeoman-test": "^8.0.0-rc.0"
},

@@ -97,0 +98,0 @@ "peerDependencies": {

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