Updated deno SDK
This commit is contained in:
parent
3b279488b7
commit
0f761d267b
|
@ -165,7 +165,7 @@ return [
|
|||
[
|
||||
'key' => 'deno',
|
||||
'name' => 'Deno',
|
||||
'version' => '0.0.1',
|
||||
'version' => '0.0.2',
|
||||
'url' => 'https://github.com/appwrite/sdk-for-deno',
|
||||
'enabled' => false,
|
||||
'beta' => true,
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# Appwrite Deno SDK
|
||||
|
||||
![License](https://img.shields.io/github/license/appwrite/sdk-for-deno.svg?v=1)
|
||||
![Version](https://img.shields.io/badge/api%20version-0.6.1-blue.svg?v=1)
|
||||
![Version](https://img.shields.io/badge/api%20version-0.6.2-blue.svg?v=1)
|
||||
|
||||
**This SDK is compatible with Appwrite server version 0.6.1. For older versions, please check previous releases.**
|
||||
**This SDK is compatible with Appwrite server version 0.6.2. For older versions, please check previous releases.**
|
||||
|
||||
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 Deno SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools.
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = avatars.getBrowser('aa');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = avatars.getCreditCard('amex');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = avatars.getFavicon('https://example.com');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = avatars.getFlag('af');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = avatars.getImage('https://example.com');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = avatars.getQR('[TEXT]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.createCollection('[NAME]', [], [], []);
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.createDocument('[COLLECTION_ID]', {}, [], []);
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.deleteCollection('[COLLECTION_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.getCollectionLogs('[COLLECTION_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.getCollection('[COLLECTION_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.getDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.listCollections();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.listDocuments('[COLLECTION_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.updateCollection('[COLLECTION_ID]', '[NAME]', [], []);
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}, [], []);
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getAntiVirus();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getCache();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getDB();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getQueueCertificates();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getQueueFunctions();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getQueueLogs();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getQueueTasks();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getQueueUsage();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getQueueWebhooks();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getStorageLocal();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.getTime();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = health.get();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = locale.getContinents();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = locale.getCountriesEU();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = locale.getCountriesPhones();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = locale.getCountries();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = locale.getCurrencies();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = locale.get();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,7 +10,8 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
let promise = storage.createFile(fs.createReadStream(__dirname + '/file.png')), [], []);
|
||||
|
||||
let promise = storage.createFile(new File([fileBlob], 'file.png'), [], []);
|
||||
|
||||
promise.then(function (response) {
|
||||
console.log(response);
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = storage.deleteFile('[FILE_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = storage.getFileDownload('[FILE_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = storage.getFilePreview('[FILE_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = storage.getFileView('[FILE_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = storage.getFile('[FILE_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = storage.listFiles();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = storage.updateFile('[FILE_ID]', [], []);
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = teams.createMembership('[TEAM_ID]', 'email@example.com', [], 'https://example.com');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = teams.create('[NAME]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = teams.deleteMembership('[TEAM_ID]', '[INVITE_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = teams.delete('[TEAM_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = teams.getMemberships('[TEAM_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = teams.get('[TEAM_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = teams.list();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = teams.update('[TEAM_ID]', '[NAME]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.create('email@example.com', 'password');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.deleteSession('[USER_ID]', '[SESSION_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.deleteSessions('[USER_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.getLogs('[USER_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.getPrefs('[USER_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.getSessions('[USER_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.get('[USER_ID]');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.list();
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.updatePrefs('[USER_ID]', {});
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -10,6 +10,7 @@ client
|
|||
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
|
||||
;
|
||||
|
||||
|
||||
let promise = users.updateStatus('[USER_ID]', '1');
|
||||
|
||||
promise.then(function (response) {
|
||||
|
|
|
@ -7,7 +7,7 @@ export class Client {
|
|||
endpoint: string = 'https://appwrite.io/v1';
|
||||
headers: DocumentData = {
|
||||
'content-type': '',
|
||||
'x-sdk-version': 'appwrite:deno:0.0.1',
|
||||
'x-sdk-version': 'appwrite:deno:0.0.2',
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -38,13 +38,13 @@ export class Database extends Service {
|
|||
* Create a new Collection.
|
||||
*
|
||||
* @param string name
|
||||
* @param Array<string> read
|
||||
* @param Array<string> write
|
||||
* @param Array<string> rules
|
||||
* @param Array<any> read
|
||||
* @param Array<any> write
|
||||
* @param Array<any> rules
|
||||
* @throws Exception
|
||||
* @return Promise<string>
|
||||
*/
|
||||
async createCollection(name: string, read: Array<string>, write: Array<string>, rules: Array<string>): Promise<string> {
|
||||
async createCollection(name: string, read: Array<any>, write: Array<any>, rules: Array<any>): Promise<string> {
|
||||
let path = '/database/collections';
|
||||
|
||||
return await this.client.call('post', path, {
|
||||
|
@ -85,13 +85,13 @@ export class Database extends Service {
|
|||
*
|
||||
* @param string collectionId
|
||||
* @param string name
|
||||
* @param Array<string> read
|
||||
* @param Array<string> write
|
||||
* @param Array<string> rules
|
||||
* @param Array<any> read
|
||||
* @param Array<any> write
|
||||
* @param Array<any> rules
|
||||
* @throws Exception
|
||||
* @return Promise<string>
|
||||
*/
|
||||
async updateCollection(collectionId: string, name: string, read: Array<string>, write: Array<string>, rules: Array<string> = []): Promise<string> {
|
||||
async updateCollection(collectionId: string, name: string, read: Array<any>, write: Array<any>, rules: Array<any> = []): Promise<string> {
|
||||
let path = '/database/collections/{collectionId}'.replace(new RegExp('{collectionId}', 'g'), collectionId);
|
||||
|
||||
return await this.client.call('put', path, {
|
||||
|
@ -134,7 +134,7 @@ export class Database extends Service {
|
|||
* modes](/docs/admin).
|
||||
*
|
||||
* @param string collectionId
|
||||
* @param Array<string> filters
|
||||
* @param Array<any> filters
|
||||
* @param number offset
|
||||
* @param number limit
|
||||
* @param string orderField
|
||||
|
@ -146,7 +146,7 @@ export class Database extends Service {
|
|||
* @throws Exception
|
||||
* @return Promise<string>
|
||||
*/
|
||||
async listDocuments(collectionId: string, filters: Array<string> = [], offset: number = 0, limit: number = 50, orderField: string = '$id', orderType: string = 'ASC', orderCast: string = 'string', search: string = '', first: number = 0, last: number = 0): Promise<string> {
|
||||
async listDocuments(collectionId: string, filters: Array<any> = [], offset: number = 0, limit: number = 50, orderField: string = '$id', orderType: string = 'ASC', orderCast: string = 'string', search: string = '', first: number = 0, last: number = 0): Promise<string> {
|
||||
let path = '/database/collections/{collectionId}/documents'.replace(new RegExp('{collectionId}', 'g'), collectionId);
|
||||
|
||||
return await this.client.call('get', path, {
|
||||
|
@ -168,19 +168,22 @@ export class Database extends Service {
|
|||
/**
|
||||
* Create Document
|
||||
*
|
||||
* Create a new Document.
|
||||
* Create a new Document. Before using this route, you should create a new
|
||||
* collection resource using either a [server
|
||||
* integration](/docs/server/database?sdk=nodejs#createCollection) API or
|
||||
* directly from your database console.
|
||||
*
|
||||
* @param string collectionId
|
||||
* @param DocumentData data
|
||||
* @param Array<string> read
|
||||
* @param Array<string> write
|
||||
* @param Array<any> read
|
||||
* @param Array<any> write
|
||||
* @param string parentDocument
|
||||
* @param string parentProperty
|
||||
* @param string parentPropertyType
|
||||
* @throws Exception
|
||||
* @return Promise<string>
|
||||
*/
|
||||
async createDocument(collectionId: string, data: DocumentData, read: Array<string>, write: Array<string>, parentDocument: string = '', parentProperty: string = '', parentPropertyType: string = 'assign'): Promise<string> {
|
||||
async createDocument(collectionId: string, data: DocumentData, read: Array<any>, write: Array<any>, parentDocument: string = '', parentProperty: string = '', parentPropertyType: string = 'assign'): Promise<string> {
|
||||
let path = '/database/collections/{collectionId}/documents'.replace(new RegExp('{collectionId}', 'g'), collectionId);
|
||||
|
||||
return await this.client.call('post', path, {
|
||||
|
@ -223,12 +226,12 @@ export class Database extends Service {
|
|||
* @param string collectionId
|
||||
* @param string documentId
|
||||
* @param DocumentData data
|
||||
* @param Array<string> read
|
||||
* @param Array<string> write
|
||||
* @param Array<any> read
|
||||
* @param Array<any> write
|
||||
* @throws Exception
|
||||
* @return Promise<string>
|
||||
*/
|
||||
async updateDocument(collectionId: string, documentId: string, data: DocumentData, read: Array<string>, write: Array<string>): Promise<string> {
|
||||
async updateDocument(collectionId: string, documentId: string, data: DocumentData, read: Array<any>, write: Array<any>): Promise<string> {
|
||||
let path = '/database/collections/{collectionId}/documents/{documentId}'.replace(new RegExp('{collectionId}', 'g'), collectionId).replace(new RegExp('{documentId}', 'g'), documentId);
|
||||
|
||||
return await this.client.call('patch', path, {
|
||||
|
|
|
@ -39,12 +39,12 @@ export class Storage extends Service {
|
|||
* read and write arguments.
|
||||
*
|
||||
* @param File | Blob file
|
||||
* @param Array<string> read
|
||||
* @param Array<string> write
|
||||
* @param Array<any> read
|
||||
* @param Array<any> write
|
||||
* @throws Exception
|
||||
* @return Promise<string>
|
||||
*/
|
||||
async createFile(file: File | Blob, read: Array<string>, write: Array<string>): Promise<string> {
|
||||
async createFile(file: File | Blob, read: Array<any>, write: Array<any>): Promise<string> {
|
||||
let path = '/storage/files';
|
||||
|
||||
return await this.client.call('post', path, {
|
||||
|
@ -84,12 +84,12 @@ export class Storage extends Service {
|
|||
* to update this resource.
|
||||
*
|
||||
* @param string fileId
|
||||
* @param Array<string> read
|
||||
* @param Array<string> write
|
||||
* @param Array<any> read
|
||||
* @param Array<any> write
|
||||
* @throws Exception
|
||||
* @return Promise<string>
|
||||
*/
|
||||
async updateFile(fileId: string, read: Array<string>, write: Array<string>): Promise<string> {
|
||||
async updateFile(fileId: string, read: Array<any>, write: Array<any>): Promise<string> {
|
||||
let path = '/storage/files/{fileId}'.replace(new RegExp('{fileId}', 'g'), fileId);
|
||||
|
||||
return await this.client.call('put', path, {
|
||||
|
|
|
@ -40,11 +40,11 @@ export class Teams extends Service {
|
|||
* project.
|
||||
*
|
||||
* @param string name
|
||||
* @param Array<string> roles
|
||||
* @param Array<any> roles
|
||||
* @throws Exception
|
||||
* @return Promise<string>
|
||||
*/
|
||||
async create(name: string, roles: Array<string> = ["owner"]): Promise<string> {
|
||||
async create(name: string, roles: Array<any> = ["owner"]): Promise<string> {
|
||||
let path = '/teams';
|
||||
|
||||
return await this.client.call('post', path, {
|
||||
|
@ -147,8 +147,8 @@ export class Teams extends Service {
|
|||
*
|
||||
* Use the 'URL' parameter to redirect the user from the invitation email back
|
||||
* to your app. When the user is redirected, use the [Update Team Membership
|
||||
* Status](/docs/teams#updateMembershipStatus) endpoint to allow the user to
|
||||
* accept the invitation to the team.
|
||||
* Status](/docs/client/teams#updateMembershipStatus) endpoint to allow the
|
||||
* user to accept the invitation to the team.
|
||||
*
|
||||
* Please note that in order to avoid a [Redirect
|
||||
* Attacks](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md)
|
||||
|
@ -157,13 +157,13 @@ export class Teams extends Service {
|
|||
*
|
||||
* @param string teamId
|
||||
* @param string email
|
||||
* @param Array<string> roles
|
||||
* @param Array<any> roles
|
||||
* @param string url
|
||||
* @param string name
|
||||
* @throws Exception
|
||||
* @return Promise<string>
|
||||
*/
|
||||
async createMembership(teamId: string, email: string, roles: Array<string>, url: string, name: string = ''): Promise<string> {
|
||||
async createMembership(teamId: string, email: string, roles: Array<any>, url: string, name: string = ''): Promise<string> {
|
||||
let path = '/teams/{teamId}/memberships'.replace(new RegExp('{teamId}', 'g'), teamId);
|
||||
|
||||
return await this.client.call('post', path, {
|
||||
|
|
362
composer.lock
generated
362
composer.lock
generated
|
@ -885,6 +885,48 @@
|
|||
],
|
||||
"time": "2019-12-03T17:11:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "paragonie/random_compat",
|
||||
"version": "v9.99.99.x-dev",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/paragonie/random_compat.git",
|
||||
"reference": "0947f25b883d4172df340a0d95f1b7cdabc5368a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/0947f25b883d4172df340a0d95f1b7cdabc5368a",
|
||||
"reference": "0947f25b883d4172df340a0d95f1b7cdabc5368a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "4.*|5.*",
|
||||
"vimeo/psalm": "^1"
|
||||
},
|
||||
"type": "library",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Paragon Initiative Enterprises",
|
||||
"email": "security@paragonie.com",
|
||||
"homepage": "https://paragonie.com"
|
||||
}
|
||||
],
|
||||
"description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
|
||||
"keywords": [
|
||||
"csprng",
|
||||
"polyfill",
|
||||
"pseudorandom",
|
||||
"random"
|
||||
],
|
||||
"time": "2018-08-07T13:07:48+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpmailer/phpmailer",
|
||||
"version": "v6.1.6",
|
||||
|
@ -1141,17 +1183,18 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-intl-idn.git",
|
||||
"reference": "a57f8161502549a742a63c09f0a604997bf47027"
|
||||
"reference": "bc6549d068d0160e0f10f7a5a23c7d1406b95ebe"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/a57f8161502549a742a63c09f0a604997bf47027",
|
||||
"reference": "a57f8161502549a742a63c09f0a604997bf47027",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/bc6549d068d0160e0f10f7a5a23c7d1406b95ebe",
|
||||
"reference": "bc6549d068d0160e0f10f7a5a23c7d1406b95ebe",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.3",
|
||||
"symfony/polyfill-mbstring": "^1.3",
|
||||
"symfony/polyfill-intl-normalizer": "^1.10",
|
||||
"symfony/polyfill-php70": "^1.10",
|
||||
"symfony/polyfill-php72": "^1.10"
|
||||
},
|
||||
"suggest": {
|
||||
|
@ -1160,7 +1203,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.17-dev"
|
||||
"dev-master": "1.18-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
@ -1184,6 +1227,10 @@
|
|||
"name": "Laurent Bassin",
|
||||
"email": "laurent@bassin.info"
|
||||
},
|
||||
{
|
||||
"name": "Trevor Rowbotham",
|
||||
"email": "trevor.rowbotham@pm.me"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
|
@ -1199,32 +1246,46 @@
|
|||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"time": "2020-06-06T08:46:27+00:00"
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2020-07-14T12:35:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-intl-normalizer",
|
||||
"version": "dev-master",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||
"reference": "7110338d81ce1cbc3e273136e4574663627037a7"
|
||||
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
|
||||
"reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7110338d81ce1cbc3e273136e4574663627037a7",
|
||||
"reference": "7110338d81ce1cbc3e273136e4574663627037a7",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e",
|
||||
"reference": "37078a8dd4a2a1e9ab0231af7c6cb671b2ed5a7e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "For best performance"
|
||||
"ext-intl": "For best performance"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.17-dev"
|
||||
"dev-master": "1.18-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
@ -1233,10 +1294,13 @@
|
|||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Mbstring\\": ""
|
||||
"Symfony\\Polyfill\\Intl\\Normalizer\\": ""
|
||||
},
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"classmap": [
|
||||
"Resources/stubs"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
|
@ -1253,16 +1317,108 @@
|
|||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for the Mbstring extension",
|
||||
"description": "Symfony polyfill for intl's Normalizer class and related functions",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"mbstring",
|
||||
"intl",
|
||||
"normalizer",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"time": "2020-06-06T08:46:27+00:00"
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2020-07-14T12:35:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php70",
|
||||
"version": "dev-master",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php70.git",
|
||||
"reference": "0dd93f2c578bdc9c72697eaa5f1dd25644e618d3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/0dd93f2c578bdc9c72697eaa5f1dd25644e618d3",
|
||||
"reference": "0dd93f2c578bdc9c72697eaa5f1dd25644e618d3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"paragonie/random_compat": "~1.0|~2.0|~9.99",
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.18-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Php70\\": ""
|
||||
},
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
],
|
||||
"classmap": [
|
||||
"Resources/stubs"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2020-07-14T12:35:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php72",
|
||||
|
@ -1270,12 +1426,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-php72.git",
|
||||
"reference": "3d9c70ff1b9f6bb618f9954b2f7f760220c2b38a"
|
||||
"reference": "639447d008615574653fb3bc60d1986d7172eaae"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/3d9c70ff1b9f6bb618f9954b2f7f760220c2b38a",
|
||||
"reference": "3d9c70ff1b9f6bb618f9954b2f7f760220c2b38a",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/639447d008615574653fb3bc60d1986d7172eaae",
|
||||
"reference": "639447d008615574653fb3bc60d1986d7172eaae",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1284,7 +1440,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.17-dev"
|
||||
"dev-master": "1.18-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
@ -1321,7 +1477,21 @@
|
|||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"time": "2020-06-06T08:46:27+00:00"
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2020-07-14T12:35:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/abuse",
|
||||
|
@ -1753,7 +1923,7 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/appwrite/sdk-generator",
|
||||
"reference": "03f2b64657f752830cc33b4b7f9531836da4506f"
|
||||
"reference": "43d15fc337bcbfe480f2a5503bd7c0615743035b"
|
||||
},
|
||||
"require": {
|
||||
"ext-curl": "*",
|
||||
|
@ -1783,7 +1953,7 @@
|
|||
}
|
||||
],
|
||||
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
|
||||
"time": "2020-07-10T05:06:52+00:00"
|
||||
"time": "2020-07-26T09:32:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "doctrine/instantiator",
|
||||
|
@ -2155,12 +2325,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
||||
"reference": "eb3320ef010709f339f118dde1645e197c4961ec"
|
||||
"reference": "1ac416df3f66c542f2d3688925105b539f064b64"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/eb3320ef010709f339f118dde1645e197c4961ec",
|
||||
"reference": "eb3320ef010709f339f118dde1645e197c4961ec",
|
||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/1ac416df3f66c542f2d3688925105b539f064b64",
|
||||
"reference": "1ac416df3f66c542f2d3688925105b539f064b64",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -2199,7 +2369,7 @@
|
|||
}
|
||||
],
|
||||
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
||||
"time": "2020-07-09T12:42:26+00:00"
|
||||
"time": "2020-07-21T08:16:41+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpdocumentor/type-resolver",
|
||||
|
@ -2253,18 +2423,18 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phpspec/prophecy.git",
|
||||
"reference": "fa7f91090a63296a3c9af65e124384e19dad7e29"
|
||||
"reference": "c99da517f9e7b6e6c4067611d804808c34d8cec3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/fa7f91090a63296a3c9af65e124384e19dad7e29",
|
||||
"reference": "fa7f91090a63296a3c9af65e124384e19dad7e29",
|
||||
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/c99da517f9e7b6e6c4067611d804808c34d8cec3",
|
||||
"reference": "c99da517f9e7b6e6c4067611d804808c34d8cec3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"doctrine/instantiator": "^1.2",
|
||||
"php": "^7.2",
|
||||
"phpdocumentor/reflection-docblock": "^5.0",
|
||||
"phpdocumentor/reflection-docblock": "^5.2",
|
||||
"sebastian/comparator": "^3.0 || ^4.0",
|
||||
"sebastian/recursion-context": "^3.0 || ^4.0"
|
||||
},
|
||||
|
@ -2308,7 +2478,7 @@
|
|||
"spy",
|
||||
"stub"
|
||||
],
|
||||
"time": "2020-07-09T10:28:49+00:00"
|
||||
"time": "2020-07-21T10:09:02+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpunit/php-code-coverage",
|
||||
|
@ -3218,12 +3388,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||
"reference": "2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d"
|
||||
"reference": "1c302646f6efc070cd46856e600e5e0684d6b454"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d",
|
||||
"reference": "2edd75b8b35d62fd3eeabba73b26b8f1f60ce13d",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/1c302646f6efc070cd46856e600e5e0684d6b454",
|
||||
"reference": "1c302646f6efc070cd46856e600e5e0684d6b454",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -3235,7 +3405,7 @@
|
|||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.17-dev"
|
||||
"dev-master": "1.18-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
|
@ -3272,27 +3442,118 @@
|
|||
"polyfill",
|
||||
"portable"
|
||||
],
|
||||
"time": "2020-06-06T08:46:27+00:00"
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"name": "theseer/tokenizer",
|
||||
"version": "1.1.3",
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2020-07-14T12:35:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
"version": "dev-master",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/theseer/tokenizer.git",
|
||||
"reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9"
|
||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||
"reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
|
||||
"reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/a6977d63bf9a0ad4c65cd352709e230876f9904a",
|
||||
"reference": "a6977d63bf9a0ad4c65cd352709e230876f9904a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "For best performance"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.18-dev"
|
||||
},
|
||||
"thanks": {
|
||||
"name": "symfony/polyfill",
|
||||
"url": "https://github.com/symfony/polyfill"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Polyfill\\Mbstring\\": ""
|
||||
},
|
||||
"files": [
|
||||
"bootstrap.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Symfony polyfill for the Mbstring extension",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"compatibility",
|
||||
"mbstring",
|
||||
"polyfill",
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://symfony.com/sponsor",
|
||||
"type": "custom"
|
||||
},
|
||||
{
|
||||
"url": "https://github.com/fabpot",
|
||||
"type": "github"
|
||||
},
|
||||
{
|
||||
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2020-07-14T12:35:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "theseer/tokenizer",
|
||||
"version": "1.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/theseer/tokenizer.git",
|
||||
"reference": "75a63c33a8577608444246075ea0af0d052e452a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a",
|
||||
"reference": "75a63c33a8577608444246075ea0af0d052e452a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"ext-tokenizer": "*",
|
||||
"ext-xmlwriter": "*",
|
||||
"php": "^7.0"
|
||||
"php": "^7.2 || ^8.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
|
@ -3312,7 +3573,13 @@
|
|||
}
|
||||
],
|
||||
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
|
||||
"time": "2019-06-13T22:48:21+00:00"
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/theseer",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2020-07-12T23:59:07+00:00"
|
||||
},
|
||||
{
|
||||
"name": "twig/twig",
|
||||
|
@ -3450,5 +3717,6 @@
|
|||
"platform-dev": [],
|
||||
"platform-overrides": {
|
||||
"php": "7.4"
|
||||
}
|
||||
},
|
||||
"plugin-api-version": "1.1.0"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue