@sentry/wizard 2.7.0 → 3.0.0
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.
- package/CHANGELOG.md +12 -3
- package/dist/NextJs/configs/next.config.template.js +1 -1
- package/dist/bin.js +7 -3
- package/dist/bin.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/Constants.js +1 -1
- package/dist/lib/Constants.js.map +1 -1
- package/dist/lib/Helper/BottomBar.js +2 -2
- package/dist/lib/Helper/BottomBar.js.map +1 -1
- package/dist/lib/Helper/File.js +10 -12
- package/dist/lib/Helper/File.js.map +1 -1
- package/dist/lib/Helper/Logging.js +1 -1
- package/dist/lib/Helper/Logging.js.map +1 -1
- package/dist/lib/Helper/Package.js +10 -10
- package/dist/lib/Helper/Package.js.map +1 -1
- package/dist/lib/Helper/PackageManager.js +6 -9
- package/dist/lib/Helper/PackageManager.js.map +1 -1
- package/dist/lib/Helper/SentryCli.d.ts +3 -3
- package/dist/lib/Helper/SentryCli.js +3 -3
- package/dist/lib/Helper/SentryCli.js.map +1 -1
- package/dist/lib/Helper/Wizard.d.ts +4 -4
- package/dist/lib/Helper/Wizard.js +11 -11
- package/dist/lib/Helper/Wizard.js.map +1 -1
- package/dist/lib/Helper/__tests__/File.js +5 -5
- package/dist/lib/Helper/__tests__/File.js.map +1 -1
- package/dist/lib/Helper/__tests__/MergeConfig.js +9 -9
- package/dist/lib/Helper/__tests__/MergeConfig.js.map +1 -1
- package/dist/lib/Helper/__tests__/SentryCli.js.map +1 -1
- package/dist/lib/Setup.js +11 -9
- package/dist/lib/Setup.js.map +1 -1
- package/dist/lib/Steps/BaseStep.d.ts +2 -2
- package/dist/lib/Steps/BaseStep.js +3 -3
- package/dist/lib/Steps/BaseStep.js.map +1 -1
- package/dist/lib/Steps/ChooseIntegration.d.ts +1 -1
- package/dist/lib/Steps/ChooseIntegration.js +7 -5
- package/dist/lib/Steps/ChooseIntegration.js.map +1 -1
- package/dist/lib/Steps/ConfigureProject.d.ts +1 -1
- package/dist/lib/Steps/ConfigureProject.js +5 -3
- package/dist/lib/Steps/ConfigureProject.js.map +1 -1
- package/dist/lib/Steps/Initial.d.ts +1 -1
- package/dist/lib/Steps/Initial.js +6 -4
- package/dist/lib/Steps/Initial.js.map +1 -1
- package/dist/lib/Steps/Integrations/BaseIntegration.d.ts +2 -2
- package/dist/lib/Steps/Integrations/BaseIntegration.js +5 -4
- package/dist/lib/Steps/Integrations/BaseIntegration.js.map +1 -1
- package/dist/lib/Steps/Integrations/Cordova.d.ts +2 -2
- package/dist/lib/Steps/Integrations/Cordova.js +12 -10
- package/dist/lib/Steps/Integrations/Cordova.js.map +1 -1
- package/dist/lib/Steps/Integrations/Electron.d.ts +2 -2
- package/dist/lib/Steps/Integrations/Electron.js +23 -21
- package/dist/lib/Steps/Integrations/Electron.js.map +1 -1
- package/dist/lib/Steps/Integrations/MobileProject.d.ts +1 -1
- package/dist/lib/Steps/Integrations/MobileProject.js +7 -5
- package/dist/lib/Steps/Integrations/MobileProject.js.map +1 -1
- package/dist/lib/Steps/Integrations/NextJs.d.ts +2 -2
- package/dist/lib/Steps/Integrations/NextJs.js +56 -52
- package/dist/lib/Steps/Integrations/NextJs.js.map +1 -1
- package/dist/lib/Steps/Integrations/ReactNative.d.ts +2 -2
- package/dist/lib/Steps/Integrations/ReactNative.js +52 -51
- package/dist/lib/Steps/Integrations/ReactNative.js.map +1 -1
- package/dist/lib/Steps/Integrations/__tests__/ReactNative.js +1 -1
- package/dist/lib/Steps/Integrations/__tests__/ReactNative.js.map +1 -1
- package/dist/lib/Steps/OpenSentry.d.ts +1 -1
- package/dist/lib/Steps/OpenSentry.js +19 -17
- package/dist/lib/Steps/OpenSentry.js.map +1 -1
- package/dist/lib/Steps/PromptForParameters.d.ts +1 -1
- package/dist/lib/Steps/PromptForParameters.js +21 -19
- package/dist/lib/Steps/PromptForParameters.js.map +1 -1
- package/dist/lib/Steps/Result.d.ts +1 -1
- package/dist/lib/Steps/Result.js +7 -5
- package/dist/lib/Steps/Result.js.map +1 -1
- package/dist/lib/Steps/SentryProjectSelector.d.ts +1 -1
- package/dist/lib/Steps/SentryProjectSelector.js +6 -4
- package/dist/lib/Steps/SentryProjectSelector.js.map +1 -1
- package/dist/lib/Steps/ShouldConfigure.d.ts +1 -1
- package/dist/lib/Steps/ShouldConfigure.js +5 -3
- package/dist/lib/Steps/ShouldConfigure.js.map +1 -1
- package/dist/lib/Steps/WaitForSentry.d.ts +1 -1
- package/dist/lib/Steps/WaitForSentry.js +11 -9
- package/dist/lib/Steps/WaitForSentry.js.map +1 -1
- package/dist/lib/Steps/Welcome.d.ts +1 -1
- package/dist/lib/Steps/Welcome.js +7 -6
- package/dist/lib/Steps/Welcome.js.map +1 -1
- package/dist/lib/Steps/index.js +1 -0
- package/dist/lib/Steps/index.js.map +1 -1
- package/dist/lib/__tests__/Env.js +1 -1
- package/dist/lib/__tests__/Env.js.map +1 -1
- package/dist/lib/__tests__/Setup.js +1 -1
- package/dist/lib/__tests__/Setup.js.map +1 -1
- package/lib/Helper/File.ts +2 -8
- package/lib/Helper/SentryCli.ts +3 -3
- package/lib/Helper/Wizard.ts +6 -5
- package/lib/Helper/__tests__/File.ts +5 -5
- package/lib/Helper/__tests__/SentryCli.ts +3 -2
- package/lib/Helper/test-fixtures/next.config.1-merged.js +1 -1
- package/lib/Helper/test-fixtures/next.config.3-merged.js +1 -1
- package/lib/Helper/test-fixtures/next.config.4-merged.js +1 -1
- package/lib/Steps/BaseStep.ts +3 -3
- package/lib/Steps/ChooseIntegration.ts +2 -1
- package/lib/Steps/ConfigureProject.ts +1 -1
- package/lib/Steps/Initial.ts +1 -1
- package/lib/Steps/Integrations/BaseIntegration.ts +3 -3
- package/lib/Steps/Integrations/Cordova.ts +5 -5
- package/lib/Steps/Integrations/Electron.ts +7 -6
- package/lib/Steps/Integrations/MobileProject.ts +2 -1
- package/lib/Steps/Integrations/NextJs.ts +7 -6
- package/lib/Steps/Integrations/ReactNative.ts +44 -24
- package/lib/Steps/Integrations/__tests__/ReactNative.ts +3 -2
- package/lib/Steps/OpenSentry.ts +1 -1
- package/lib/Steps/PromptForParameters.ts +3 -2
- package/lib/Steps/Result.ts +1 -1
- package/lib/Steps/SentryProjectSelector.ts +3 -2
- package/lib/Steps/ShouldConfigure.ts +1 -1
- package/lib/Steps/WaitForSentry.ts +3 -3
- package/lib/Steps/Welcome.ts +1 -1
- package/lib/__tests__/Setup.ts +1 -1
- package/package.json +9 -13
- package/scripts/NextJs/configs/next.config.template.js +1 -1
|
@@ -7,8 +7,8 @@ var MergeConfig_1 = require("../MergeConfig");
|
|
|
7
7
|
var configPath = path.join(__dirname, '..', 'test-fixtures/next.config.js');
|
|
8
8
|
var templatePath = path.join(__dirname, '..', '..', '..', 'scripts/NextJs/configs/next.config.template.js');
|
|
9
9
|
function configFileNames(num) {
|
|
10
|
-
var sourcePath = path.join(__dirname, '..', "test-fixtures/next.config."
|
|
11
|
-
var mergedPath = path.join(__dirname, '..', "test-fixtures/next.config."
|
|
10
|
+
var sourcePath = path.join(__dirname, '..', "test-fixtures/next.config.".concat(num, ".js"));
|
|
11
|
+
var mergedPath = path.join(__dirname, '..', "test-fixtures/next.config.".concat(num, "-merged.js"));
|
|
12
12
|
return { sourcePath: sourcePath, mergedPath: mergedPath };
|
|
13
13
|
}
|
|
14
14
|
describe('Merging next.config.js', function () {
|
|
@@ -18,39 +18,39 @@ describe('Merging next.config.js', function () {
|
|
|
18
18
|
test('merge basic next.config.js return true', function () {
|
|
19
19
|
var sourcePath = configFileNames(1).sourcePath;
|
|
20
20
|
fs.copyFileSync(sourcePath, configPath);
|
|
21
|
-
expect(MergeConfig_1.mergeConfigFile(configPath, templatePath)).toBe(true);
|
|
21
|
+
expect((0, MergeConfig_1.mergeConfigFile)(configPath, templatePath)).toBe(true);
|
|
22
22
|
});
|
|
23
23
|
test('merge basic next.config.js', function () {
|
|
24
24
|
var _a = configFileNames(1), sourcePath = _a.sourcePath, mergedPath = _a.mergedPath;
|
|
25
25
|
fs.copyFileSync(sourcePath, configPath);
|
|
26
|
-
MergeConfig_1.mergeConfigFile(configPath, templatePath);
|
|
26
|
+
(0, MergeConfig_1.mergeConfigFile)(configPath, templatePath);
|
|
27
27
|
expect(fs.readFileSync(configPath, 'utf8')).toEqual(fs.readFileSync(mergedPath, 'utf8'));
|
|
28
28
|
});
|
|
29
29
|
test('merge invalid javascript config return false', function () {
|
|
30
30
|
var sourcePath = configFileNames(2).sourcePath;
|
|
31
31
|
fs.copyFileSync(sourcePath, configPath);
|
|
32
|
-
expect(MergeConfig_1.mergeConfigFile(configPath, templatePath)).toBe(false);
|
|
32
|
+
expect((0, MergeConfig_1.mergeConfigFile)(configPath, templatePath)).toBe(false);
|
|
33
33
|
});
|
|
34
34
|
test('merge more complicated next.config.js return true', function () {
|
|
35
35
|
var sourcePath = configFileNames(3).sourcePath;
|
|
36
36
|
fs.copyFileSync(sourcePath, configPath);
|
|
37
|
-
expect(MergeConfig_1.mergeConfigFile(configPath, templatePath)).toBe(true);
|
|
37
|
+
expect((0, MergeConfig_1.mergeConfigFile)(configPath, templatePath)).toBe(true);
|
|
38
38
|
});
|
|
39
39
|
test('merge more complicated next.config.js', function () {
|
|
40
40
|
var _a = configFileNames(3), sourcePath = _a.sourcePath, mergedPath = _a.mergedPath;
|
|
41
41
|
fs.copyFileSync(sourcePath, configPath);
|
|
42
|
-
MergeConfig_1.mergeConfigFile(configPath, templatePath);
|
|
42
|
+
(0, MergeConfig_1.mergeConfigFile)(configPath, templatePath);
|
|
43
43
|
expect(fs.readFileSync(configPath, 'utf8')).toEqual(fs.readFileSync(mergedPath, 'utf8'));
|
|
44
44
|
});
|
|
45
45
|
test('merge next.config.js with function return true', function () {
|
|
46
46
|
var sourcePath = configFileNames(4).sourcePath;
|
|
47
47
|
fs.copyFileSync(sourcePath, configPath);
|
|
48
|
-
expect(MergeConfig_1.mergeConfigFile(configPath, templatePath)).toBe(true);
|
|
48
|
+
expect((0, MergeConfig_1.mergeConfigFile)(configPath, templatePath)).toBe(true);
|
|
49
49
|
});
|
|
50
50
|
test('merge next.config.js with function', function () {
|
|
51
51
|
var _a = configFileNames(4), sourcePath = _a.sourcePath, mergedPath = _a.mergedPath;
|
|
52
52
|
fs.copyFileSync(sourcePath, configPath);
|
|
53
|
-
MergeConfig_1.mergeConfigFile(configPath, templatePath);
|
|
53
|
+
(0, MergeConfig_1.mergeConfigFile)(configPath, templatePath);
|
|
54
54
|
expect(fs.readFileSync(configPath, 'utf8')).toEqual(fs.readFileSync(mergedPath, 'utf8'));
|
|
55
55
|
});
|
|
56
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MergeConfig.js","sourceRoot":"","sources":["../../../../lib/Helper/__tests__/MergeConfig.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,uBAAyB;AACzB,2BAA6B;AAE7B,8CAAiD;AAEjD,IAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,8BAA8B,CAAC,CAAC;AAC9E,IAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAC5B,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,gDAAgD,CACjD,CAAC;AAEF,SAAS,eAAe,CAAC,GAAW;IAIlC,IAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAC1B,SAAS,EACT,IAAI,EACJ
|
|
1
|
+
{"version":3,"file":"MergeConfig.js","sourceRoot":"","sources":["../../../../lib/Helper/__tests__/MergeConfig.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAC9B,uBAAyB;AACzB,2BAA6B;AAE7B,8CAAiD;AAEjD,IAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,8BAA8B,CAAC,CAAC;AAC9E,IAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAC5B,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,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oC,EAAE;QACnC,IAAA,KAA6B,eAAe,CAAC,CAAC,CAAC,EAA7C,UAAU,gBAAA,EAAE,UAAU,gBAAuB,CAAC;QACtD,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAExC,IAAA,6BAAe,EAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAE1C,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;IAC3F,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/// <reference types=\"jest\" />\nimport * as fs from 'fs';\nimport * as path from 'path';\n\nimport { mergeConfigFile } from '../MergeConfig';\n\nconst configPath = path.join(__dirname, '..', 'test-fixtures/next.config.js');\nconst templatePath = path.join(\n __dirname,\n '..',\n '..',\n '..',\n 'scripts/NextJs/configs/next.config.template.js',\n);\n\nfunction configFileNames(num: number): {\n sourcePath: string;\n mergedPath: string;\n} {\n const sourcePath = path.join(\n __dirname,\n '..',\n `test-fixtures/next.config.${num}.js`,\n );\n const mergedPath = path.join(\n __dirname,\n '..',\n `test-fixtures/next.config.${num}-merged.js`,\n );\n return { sourcePath, mergedPath };\n}\n\ndescribe('Merging next.config.js', () => {\n\n afterEach(() => {\n fs.unlinkSync(configPath);\n });\n\n test('merge basic next.config.js return true', () => {\n const { sourcePath } = configFileNames(1);\n fs.copyFileSync(sourcePath, configPath);\n\n expect(mergeConfigFile(configPath, templatePath)).toBe(true);\n });\n\n test('merge basic next.config.js', () => {\n const { sourcePath, mergedPath } = configFileNames(1);\n fs.copyFileSync(sourcePath, configPath);\n\n mergeConfigFile(configPath, templatePath);\n\n expect(fs.readFileSync(configPath, 'utf8')).toEqual(fs.readFileSync(mergedPath, 'utf8'));\n });\n\n test('merge invalid javascript config return false', () => {\n const { sourcePath } = configFileNames(2);\n fs.copyFileSync(sourcePath, configPath);\n\n expect(mergeConfigFile(configPath, templatePath)).toBe(false);\n });\n\n test('merge more complicated next.config.js return true', () => {\n const { sourcePath } = configFileNames(3);\n fs.copyFileSync(sourcePath, configPath);\n\n expect(mergeConfigFile(configPath, templatePath)).toBe(true);\n });\n\n test('merge more complicated next.config.js', () => {\n const { sourcePath, mergedPath } = configFileNames(3);\n fs.copyFileSync(sourcePath, configPath);\n\n mergeConfigFile(configPath, templatePath);\n\n expect(fs.readFileSync(configPath, 'utf8')).toEqual(fs.readFileSync(mergedPath, 'utf8'));\n });\n\n test('merge next.config.js with function return true', () => {\n const { sourcePath } = configFileNames(4);\n fs.copyFileSync(sourcePath, configPath);\n\n expect(mergeConfigFile(configPath, templatePath)).toBe(true);\n });\n\n test('merge next.config.js with function', () => {\n const { sourcePath, mergedPath } = configFileNames(4);\n fs.copyFileSync(sourcePath, configPath);\n\n mergeConfigFile(configPath, templatePath);\n\n expect(fs.readFileSync(configPath, 'utf8')).toEqual(fs.readFileSync(mergedPath, 'utf8'));\n });\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SentryCli.js","sourceRoot":"","sources":["../../../../lib/Helper/__tests__/SentryCli.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"SentryCli.js","sourceRoot":"","sources":["../../../../lib/Helper/__tests__/SentryCli.ts"],"names":[],"mappings":";;AAIA,6CAAwD;AACxD,0CAAyC;AAEzC,IAAM,IAAI,GAAS;IACjB,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,uBAAW,CAAC,WAAW;IACpC,QAAQ,EAAE,CAAC,oBAAQ,CAAC,GAAG,CAAC;IACxB,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,KAAK;IAChB,GAAG,EAAE,wBAAwB;IAC7B,MAAM,EAAE,KAAK;CACd,CAAC;AAEF,IAAM,WAAW,GAAY;IAC3B,MAAM,EAAE;QACN,IAAI,EAAE;YAC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AC;aACjC,IAAI,CAAC,yJAKX,CAAC,CAAC;IACD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/// <reference types=\"jest\" />\nimport type { Answers } from 'inquirer';\n\nimport type { Args} from '../../Constants';\nimport { Integration, Platform } from '../../Constants';\nimport { SentryCli } from '../SentryCli';\n\nconst args: Args = {\n debug: false,\n integration: Integration.reactNative,\n platform: [Platform.ios],\n quiet: false,\n skipConnect: false,\n uninstall: false,\n url: 'https://localhost:1234',\n signup: false,\n};\n\nconst demoAnswers: Answers = {\n config: {\n auth: {\n token: 'abcd',\n },\n organization: {\n slug: 'test_org',\n },\n project: {\n slug: 'test_proj',\n },\n },\n};\n\ndescribe('SentryCli', () => {\n test('convertAnswersToProperties', () => {\n const resolveFunc = jest.fn().mockReturnValue('node_modules/sentry/cli');\n const sentry = new SentryCli(args);\n sentry.setResolveFunction(resolveFunc);\n const props = sentry.convertAnswersToProperties(demoAnswers);\n expect(props['defaults/url']).toBe('https://localhost:1234');\n expect(props['defaults/org']).toBe('test_org');\n expect(props['defaults/project']).toBe('test_proj');\n expect(props['auth/token']).toBe('abcd');\n expect(props['cli/executable']).toBe('node_modules/sentry/cli');\n });\n\n test('dump properties', () => {\n const resolveFunc = jest.fn().mockReturnValue('node_modules/sentry/cli');\n const sentry = new SentryCli(args);\n sentry.setResolveFunction(resolveFunc);\n const props = sentry.convertAnswersToProperties(demoAnswers);\n expect(sentry.dumpProperties(props))\n .toBe(`defaults.url=https://localhost:1234\ndefaults.org=test_org\ndefaults.project=test_proj\nauth.token=abcd\ncli.executable=node_modules/sentry/cli\n`);\n });\n\n test('convertAnswersToProperties windows', () => {\n const resolveFunc = jest.fn().mockReturnValue('node_modules\\\\sentry\\\\cli');\n const sentry = new SentryCli(args);\n sentry.setResolveFunction(resolveFunc);\n const props = sentry.convertAnswersToProperties(demoAnswers);\n expect(props['defaults/url']).toBe('https://localhost:1234');\n expect(props['defaults/org']).toBe('test_org');\n expect(props['defaults/project']).toBe('test_proj');\n expect(props['auth/token']).toBe('abcd');\n expect(props['cli/executable']).toBe('node_modules\\\\\\\\sentry\\\\\\\\cli');\n });\n\n test('dump properties windows', () => {\n const resolveFunc = jest.fn().mockReturnValue('node_modules\\\\sentry\\\\cli');\n const sentry = new SentryCli(args);\n sentry.setResolveFunction(resolveFunc);\n const props = sentry.convertAnswersToProperties(demoAnswers);\n expect(sentry.dumpProperties(props))\n .toBe(`defaults.url=https://localhost:1234\ndefaults.org=test_org\ndefaults.project=test_proj\nauth.token=abcd\ncli.executable=node_modules\\\\\\\\sentry\\\\\\\\cli\n`);\n });\n});\n"]}
|
package/dist/lib/Setup.js
CHANGED
|
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
25
25
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
26
|
function step(op) {
|
|
27
27
|
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
29
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
30
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
31
|
switch (op[0]) {
|
|
@@ -46,12 +46,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
50
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
51
|
+
if (ar || !(i in from)) {
|
|
52
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
53
|
+
ar[i] = from[i];
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
55
57
|
};
|
|
56
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
59
|
exports.run = void 0;
|
|
@@ -63,7 +65,7 @@ function run(argv) {
|
|
|
63
65
|
return __awaiter(this, void 0, void 0, function () {
|
|
64
66
|
var args, steps;
|
|
65
67
|
return __generator(this, function (_a) {
|
|
66
|
-
args = __assign(__assign({}, argv), Env_1.readEnvironment());
|
|
68
|
+
args = __assign(__assign({}, argv), (0, Env_1.readEnvironment)());
|
|
67
69
|
if (args.uninstall === undefined) {
|
|
68
70
|
args.uninstall = false;
|
|
69
71
|
}
|
|
@@ -77,7 +79,7 @@ function run(argv) {
|
|
|
77
79
|
steps = _.concat(steps, Step.OpenSentry, Step.WaitForSentry, Step.SentryProjectSelector, Step.PromptForParameters);
|
|
78
80
|
}
|
|
79
81
|
steps = _.concat(steps, Step.ConfigureProject, Step.Result);
|
|
80
|
-
return [2 /*return*/, Wizard_1.startWizard.apply(void 0,
|
|
82
|
+
return [2 /*return*/, Wizard_1.startWizard.apply(void 0, __spreadArray([args], steps, false))];
|
|
81
83
|
});
|
|
82
84
|
});
|
|
83
85
|
}
|
package/dist/lib/Setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Setup.js","sourceRoot":"","sources":["../../lib/Setup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Setup.js","sourceRoot":"","sources":["../../lib/Setup.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0BAA4B;AAE5B,oCAA+C;AAC/C,0CAA8C;AAC9C,8BAAgC;AAEhC,SAAsB,GAAG,CAAC,IAAS;;;;YAC3B,IAAI,yBAAQ,IAAI,GAAK,IAAA,qBAAe,GAAE,CAAE,CAAC;YAC/C,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;gBAChC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;aACxB;YACG,KAAK,GAAG;gBACV,IAAI,CAAC,OAAO;gBACZ,IAAI,CAAC,OAAO;gBACZ,IAAI,CAAC,iBAAiB;gBACtB,IAAI,CAAC,eAAe;aACrB,CAAC;YACF,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE;gBAC5B,KAAK,GAAG,CAAC,CAAC,MAAM,CACd,KAAK,EACL,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,aAAa,EAClB,IAAI,CAAC,qBAAqB,EAC1B,IAAI,CAAC,mBAAmB,CACzB,CAAC;aACH;YACD,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5D,sBAAO,oBAAW,8BAAC,IAAI,GAAK,KAAK,WAAE;;;CACpC;AAtBD,kBAsBC","sourcesContent":["import * as _ from 'lodash';\n\nimport { readEnvironment } from './Helper/Env';\nimport { startWizard } from './Helper/Wizard';\nimport * as Step from './Steps';\n\nexport async function run(argv: any): Promise<any> {\n const args = { ...argv, ...readEnvironment() };\n if (args.uninstall === undefined) {\n args.uninstall = false;\n }\n let steps = [\n Step.Initial,\n Step.Welcome,\n Step.ChooseIntegration,\n Step.ShouldConfigure,\n ];\n if (args.uninstall === false) {\n steps = _.concat(\n steps,\n Step.OpenSentry,\n Step.WaitForSentry,\n Step.SentryProjectSelector,\n Step.PromptForParameters,\n );\n }\n steps = _.concat(steps, Step.ConfigureProject, Step.Result);\n return startWizard(args, ...steps);\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Answers } from 'inquirer';
|
|
2
|
-
import { Args } from '../Constants';
|
|
1
|
+
import type { Answers } from 'inquirer';
|
|
2
|
+
import type { Args } from '../Constants';
|
|
3
3
|
export declare abstract class BaseStep implements IStep {
|
|
4
4
|
protected _argv: Args;
|
|
5
5
|
protected _isDebug: boolean;
|
|
@@ -10,9 +10,9 @@ var BaseStep = /** @class */ (function () {
|
|
|
10
10
|
}
|
|
11
11
|
BaseStep.prototype.debug = function (msg) {
|
|
12
12
|
if (this._isDebug) {
|
|
13
|
-
Logging_1.nl();
|
|
14
|
-
Logging_1.debug(msg);
|
|
15
|
-
Logging_1.nl();
|
|
13
|
+
(0, Logging_1.nl)();
|
|
14
|
+
(0, Logging_1.debug)(msg);
|
|
15
|
+
(0, Logging_1.nl)();
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
return BaseStep;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseStep.js","sourceRoot":"","sources":["../../../lib/Steps/BaseStep.ts"],"names":[],"mappings":";;;AAGA,6CAA8C;AAE9C;IAEE,
|
|
1
|
+
{"version":3,"file":"BaseStep.js","sourceRoot":"","sources":["../../../lib/Steps/BaseStep.ts"],"names":[],"mappings":";;;AAGA,6CAA8C;AAE9C;IAEE,kBAA6B,KAAW;QAAX,UAAK,GAAL,KAAK,CAAM;QAD9B,aAAQ,GAAY,KAAK,CAAC;QAElC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,KAAK,CAAC;IAC9B,CAAC;IAEM,wBAAK,GAAZ,UAAa,GAAQ;QACnB,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAA,YAAE,GAAE,CAAC;YACL,IAAA,eAAK,EAAC,GAAG,CAAC,CAAC;YACX,IAAA,YAAE,GAAE,CAAC;SACN;IACH,CAAC;IAGH,eAAC;AAAD,CAAC,AAfD,IAeC;AAfqB,4BAAQ","sourcesContent":["import type { Answers } from 'inquirer';\n\nimport type { Args } from '../Constants';\nimport { debug, nl } from '../Helper/Logging';\n\nexport abstract class BaseStep implements IStep {\n protected _isDebug: boolean = false;\n public constructor(protected _argv: Args) {\n this._isDebug = _argv.debug;\n }\n\n public debug(msg: any): void {\n if (this._isDebug) {\n nl();\n debug(msg);\n nl();\n }\n }\n\n public abstract emit(answers: Answers): Promise<Answers>;\n}\n\nexport interface IStep {\n emit(answers?: Answers): Promise<Answers>;\n}\n"]}
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -27,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
27
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28
30
|
function step(op) {
|
|
29
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
30
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
31
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33
35
|
switch (op[0]) {
|
|
@@ -64,7 +66,7 @@ try {
|
|
|
64
66
|
projectPackage = require('../../package.json');
|
|
65
67
|
}
|
|
66
68
|
catch (_a) {
|
|
67
|
-
projectPackage = require(process.cwd()
|
|
69
|
+
projectPackage = require("".concat(process.cwd(), "/package.json"));
|
|
68
70
|
}
|
|
69
71
|
var ChooseIntegration = /** @class */ (function (_super) {
|
|
70
72
|
__extends(ChooseIntegration, _super);
|
|
@@ -86,9 +88,9 @@ var ChooseIntegration = /** @class */ (function (_super) {
|
|
|
86
88
|
throw new Error('You need to choose a integration');
|
|
87
89
|
}
|
|
88
90
|
integrationPrompt = this.tryDetectingIntegration();
|
|
89
|
-
return [4 /*yield*/, inquirer_1.prompt([
|
|
91
|
+
return [4 /*yield*/, (0, inquirer_1.prompt)([
|
|
90
92
|
{
|
|
91
|
-
choices: Constants_1.getIntegrationChoices(),
|
|
93
|
+
choices: (0, Constants_1.getIntegrationChoices)(),
|
|
92
94
|
default: integrationPrompt,
|
|
93
95
|
message: 'What integration do you want to set up?',
|
|
94
96
|
name: 'integration',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChooseIntegration.js","sourceRoot":"","sources":["../../../lib/Steps/ChooseIntegration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChooseIntegration.js","sourceRoot":"","sources":["../../../lib/Steps/ChooseIntegration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAkC;AAClC,0BAA4B;AAE5B,0CAAkE;AAClE,uCAAsC;AACtC,kDAAiD;AACjD,oDAAmD;AACnD,gDAA+C;AAC/C,0DAAyD;AAEzD,IAAI,cAAc,GAAQ,EAAE,CAAC;AAE7B,IAAI;IACF,qCAAqC;IACrC,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAChD;AAAC,WAAM;IACN,cAAc,GAAG,OAAO,CAAC,UAAG,OAAO,CAAC,GAAG,EAAE,kBAAe,CAAC,CAAC;CAC3D;AAED;IAAuC,qCAAQ;IAA/C;;IAqDA,CAAC;IApDc,gCAAI,GAAjB,UAAkB,QAAiB;;;;;;wBAE7B,iBAAiB,GAAQ,IAAI,CAAC;6BAC9B,IAAI,CAAC,K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IAAI,CAAC,CAAC,GAAG,CAAC,cAAc,EAAE,2BAA2B,CAAC,EAAE;YACtD,OAAO,uBAAW,CAAC,WAAW,CAAC;SAChC;QACD,IAAI,CAAC,CAAC,GAAG,CAAC,cAAc,EAAE,sBAAsB,CAAC,EAAE;YACjD,OAAO,uBAAW,CAAC,OAAO,CAAC;SAC5B;QACD,OAAO;IACT,CAAC;IACH,wBAAC;AAAD,CAAC,AArDD,CAAuC,mBAAQ,GAqD9C;AArDY,8CAAiB","sourcesContent":["import type { Answers } from 'inquirer';\nimport { prompt } from 'inquirer';\nimport * as _ from 'lodash';\n\nimport { getIntegrationChoices, Integration } from '../Constants';\nimport { BaseStep } from './BaseStep';\nimport { Cordova } from './Integrations/Cordova';\nimport { Electron } from './Integrations/Electron';\nimport { NextJs } from './Integrations/NextJs';\nimport { ReactNative } from './Integrations/ReactNative';\n\nlet projectPackage: any = {};\n\ntry {\n // If we run directly in setup-wizard\n projectPackage = require('../../package.json');\n} catch {\n projectPackage = require(`${process.cwd()}/package.json`);\n}\n\nexport class ChooseIntegration extends BaseStep {\n public async emit(_answers: Answers): Promise<Answers> {\n // If we receive project type as an arg we skip asking\n let integrationPrompt: any = null;\n if (this._argv.integration) {\n integrationPrompt = { integration: this._argv.integration };\n } else {\n if (this._argv.quiet) {\n throw new Error('You need to choose a integration');\n }\n integrationPrompt = this.tryDetectingIntegration();\n integrationPrompt = await prompt([\n {\n choices: getIntegrationChoices(),\n default: integrationPrompt,\n message: 'What integration do you want to set up?',\n name: 'integration',\n type: 'list',\n },\n ]);\n }\n\n let integration = null;\n switch (integrationPrompt.integration) {\n case Integration.reactNative:\n integration = new ReactNative(this._argv);\n break;\n case Integration.cordova:\n integration = new Cordova(this._argv);\n break;\n case Integration.electron:\n integration = new Electron(this._argv);\n break;\n case Integration.nextjs:\n integration = new NextJs(this._argv);\n break;\n default:\n integration = new ReactNative(this._argv);\n break;\n }\n\n return { integration };\n }\n\n public tryDetectingIntegration(): Integration | undefined {\n if (_.has(projectPackage, 'dependencies.react-native')) {\n return Integration.reactNative;\n }\n if (_.has(projectPackage, 'dependencies.cordova')) {\n return Integration.cordova;\n }\n return;\n }\n}\n"]}
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -27,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
27
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28
30
|
function step(op) {
|
|
29
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
30
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
31
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33
35
|
switch (op[0]) {
|
|
@@ -60,7 +62,7 @@ var ConfigureProject = /** @class */ (function (_super) {
|
|
|
60
62
|
ConfigureProject.prototype.emit = function (answers) {
|
|
61
63
|
return __awaiter(this, void 0, void 0, function () {
|
|
62
64
|
return __generator(this, function (_a) {
|
|
63
|
-
return [2 /*return*/, Wizard_1.getCurrentIntegration(answers).emit(answers)];
|
|
65
|
+
return [2 /*return*/, (0, Wizard_1.getCurrentIntegration)(answers).emit(answers)];
|
|
64
66
|
});
|
|
65
67
|
});
|
|
66
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigureProject.js","sourceRoot":"","sources":["../../../lib/Steps/ConfigureProject.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfigureProject.js","sourceRoot":"","sources":["../../../lib/Steps/ConfigureProject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2CAAyD;AACzD,uCAAsC;AAEtC;IAAsC,oCAAQ;IAA9C;;IAIA,CAAC;IAHc,+BAAI,GAAjB,UAAkB,OAAgB;;;gBAChC,sBAAO,IAAA,8BAAqB,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAC;;;KACrD;IACH,uBAAC;AAAD,CAAC,AAJD,CAAsC,mBAAQ,GAI7C;AAJY,4CAAgB","sourcesContent":["import type { Answers } from 'inquirer';\n\nimport { getCurrentIntegration } from '../Helper/Wizard';\nimport { BaseStep } from './BaseStep';\n\nexport class ConfigureProject extends BaseStep {\n public async emit(answers: Answers): Promise<Answers> {\n return getCurrentIntegration(answers).emit(answers);\n }\n}\n"]}
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -27,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
27
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28
30
|
function step(op) {
|
|
29
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
30
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
31
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33
35
|
switch (op[0]) {
|
|
@@ -76,8 +78,8 @@ var Initial = /** @class */ (function (_super) {
|
|
|
76
78
|
Initial.prototype.emit = function (_answers) {
|
|
77
79
|
return __awaiter(this, void 0, void 0, function () {
|
|
78
80
|
return __generator(this, function (_a) {
|
|
79
|
-
Logging_1.dim('Running Sentry Wizard...');
|
|
80
|
-
Logging_1.dim("version: "
|
|
81
|
+
(0, Logging_1.dim)('Running Sentry Wizard...');
|
|
82
|
+
(0, Logging_1.dim)("version: ".concat(_.get(wizardPackage, 'version', 'DEV'), " | sentry-cli version: ").concat(_.get(sentryCliPackage, 'version', 'DEV')));
|
|
81
83
|
return [2 /*return*/, {}];
|
|
82
84
|
});
|
|
83
85
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Initial.js","sourceRoot":"","sources":["../../../lib/Steps/Initial.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Initial.js","sourceRoot":"","sources":["../../../lib/Steps/Initial.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,0BAA4B;AAC5B,2BAA6B;AAE7B,6CAAwC;AACxC,uCAAsC;AAEtC,IAAI,aAAa,GAAQ,EAAE,CAAC;AAC5B,IAAI,gBAAgB,GAAQ,EAAE,CAAC;AAE/B,IAAI;IACF,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAC/B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,EAC/C,IAAI,EACJ,cAAc,CACf,CAAC,CAAC;CACJ;AAAC,WAAM;IACN,6BAA6B;CAC9B;AAED,IAAI;IACF,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAClC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,EAC5C,IAAI,EACJ,cAAc,CACf,CAAC,CAAC;CACJ;AAAC,WAAM;IACN,8BAA8B;CAC/B;AAED;IAA6B,2BAAQ;IAArC;;IAYA,CAAC;IAXc,sBAAI,GAAjB,UAAkB,QAAiB;;;gBACjC,IAAA,aAAG,EAAC,0BAA0B,CAAC,CAAC;gBAChC,IAAA,aAAG,EACD,mBAAY,CAAC,CAAC,GAAG,CACf,aAAa,EACb,SAAS,EACT,KAAK,CACN,oCAA0B,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,SAAS,EAAE,KAAK,CAAC,CAAE,CACvE,CAAC;gBACF,sBAAO,EAAE,EAAC;;;KACX;IACH,cAAC;AAAD,CAAC,AAZD,CAA6B,mBAAQ,GAYpC;AAZY,0BAAO","sourcesContent":["import type { Answers } from 'inquirer';\nimport * as _ from 'lodash';\nimport * as path from 'path';\n\nimport { dim } from '../Helper/Logging';\nimport { BaseStep } from './BaseStep';\n\nlet wizardPackage: any = {};\nlet sentryCliPackage: any = {};\n\ntry {\n wizardPackage = require(path.join(\n path.dirname(require.resolve('@sentry/wizard')),\n '..',\n 'package.json',\n ));\n} catch {\n // We don't need to have this\n}\n\ntry {\n sentryCliPackage = require(path.join(\n path.dirname(require.resolve('@sentry/cli')),\n '..',\n 'package.json',\n ));\n} catch {\n // We don't need to have tahis\n}\n\nexport class Initial extends BaseStep {\n public async emit(_answers: Answers): Promise<Answers> {\n dim('Running Sentry Wizard...');\n dim(\n `version: ${_.get(\n wizardPackage,\n 'version',\n 'DEV',\n )} | sentry-cli version: ${_.get(sentryCliPackage, 'version', 'DEV')}`,\n );\n return {};\n }\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Answers } from 'inquirer';
|
|
2
|
-
import { Args } from '../../Constants';
|
|
1
|
+
import type { Answers } from 'inquirer';
|
|
2
|
+
import type { Args } from '../../Constants';
|
|
3
3
|
import { BaseStep } from '../BaseStep';
|
|
4
4
|
export declare abstract class BaseIntegration extends BaseStep {
|
|
5
5
|
protected _argv: Args;
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -27,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
27
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28
30
|
function step(op) {
|
|
29
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
30
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
31
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33
35
|
switch (op[0]) {
|
|
@@ -93,8 +95,7 @@ var BaseIntegration = /** @class */ (function (_super) {
|
|
|
93
95
|
_b = (_a = _).keys;
|
|
94
96
|
_d = (_c = _).pickBy;
|
|
95
97
|
return [4 /*yield*/, this.shouldConfigure(_answers)];
|
|
96
|
-
case 1: return [2 /*return*/, (_b.apply(_a, [_d.apply(_c, [_e.sent(),
|
|
97
|
-
function (active) { return active; }])]).length > 0)];
|
|
98
|
+
case 1: return [2 /*return*/, (_b.apply(_a, [_d.apply(_c, [_e.sent(), function (active) { return active; }])]).length > 0)];
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
101
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseIntegration.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/BaseIntegration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseIntegration.js","sourceRoot":"","sources":["../../../../lib/Steps/Integrations/BaseIntegration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,0BAA4B;AAG5B,wCAAuC;AAEvC;IAA8C,mCAAQ;IAIpD,yBAA6B,KAAW;QAAxC,YACE,kBAAM,KAAK,CAAC,SAGb;QAJ4B,WAAK,GAAL,KAAK,CAAM;QAEtC,kEAAkE;QAClE,KAAI,CAAC,IAAI,GAAG,KAAI,CAAC,SAAS,CAAC;;IAC7B,CAAC;IAEY,mCAAS,GAAtB,UAAuB,QAAiB;;;gBACtC,sBAAO,EAAE,EAAC;;;KACX;IAED;;;;OAIG;IACU,yCAAe,GAA5B,UAA6B,QAAiB;;;gBAC5C,IAAI,IAAI,CAAC,gBAAgB,EAAE;oBACzB,sBAAO,IAAI,CAAC,gBAAgB,EAAC;iBAC9B;gBACD,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;gBAC5D,sBAAO,IAAI,CAAC,gBAAgB,EAAC;;;KAC9B;IAEY,oCAAU,GAAvB,UAAwB,QAAiB;;;;;;wBAErC,KAAA,CAAA,KAAA,CAAC,CAAA,CAAC,IAAI,CAAA;wBACJ,KAAA,CAAA,KAAA,CAAC,CAAA,CAAC,MAAM,CAAA;wBACN,qBAAM,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAA;4BAH1C,sBAAO,CACL,cACE,cACE,SAAoC,EACpC,UAAC,MAAe,IAAK,OAAA,MAAM,EAAN,CAAM,EAC5B,EACF,CAAC,MAAM,GAAG,CAAC,CACb,EAAC;;;;KACH;IAGH,sBAAC;AAAD,CAAC,AAvCD,CAA8C,mBAAQ,GAuCrD;AAvCqB,0CAAe","sourcesContent":["import type { Answers } from 'inquirer';\nimport * as _ from 'lodash';\n\nimport type { Args } from '../../Constants';\nimport { BaseStep } from '../BaseStep';\n\nexport abstract class BaseIntegration extends BaseStep {\n public type: string;\n protected _shouldConfigure: Promise<Answers>;\n\n public constructor(protected _argv: Args) {\n super(_argv);\n // @ts-ignore property construct does not exist on BaseIntegration\n this.type = this.construct;\n }\n\n public async uninstall(_answers: Answers): Promise<Answers> {\n return {};\n }\n\n /**\n * This can be used for example for platform:boolean to determine\n * if we should configure iOS/Android.\n * Basically this will be merged into answers so it can be checked by a later step.\n */\n public async shouldConfigure(_answers: Answers): Promise<Answers> {\n if (this._shouldConfigure) {\n return this._shouldConfigure;\n }\n this._shouldConfigure = Promise.resolve({ platform: true });\n return this._shouldConfigure;\n }\n\n public async shouldEmit(_answers: Answers): Promise<boolean> {\n return (\n _.keys(\n _.pickBy(\n await this.shouldConfigure(_answers),\n (active: boolean) => active,\n ),\n ).length > 0\n );\n }\n\n public abstract emit(answers: Answers): Promise<Answers>;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Answers } from 'inquirer';
|
|
2
|
-
import { Args } from '../../Constants';
|
|
1
|
+
import type { Answers } from 'inquirer';
|
|
2
|
+
import type { Args } from '../../Constants';
|
|
3
3
|
import { SentryCli } from '../../Helper/SentryCli';
|
|
4
4
|
import { BaseIntegration } from './BaseIntegration';
|
|
5
5
|
export declare class Cordova extends BaseIntegration {
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -27,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
27
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
28
30
|
function step(op) {
|
|
29
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
30
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
31
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
32
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
33
35
|
switch (op[0]) {
|
|
@@ -77,13 +79,13 @@ var Cordova = /** @class */ (function (_super) {
|
|
|
77
79
|
return [2 /*return*/, this.uninstall(answers)];
|
|
78
80
|
}
|
|
79
81
|
sentryCliProperties = this._sentryCli.convertAnswersToProperties(answers);
|
|
80
|
-
return [4 /*yield*/, File_1.patchMatchingFile(this._folderPrefix
|
|
82
|
+
return [4 /*yield*/, (0, File_1.patchMatchingFile)("".concat(this._folderPrefix, "/ios/*.xcodeproj/project.pbxproj"), this._patchXcodeProj.bind(this))];
|
|
81
83
|
case 1:
|
|
82
84
|
_a.sent();
|
|
83
85
|
return [4 /*yield*/, this._addSentryProperties(sentryCliProperties)];
|
|
84
86
|
case 2:
|
|
85
87
|
_a.sent();
|
|
86
|
-
Logging_1.green(
|
|
88
|
+
(0, Logging_1.green)('Successfully set up for cordova');
|
|
87
89
|
return [2 /*return*/, {}];
|
|
88
90
|
}
|
|
89
91
|
});
|
|
@@ -93,7 +95,7 @@ var Cordova = /** @class */ (function (_super) {
|
|
|
93
95
|
return __awaiter(this, void 0, void 0, function () {
|
|
94
96
|
return __generator(this, function (_a) {
|
|
95
97
|
switch (_a.label) {
|
|
96
|
-
case 0: return [4 /*yield*/, File_1.patchMatchingFile('**/*.xcodeproj/project.pbxproj', this._unpatchXcodeProj.bind(this))];
|
|
98
|
+
case 0: return [4 /*yield*/, (0, File_1.patchMatchingFile)('**/*.xcodeproj/project.pbxproj', this._unpatchXcodeProj.bind(this))];
|
|
97
99
|
case 1:
|
|
98
100
|
_a.sent();
|
|
99
101
|
return [2 /*return*/, {}];
|
|
@@ -109,11 +111,11 @@ var Cordova = /** @class */ (function (_super) {
|
|
|
109
111
|
return [2 /*return*/, this._shouldConfigure];
|
|
110
112
|
}
|
|
111
113
|
result = false;
|
|
112
|
-
if (!File_1.exists(path.join('sentry.properties'))) {
|
|
114
|
+
if (!(0, File_1.exists)(path.join('sentry.properties'))) {
|
|
113
115
|
result = true;
|
|
114
|
-
this.debug(
|
|
116
|
+
this.debug('sentry.properties not exists');
|
|
115
117
|
}
|
|
116
|
-
if (!File_1.matchesContent('**/*.xcodeproj/project.pbxproj', /SENTRY_PROPERTIES/gi)) {
|
|
118
|
+
if (!(0, File_1.matchesContent)('**/*.xcodeproj/project.pbxproj', /SENTRY_PROPERTIES/gi)) {
|
|
117
119
|
result = true;
|
|
118
120
|
this.debug('**/*.xcodeproj/project.pbxproj not matched');
|
|
119
121
|
}
|
|
@@ -158,7 +160,7 @@ var Cordova = /** @class */ (function (_super) {
|
|
|
158
160
|
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
159
161
|
delete scripts[key];
|
|
160
162
|
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
161
|
-
delete scripts[key
|
|
163
|
+
delete scripts["".concat(key, "_comment")];
|
|
162
164
|
var phases = nativeTargets[firstTarget].buildPhases;
|
|
163
165
|
if (phases) {
|
|
164
166
|
for (var i = 0; i < phases.length; i++) {
|
|
@@ -286,7 +288,7 @@ var Cordova = /** @class */ (function (_super) {
|
|
|
286
288
|
var _this = this;
|
|
287
289
|
var rv = Promise.resolve();
|
|
288
290
|
var fn = path.join('sentry.properties');
|
|
289
|
-
if (File_1.exists(fn)) {
|
|
291
|
+
if ((0, File_1.exists)(fn)) {
|
|
290
292
|
return rv;
|
|
291
293
|
}
|
|
292
294
|
rv = rv.then(function () {
|