Socket
Socket
Sign inDemoInstall

egg-aop

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-aop - npm Package Compare versions

Comparing version 0.3.9 to 0.3.10

6

app/extend/application.js
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const power_di_1 = require("power-di");
const lib_1 = require("../../lib");
const IOC = Symbol('Application#PowerDI');

@@ -12,2 +13,7 @@ module.exports = {

},
get getComponent() {
return function (clsType) {
return lib_1.getInstance(clsType, this, undefined);
};
}
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const power_di_1 = require("power-di");
const lib_1 = require("../../lib");
const IOC = Symbol('Context#PowerDI');

@@ -12,2 +13,7 @@ module.exports = {

},
get getComponent() {
return function (clsType) {
return lib_1.getInstance(clsType, this.app, this);
};
}
};

@@ -6,1 +6,10 @@ export * from './decorators';

export * from './aspect';
import 'chair';
declare module 'chair' {
interface Context {
getComponent<T = any>(clsType: any): T;
}
interface Application {
getComponent<T = any>(clsType: any): T;
}
}

1

lib/index.js

@@ -12,1 +12,2 @@ "use strict";

tslib_1.__exportStar(require("./aspect"), exports);
require("chair");

2

package.json
{
"name": "egg-aop",
"version": "0.3.9",
"version": "0.3.10",
"description": "aop for egg.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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