Socket
Socket
Sign inDemoInstall

@adonisjs/sink

Package Overview
Dependencies
181
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.2.2 to 5.2.3

6

index.js

@@ -12,3 +12,7 @@ "use strict";

if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -15,0 +19,0 @@ if (k2 === undefined) k2 = k;

47

package.json
{
"name": "@adonisjs/sink",
"version": "5.2.2",
"version": "5.2.3",
"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.",

@@ -14,5 +14,5 @@ "main": "index.js",

"pretest": "npm run lint",
"test": "node .bin/test.js",
"test": "node -r ts-node/register/transpile-only bin/test.ts",
"lint": "eslint . --ext=.ts",
"clean": "del build",
"clean": "del-cli build",
"compile": "npm run lint && npm run clean && tsc",

@@ -35,10 +35,14 @@ "build": "npm run compile",

"devDependencies": {
"@adonisjs/application": "^5.2.0",
"@adonisjs/mrm-preset": "^5.0.2",
"@adonisjs/require-ts": "^2.0.10",
"@poppinss/dev-utils": "^2.0.2",
"@adonisjs/application": "^5.2.4",
"@adonisjs/mrm-preset": "^5.0.3",
"@adonisjs/require-ts": "^2.0.11",
"@japa/assert": "^1.3.4",
"@japa/run-failed-tests": "^1.0.7",
"@japa/runner": "^2.0.7",
"@japa/spec-reporter": "^1.1.12",
"@poppinss/dev-utils": "^2.0.3",
"@types/fs-extra": "^9.0.13",
"@types/ini": "^1.3.31",
"@types/marked": "^2.0.4",
"@types/node": "^17.0.21",
"@types/node": "^17.0.24",
"@types/yaml": "^1.9.7",

@@ -49,15 +53,14 @@ "commitizen": "^4.2.4",

"endent": "^2.1.0",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.4.0",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-adonis": "^2.1.0",
"eslint-plugin-prettier": "^4.0.0",
"github-label-sync": "^2.0.2",
"github-label-sync": "^2.2.0",
"husky": "^7.0.4",
"ini": "^2.0.0",
"japa": "^4.0.0",
"mrm": "^3.0.10",
"np": "^7.6.0",
"prettier": "^2.5.1",
"typescript": "^4.5.5",
"yaml": "^1.10.2"
"ini": "^3.0.0",
"mrm": "^4.0.0",
"np": "^7.6.1",
"prettier": "^2.6.2",
"typescript": "^4.6.3",
"yaml": "^2.0.0"
},

@@ -78,5 +81,5 @@ "nyc": {

"dependencies": {
"@poppinss/cliui": "^3.0.1",
"@poppinss/prompts": "^2.0.1",
"@poppinss/utils": "^4.0.2",
"@poppinss/cliui": "^3.0.2",
"@poppinss/prompts": "^2.0.2",
"@poppinss/utils": "^4.0.4",
"cp-file": "^9.1.0",

@@ -86,3 +89,3 @@ "fs-extra": "^10.0.1",

"marked-terminal": "^4.1.1",
"mrm-core": "^6.1.7",
"mrm-core": "^7.0.0",
"mustache": "^4.2.0",

@@ -89,0 +92,0 @@ "open": "^8.4.0"

@@ -42,2 +42,3 @@ import { PackageJson } from 'mrm-core';

aceProviders?: string[];
testProviders?: string[];
};

@@ -44,0 +45,0 @@ /**

@@ -32,2 +32,7 @@ import { AppEnvironments } from '@ioc:Adonis/Core/Application';

private aceProviders;
/**
* Storing a local copy of testProviders for concatenating
* new entries.
*/
private testProviders;
constructor(basePath: string);

@@ -72,2 +77,6 @@ /**

addAceProvider(provider: string): void;
/**
* Add new providers to the test providers array
*/
addTestProvider(provider: string): void;
}

@@ -44,2 +44,7 @@ "use strict";

this.aceProviders = [];
/**
* Storing a local copy of testProviders for concatenating
* new entries.
*/
this.testProviders = [];
this.preloads = this.get('preloads', []);

@@ -50,2 +55,3 @@ this.metaFiles = this.get('metaFiles', []);

this.aceProviders = this.get('aceProviders', []);
this.testProviders = this.get('testProviders', []);
}

@@ -75,2 +81,5 @@ /**

}
if (body.key.startsWith('testProviders')) {
key = 'testProviders';
}
if (!key) {

@@ -195,3 +204,14 @@ return;

}
/**
* Add new providers to the test providers array
*/
addTestProvider(provider) {
let entryIndex = this.testProviders.findIndex((command) => {
return command === provider;
});
entryIndex = entryIndex === -1 ? this.testProviders.length : entryIndex;
this.testProviders[entryIndex] = provider;
this.set(`testProviders[${entryIndex}]`, provider);
}
}
exports.AdonisRcFile = AdonisRcFile;

@@ -12,3 +12,7 @@ "use strict";

if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -232,3 +236,3 @@ if (k2 === undefined) k2 = k;

*/
if (!instructions.providers && !instructions.aceProviders) {
if (!instructions.providers && !instructions.aceProviders && !instructions.testProviders) {
return;

@@ -243,2 +247,5 @@ }

}
if (instructions.testProviders) {
instructions.testProviders.forEach((provider) => adonisRcFile.addTestProvider(provider));
}
adonisRcFile.commit();

@@ -253,2 +260,6 @@ if (instructions.providers) {

}
if (instructions.testProviders) {
const suffix = this.getSuffix(this.formatArray(instructions.testProviders), 'testProviders');
this.logger.action('update').succeeded(`.adonisrc.json ${suffix}`);
}
}

@@ -255,0 +266,0 @@ /**

@@ -12,3 +12,7 @@ "use strict";

if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -15,0 +19,0 @@ if (k2 === undefined) k2 = k;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc