diff --git a/src/SDK/Language/DotNet.php b/src/SDK/Language/DotNet.php index 709f56ea5..f569225f2 100644 --- a/src/SDK/Language/DotNet.php +++ b/src/SDK/Language/DotNet.php @@ -129,7 +129,8 @@ public function getKeywords(): array 'when', 'where', 'while', - 'yield' + 'yield', + 'path' ]; } diff --git a/src/SDK/Language/JS.php b/src/SDK/Language/JS.php index 3ed496b24..c41727e36 100644 --- a/src/SDK/Language/JS.php +++ b/src/SDK/Language/JS.php @@ -105,6 +105,7 @@ public function getKeywords(): array 'while', 'with', 'yield', + 'path' ]; } diff --git a/src/SDK/Language/Kotlin.php b/src/SDK/Language/Kotlin.php index f6a2af02b..a7a4c5aea 100644 --- a/src/SDK/Language/Kotlin.php +++ b/src/SDK/Language/Kotlin.php @@ -86,7 +86,8 @@ public function getKeywords(): array "vararg", "when", "where", - "while" + "while", + "path" ]; } diff --git a/src/SDK/Language/PHP.php b/src/SDK/Language/PHP.php index 3f6968814..99ad8740e 100644 --- a/src/SDK/Language/PHP.php +++ b/src/SDK/Language/PHP.php @@ -117,7 +117,8 @@ public function getKeywords(): array 'use', 'var', 'while', - 'xor' + 'xor', + 'path' ]; } diff --git a/src/SDK/Language/Ruby.php b/src/SDK/Language/Ruby.php index d05021146..eb50551b0 100644 --- a/src/SDK/Language/Ruby.php +++ b/src/SDK/Language/Ruby.php @@ -74,6 +74,7 @@ public function getKeywords(): array 'until', 'when', 'while', + 'path' ]; } diff --git a/templates/cli/lib/config.js.twig b/templates/cli/lib/config.js.twig index 744013e38..916865f44 100644 --- a/templates/cli/lib/config.js.twig +++ b/templates/cli/lib/config.js.twig @@ -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 = {}; } } @@ -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) { diff --git a/templates/dart/pubspec.yaml.twig b/templates/dart/pubspec.yaml.twig index c9b59af20..6266f9fa8 100644 --- a/templates/dart/pubspec.yaml.twig +++ b/templates/dart/pubspec.yaml.twig @@ -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 diff --git a/templates/flutter/pubspec.yaml.twig b/templates/flutter/pubspec.yaml.twig index c2463e971..67bd4691f 100644 --- a/templates/flutter/pubspec.yaml.twig +++ b/templates/flutter/pubspec.yaml.twig @@ -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 \ No newline at end of file diff --git a/templates/web/package.json.twig b/templates/web/package.json.twig index f541158e0..fef287283 100644 --- a/templates/web/package.json.twig +++ b/templates/web/package.json.twig @@ -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", diff --git a/templates/web/src/services/template.ts.twig b/templates/web/src/services/template.ts.twig index 40b33684c..7be0116c5 100644 --- a/templates/web/src/services/template.ts.twig +++ b/templates/web/src/services/template.ts.twig @@ -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