nativescript 8.6.0 → 8.6.1

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.
@@ -1 +1 @@
1
- {"@jsdevtools/coverage-istanbul-loader":"3.0.5","karma":"6.4.2","karma-coverage":"2.2.1","karma-nativescript-launcher":"0.4.0","mocha":"10.2.0","karma-mocha":"2.0.1","karma-chai":"0.1.0","karma-jasmine":"4.0.2","karma-qunit":"4.1.2","@types/karma-chai":"0.1.4","@types/mocha":"10.0.2","@types/jasmine":"5.1.0","@types/qunit":"2.19.6","nyc":"15.1.0"}
1
+ {"@jsdevtools/coverage-istanbul-loader":"3.0.5","karma":"6.4.2","karma-coverage":"2.2.1","karma-nativescript-launcher":"0.4.0","mocha":"10.2.0","karma-mocha":"2.0.1","karma-chai":"0.1.0","karma-jasmine":"4.0.2","karma-qunit":"4.1.2","@types/karma-chai":"0.1.5","@types/mocha":"10.0.3","@types/jasmine":"5.1.1","@types/qunit":"2.19.7","nyc":"15.1.0"}
@@ -16,7 +16,7 @@ const os_1 = require("os");
16
16
  const constants_1 = require("./constants");
17
17
  const crypto = require("crypto");
18
18
  const _ = require("lodash");
19
- const Table = require("cli-table");
19
+ const Table = require("cli-table3");
20
20
  const STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;
21
21
  function stripComments(content) {
22
22
  const newContent = content.replace(STRIP_COMMENTS, "");
@@ -1,5 +1,6 @@
1
1
  import * as tar from "tar";
2
2
  import { IProxySettingsBase } from "../common/declarations";
3
+ import { Arborist } from "@npmcli/arborist";
3
4
 
4
5
  declare global {
5
6
  interface IPacoteService {
@@ -29,6 +30,11 @@ declare global {
29
30
  * The path to npm cache
30
31
  */
31
32
  cache?: string;
33
+
34
+ /**
35
+ * Arborist instance to use
36
+ */
37
+ Arborist?: Arborist;
32
38
  }
33
39
 
34
40
  interface IPacoteManifestOptions extends IPacoteBaseOptions {
@@ -23,6 +23,7 @@ const stream_1 = require("stream");
23
23
  const _ = require("lodash");
24
24
  const decorators_1 = require("../common/decorators");
25
25
  const yok_1 = require("../common/yok");
26
+ const arborist_1 = require("@npmcli/arborist");
26
27
  class PacoteService {
27
28
  constructor($fs, $injector, $logger, $npmConfigService, $proxyService) {
28
29
  this.$fs = $fs;
@@ -85,7 +86,7 @@ class PacoteService {
85
86
  return __awaiter(this, void 0, void 0, function* () {
86
87
  const cachePath = yield this.$packageManager.getCachePath();
87
88
  const npmConfig = this.$npmConfigService.getConfig();
88
- const pacoteOptions = _.extend(npmConfig, { cache: cachePath });
89
+ const pacoteOptions = _.extend(npmConfig, { cache: cachePath, Arborist: arborist_1.Arborist });
89
90
  const proxySettings = yield this.$proxyService.getCache();
90
91
  if (proxySettings) {
91
92
  _.extend(pacoteOptions, proxySettings);
@@ -74,9 +74,9 @@ class PlatformEnvironmentRequirements {
74
74
  win32: "windows",
75
75
  darwin: "macos",
76
76
  }[process.platform];
77
- const anchor = platform ? `#${os}-${platform.toLowerCase()}` : "";
77
+ const anchor = platform ? `#setting-up-${os}-for-${platform.toLowerCase()}` : "";
78
78
  return (`Verify that your environment is configured according to the system requirements described at\n` +
79
- `https://docs.nativescript.org/environment-setup.html${anchor}.`);
79
+ `https://docs.nativescript.org/setup/${os}${anchor}.`);
80
80
  }
81
81
  }
82
82
  PlatformEnvironmentRequirements.MISSING_LOCAL_SETUP_MESSAGE = "Your environment is not configured properly and you will not be able to execute local builds.";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "preferGlobal": true,
4
- "version": "8.6.0",
4
+ "version": "8.6.1",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {
@@ -57,16 +57,17 @@
57
57
  "dependencies": {
58
58
  "@nativescript/doctor": "2.0.11",
59
59
  "@nativescript/schematics-executor": "0.0.2",
60
+ "@npmcli/arborist": "^7.2.0",
60
61
  "@npmcli/move-file": "^2.0.0",
61
62
  "@rigor789/resolve-package-path": "1.0.7",
62
63
  "@rigor789/trapezedev-project": "7.1.1",
63
- "ansi-colors": "^4.1.3",
64
+ "ansi-colors": "^4.1.3",
64
65
  "archiver": "^5.3.1",
65
66
  "axios": "1.3.5",
66
67
  "byline": "5.0.0",
67
68
  "chalk": "4.1.2",
68
69
  "chokidar": "3.5.3",
69
- "cli-table": "npm:cli-table3@0.6.3",
70
+ "cli-table3": "0.6.3",
70
71
  "color": "4.2.3",
71
72
  "convert-source-map": "2.0.0",
72
73
  "detect-newline": "3.1.0",
@@ -130,6 +131,7 @@
130
131
  "@types/lodash": "4.14.192",
131
132
  "@types/marked": "^4.0.8",
132
133
  "@types/node": "18.15.11",
134
+ "@types/npmcli__arborist": "^5.6.4",
133
135
  "@types/ora": "3.2.0",
134
136
  "@types/pacote": "^11.1.5",
135
137
  "@types/plist": "^3.0.2",