Skip to content

Commit 1c345bc

Browse files
committed
Merge branch 'master' of https://github.com/appwrite/sdk-generator into feat-warn-response-format
2 parents 026dc53 + 3ade92c commit 1c345bc

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

src/SDK/Language/ReactNative.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function getTypeName(array $parameter, array $spec = []): string
146146
}
147147
return 'string[]';
148148
case self::TYPE_FILE:
149-
return 'any';
149+
return '{name: string, type: string, size: number, uri: string}';
150150
}
151151

152152
return $parameter['type'];

templates/flutter/lib/src/realtime_mixin.dart.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ mixin RealtimeMixin {
8787
break;
8888
}
8989
}, onDone: () {
90-
if (!_notifyDone || _creatingSocket) return;
91-
for (var subscription in _subscriptions.values) {
90+
final subscriptions = List.from(_subscriptions.values);
91+
for (var subscription in subscriptions) {
9292
subscription.close();
9393
}
9494
_channels.clear();

templates/node/.travis.yml.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
language: node_js
22
node_js:
3-
- "14.16"
3+
- "16"
44

55
jobs:
66
include:
77
- stage: NPM RC Release
88
if: tag =~ /-(rc|RC)/
9-
node_js: "14.16"
9+
node_js: "16"
1010
script:
1111
- npm install
1212
- npm run build
@@ -18,7 +18,7 @@ jobs:
1818
tag: next
1919
- stage: NPM Release
2020
if: not tag =~ /-(rc|RC)/
21-
node_js: "14.16"
21+
node_js: "16"
2222
script:
2323
- npm install
2424
- npm run build

templates/web/src/client.ts.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,10 @@ class Client {
353353
};
354354

355355
if (typeof window !== 'undefined' && window.localStorage) {
356-
headers['X-Fallback-Cookies'] = window.localStorage.getItem('cookieFallback') ?? '';
356+
const cookieFallback = window.localStorage.getItem('cookieFallback');
357+
if (cookieFallback) {
358+
headers['X-Fallback-Cookies'] = cookieFallback;
359+
}
357360
}
358361

359362
if (method === 'GET') {

0 commit comments

Comments
 (0)