Skip to content

Commit

Permalink
use UUID because JS API tests didn't have a crypto random lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodwine committed Jul 20, 2022
1 parent 7f90ba5 commit 97a97ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/sass.dart
Expand Up @@ -26,7 +26,8 @@ export 'src/exception.dart' show SassException;
export 'src/importer.dart';
export 'src/logger.dart';
export 'src/syntax.dart';
export 'src/value.dart' hide ColorFormat, SassApiColor, SassApiValue, SpanColorFormat;
export 'src/value.dart'
hide ColorFormat, SassApiColor, SassApiValue, SpanColorFormat;
export 'src/visitor/serialize.dart' show OutputStyle;
export 'src/evaluation_context.dart' show warn;

Expand Down
4 changes: 2 additions & 2 deletions lib/src/configuration.dart
Expand Up @@ -3,7 +3,7 @@
// https://opensource.org/licenses/MIT.

import 'dart:collection';
import 'package:xid/xid.dart';
import 'package:uuid/uuid.dart';

import 'ast/node.dart';
import 'ast/sass.dart';
Expand All @@ -29,7 +29,7 @@ class Configuration {

/// Creates an implicit configuration with the given [values].
Configuration.implicit(this._values, {String? opaqueId})
: this.opaqueId = opaqueId ?? Xid.string();
: opaqueId = opaqueId ?? Uuid().v1();

/// Uniquely identifying ID for a configuration lasting across the execution
/// context.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -30,7 +30,7 @@ dependencies:
tuple: ^2.0.0
watcher: ^1.0.0
http: ^0.13.3
xid: ^1.0.7
uuid: ^3.0.6

dev_dependencies:
analyzer: ^3.0.0
Expand Down

0 comments on commit 97a97ab

Please sign in to comment.