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

@adonisjs/application

Package Overview
Dependencies
Maintainers
3
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/application - npm Package Compare versions

Comparing version 7.1.2-8 to 7.1.2-9

2

build/index.d.ts

@@ -1,5 +0,3 @@

export { Stub } from './src/stubs/stub.js';
export * as errors from './src/exceptions.js';
export { Application } from './src/application.js';
export { StubsManager } from './src/stubs/manager.js';
export { RcFileParser } from './src/rc_file/parser.js';

@@ -9,6 +9,4 @@ /*

*/
export { Stub } from './src/stubs/stub.js';
export * as errors from './src/exceptions.js';
export { Application } from './src/application.js';
export { StubsManager } from './src/stubs/manager.js';
export { RcFileParser } from './src/rc_file/parser.js';

18

build/src/application.d.ts

@@ -5,3 +5,2 @@ /// <reference types="@types/node" resolution-mode="require"/>

import type { HookHandler } from '@poppinss/hooks/types';
import { StubsManager } from './stubs/manager.js';
import type { Importer, SemverNode, AppEnvironments, ApplicationStates } from './types.js';

@@ -67,7 +66,2 @@ /**

/**
* Reference to the rcFile editor. The value is defined
* after the "init" method call
*/
get rcFileEditor(): import("./rc_file/editor.js").RcFileEditor;
/**
* Normalized current NODE_ENV

@@ -114,2 +108,5 @@ */

middlewareFileName(entityName: string): string;
/**
* Return true when `this.nodeEnvironment === 'development'`
*/
providerName(entityName: string): string;

@@ -122,3 +119,6 @@ providerFileName(entityName: string): string;

serviceName(entityName: string): string;
serviceFileName(entityName: string): string;
serviceFileName(entityName: string): string; /**
* The current environment in which the application
* is running
*/
seederName(entityName: string): string;

@@ -141,3 +141,5 @@ seederFileName(entityName: string): string;

};
stubs: StubsManager;
stubs: {
create: () => Promise<import("./stubs/manager.js").StubsManager>;
};
/**

@@ -144,0 +146,0 @@ * Reference to the AdonisJS IoC container. The value is defined

@@ -16,3 +16,2 @@ /*

import generators from './generators.js';
import { StubsManager } from './stubs/manager.js';
import { ConfigManager } from './managers/config.js';

@@ -142,9 +141,2 @@ import { RcFileManager } from './managers/rc_file.js';

/**
* Reference to the rcFile editor. The value is defined
* after the "init" method call
*/
get rcFileEditor() {
return this.#rcFileManager.rcFileEditor;
}
/**
* Normalized current NODE_ENV

@@ -186,3 +178,8 @@ */

}
stubs;
stubs = {
create: async () => {
const { StubsManager } = await import('./stubs/manager.js');
return new StubsManager(this, this.makePath(this.rcFile.directories.stubs));
},
};
/**

@@ -226,8 +223,2 @@ * Reference to the AdonisJS IoC container. The value is defined

/**
* Instantiates the stubs manager
*/
#instantiateStubsManager() {
this.stubs = new StubsManager(this, this.makePath(this.rcFile.directories.stubs));
}
/**
* The current environment in which the application

@@ -358,3 +349,2 @@ * is running

await this.#rcFileManager.process();
this.#instantiateStubsManager();
/**

@@ -361,0 +351,0 @@ * Cleanup registered hooks

/// <reference types="@types/node" resolution-mode="require"/>
import type { RcFile } from '../types.js';
import { RcFileEditor } from '../rc_file/editor.js';
/**

@@ -15,7 +14,2 @@ * RcFileManager is used to process the raw contents or the contents

rcFile: RcFile;
/**
* Reference to the RC file editor. The value is defined
* after the "init" method call
*/
rcFileEditor: RcFileEditor;
constructor(appRoot: URL);

@@ -22,0 +16,0 @@ /**

@@ -12,3 +12,2 @@ /*

import { RcFileParser } from '../rc_file/parser.js';
import { RcFileEditor } from '../rc_file/editor.js';
/**

@@ -29,7 +28,2 @@ * RcFileManager is used to process the raw contents or the contents

rcFile;
/**
* Reference to the RC file editor. The value is defined
* after the "init" method call
*/
rcFileEditor;
constructor(appRoot) {

@@ -51,3 +45,2 @@ this.#appRoot = appRoot;

async process() {
const rcFilePath = new URL('.adonisrc.json', this.#appRoot);
if (!this.#rcContents) {

@@ -59,5 +52,4 @@ const contents = await readFileOptional(new URL('.adonisrc.json', this.#appRoot));

this.rcFile = new RcFileParser(this.#rcContents).parse();
this.rcFileEditor = new RcFileEditor(rcFilePath, this.rcFile.raw);
this.#rcContents = undefined;
}
}
{
"name": "@adonisjs/application",
"version": "7.1.2-8",
"version": "7.1.2-9",
"description": "AdonisJS application class to read app related data",

@@ -17,2 +17,3 @@ "type": "module",

"./generators": "./build/src/generators.js",
"./rc_file_editor": "./build/src/rc_file/editor.js",
"./factories": "./build/factories/main.js"

@@ -45,9 +46,9 @@ },

"devDependencies": {
"@adonisjs/config": "^4.2.1-2",
"@adonisjs/eslint-config": "^1.1.7",
"@adonisjs/fold": "^9.9.3-6",
"@adonisjs/prettier-config": "^1.1.7",
"@adonisjs/tsconfig": "^1.1.7",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@adonisjs/config": "^4.2.1-3",
"@adonisjs/eslint-config": "^1.1.8",
"@adonisjs/fold": "^9.9.3-7",
"@adonisjs/prettier-config": "^1.1.8",
"@adonisjs/tsconfig": "^1.1.8",
"@commitlint/cli": "^17.6.7",
"@commitlint/config-conventional": "^17.6.7",
"@japa/assert": "^2.0.0-1",

@@ -57,11 +58,11 @@ "@japa/expect-type": "^2.0.0-0",

"@japa/runner": "^3.0.0-5",
"@swc/core": "^1.3.68",
"@swc/core": "^1.3.71",
"@types/fs-extra": "^11.0.1",
"@types/glob-parent": "^5.1.1",
"@types/node": "^20.4.1",
"@types/node": "^20.4.5",
"@types/semver": "^7.5.0",
"c8": "^8.0.0",
"c8": "^8.0.1",
"cross-env": "^7.0.3",
"del-cli": "^5.0.0",
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"fs-extra": "^11.1.1",

@@ -72,3 +73,3 @@ "github-label-sync": "^2.3.1",

"np": "^8.0.4",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"semver": "^7.5.4",

@@ -87,4 +88,4 @@ "ts-dedent": "^2.2.0",

"peerDependencies": {
"@adonisjs/config": "^4.2.1-1",
"@adonisjs/fold": "^9.9.3-4"
"@adonisjs/config": "^4.2.1-3",
"@adonisjs/fold": "^9.9.3-7"
},

@@ -91,0 +92,0 @@ "repository": {

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