mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 22:02:00 +01:00
Allow Node 17 to pass extra args to inspect. (#1631)
This commit is contained in:
parent
e3bf3eb3a3
commit
864d526715
@ -1,3 +1,10 @@
|
|||||||
|
## 1.49.8
|
||||||
|
|
||||||
|
### JS API
|
||||||
|
|
||||||
|
* Fix a bug where inspecting the Sass module in the Node.js console crashed on
|
||||||
|
Node 17.
|
||||||
|
|
||||||
## 1.49.7
|
## 1.49.7
|
||||||
|
|
||||||
### Embedded Sass
|
### Embedded Sass
|
||||||
|
@ -130,9 +130,8 @@ class ImportCache {
|
|||||||
.putIfAbsent(Tuple4(url, forImport, baseImporter, baseUrl), () {
|
.putIfAbsent(Tuple4(url, forImport, baseImporter, baseUrl), () {
|
||||||
var resolvedUrl = baseUrl?.resolveUri(url) ?? url;
|
var resolvedUrl = baseUrl?.resolveUri(url) ?? url;
|
||||||
var canonicalUrl = _canonicalize(baseImporter, resolvedUrl, forImport);
|
var canonicalUrl = _canonicalize(baseImporter, resolvedUrl, forImport);
|
||||||
if (canonicalUrl != null) {
|
if (canonicalUrl == null) return null;
|
||||||
return Tuple3(baseImporter, canonicalUrl, resolvedUrl);
|
return Tuple3(baseImporter, canonicalUrl, resolvedUrl);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
if (relativeResult != null) return relativeResult;
|
if (relativeResult != null) return relativeResult;
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,7 @@ extension JSClassExtension on JSClass {
|
|||||||
/// Sets the custom inspect logic for this class to [body].
|
/// Sets the custom inspect logic for this class to [body].
|
||||||
void setCustomInspect(String inspect(Object self)) {
|
void setCustomInspect(String inspect(Object self)) {
|
||||||
setProperty(prototype, _inspectSymbol,
|
setProperty(prototype, _inspectSymbol,
|
||||||
allowInteropCaptureThis((Object self, _, __) => inspect(self)));
|
allowInteropCaptureThis((Object self, _, __, [___]) => inspect(self)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Defines a method with the given [name] and [body].
|
/// Defines a method with the given [name] and [body].
|
||||||
|
@ -105,5 +105,6 @@ extension _IterableExtension<E> on Iterable<E> {
|
|||||||
var value = callback(element);
|
var value = callback(element);
|
||||||
if (value != null) return value;
|
if (value != null) return value;
|
||||||
}
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: sass
|
name: sass
|
||||||
version: 1.49.7
|
version: 1.49.8-dev
|
||||||
description: A Sass implementation in Dart.
|
description: A Sass implementation in Dart.
|
||||||
homepage: https://github.com/sass/dart-sass
|
homepage: https://github.com/sass/dart-sass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user