@@ -21,8 +21,8 @@ import { completion } from 'titanium-editor-commons';
21
21
const alloyVersion = await completion .generateAlloyCompletions (true , completion .CompletionsFormat .v3 );
22
22
console .log (alloyVersion) // The Alloy version the completions were generated for
23
23
24
- // Generate a v3 completions file for SDK 10.0.2.GA , do not create one if it already exists
25
- const sdkVersion = await completion .generateSDKCompletions (false , ' 10.0.2.GA ' , ' /Users/user/Library/Application Support/Titanium/mobilesdk/osx/10.0.2.GA ' , completion .CompletionsFormat .v3 );
24
+ // Generate a v3 completions file for SDK 12.7.0 , do not create one if it already exists
25
+ const sdkVersion = await completion .generateSDKCompletions (false , ' 12.7.0 ' , ' /Users/user/Library/Application Support/Titanium/mobilesdk/osx/12.7.0 ' , completion .CompletionsFormat .v3 );
26
26
console .log (sdkVersion) // The SDK version the completions were generated for
27
27
```
28
28
@@ -32,7 +32,7 @@ console.log(sdkVersion) // The SDK version the completions were generated for
32
32
import { completion } from ' titanium-editor-commons' ;
33
33
34
34
// Load a v3 completions file
35
- const completions = await completion .loadCompletions (' 10.0.2.GA ' , completion .CompletionsFormat .v3 )
35
+ const completions = await completion .loadCompletions (' 12.7.0 ' , completion .CompletionsFormat .v3 )
36
36
console .log (completions) // An object with `alloy` and `titanium` keys with their respective completions data. View the `CompletionsData` type for full information
37
37
```
38
38
@@ -43,8 +43,8 @@ This validates that an environment has the required tooling to perform Titanium
43
43
``` js
44
44
import { environment } from ' titanium-editor-commons' ;
45
45
46
- // Validate the environment has the required Appc tooling. If Node.js is missing, require a version that matches the 12 .x || 14 .x range
47
- const details = await environment .validateEnvironment ({ nodeJS: ' 12 .x || 14 .x' }, true );
46
+ // Validate the environment has the required Appc tooling. If Node.js is missing, require a version that matches the 18 .x || 22 .x range
47
+ const details = await environment .validateEnvironment ({ nodeJS: ' 18 .x || 22 .x' }, true );
48
48
console .log (details); // An object with `installed` and `missing` keys
49
49
```
50
50
@@ -56,8 +56,8 @@ You can either check for all updates or import the individual products and check
56
56
``` js
57
57
import { updates } from ' titanium-editor-commons' ;
58
58
59
- // Check for updates in the OSS tooling, and check if there is an Node.js update that matches the 12 .x || 14 .x range
60
- const newUpdates = await updates .checkAllUpdates ({ nodeJS: ' 12 .x || 14 .x' }, false );
59
+ // Check for updates in the OSS tooling, and check if there is an Node.js update that matches the 18 .x || 22 .x range
60
+ const newUpdates = await updates .checkAllUpdates ({ nodeJS: ' 18 .x || 22 .x' }, false );
61
61
console .log (newUpdates); // An array of products that require updates, sorted in order of the priority they should be instaleld
62
62
63
63
const alloyUpdate = await updates .alloy .checkForUpdate ();
0 commit comments