Skip to content

Commit 754bcf5

Browse files
authored
feat(): support migrate js interop to Web package (#6137)
* Migrated Sigv4 Example Project * Migrate Amplify DB Common Dart * Migrate Example Common * Migrated Amplify Storage S3 Dart * Migrated Amplify Storage S3 Dart Example Project * Migrated Amplify Auth Cognito Dart * Migrated Amplify Auth Cognito Dart Example Project * Migrated Amplify Core * Migrated Actions * Migrated Worker Bee E2E * Migrated Worker Bee * Migrated Template
1 parent 09c62c5 commit 754bcf5

File tree

1,346 files changed

+7370
-12837
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,346 files changed

+7370
-12837
lines changed

actions/lib/src/node/actions/exec.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
import 'dart:convert';
55
import 'dart:js_interop';
6-
//ignore: deprecated_member_use
7-
import 'dart:js_util';
86

97
@JS()
108
external Exec get exec;
@@ -46,9 +44,14 @@ extension type Exec._(JSObject it) {
4644
ignoreReturnCode: !failOnNonZeroExit,
4745
);
4846
try {
49-
final exitCode = await promiseToFuture<int>(
50-
_exec(commandLine, args.map((arg) => arg.toJS).toList().toJS, options),
51-
);
47+
final jsExitCode =
48+
await _exec(
49+
commandLine,
50+
args.map((arg) => arg.toJS).toList().toJS,
51+
options,
52+
).toDart;
53+
54+
final exitCode = (jsExitCode as JSNumber).toDartInt;
5255
return ExecResult(
5356
exitCode: exitCode,
5457
stdout: stdout.toString(),

packages/aft/lib/src/changelog/changelog.g.dart

Lines changed: 6 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/aft/lib/src/config/config.g.dart

Lines changed: 14 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)