nativescript 8.6.0-vision.2 → 8.6.0-vision.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,6 +65,21 @@ class CreateProjectCommand {
65
65
  else if (this.$options.svelte) {
66
66
  selectedTemplate = constants.SVELTE_NAME;
67
67
  }
68
+ else if (this.$options["vision-ng"]) {
69
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-ng"];
70
+ }
71
+ else if (this.$options["vision-react"]) {
72
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-react"];
73
+ }
74
+ else if (this.$options["vision-solid"]) {
75
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-solid"];
76
+ }
77
+ else if (this.$options["vision-svelte"]) {
78
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-svelte"];
79
+ }
80
+ else if (this.$options["vision-vue"]) {
81
+ selectedTemplate = constants.RESERVED_TEMPLATE_NAMES["vision-vue"];
82
+ }
68
83
  else {
69
84
  selectedTemplate = this.$options.template;
70
85
  }
@@ -222,6 +237,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
222
237
  value: "@nativescript/template-tab-navigation-ts",
223
238
  description: CreateProjectCommand.TabsTemplateDescription,
224
239
  },
240
+ {
241
+ key: CreateProjectCommand.BlankVisionTemplateKey,
242
+ value: "@nativescript/template-hello-world-ts-vision",
243
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
244
+ },
225
245
  ];
226
246
  return templates;
227
247
  }
@@ -242,6 +262,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
242
262
  value: "@nativescript/template-tab-navigation-ng",
243
263
  description: CreateProjectCommand.TabsTemplateDescription,
244
264
  },
265
+ {
266
+ key: CreateProjectCommand.BlankVisionTemplateKey,
267
+ value: "@nativescript/template-hello-world-ng-vision",
268
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
269
+ },
245
270
  ];
246
271
  return templates;
247
272
  }
@@ -252,6 +277,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
252
277
  value: constants.RESERVED_TEMPLATE_NAMES.react,
253
278
  description: CreateProjectCommand.HelloWorldTemplateDescription,
254
279
  },
280
+ {
281
+ key: CreateProjectCommand.BlankVisionTemplateKey,
282
+ value: "@nativescript/template-blank-react-vision",
283
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
284
+ },
255
285
  ];
256
286
  return templates;
257
287
  }
@@ -262,6 +292,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
262
292
  value: constants.RESERVED_TEMPLATE_NAMES.svelte,
263
293
  description: CreateProjectCommand.HelloWorldTemplateDescription,
264
294
  },
295
+ {
296
+ key: CreateProjectCommand.BlankVisionTemplateKey,
297
+ value: "@nativescript/template-blank-svelte-vision",
298
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
299
+ },
265
300
  ];
266
301
  return templates;
267
302
  }
@@ -287,6 +322,11 @@ can skip this prompt next time using the --template option, or the --ng, --react
287
322
  value: "@nativescript/template-tab-navigation-vue",
288
323
  description: CreateProjectCommand.TabsTemplateDescription,
289
324
  },
325
+ {
326
+ key: CreateProjectCommand.BlankVisionTemplateKey,
327
+ value: "@nativescript/template-blank-vue-vision",
328
+ description: CreateProjectCommand.BlankVisionTemplateDescription,
329
+ },
290
330
  ];
291
331
  return templates;
292
332
  }
@@ -296,6 +336,32 @@ can skip this prompt next time using the --template option, or the --ng, --react
296
336
  const relativePath = path.relative(process.cwd(), projectDir);
297
337
  const greyDollarSign = color_1.color.grey("$");
298
338
  this.$logger.clearScreen();
