67
This commit is contained in:
parent
4ad9e06269
commit
44683b8a34
3 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
# angel_framework
|
# angel_framework
|
||||||
|
|
||||||
[![pub 1.0.0-dev.66](https://img.shields.io/badge/pub-1.0.0--dev.66-red.svg)](https://pub.dartlang.org/packages/angel_framework)
|
[![pub 1.0.0-dev.67](https://img.shields.io/badge/pub-1.0.0--dev.67-red.svg)](https://pub.dartlang.org/packages/angel_framework)
|
||||||
[![build status](https://travis-ci.org/angel-dart/framework.svg)](https://travis-ci.org/angel-dart/framework)
|
[![build status](https://travis-ci.org/angel-dart/framework.svg)](https://travis-ci.org/angel-dart/framework)
|
||||||
|
|
||||||
Core libraries for the Angel Framework.
|
Core libraries for the Angel Framework.
|
||||||
|
|
|
@ -66,6 +66,8 @@ HookedServiceEventListener toType(Type type) {
|
||||||
|
|
||||||
/// Removes one or more [key]s from `e.data` or `e.result`.
|
/// Removes one or more [key]s from `e.data` or `e.result`.
|
||||||
/// Works on single objects and iterables.
|
/// Works on single objects and iterables.
|
||||||
|
///
|
||||||
|
/// Only applies to the client-side.
|
||||||
HookedServiceEventListener remove(key, [remover(key, obj)]) {
|
HookedServiceEventListener remove(key, [remover(key, obj)]) {
|
||||||
return (HookedServiceEvent e) async {
|
return (HookedServiceEvent e) async {
|
||||||
if (!e.isAfter) throw new StateError("'remove' only works on after hooks.");
|
if (!e.isAfter) throw new StateError("'remove' only works on after hooks.");
|
||||||
|
@ -113,7 +115,8 @@ HookedServiceEventListener remove(key, [remover(key, obj)]) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await normalize(e.isBefore ? e.data : e.result);
|
if (e.params?.containsKey('provider') == true)
|
||||||
|
await normalize(e.isBefore ? e.data : e.result);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel_framework
|
name: angel_framework
|
||||||
version: 1.0.0-dev.66
|
version: 1.0.0-dev.67
|
||||||
description: Core libraries for the Angel framework.
|
description: Core libraries for the Angel framework.
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/angel_framework
|
homepage: https://github.com/angel-dart/angel_framework
|
||||||
|
|
Loading…
Reference in a new issue