Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danylo-safonov-solid committed Sep 21, 2023
1 parent acd3600 commit 6f2df24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import 'dart:js_interop';
import 'dart:js_util';

import 'package:deno_postgres_interop/deno_postgres_interop.dart';
import 'package:supabase_functions/supabase_functions.dart';

Expand Down Expand Up @@ -67,16 +64,3 @@ String rowToPrettyString(Map<String, dynamic> row) => row
.toString()
.replaceAll(', ', '\n')
.replaceAllMapped(RegExp(r'\{|\}'), (_) => '');

/// [js/Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error).
@JS('Error')
class JSError {
/// [js/Error/name](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name).
external String get name;

/// [js/Error/cause](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause).
external Error? get cause;

/// [js/Error/message](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/message).
external String get message;
}
1 change: 0 additions & 1 deletion lib/src/errors/transaction_error.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'dart:js_interop';

import 'package:deno_postgres_interop/src/errors/js_error.dart';
import 'package:deno_postgres_interop/src/errors/postgres_error.dart';

/// [deno-postgres@v0.17.0/TransactionError](https://deno.land/x/postgres@v0.17.0/client/error.ts?s=TransactionError).
Expand Down

0 comments on commit 6f2df24

Please sign in to comment.