Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/SDK/Language/DotNet.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public function getKeywords(): array
'when',
'where',
'while',
'yield'
'yield',
'path'
];
}

Expand Down
1 change: 1 addition & 0 deletions src/SDK/Language/JS.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public function getKeywords(): array
'while',
'with',
'yield',
'path'
];
}

Expand Down
3 changes: 2 additions & 1 deletion src/SDK/Language/Kotlin.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public function getKeywords(): array
"vararg",
"when",
"where",
"while"
"while",
"path"
];
}

Expand Down
3 changes: 2 additions & 1 deletion src/SDK/Language/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ public function getKeywords(): array
'use',
'var',
'while',
'xor'
'xor',
'path'
];
}

Expand Down
1 change: 1 addition & 0 deletions src/SDK/Language/Ruby.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function getKeywords(): array
'until',
'when',
'while',
'path'
];
}

Expand Down
3 changes: 1 addition & 2 deletions templates/cli/lib/config.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class Config {
const file = fs.readFileSync(this.path).toString();
this.data = JSONbig.parse(file);
} catch (e) {
// console.log(`${this.path} not found. Empty data`);
this.data = {};
}
}
Expand All @@ -25,7 +24,7 @@ class Config {
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, { recursive: true });
}
fs.writeFileSync(this.path, JSONbig.stringify(this.data, null, 4));
fs.writeFileSync(this.path, JSONbig.stringify(this.data, null, 4), { mode: 0o600 });
}

get(key) {
Expand Down
6 changes: 3 additions & 3 deletions templates/dart/pubspec.yaml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ documentation: {{ spec.contactURL }}
environment:
sdk: '>=2.17.0 <3.0.0'
dependencies:
http: '>=0.13.6 <1.0.1'
http: '>=0.13.6 <1.1.0'

dev_dependencies:
lints: ^2.0.1
test: ^1.22.0
lints: ^2.1.1
test: ^1.24.0
mockito: ^5.4.0
12 changes: 6 additions & 6 deletions templates/flutter/pubspec.yaml.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ environment:
dependencies:
flutter:
sdk: flutter
cookie_jar: ^4.0.3
device_info_plus: ^9.0.2
flutter_web_auth_2: ^2.1.4
http: '>=0.13.6 <1.0.1'
package_info_plus: ^4.0.2
cookie_jar: ^4.0.8
device_info_plus: ^9.0.3
flutter_web_auth_2: ^2.1.5
http: '>=0.13.6 <1.1.0'
package_info_plus: ^4.1.0
path_provider: ^2.0.15
web_socket_channel: ^2.4.0
universal_html: ^2.2.2

dev_dependencies:
path_provider_platform_interface: ^2.0.6
flutter_lints: ^2.0.1
flutter_lints: ^2.0.2
flutter_test:
sdk: flutter
mockito: ^5.4.0
2 changes: 1 addition & 1 deletion templates/web/package.json.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"typescript": "4.7.2"
},
"dependencies": {
"cross-fetch": "3.1.5",
"cross-fetch": "4.0.0",
"isomorphic-form-data": "2.0.0"
},
"jsdelivr": "dist/iife/sdk.js",
Expand Down
2 changes: 1 addition & 1 deletion templates/web/src/services/template.ts.twig
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class {{ service.name | caseUcfirst }} extends Service {

for (counter; counter < totalCounters; counter++) {
const start = (counter * Service.CHUNK_SIZE);
const end = Math.min((((counter * Service.CHUNK_SIZE) + Service.CHUNK_SIZE) - 1), size);
const end = Math.min((((counter * Service.CHUNK_SIZE) + Service.CHUNK_SIZE) - 1), size - 1);

headers['content-range'] = 'bytes ' + start + '-' + end + '/' + size

Expand Down