339
+ let runDebugNotes = [];
340
+ if (this.$options.vision ||
341
+ this.$options["vision-ng"] ||
342
+ this.$options["vision-react"] ||
343
+ this.$options["vision-solid"] ||
344
+ this.$options["vision-svelte"] ||
345
+ this.$options["vision-vue"]) {
346
+ runDebugNotes = [
347
+ `Run the project on Vision Pro with:`,
348
+ "",
349
+ ` ${greyDollarSign} ${color_1.color.green("ns run visionos --no-hmr")}`,
350
+ ];
351
+ }
352
+ else {
353
+ runDebugNotes = [
354
+ `Run the project on multiple devices:`,
355
+ "",
356
+ ` ${greyDollarSign} ${color_1.color.green("ns run ios")}`,
357
+ ` ${greyDollarSign} ${color_1.color.green("ns run android")}`,
358
+ "",
359
+ "Debug the project with Chrome DevTools:",
360
+ "",
361
+ ` ${greyDollarSign} ${color_1.color.green("ns debug ios")}`,
362
+ ` ${greyDollarSign} ${color_1.color.green("ns debug android")}`,
363
+ ];
364
+ }
299
365
  this.$logger.info([
300
366
  [
301
367
  color_1.color.green(`Project`),
@@ -305,15 +371,7 @@ can skip this prompt next time using the --template option, or the --ng, --react
305
371
  "",
306
372
  `Now you can navigate to your project with ${color_1.color.cyan(`cd ${relativePath}`)} and then:`,
307
373
  "",
308
- `Run the project on multiple devices:`,
309
- "",
310
- ` ${greyDollarSign} ${color_1.color.green("ns run ios")}`,
311
- ` ${greyDollarSign} ${color_1.color.green("ns run android")}`,
312
- "",
313
- "Debug the project with Chrome DevTools:",
314
- "",
315
- ` ${greyDollarSign} ${color_1.color.green("ns debug ios")}`,
316
- ` ${greyDollarSign} ${color_1.color.green("ns debug android")}`,
374
+ ...runDebugNotes,
317
375
  ``,
318
376
  `For more options consult the docs or run ${color_1.color.green("ns --help")}`,
319
377
  "",
@@ -325,6 +383,8 @@ CreateProjectCommand.BlankTemplateKey = "Blank";
325
383
  CreateProjectCommand.BlankTemplateDescription = "A blank app";
326
384
  CreateProjectCommand.BlankTsTemplateKey = "Blank Typescript";
327
385
  CreateProjectCommand.BlankTsTemplateDescription = "A blank typescript app";
386
+ CreateProjectCommand.BlankVisionTemplateKey = "visionOS";
387
+ CreateProjectCommand.BlankVisionTemplateDescription = "A visionOS app";
328
388
  CreateProjectCommand.HelloWorldTemplateKey = "Hello World";
329
389
  CreateProjectCommand.HelloWorldTemplateDescription = "A Hello World app";
330
390
  CreateProjectCommand.DrawerTemplateKey = "SideDrawer";
@@ -96,7 +96,6 @@ class RunIosCommand {
96
96
  if (!this.$platformValidationService.isPlatformSupportedForOS(this.platform, projectData)) {
97
97
  this.$errors.fail(`Applications for platform ${this.platform} can not be built on this OS`);
98
98
  }
99
- console.log("this.platform.toLowerCase()", this.platform.toLowerCase());
100
99
  const result = (yield this.runCommand.canExecute(args)) &&
101
100
  (yield this.$platformValidationService.validateOptions(this.$options.provision, this.$options.teamId, projectData, this.platform.toLowerCase()));
102
101
  return result;
package/lib/constants.js CHANGED
@@ -137,13 +137,19 @@ exports.RESERVED_TEMPLATE_NAMES = {
137
137
  default: "@nativescript/template-hello-world",
138
138
  javascript: "@nativescript/template-hello-world",
139
139
  tsc: "@nativescript/template-hello-world-ts",
140
+ vision: "@nativescript/template-hello-world-ts-vision",
140
141
  vue: "@nativescript/template-blank-vue",
142
+ "vision-vue": "@nativescript/template-blank-vue-vision",
141
143
  typescript: "@nativescript/template-hello-world-ts",
142
144
  ng: "@nativescript/template-hello-world-ng",
143
145
  angular: "@nativescript/template-hello-world-ng",
146
+ "vision-ng": "@nativescript/template-hello-world-ng-vision",
144
147
  react: "@nativescript/template-blank-react",
148
+ "vision-react": "@nativescript/template-blank-react-vision",
145
149
  reactjs: "@nativescript/template-blank-react",
150
+ "vision-solid": "@nativescript/template-blank-solid-vision",
146
151
  svelte: "@nativescript/template-blank-svelte",
152
+ "vision-svelte": "@nativescript/template-blank-svelte-vision",
147
153
  };
148
154
  exports.ANALYTICS_LOCAL_TEMPLATE_PREFIX = "localTemplate_";
149
155
  class ITMSConstants {
@@ -677,6 +677,12 @@ interface IOptions
677
677
  vue: boolean;
678
678
  vuejs: boolean;
679
679
  js: boolean;
680
+ vision: boolean;
681
+ "vision-ng": boolean;
682
+ "vision-react": boolean;
683
+ "vision-solid": boolean;
684
+ "vision-svelte": boolean;
685
+ "vision-vue": boolean;
680
686
  javascript: boolean;
681
687
  androidTypings: boolean;
682
688
  production: boolean; //npm flag
package/lib/options.js CHANGED
@@ -112,6 +112,11 @@ class Options {
112
112
  vue: { type: "boolean", hasSensitiveValue: false },
113
113
  vuejs: { type: "boolean", hasSensitiveValue: false },
114
114
  svelte: { type: "boolean", hasSensitiveValue: false },
115
+ "vision-ng": { type: "boolean", hasSensitiveValue: false },
116
+ "vision-react": { type: "boolean", hasSensitiveValue: false },
117
+ "vision-solid": { type: "boolean", hasSensitiveValue: false },
118
+ "vision-svelte": { type: "boolean", hasSensitiveValue: false },
119
+ "vision-vue": { type: "boolean", hasSensitiveValue: false },
115
120
  tsc: { type: "boolean", hasSensitiveValue: false },
116
121
  ts: { type: "boolean", hasSensitiveValue: false },
117
122
  typescript: { type: "boolean", hasSensitiveValue: false },
@@ -337,7 +342,8 @@ class Options {
337
342
  this.$settingsService.setSettings({
338
343
  profileDir: this.argv.profileDir,
339
344
  });
340
- this.argv.profileDir = this.argv["profile-dir"] = this.$settingsService.getProfileDir();
345
+ this.argv.profileDir = this.argv["profile-dir"] =
346
+ this.$settingsService.getProfileDir();
341
347
  if (this.argv.justlaunch) {
342
348
  this.argv.watch = false;
343
349
  }
@@ -0,0 +1,2 @@
1
+ tidelift: "npm/balanced-match"
2
+ patreon: juliangruber
@@ -66,6 +66,12 @@ With [npm](https://npmjs.org) do:
66
66
  npm install balanced-match
67
67
  ```
68
68
 
69
+ ## Security contact information
70
+
71
+ To report a security vulnerability, please use the
72
+ [Tidelift security contact](https://tidelift.com/security).
73
+ Tidelift will coordinate the fix and disclosure.
74
+
69
75
  ## License
70
76
 
71
77
  (MIT)
@@ -28,6 +28,9 @@ function range(a, b, str) {
28
28
  var i = ai;
29
29
 
30
30
  if (ai >= 0 && bi > 0) {
31
+ if(a===b) {
32
+ return [ai, bi];
33
+ }
31
34
  begs = [];
32
35
  left = str.length;
33
36
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "balanced-match",
3
3
  "description": "Match balanced character pairs, like \"{\" and \"}\"",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git://github.com/juliangruber/balanced-match.git"
@@ -9,10 +9,9 @@
9
9
  "homepage": "https://github.com/juliangruber/balanced-match",
10
10
  "main": "index.js",
11
11
  "scripts": {
12
- "test": "make test",
13
- "bench": "make bench"
12
+ "test": "tape test/test.js",
13
+ "bench": "matcha test/bench.js"
14
14
  },
15
- "dependencies": {},
16
15
  "devDependencies": {
17
16
  "matcha": "^0.7.0",
18
17
  "tape": "^4.6.0"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "preferGlobal": true,
4
- "version": "8.6.0-vision.2",
4
+ "version": "8.6.0-vision.4",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {
@@ -1,5 +0,0 @@
1
- test
2
- .gitignore
3
- .travis.yml
4
- Makefile
5
- example.js