diff --git a/docs/classes/abstractjoinpointcontext.html b/docs/classes/abstractjoinpointcontext.html index 1d78a5d..1b3e804 100644 --- a/docs/classes/abstractjoinpointcontext.html +++ b/docs/classes/abstractjoinpointcontext.html @@ -141,7 +141,7 @@

constructor

  • Parameters

    @@ -169,7 +169,7 @@

    Protected context

    context: CONTEXT
    @@ -179,7 +179,7 @@

    Protected pointcut

    pointcut: P
    @@ -189,7 +189,7 @@

    Protected property

    property: string
    @@ -206,7 +206,7 @@

    getContext

  • @@ -228,7 +228,7 @@

    getPointcut

  • @@ -250,7 +250,7 @@

    getProperty

  • @@ -385,6 +385,9 @@

    Returns string Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/aopmanager.html b/docs/classes/aopmanager.html index 399dd0e..3dc543d 100644 --- a/docs/classes/aopmanager.html +++ b/docs/classes/aopmanager.html @@ -103,7 +103,7 @@

    install

  • @@ -131,7 +131,7 @@

    Protected installMethod<
  • Parameters

    @@ -160,7 +160,7 @@

    Protected installPropert
  • Type parameters

    @@ -195,7 +195,7 @@

    Protected installStatic<
  • Parameters

    @@ -224,7 +224,7 @@

    Protected installStatic<
  • Type parameters

    @@ -366,6 +366,9 @@

    Returns void Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/getterjoinpointcontext.html b/docs/classes/getterjoinpointcontext.html index d448470..0f9d838 100644 --- a/docs/classes/getterjoinpointcontext.html +++ b/docs/classes/getterjoinpointcontext.html @@ -144,7 +144,7 @@

    constructor

    Parameters

    @@ -176,7 +176,7 @@

    Protected context

    @@ -186,7 +186,7 @@

    Protected getter

    getter: Function
    @@ -197,7 +197,7 @@

    Protected pointcut

    @@ -208,7 +208,7 @@

    Protected property

    @@ -226,7 +226,7 @@

    getContext

    @@ -249,7 +249,7 @@

    getPointcut

    @@ -275,7 +275,7 @@

    getProperty

    @@ -297,7 +297,7 @@

    getValue

  • @@ -438,6 +438,9 @@

    Returns T<
  • Getter
  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/instancemethodpointcut.html b/docs/classes/instancemethodpointcut.html index eae6458..4de1053 100644 --- a/docs/classes/instancemethodpointcut.html +++ b/docs/classes/instancemethodpointcut.html @@ -110,7 +110,7 @@

    Abstract cls

    @@ -121,7 +121,7 @@

    Abstract property

    @@ -233,6 +233,9 @@

    Abstract property

  • Getter
  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/instancepropertypointcut.html b/docs/classes/instancepropertypointcut.html index e4c6bb4..2c87ae0 100644 --- a/docs/classes/instancepropertypointcut.html +++ b/docs/classes/instancepropertypointcut.html @@ -110,7 +110,7 @@

    Abstract cls

    @@ -121,7 +121,7 @@

    Abstract property

    @@ -233,6 +233,9 @@

    Abstract property

  • Getter
  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/joinpointcontext.html b/docs/classes/joinpointcontext.html index 930b812..3fdf36e 100644 --- a/docs/classes/joinpointcontext.html +++ b/docs/classes/joinpointcontext.html @@ -154,7 +154,7 @@

    constructor

    Parameters

    @@ -188,7 +188,7 @@

    Protected args

    args: ARGS
    @@ -199,7 +199,7 @@

    Protected context

    @@ -210,7 +210,7 @@

    Protected pointcut

    @@ -221,7 +221,7 @@

    Protected property

    @@ -231,7 +231,7 @@

    Protected result: RESULT

  • @@ -241,7 +241,7 @@

    Protected target: Function @@ -269,7 +269,7 @@

    getArgument

  • @@ -291,7 +291,7 @@

    Returns ARGS[0]

    Parameters

    @@ -308,7 +308,7 @@

    Returns ARGS[1]

    Parameters

    @@ -325,7 +325,7 @@

    Returns ARGS[2]

    Parameters

    @@ -342,7 +342,7 @@

    Returns ARGS[3]

    Parameters

    @@ -359,7 +359,7 @@

    Returns ARGS[4]

    Parameters

    @@ -376,7 +376,7 @@

    Returns ARGS[5]

    Parameters

    @@ -393,7 +393,7 @@

    Returns ARGS[6]

    Parameters

    @@ -410,7 +410,7 @@

    Returns ARGS[7]

    Parameters

    @@ -427,7 +427,7 @@

    Returns ARGS[8]

    Parameters

    @@ -444,7 +444,7 @@

    Returns ARGS[9]

    Parameters

    @@ -461,7 +461,7 @@

    Returns any

    Type parameters

    @@ -493,7 +493,7 @@

    getArguments

  • @@ -516,7 +516,7 @@

    getContext

    @@ -539,7 +539,7 @@

    getPointcut

    @@ -565,7 +565,7 @@

    getProperty

    @@ -587,7 +587,7 @@

    getResult

  • @@ -612,7 +612,7 @@

    proceed

  • @@ -634,7 +634,7 @@

    setArgument

  • @@ -671,7 +671,7 @@

    setResult

  • @@ -839,6 +839,9 @@

    Returns this Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/pointcut.html b/docs/classes/pointcut.html index 8c495f3..6390caa 100644 --- a/docs/classes/pointcut.html +++ b/docs/classes/pointcut.html @@ -118,7 +118,7 @@

    Abstract cls

    cls: Cls<T> | T
    @@ -128,7 +128,7 @@

    Abstract property

    property: Property<T> | MethodProperty<T>
    @@ -240,6 +240,9 @@

    Abstract property

  • Getter
  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/propertyjoinpointcontext.html b/docs/classes/propertyjoinpointcontext.html index 09eb5db..28c9f17 100644 --- a/docs/classes/propertyjoinpointcontext.html +++ b/docs/classes/propertyjoinpointcontext.html @@ -137,7 +137,7 @@

    constructor

    Parameters

    @@ -166,7 +166,7 @@

    Protected context

    @@ -177,7 +177,7 @@

    Protected pointcut

    @@ -188,7 +188,7 @@

    Protected property

    @@ -206,7 +206,7 @@

    getContext

    @@ -229,7 +229,7 @@

    getPointcut

    @@ -255,7 +255,7 @@

    getProperty

    @@ -390,6 +390,9 @@

    Returns string Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/setterjoinpointcontext.html b/docs/classes/setterjoinpointcontext.html index 08ca621..0591bcc 100644 --- a/docs/classes/setterjoinpointcontext.html +++ b/docs/classes/setterjoinpointcontext.html @@ -147,7 +147,7 @@

    constructor

    Parameters

    @@ -181,7 +181,7 @@

    Protected argument

    argument: T
    @@ -192,7 +192,7 @@

    Protected context

    @@ -203,7 +203,7 @@

    Protected pointcut

    @@ -214,7 +214,7 @@

    Protected property

    @@ -224,7 +224,7 @@

    Protected setter

    setter: Function
    @@ -241,7 +241,7 @@

    getArgument

  • @@ -264,7 +264,7 @@

    getContext

    @@ -287,7 +287,7 @@

    getPointcut

    @@ -313,7 +313,7 @@

    getProperty

    @@ -335,7 +335,7 @@

    proceed

  • @@ -357,7 +357,7 @@

    setValue

  • @@ -513,6 +513,9 @@

    Returns void Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/staticmethodpointcut.html b/docs/classes/staticmethodpointcut.html index c89ab1c..f8a06b7 100644 --- a/docs/classes/staticmethodpointcut.html +++ b/docs/classes/staticmethodpointcut.html @@ -110,7 +110,7 @@

    Abstract cls

    @@ -121,7 +121,7 @@

    Abstract property

    @@ -233,6 +233,9 @@

    Abstract property

  • Getter
  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/classes/staticpropertypointcut.html b/docs/classes/staticpropertypointcut.html index e161a9d..6cf88cb 100644 --- a/docs/classes/staticpropertypointcut.html +++ b/docs/classes/staticpropertypointcut.html @@ -110,7 +110,7 @@

    Abstract cls

    @@ -121,7 +121,7 @@

    Abstract property

    @@ -233,6 +233,9 @@

    Abstract property

  • Getter
  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/globals.html b/docs/globals.html index 386984a..872685c 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -113,6 +113,7 @@

    Variables

  • Before
  • BeforeStatic
  • Getter
  • +
  • REFLECTION_PROPERTY_BLACKLIST
  • Setter
  • StaticGetter
  • StaticSetter
  • @@ -136,7 +137,7 @@

    ArgumentTypes

    ArgumentTypes: ArgumentTypes<T>
    @@ -151,7 +152,7 @@

    Cls

    Cls: object
    @@ -169,7 +170,7 @@
    new: function
  • Parameters

    @@ -190,7 +191,7 @@

    MethodProperty

    MethodProperty: string | string[] | keyof T | keyof T[] | RegExp
    @@ -200,7 +201,7 @@

    Property

    Property: string | string[] | keyof T | keyof T[]
    @@ -210,7 +211,7 @@

    ReturnType

    ReturnType: ReturnType<T>
    @@ -228,7 +229,7 @@

    Const After

    After: InstanceMethodPointcutDecorator = Annotator.makePropDecorator('After', propsFactory, InstanceMethodPointcut)
    @@ -240,8 +241,7 @@

    Const After

    class Aspect {
         @After(ExampleClass, 'exampleMethod')
         advice(jp : JoinpointContext) {}
    -}
    -
    +}
    @@ -251,7 +251,7 @@

    Const AfterStatic

    AfterStatic: StaticMethodPointcutDecorator = Annotator.makePropDecorator('AfterStatic', propsFactory, StaticMethodPointcut)
    @@ -263,8 +263,7 @@

    Const AfterStatic

    class Aspect {
         @AfterStatic(ExampleClass, 'exampleMethod')
         advice(jp : JoinpointContext) {}
    -}
    -
    +}
    @@ -274,7 +273,7 @@

    Const Around

    Around: InstanceMethodPointcutDecorator = Annotator.makePropDecorator('Around', propsFactory, InstanceMethodPointcut)
    @@ -288,8 +287,7 @@

    Const Around

    advice(jp : JoinpointContext) { return jp.proceed() } -} - +}
    @@ -299,7 +297,7 @@

    Const AroundStatic

    AroundStatic: StaticMethodPointcutDecorator = Annotator.makePropDecorator('AroundStatic', propsFactory, StaticMethodPointcut)
    @@ -313,8 +311,7 @@

    Const AroundStatic

    advice(jp : JoinpointContext) { return jp.proceed() } -} - +}
    @@ -324,7 +321,7 @@

    Const Before

    Before: InstanceMethodPointcutDecorator = Annotator.makePropDecorator('Before', propsFactory, InstanceMethodPointcut)
    @@ -336,8 +333,7 @@

    Const Before

    class Aspect {
         @Before(ExampleClass, 'exampleMethod')
         advice(jp : JoinpointContext) {}
    -}
    -
    +}
    @@ -347,7 +343,7 @@

    Const BeforeStatic

    BeforeStatic: StaticMethodPointcutDecorator = Annotator.makePropDecorator('BeforeStatic', propsFactory, StaticMethodPointcut)
    @@ -359,8 +355,7 @@

    Const BeforeStatic

    class Aspect {
         @BeforeStatic(ExampleClass, 'exampleMethod')
         advice(jp : JoinpointContext) {}
    -}
    -
    +}
    @@ -370,7 +365,7 @@

    Const Getter

    Getter: InstancePropertyPointcutDecorator = Annotator.makePropDecorator('Getter', propsFactory, InstancePropertyPointcut)
    @@ -384,18 +379,27 @@

    Const Getter

    advice(jp : GetterJoinpointContext) { return jp.getValue() } -} - +}
    +
    + +

    Const REFLECTION_PROPERTY_BLACKLIST

    +
    REFLECTION_PROPERTY_BLACKLIST: Set<string> = new Set(['__defineGetter__','__defineSetter__','hasOwnProperty','__lookupGetter__','__lookupSetter__','isPrototypeOf','propertyIsEnumerable','__proto__','toLocaleString'])
    + +

    Const Setter

    Setter: InstancePropertyPointcutDecorator = Annotator.makePropDecorator('Setter', propsFactory, InstancePropertyPointcut)
    @@ -409,8 +413,7 @@

    Const Setter

    advice(jp : SetterJoinpointContext) { jp.proceed() } -} - +}
    @@ -420,7 +423,7 @@

    Const StaticGetter

    StaticGetter: StaticPropertyPointcutDecorator = Annotator.makePropDecorator('GetterStatic', propsFactory, StaticPropertyPointcut)
    @@ -434,8 +437,7 @@

    Const StaticGetter

    advice(jp : GetterJoinpointContext) { return jp.getValue() } -} - +}
    @@ -445,7 +447,7 @@

    Const StaticSetter

    StaticSetter: StaticPropertyPointcutDecorator = Annotator.makePropDecorator('SetterStatic', propsFactory, StaticPropertyPointcut)
    @@ -459,8 +461,7 @@

    Const StaticSetter

    advice(jp : SetterJoinpointContext) { jp.proceed() } -} - +}
    @@ -477,7 +478,7 @@

    Const propsFactory

  • Parameters

    @@ -506,7 +507,7 @@
    new: function
  • Parameters

    @@ -537,7 +538,7 @@

    unique

  • @@ -663,6 +664,9 @@

    Returns boolean Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/index.html b/docs/index.html index 9e2e65a..30edcfb 100644 --- a/docs/index.html +++ b/docs/index.html @@ -77,10 +77,9 @@

    @neoskop/phantom

    Test coverage develop Known Vulnerabilities develop

    Installation

    -
    yarn add @neoskop/phantom
    -
    +
    yarn add @neoskop/phantom

    Usage

    -
    import { AopManager, Before, After, JoinpointContext } from '@neoskop/phantom';
    +				
    import { AopManager, Before, After, JoinpointContext } from '@neoskop/phantom';
     
     class TestClass {
         foo(arg : string) {
    @@ -114,14 +113,11 @@ 

    Usage

    console.log(instance.bar('Bar')); // > TestClass bar [ 'Bar' ] // < TestClass bar bar - // bar -
    + // bar

    Testing

    -
    yarn test
    -
    +
    yarn test

    Building

    -
    yarn run build
    -
    +
    yarn run build

    License

    MIT License

    Copyright (c) 2018 Neoskop GmbH

    @@ -238,6 +234,9 @@
  • Getter
  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/interfaces/instancemethodpointcutdecorator.html b/docs/interfaces/instancemethodpointcutdecorator.html index 8c5ab66..8c20633 100644 --- a/docs/interfaces/instancemethodpointcutdecorator.html +++ b/docs/interfaces/instancemethodpointcutdecorator.html @@ -83,7 +83,7 @@

    Callable

  • Type parameters

    @@ -130,7 +130,7 @@

    constructor

  • Type parameters

    @@ -257,6 +257,9 @@

    Returns Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/interfaces/instancepropertypointcutdecorator.html b/docs/interfaces/instancepropertypointcutdecorator.html index 717c91d..dc73765 100644 --- a/docs/interfaces/instancepropertypointcutdecorator.html +++ b/docs/interfaces/instancepropertypointcutdecorator.html @@ -83,7 +83,7 @@

    Callable

  • Type parameters

    @@ -130,7 +130,7 @@

    constructor

  • Type parameters

    @@ -257,6 +257,9 @@

    Returns Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/interfaces/joinpoint.html b/docs/interfaces/joinpoint.html index ee27320..497be7f 100644 --- a/docs/interfaces/joinpoint.html +++ b/docs/interfaces/joinpoint.html @@ -95,7 +95,7 @@

    Callable

  • @@ -383,7 +383,7 @@

    restore

  • Returns void

    @@ -551,6 +551,9 @@

    Returns string Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/interfaces/staticmethodpointcutdecorator.html b/docs/interfaces/staticmethodpointcutdecorator.html index 13a394d..861d7f3 100644 --- a/docs/interfaces/staticmethodpointcutdecorator.html +++ b/docs/interfaces/staticmethodpointcutdecorator.html @@ -83,7 +83,7 @@

    Callable

  • Type parameters

    @@ -130,7 +130,7 @@

    constructor

  • Type parameters

    @@ -257,6 +257,9 @@

    Returns Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/docs/interfaces/staticpropertypointcutdecorator.html b/docs/interfaces/staticpropertypointcutdecorator.html index 2e0a0dd..91fc4c2 100644 --- a/docs/interfaces/staticpropertypointcutdecorator.html +++ b/docs/interfaces/staticpropertypointcutdecorator.html @@ -83,7 +83,7 @@

    Callable

  • Type parameters

    @@ -130,7 +130,7 @@

    constructor

  • Type parameters

    @@ -257,6 +257,9 @@

    Returns Getter

  • +
  • + REFLECTION_PROPERTY_BLACKLIST +
  • Setter
  • diff --git a/package.json b/package.json index 8e6a223..f883a35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neoskop/phantom", - "version": "1.2.0-rc.1", + "version": "1.2.0-rc.2", "description": "An AOP (aspect oriented programming) framework", "main": "bundle/phantom.bundle.js", "module": "dist/public_api.js", @@ -92,4 +92,4 @@ "@neoskop/annotation-factory" ] } -} +} \ No newline at end of file