1
0
Fork 0
mirror of synced 2024-06-19 03:04:53 +12:00

Updated SDKs

This commit is contained in:
Eldad Fux 2020-05-18 19:57:55 +03:00
parent a001e5a473
commit dbddbf9556
13 changed files with 20 additions and 20 deletions

View file

@ -15,7 +15,7 @@ return [
[
'key' => 'web',
'name' => 'Web',
'version' => '1.0.29',
'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-js',
'enabled' => true,
'beta' => false,
@ -128,7 +128,7 @@ return [
[
'key' => 'nodejs',
'name' => 'Node.js',
'version' => '1.0.32',
'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-node',
'enabled' => true,
'beta' => false,
@ -142,7 +142,7 @@ return [
[
'key' => 'php',
'name' => 'PHP',
'version' => '1.0.17',
'version' => '1.1.0',
'url' => 'https://github.com/appwrite/sdk-for-php',
'enabled' => true,
'beta' => false,
@ -156,7 +156,7 @@ return [
[
'key' => 'python',
'name' => 'Python',
'version' => '0.0.4',
'version' => '0.0.5',
'url' => 'https://github.com/appwrite/sdk-for-python',
'enabled' => true,
'beta' => true,
@ -170,7 +170,7 @@ return [
[
'key' => 'ruby',
'name' => 'Ruby',
'version' => '1.0.9',
'version' => '1.0.10',
'url' => 'https://github.com/appwrite/sdk-for-ruby',
'enabled' => true,
'beta' => true,
@ -184,7 +184,7 @@ return [
[
'key' => 'go',
'name' => 'Go',
'version' => '0.0.6',
'version' => '0.0.7',
'url' => 'https://github.com/appwrite/sdk-for-go',
'enabled' => false,
'beta' => true,
@ -198,7 +198,7 @@ return [
[
'key' => 'java',
'name' => 'Java',
'version' => '0.0.1',
'version' => '0.0.2',
'url' => 'https://github.com/appwrite/sdk-for-java',
'enabled' => false,
'beta' => true,

View file

@ -30,7 +30,7 @@ import * as Appwrite from "appwrite";
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:
```html
<script src="https://cdn.jsdelivr.net/npm/appwrite@1.0.29"></script>
<script src="https://cdn.jsdelivr.net/npm/appwrite@1.1.0"></script>
```

View file

@ -2,7 +2,7 @@
"name": "appwrite",
"homepage": "https://appwrite.io/support",
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
"version": "1.0.29",
"version": "1.1.0",
"license": "BSD-3-Clause",
"main": "src/sdk.js",
"types": "types/index.d.ts",

View file

@ -103,7 +103,7 @@
globalParams.push({key: key, value: value});
};
addGlobalHeader('x-sdk-version', 'appwrite:javascript:1.0.29');
addGlobalHeader('x-sdk-version', 'appwrite:javascript:1.1.0');
addGlobalHeader('content-type', '');
/**

View file

@ -1,5 +1,5 @@
(function(window){'use strict';window.Appwrite=function(){let config={endpoint:'https://appwrite.io/v1',project:'',locale:'',};let setEndpoint=function(endpoint){config.endpoint=endpoint;return this};let setProject=function(value){http.addGlobalHeader('X-Appwrite-Project',value);config.project=value;return this};let setLocale=function(value){http.addGlobalHeader('X-Appwrite-Locale',value);config.locale=value;return this};let http=function(document){let globalParams=[],globalHeaders=[];let addParam=function(url,param,value){let a=document.createElement('a'),regex=/(?:\?|&amp;|&)+([^=]+)(?:=([^&]*))*/g;let match,str=[];a.href=url;param=encodeURIComponent(param);while(match=regex.exec(a.search))if(param!==match[1])str.push(match[1]+(match[2]?"="+match[2]:""));str.push(param+(value?"="+encodeURIComponent(value):""));a.search=str.join("&");return a.href};let buildQuery=function(params){let str=[];for(let p in params){if(Array.isArray(params[p])){for(let index=0;index<params[p].length;index++){let param=params[p][index];str.push(encodeURIComponent(p+'[]')+"="+encodeURIComponent(param))}}else{str.push(encodeURIComponent(p)+"="+encodeURIComponent(params[p]))}}
return str.join("&")};let addGlobalHeader=function(key,value){globalHeaders[key]={key:key.toLowerCase(),value:value.toLowerCase()}};let addGlobalParam=function(key,value){globalParams.push({key:key,value:value})};addGlobalHeader('x-sdk-version','appwrite:javascript:1.0.29');addGlobalHeader('content-type','');let call=function(method,path,headers={},params={},progress=null){let i;path=config.endpoint+path;if(-1===['GET','POST','PUT','DELETE','TRACE','HEAD','OPTIONS','CONNECT','PATCH'].indexOf(method)){throw new Error('var method must contain a valid HTTP method name')}
return str.join("&")};let addGlobalHeader=function(key,value){globalHeaders[key]={key:key.toLowerCase(),value:value.toLowerCase()}};let addGlobalParam=function(key,value){globalParams.push({key:key,value:value})};addGlobalHeader('x-sdk-version','appwrite:javascript:1.1.0');addGlobalHeader('content-type','');let call=function(method,path,headers={},params={},progress=null){let i;path=config.endpoint+path;if(-1===['GET','POST','PUT','DELETE','TRACE','HEAD','OPTIONS','CONNECT','PATCH'].indexOf(method)){throw new Error('var method must contain a valid HTTP method name')}
if(typeof path!=='string'){throw new Error('var path must be of type string')}
if(typeof headers!=='object'){throw new Error('var headers must be of type object')}
for(i=0;i<globalParams.length;i++){path=addParam(path,globalParams[i].key,globalParams[i].value)}

View file

@ -1,4 +1,4 @@
// Type definitions for appwrite 1.0.29
// Type definitions for appwrite 1.1.0
// Project: Appwrite

View file

@ -7,7 +7,7 @@ class Client {
this.endpoint = 'https://appwrite.io/v1';
this.headers = {
'content-type': '',
'x-sdk-version': 'appwrite:nodejs:1.0.32',
'x-sdk-version': 'appwrite:nodejs:1.1.0',
};
this.selfSigned = false;
}

View file

@ -2,7 +2,7 @@
"name": "node-appwrite",
"homepage": "https://appwrite.io/support",
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
"version": "1.0.32",
"version": "1.1.0",
"license": "BSD-3-Clause",
"main": "index.js",
"repository": {

View file

@ -37,7 +37,7 @@ class Client
*/
protected $headers = [
'content-type' => '',
'x-sdk-version' => 'appwrite:php:1.0.17',
'x-sdk-version' => 'appwrite:php:1.1.0',
];
/**

View file

@ -7,7 +7,7 @@ class Client:
self._endpoint = 'https://appwrite.io/v1'
self._global_headers = {
'content-type': '',
'x-sdk-version': 'appwrite:python:0.0.4',
'x-sdk-version': 'appwrite:python:0.0.5',
}
def set_self_signed(self, status=True):

View file

@ -3,7 +3,7 @@ import setuptools
setuptools.setup(
name = 'appwrite',
packages = ['appwrite', 'appwrite/services'],
version = '0.0.4',
version = '0.0.5',
license='BSD-3-Clause',
description = 'Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API',
author = 'Appwrite Team',
@ -11,7 +11,7 @@ setuptools.setup(
maintainer = 'Appwrite Team',
maintainer_email = 'team@localhost.test',
url = 'https://appwrite.io/support',
download_url='https://github.com/appwrite/sdk-for-python/archive/0.0.4.tar.gz',
download_url='https://github.com/appwrite/sdk-for-python/archive/0.0.5.tar.gz',
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
install_requires=[
'requests',

View file

@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'appwrite'
s.version = '1.0.9'
s.version = '1.0.10'
s.summary = "Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way.
Use the Ruby SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)"

View file

@ -20,7 +20,7 @@ module Appwrite
@headers = {
'content-type' => '',
'user-agent' => RUBY_PLATFORM + ':ruby-' + RUBY_VERSION,
'x-sdk-version' => 'appwrite:ruby:1.0.9'
'x-sdk-version' => 'appwrite:ruby:1.0.10'
}
@endpoint = 'https://appwrite.io/v1';
end