Updated SDKs
This commit is contained in:
parent
a001e5a473
commit
dbddbf9556
13 changed files with 20 additions and 20 deletions
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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', '');
|
||||
|
||||
/**
|
||||
|
|
2
app/sdks/client-web/src/sdk.min.js
vendored
2
app/sdks/client-web/src/sdk.min.js
vendored
|
@ -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=/(?:\?|&|&)+([^=]+)(?:=([^&]*))*/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)}
|
||||
|
|
2
app/sdks/client-web/types/index.d.ts
vendored
2
app/sdks/client-web/types/index.d.ts
vendored
|
@ -1,4 +1,4 @@
|
|||
// Type definitions for appwrite 1.0.29
|
||||
// Type definitions for appwrite 1.1.0
|
||||
// Project: Appwrite
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue