Publish client

This commit is contained in:
thomashii 2021-05-15 14:53:03 +08:00
parent b68af3789a
commit b1d580fdd2
9 changed files with 15 additions and 15 deletions

View file

@ -1,5 +1,5 @@
# angel3_client # angel3_client
[![version](https://img.shields.io/badge/pub-v2.12.4-brightgreen)](https://pub.dartlang.org/packages/angel3_client) [![version](https://img.shields.io/badge/pub-v4.0.0-brightgreen)](https://pub.dartlang.org/packages/angel3_client)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety) [![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion) [![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)

View file

@ -1,6 +1,6 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert' show Encoding; import 'dart:convert' show Encoding;
import 'package:angel_http_exception/angel_http_exception.dart'; import 'package:angel3_http_exception/angel3_http_exception.dart';
import 'dart:convert'; import 'dart:convert';
import 'package:http/src/base_client.dart' as http; import 'package:http/src/base_client.dart' as http;
import 'package:http/src/base_request.dart' as http; import 'package:http/src/base_request.dart' as http;
@ -8,7 +8,7 @@ import 'package:http/src/request.dart' as http;
import 'package:http/src/response.dart' as http; import 'package:http/src/response.dart' as http;
import 'package:http/src/streamed_response.dart' as http; import 'package:http/src/streamed_response.dart' as http;
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
import 'angel_client.dart'; import 'angel3_client.dart';
const Map<String, String> _readHeaders = {'Accept': 'application/json'}; const Map<String, String> _readHeaders = {'Accept': 'application/json'};
const Map<String, String> _writeHeaders = { const Map<String, String> _writeHeaders = {

View file

@ -6,10 +6,10 @@ import 'dart:async'
import 'dart:html' show CustomEvent, Event, window; import 'dart:html' show CustomEvent, Event, window;
import 'dart:convert'; import 'dart:convert';
import 'package:http/browser_client.dart' as http; import 'package:http/browser_client.dart' as http;
import 'angel_client.dart'; import 'angel3_client.dart';
// import 'auth_types.dart' as auth_types; // import 'auth_types.dart' as auth_types;
import 'base_angel_client.dart'; import 'base_angel_client.dart';
export 'angel_client.dart'; export 'angel3_client.dart';
/// Queries an Angel server via REST. /// Queries an Angel server via REST.
class Rest extends BaseAngelClient { class Rest extends BaseAngelClient {

View file

@ -4,7 +4,7 @@ library angel_client.flutter;
import 'dart:async'; import 'dart:async';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'base_angel_client.dart'; import 'base_angel_client.dart';
export 'angel_client.dart'; export 'angel3_client.dart';
/// Queries an Angel server via REST. /// Queries an Angel server via REST.
class Rest extends BaseAngelClient { class Rest extends BaseAngelClient {

View file

@ -3,11 +3,11 @@ library angel_client.cli;
import 'dart:async'; import 'dart:async';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'package:json_god/json_god.dart' as god; import 'package:angel3_json_god/angel3_json_god.dart' as god;
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
import 'angel_client.dart'; import 'angel3_client.dart';
import 'base_angel_client.dart'; import 'base_angel_client.dart';
export 'angel_client.dart'; export 'angel3_client.dart';
/// Queries an Angel server via REST. /// Queries an Angel server via REST.
class Rest extends BaseAngelClient { class Rest extends BaseAngelClient {

View file

@ -1,5 +1,5 @@
import 'dart:async'; import 'dart:async';
import 'package:angel_client/base_angel_client.dart'; import 'package:angel3_client/base_angel_client.dart';
import 'dart:convert'; import 'dart:convert';
import 'package:http/src/base_client.dart' as http; import 'package:http/src/base_client.dart' as http;
import 'package:http/src/base_request.dart' as http; import 'package:http/src/base_request.dart' as http;

View file

@ -1,8 +1,8 @@
import 'package:async/async.dart'; import 'package:async/async.dart';
import 'dart:io'; import 'dart:io';
import 'package:angel_client/io.dart' as c; import 'package:angel3_client/io.dart' as c;
import 'package:angel_framework/angel_framework.dart' as s; import 'package:angel3_framework/angel3_framework.dart' as s;
import 'package:angel_framework/http.dart' as s; import 'package:angel3_framework/http.dart' as s;
import 'package:pedantic/pedantic.dart'; import 'package:pedantic/pedantic.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';

View file

@ -1,4 +1,4 @@
import 'package:angel_model/angel_model.dart'; import 'package:angel3_model/angel3_model.dart';
class Postcard extends Model { class Postcard extends Model {
String? location; String? location;

View file

@ -1,5 +1,5 @@
import 'dart:html'; import 'dart:html';
import 'package:angel_client/browser.dart'; import 'package:angel3_client/browser.dart';
/// Dummy app to ensure client works with DDC. /// Dummy app to ensure client works with DDC.
void main() { void main() {