From 04535e8af553bf8280247f37c45eab47ceb5bba2 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 16 Feb 2023 06:22:36 +0000 Subject: [PATCH] Fix build issues --- LICENSE | 2 +- README.md | 4 +++- src/client.ts | 2 +- src/inputFile.ts | 4 +--- src/models.d.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index 90528c4..47cfdfb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2022 Appwrite (https://appwrite.io) and individual contributors. +Copyright (c) 2023 Appwrite (https://appwrite.io) and individual contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/README.md b/README.md index fe79136..2038e41 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Appwrite Deno SDK ![License](https://img.shields.io/github/license/appwrite/sdk-for-deno.svg?style=flat-square) -![Version](https://img.shields.io/badge/api%20version-1.2.0-blue.svg?style=flat-square) +![Version](https://img.shields.io/badge/api%20version-1.2.1-blue.svg?style=flat-square) [![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator) [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) [![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord) @@ -86,6 +86,8 @@ You can use the following resources to learn more and get help - 🚂 [Appwrite Deno Playground](https://github.com/appwrite/playground-for-deno) +> Minimal supported version for Deno SDK is 1.19.0. + ## Contribution This library is auto-generated by Appwrite custom [SDK Generator](https://github.com/appwrite/sdk-generator). To learn more about how you can help us improve this SDK, please check the [contribution guide](https://github.com/appwrite/sdk-generator/blob/master/CONTRIBUTING.md) before sending a pull-request. diff --git a/src/client.ts b/src/client.ts index 633a4ca..8b96a42 100644 --- a/src/client.ts +++ b/src/client.ts @@ -14,7 +14,7 @@ export class Client { 'x-sdk-name': 'Deno', 'x-sdk-platform': 'server', 'x-sdk-language': 'deno', - 'x-sdk-version': '6.2.0', + 'x-sdk-version': '6.2.1', 'X-Appwrite-Response-Format':'1.0.0', }; diff --git a/src/inputFile.ts b/src/inputFile.ts index 7863a5a..fdda97d 100644 --- a/src/inputFile.ts +++ b/src/inputFile.ts @@ -1,5 +1,3 @@ -import { readableStreamFromReader } from "https://deno.land/std/streams/conversion.ts"; - const _bufferToString = (buffer: Uint8Array): ReadableStream => { return new ReadableStream({ start(controller) { @@ -16,7 +14,7 @@ export class InputFile { static fromPath = (filePath: string, filename: string): InputFile => { const file = Deno.openSync(filePath); - const stream = readableStreamFromReader(file); + const stream = file.readable; const size = Deno.statSync(filePath).size; return new InputFile(stream, filename, size); }; diff --git a/src/models.d.ts b/src/models.d.ts index 5b2fb48..27dbf53 100644 --- a/src/models.d.ts +++ b/src/models.d.ts @@ -1180,7 +1180,7 @@ export namespace Models { */ continent: string; /** - * True if country is part of the Europian Union. + * True if country is part of the European Union. */ eu: boolean; /**