From 6d3cd8dd064fff4f06055b769235e76ef97896be Mon Sep 17 00:00:00 2001 From: Jenny Messerly Date: Wed, 11 Jul 2018 13:15:55 -0700 Subject: [PATCH] Fix --watch option with node on Mac OS (#402) Closes #399 --- CHANGELOG.md | 2 ++ lib/src/io/node.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fc337708..adf1b4d91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ * Don't emit ANSI codes to Windows terminals that don't support them. +* Fix a bug where `--watch` crashed on Mac OS. + ## 1.9.0 ### Node API diff --git a/lib/src/io/node.dart b/lib/src/io/node.dart index 7a49a6df3..23b0bf4e9 100644 --- a/lib/src/io/node.dart +++ b/lib/src/io/node.dart @@ -252,11 +252,11 @@ Future> watchDir(String path, {bool poll: false}) { watcher ..on( 'add', - allowInterop((String path, _) => + allowInterop((String path, [_]) => controller?.add(new WatchEvent(ChangeType.ADD, path)))) ..on( 'change', - allowInterop((String path, _) => + allowInterop((String path, [_]) => controller?.add(new WatchEvent(ChangeType.MODIFY, path)))) ..on( 'unlink', diff --git a/pubspec.yaml b/pubspec.yaml index 0c7051f43..789cd24d8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass -version: 1.9.1-dev +version: 1.9.1 description: A Sass implementation in Dart. author: Dart Team homepage: https://github.com/sass/dart-sass