This commit is contained in:
thosakwe 2017-03-05 23:55:13 -05:00
parent 4ad9e06269
commit 44683b8a34
3 changed files with 6 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# 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)
Core libraries for the Angel Framework.

View file

@ -66,6 +66,8 @@ HookedServiceEventListener toType(Type type) {
/// Removes one or more [key]s from `e.data` or `e.result`.
/// Works on single objects and iterables.
///
/// Only applies to the client-side.
HookedServiceEventListener remove(key, [remover(key, obj)]) {
return (HookedServiceEvent e) async {
if (!e.isAfter) throw new StateError("'remove' only works on after hooks.");
@ -113,6 +115,7 @@ HookedServiceEventListener remove(key, [remover(key, obj)]) {
}
}
if (e.params?.containsKey('provider') == true)
await normalize(e.isBefore ? e.data : e.result);
};
}

View file

@ -1,5 +1,5 @@
name: angel_framework
version: 1.0.0-dev.66
version: 1.0.0-dev.67
description: Core libraries for the Angel framework.
author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_framework