nativescript 8.2.2 → 8.2.3-next-03-23-2022-2029350027

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.3.17","karma-coverage":"2.2.0","karma-nativescript-launcher":"0.4.0","mocha":"9.2.1","karma-mocha":"2.0.1","karma-chai":"0.1.0","karma-jasmine":"4.0.1","karma-qunit":"4.1.2","@types/karma-chai":"0.1.2","@types/mocha":"9.1.0","@types/jasmine":"3.10.3","@types/qunit":"2.11.3","nyc":"15.1.0"}
1
+ {"@jsdevtools/coverage-istanbul-loader":"3.0.5","karma":"6.3.17","karma-coverage":"2.2.0","karma-nativescript-launcher":"0.4.0","mocha":"9.2.2","karma-mocha":"2.0.1","karma-chai":"0.1.0","karma-jasmine":"4.0.1","karma-qunit":"4.1.2","@types/karma-chai":"0.1.3","@types/mocha":"9.1.0","@types/jasmine":"4.0.0","@types/qunit":"2.11.3","nyc":"15.1.0"}
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChildProcess = void 0;
13
13
  const child_process = require("child_process");
14
+ const path_1 = require("path");
14
15
  const events_1 = require("events");
15
16
  const yok_1 = require("./yok");
16
17
  class ChildProcess extends events_1.EventEmitter {
@@ -57,6 +58,11 @@ class ChildProcess extends events_1.EventEmitter {
57
58
  });
58
59
  }
59
60
  spawn(command, args, options) {
61
+ var _a;
62
+ if (command.charAt(0) === ".") {
63
+ const cwd = (_a = options === null || options === void 0 ? void 0 : options.cwd) !== null && _a !== void 0 ? _a : process.cwd();
64
+ command = (0, path_1.resolve)(cwd, command);
65
+ }
60
66
  this.$logger.debug("spawn: %s %s", command, this.getArgumentsAsQuotedString(args));
61
67
  return child_process.spawn(command, args, options);
62
68
  }
@@ -167,9 +167,10 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService
167
167
  options,
168
168
  notConfiguredEnvOptions,
169
169
  });
170
- this.$androidToolsInfo.validateTargetSdk({
170
+ this.$androidToolsInfo.validateInfo({
171
171
  showWarningsAsErrors: true,
172
172
  projectDir: projectData.projectDir,
173
+ validateTargetSdk: true,
173
174
  });
174
175
  return {
175
176
  checkEnvironmentRequirementsOutput,
@@ -22,7 +22,7 @@ class ApplePortalApplicationService {
22
22
  return __awaiter(this, void 0, void 0, function* () {
23
23
  let result = [];
24
24
  for (const account of user.associatedAccounts) {
25
- const contentProviderId = account.contentProvider.contentProviderPublicId;
25
+ const contentProviderId = account.contentProvider.contentProviderId;
26
26
  const applications = yield this.getApplicationsByProvider(contentProviderId);
27
27
  result = result.concat(applications.summaries);
28
28
  }
@@ -59,19 +59,11 @@ class ApplePortalSessionService {
59
59
  createWebSession(contentProviderId) {
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
61
  const webSessionResponse = yield this.$httpClient.httpRequest({
62
- url: "https://appstoreconnect.apple.com/olympus/v1/providerSwitchRequests",
62
+ url: "https://appstoreconnect.apple.com/olympus/v1/session",
63
63
  method: "POST",
64
64
  body: {
65
- data: {
66
- type: "providerSwitchRequests",
67
- relationships: {
68
- provider: {
69
- data: {
70
- type: "providers",
71
- id: contentProviderId,
72
- },
73
- },
74
- },
65
+ provider: {
66
+ providerId: contentProviderId,
75
67
  },
76
68
  },
77
69
  headers: {
@@ -79,6 +71,7 @@ class ApplePortalSessionService {
79
71
  "Accept-Encoding": "gzip, deflate, br",
80
72
  "X-Csrf-Itc": "itc",
81
73
  "Content-Type": "application/json;charset=UTF-8",
74
+ "X-Requested-With": "olympus-ui",
82
75
  Cookie: this.$applePortalCookieService.getUserSessionCookie(),
83
76
  },
84
77
  });
@@ -1,7 +1,7 @@
1
1
  import { ICredentials } from "../../common/declarations";
2
2
 
3
3
  interface IApplePortalSessionService {
4
- createWebSession(contentProviderId: string): Promise<string>;
4
+ createWebSession(contentProviderId: number): Promise<string>;
5
5
  createUserSession(
6
6
  credentials: ICredentials,
7
7
  opts?: IAppleCreateUserSessionOptions
@@ -19,7 +19,7 @@ interface IApplePortalApplicationService {
19
19
  user: IApplePortalUserDetail
20
20
  ): Promise<IApplePortalApplicationSummary[]>;
21
21
  getApplicationsByProvider(
22
- contentProviderId: string
22
+ contentProviderId: number
23
23
  ): Promise<IApplePortalApplication>;
24
24
  getApplicationByBundleId(
25
25
  user: IApplePortalUserDetail,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "preferGlobal": true,
4
- "version": "8.2.2",
4
+ "version": "8.2.3-next-03-23-2022-2029350027",
5
5
  "author": "NativeScript <support@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {
@@ -57,7 +57,7 @@
57
57
  "mobile"
58
58
  ],
59
59
  "dependencies": {
60
- "@nativescript/doctor": "2.0.7",
60
+ "@nativescript/doctor": "2.0.8",
61
61
  "@nativescript/schematics-executor": "0.0.2",
62
62
  "@rigor789/resolve-package-path": "^1.0.5",
63
63
  "axios": "^0.21.1",
@@ -40,6 +40,8 @@ module.exports = function (config) {
40
40
  ]
41
41
  },
42
42
 
43
+ // web server hostname
44
+ hostname: '127.0.0.1',
43
45
 
44
46
  // web server port
45
47
  port: 9876,