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

@adonisjs/sink

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/sink - npm Package Compare versions

Comparing version 5.1.6 to 5.2.0

36

package.json
{
"name": "@adonisjs/sink",
"version": "5.1.6",
"version": "5.2.0",
"description": "AdonisJS sink is a swiss knife for managing project files by applying minimal changes, inferring formatting from EditorConfig file and comes with specialized tasks for different file formats and file types.",

@@ -34,25 +34,25 @@ "main": "index.js",

"devDependencies": {
"@adonisjs/application": "^5.1.6",
"@adonisjs/application": "^5.1.7",
"@adonisjs/mrm-preset": "^4.1.2",
"@adonisjs/require-ts": "^2.0.8",
"@poppinss/dev-utils": "^1.1.5",
"@types/fs-extra": "^9.0.12",
"@types/ini": "^1.3.30",
"@types/fs-extra": "^9.0.13",
"@types/ini": "^1.3.31",
"@types/marked": "^2.0.4",
"@types/node": "^16.7.5",
"@types/node": "^16.11.9",
"@types/yaml": "^1.9.7",
"del-cli": "^4.0.1",
"endent": "^2.1.0",
"eslint": "^7.32.0",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-adonis": "^1.3.3",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-adonis": "^2.0.0",
"eslint-plugin-prettier": "^4.0.0",
"github-label-sync": "^2.0.2",
"husky": "^7.0.2",
"husky": "^7.0.4",
"ini": "^2.0.0",
"japa": "^3.1.1",
"mrm": "^3.0.8",
"np": "^7.5.0",
"prettier": "^2.3.2",
"typescript": "^4.4.2",
"japa": "^4.0.0",
"mrm": "^3.0.10",
"np": "^7.6.0",
"prettier": "^2.4.1",
"typescript": "^4.5.2",
"yaml": "^1.10.2"

@@ -76,10 +76,10 @@ },

"@poppinss/prompts": "^1.2.3",
"@poppinss/utils": "^3.2.0",
"@poppinss/utils": "^3.3.1",
"cp-file": "^9.1.0",
"fs-extra": "^10.0.0",
"marked": "^2.1.3",
"marked-terminal": "^4.1.1",
"mrm-core": "^6.1.5",
"marked-terminal": "^4.2.0",
"mrm-core": "^6.1.7",
"mustache": "^4.2.0",
"open": "^8.2.1"
"open": "^8.4.0"
},

@@ -86,0 +86,0 @@ "peerDependencies": {

@@ -11,2 +11,3 @@ /// <reference types="node" />

};
declare type SupportedPackageManager = 'yarn' | 'pnpm' | 'npm';
/**

@@ -39,5 +40,5 @@ * Exposes the API to work with `package.json` file. The file is

/**
* Explicitly force to use yarn instead of npm
* Explicitly force to use another client instead of npm
*/
private useYarn;
private packageManager;
/**

@@ -101,5 +102,10 @@ * Method invoked before installing dependencies

/**
* Set a specific client to be used
*/
useClient(client: SupportedPackageManager): this;
/**
* Enable/disable use of yarn
* @deprecated The "yarn" method is deprecated. Please use "useClient('yarn')" instead.
*/
yarn(useYarn: boolean): this;
yarn(_useYarn: boolean): this;
/**

@@ -106,0 +112,0 @@ * Unset key/value pair from the package.json file

@@ -35,6 +35,2 @@ "use strict";

};
/**
* Explicitly force to use yarn instead of npm
*/
this.useYarn = null;
this.cdIn();

@@ -59,5 +55,8 @@ this.filePointer = (0, mrm_core_1.packageJson)();

setClient(options) {
if (this.useYarn !== null) {
options.yarn = this.useYarn;
if (this.packageManager === 'yarn') {
options.yarn = true;
}
else if (this.packageManager === 'pnpm') {
options.pnpm = true;
}
}

@@ -254,6 +253,14 @@ /**

/**
* Set a specific client to be used
*/
useClient(client) {
this.packageManager = client;
return this;
}
/**
* Enable/disable use of yarn
* @deprecated The "yarn" method is deprecated. Please use "useClient('yarn')" instead.
*/
yarn(useYarn) {
this.useYarn = useYarn;
yarn(_useYarn) {
this.packageManager = 'yarn';
return this;

@@ -260,0 +267,0 @@ }

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