sfdx-jayree 4.7.3 → 4.8.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/package.json CHANGED
@@ -1,23 +1,20 @@
1
1
  {
2
2
  "name": "sfdx-jayree",
3
3
  "description": "A Salesforce CLI plugin containing commands and hooks for Salesforce Application Lifecycle Management tasks.",
4
- "version": "4.7.3",
4
+ "version": "4.8.0",
5
5
  "author": "jayree <jayree.git@icloud.com>",
6
6
  "bugs": "https://github.com/jayree/sfdx-jayree-plugin/issues",
7
7
  "type": "module",
8
8
  "dependencies": {
9
- "@jayree/changelog": "^1.1.0",
10
- "@jayree/sfdx-plugin-legacy": "^1.1.38",
9
+ "@jayree/changelog": "^1.1.1",
11
10
  "@jayree/sfdx-plugin-manifest": "^3.0.16",
12
11
  "@jayree/sfdx-plugin-org": "^1.0.3",
13
12
  "@jayree/sfdx-plugin-prettier": "^1.3.1",
14
- "@jayree/sfdx-plugin-source": "^1.1.2",
15
- "@oclif/core": "^2.8.2",
16
- "@salesforce/kit": "^1.9.2",
17
- "@salesforce/sf-plugins-core": "^2.2.11",
18
- "@salesforce/source-deploy-retrieve": "^8.0.6",
13
+ "@jayree/sfdx-plugin-source": "^1.2.3",
14
+ "@salesforce/sf-plugins-core": "^2.4.3",
15
+ "@salesforce/source-deploy-retrieve": "^8.4.0",
19
16
  "debug": "^4.3.4",
20
- "fast-xml-parser": "^4.2.0",
17
+ "fast-xml-parser": "^4.2.2",
21
18
  "fs-extra": "^11.1.1",
22
19
  "ignore": "^5.2.4",
23
20
  "mkdirp": "^3.0.1",
@@ -25,38 +22,38 @@
25
22
  "tslib": "^2.5.0"
26
23
  },
27
24
  "devDependencies": {
28
- "@oclif/plugin-command-snapshot": "^3.3.14",
25
+ "@oclif/plugin-command-snapshot": "^3.3.15",
29
26
  "@oclif/plugin-help": "^5.2.9",
30
- "@salesforce/dev-config": "^3.1.0",
31
- "@salesforce/dev-scripts": "^4.3.0",
32
- "@salesforce/prettier-config": "^0.0.2",
27
+ "@salesforce/dev-config": "^4.0.1",
28
+ "@salesforce/dev-scripts": "^5.0.1",
29
+ "@salesforce/prettier-config": "^0.0.3",
33
30
  "@salesforce/ts-sinon": "^1.4.6",
34
31
  "@types/fs-extra": "^11.0.1",
35
32
  "@types/jsforce": "^1.11.0",
36
33
  "@types/mkdirp": "^1.0.2",
37
34
  "@typescript-eslint/eslint-plugin": "^5.59.5",
38
35
  "@typescript-eslint/parser": "^5.59.5",
39
- "c8": "^7.12.0",
36
+ "c8": "^7.13.0",
40
37
  "chai": "^4.3.7",
41
38
  "eslint": "^8.40.0",
42
39
  "eslint-config-prettier": "^8.8.0",
43
- "eslint-config-salesforce": "^1.2.0",
40
+ "eslint-config-salesforce": "^2.0.1",
44
41
  "eslint-config-salesforce-license": "^0.2.0",
45
42
  "eslint-config-salesforce-typescript": "^1.1.1",
46
43
  "eslint-plugin-header": "^3.1.1",
47
44
  "eslint-plugin-import": "^2.27.5",
48
- "eslint-plugin-jsdoc": "^43.2.0",
45
+ "eslint-plugin-jsdoc": "^44.2.3",
49
46
  "eslint-plugin-prettier": "^4.2.1",
50
- "eslint-plugin-sf-plugin": "^1.15.2",
47
+ "eslint-plugin-sf-plugin": "^1.15.3",
51
48
  "husky": "^8.0.3",
52
49
  "is-ci": "^3.0.1",
53
50
  "mocha": "^10.2.0",
54
51
  "nock": "^13.3.1",
55
52
  "nyc": "^15.1.0",
56
53
  "oclif": "^3.9.0",
57
- "patch-package": "^6.5.1",
54
+ "patch-package": "^7.0.0",
58
55
  "pinst": "^3.0.0",
59
- "prettier": "^2.8.7",
56
+ "prettier": "^2.8.8",
60
57
  "pretty-quick": "^3.1.3",
61
58
  "shx": "^0.3.4",
62
59
  "sinon": "^15.0.4",
@@ -65,7 +62,7 @@
65
62
  "wireit": "^0.9.5"
66
63
  },
67
64
  "engines": {
68
- "node": ">=14.0.0"
65
+ "node": ">=16.0.0"
69
66
  },
70
67
  "files": [
71
68
  "/lib",
@@ -106,9 +103,7 @@
106
103
  "commands": "./lib/commands",
107
104
  "bin": "sfdx",
108
105
  "hooks": {
109
- "update": "./lib/hooks/changelog",
110
- "preretrieve": "./lib/hooks/preretrieve",
111
- "postretrieve": "./lib/hooks/postretrieve"
106
+ "update": "./lib/hooks/changelog"
112
107
  },
113
108
  "topics": {
114
109
  "jayree": {
@@ -117,9 +112,6 @@
117
112
  "subtopics": {
118
113
  "org": {
119
114
  "description": "manage your orgs"
120
- },
121
- "source": {
122
- "description": "sync your project with your orgs"
123
115
  }
124
116
  }
125
117
  }
@@ -132,8 +124,7 @@
132
124
  "@jayree/sfdx-plugin-prettier",
133
125
  "@jayree/sfdx-plugin-manifest",
134
126
  "@jayree/sfdx-plugin-source",
135
- "@jayree/sfdx-plugin-org",
136
- "@jayree/sfdx-plugin-legacy"
127
+ "@jayree/sfdx-plugin-org"
137
128
  ],
138
129
  "info": {
139
130
  "releasenotes": {
@@ -1,12 +0,0 @@
1
- import { SfCommand } from '@salesforce/sf-plugins-core';
2
- import { AnyJson } from '@salesforce/ts-types';
3
- export default class FixMetadata extends SfCommand<AnyJson> {
4
- static readonly summary: string;
5
- static readonly flags: {
6
- 'target-org': import("@oclif/core/lib/interfaces/parser.js").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
7
- tag: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[], import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
8
- verbose: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
9
- };
10
- static readonly requiresProject = true;
11
- run(): Promise<AnyJson>;
12
- }
@@ -1,59 +0,0 @@
1
- /*
2
- * Copyright (c) 2021, jayree
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import { dirname } from 'node:path';
8
- import { fileURLToPath } from 'node:url';
9
- import { Flags, SfCommand, optionalOrgFlagWithDeprecations, arrayWithDeprecation } from '@salesforce/sf-plugins-core';
10
- import { Messages } from '@salesforce/core';
11
- import { applyFixes, logFixes } from '../../../utils/souceUtils.js';
12
- // eslint-disable-next-line no-underscore-dangle
13
- const __filename = fileURLToPath(import.meta.url);
14
- // eslint-disable-next-line no-underscore-dangle
15
- const __dirname = dirname(__filename);
16
- Messages.importMessagesDirectory(__dirname);
17
- const messages = Messages.loadMessages('sfdx-jayree', 'sourceretrievefix');
18
- // eslint-disable-next-line sf-plugin/command-example
19
- class FixMetadata extends SfCommand {
20
- async run() {
21
- const { flags } = await this.parse(FixMetadata);
22
- let updatedfiles = {};
23
- try {
24
- updatedfiles = await applyFixes(flags.tag);
25
- // eslint-disable-next-line no-empty
26
- }
27
- finally {
28
- }
29
- await logFixes(updatedfiles);
30
- return {
31
- fixedFiles: Object.values(updatedfiles)
32
- .filter((value) => value.length > 0)
33
- .reduce((acc, val) => acc.concat(val), []),
34
- details: updatedfiles,
35
- };
36
- }
37
- }
38
- FixMetadata.summary = messages.getMessage('commandDescription');
39
- /* public static examples = [
40
- `$ sfdx jayree:flowtestcoverage
41
- === Flow Test Coverage
42
- Coverage: 82%
43
- ...
44
- `
45
- ]; */
46
- FixMetadata.flags = {
47
- 'target-org': optionalOrgFlagWithDeprecations,
48
- tag: arrayWithDeprecation({
49
- char: 't',
50
- summary: messages.getMessage('tag'),
51
- }),
52
- verbose: Flags.boolean({
53
- summary: messages.getMessage('log'),
54
- description: messages.getMessage('log'),
55
- }),
56
- };
57
- FixMetadata.requiresProject = true;
58
- export default FixMetadata;
59
- //# sourceMappingURL=fix.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fix.js","sourceRoot":"","sources":["../../../../src/commands/jayree/source/fix.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE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E;;;;;;KAMK;AAEkB,iBAAK,GAAG;IAC7B,YAAY,EAAE,+BAA+B;IAC7C,GAAG,EAAE,oBAAoB,CAAC;QACxB,IAAI,EAAE,GAAG;QACT,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;KACpC,CAAC;IACF,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACrB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;QACnC,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC;KACxC,CAAC;CACH,CAAC;AAEqB,2BAAe,GAAG,IAAI,CAAC;eAvB3B,WAAW"}
@@ -1,12 +0,0 @@
1
- import { Hook, Config } from '@oclif/core';
2
- import { FileResponse } from '@salesforce/source-deploy-retrieve';
3
- type HookFunction = (this: Hook.Context, options: HookOptions) => any;
4
- type HookOptions = {
5
- Command: any;
6
- argv: string[];
7
- commandId: string;
8
- result: FileResponse[];
9
- config: Config;
10
- };
11
- export declare const postretrieve: HookFunction;
12
- export {};
@@ -1,92 +0,0 @@
1
- /*
2
- * Copyright (c) 2021, jayree
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import path from 'path';
8
- import { ux } from '@oclif/core';
9
- import { env } from '@salesforce/kit';
10
- import { SfProject } from '@salesforce/core';
11
- import { ComponentStatus } from '@salesforce/source-deploy-retrieve';
12
- import Debug from 'debug';
13
- import { updateProfiles, applySourceFixes, logFixes } from '../utils/souceUtils.js';
14
- import { runHooks } from '../utils/hookUtils.js';
15
- const debug = Debug('jayree:hooks');
16
- const isContentTypeJSON = env.getString('SFDX_CONTENT_TYPE', '').toUpperCase() === 'JSON';
17
- const isOutputEnabled = !(process.argv.find((arg) => arg === '--json') || isContentTypeJSON);
18
- export const postretrieve = async function (options) {
19
- debug(`called 'jayree:postretrieve' by: ${options.Command.id}`);
20
- if (!runHooks) {
21
- debug('hooks disabled');
22
- return;
23
- }
24
- if (!isFileResponseArray(options.result)) {
25
- debug('options.result is not FileResponseArray');
26
- return;
27
- }
28
- const result = options.result.filter((el) => el.state !== ComponentStatus.Failed);
29
- debug({ result });
30
- if (result.length === 0) {
31
- return;
32
- }
33
- const profiles = result.filter((el) => el.type === 'Profile');
34
- if (profiles.length > 0) {
35
- const customObjects = result.filter((el) => el.type === 'CustomObject');
36
- await updateProfiles(profiles, customObjects, 'force:source:pull' === options.Command.id);
37
- }
38
- // eslint-disable-next-line @typescript-eslint/no-misused-promises
39
- process.once('beforeExit', async () => {
40
- debug('beforeExit');
41
- const updatedfiles = await applySourceFixes(result.map((el) => el.filePath).filter(Boolean));
42
- debug({ updatedfiles });
43
- const toRemove = Object.values(updatedfiles)
44
- .flat()
45
- .filter((value) => value.operation === 'deleteFile')
46
- .map((value) => value.filePath);
47
- debug({ toRemove });
48
- const toUpdate = {};
49
- Object.values(updatedfiles)
50
- .flat()
51
- .filter((value) => value.operation === 'moveFile')
52
- .forEach((value) => {
53
- toUpdate[value.filePath] = value.message;
54
- });
55
- debug({ toUpdate });
56
- const projectPath = await SfProject.resolveProjectPath();
57
- const inboundFiles = [];
58
- result.forEach((element) => {
59
- if (!toRemove.includes(element.filePath)) {
60
- inboundFiles.push({
61
- state: element.state,
62
- fullName: element.fullName,
63
- type: element.type,
64
- filePath: path.relative(projectPath, toUpdate[element.filePath] ? toUpdate[element.filePath] : element.filePath),
65
- });
66
- }
67
- });
68
- debug({ inboundFiles });
69
- if (isOutputEnabled) {
70
- void logFixes(updatedfiles);
71
- }
72
- else if (env.getBoolean('SFDX_ENABLE_JAYREE_HOOKS_JSON_OUTPUT', false)) {
73
- ux.log(',');
74
- ux.styledJSON({
75
- result: {
76
- [options.Command.id === 'force:source:pull' ? 'pulledSource' : 'inboundFiles']: inboundFiles,
77
- fixedFiles: Object.values(updatedfiles)
78
- .filter((value) => value.length > 0)
79
- .reduce((acc, val) => acc.concat(val), []),
80
- },
81
- });
82
- }
83
- void this.config.runHook('prettierFormat', {
84
- ...options,
85
- result: inboundFiles.map((el) => el.filePath),
86
- });
87
- });
88
- };
89
- function isFileResponseArray(array) {
90
- return (Array.isArray(array) && array.some((element) => element.state !== undefined));
91
- }
92
- //# sourceMappingURL=postretrieve.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"postretrieve.js","sourceRoot":"","sources":["../../src/hooks/postretrieve.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAgB,EAAE,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAgB,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAYjD,MAAM,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAEpC,MAAM,iBAAiB,GAAG,GAAG,CAAC,SAAS,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC;AAC1F,MAAM,eAAe,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,IAAI,iBAAiB,CAAC,CAAC;AAE7F,MAAM,CAAC,MAAM,YAAY,GAAiB,KAAK,WAAW,OAAO;IAC/D,KAAK,CAAC,oCAAoC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAChE,IAAI,CAAC,QAAQ,EAAE;QACb,KAAK,CAAC,gBAAgB,CAAC,CAAC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AAe,EAAE;YACnB,KAAK,QAAQ,CAAC,YAAY,CAAC,CAAC;SAC7B;aAAM,IAAI,GAAG,CAAC,UAAU,CAAC,sCAAsC,EAAE,KAAK,CAAC,EAAE;YACxE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACZ,EAAE,CAAC,UAAU,CAAC;gBACZ,MAAM,EAAE;oBACN,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,mBAAmB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE,YAAY;oBAC5F,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC;yBACpC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;yBACnC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC;iBAC7C;aACF,CAAC,CAAC;SACJ;QACD,KAAK,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,gBAAgB,EAAE;YACzC,GAAG,OAAO;YACV,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,CAAC;SAC9C,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,SAAS,mBAAmB,CAAC,KAAU;IACrC,OAAO,CACL,KAAK,CAAC,OAAO,CAAC,KAAuB,CAAC,IAAK,KAAwB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC,CACnH,CAAC;AACJ,CAAC"}
@@ -1,14 +0,0 @@
1
- import { Hook, Config } from '@oclif/core';
2
- type HookFunction = (this: Hook.Context, options: HookOptions) => any;
3
- type HookOptions = {
4
- Command: any;
5
- argv: string[];
6
- commandId: string;
7
- result?: PreRetrieveResult;
8
- config: Config;
9
- };
10
- type PreRetrieveResult = {
11
- packageXmlPath: string;
12
- };
13
- export declare const preretrieve: HookFunction;
14
- export {};
@@ -1,15 +0,0 @@
1
- import { env } from '@salesforce/kit';
2
- import Debug from 'debug';
3
- import { runHooks } from '../utils/hookUtils.js';
4
- const debug = Debug('jayree:hooks');
5
- // eslint-disable-next-line @typescript-eslint/require-await
6
- export const preretrieve = async function (options) {
7
- debug(`called 'jayree:preretrieve' by: ${options.Command.id}`);
8
- if (!runHooks) {
9
- debug('hooks disabled');
10
- return;
11
- }
12
- env.setBoolean('SFDX_DISABLE_PRETTIER', true);
13
- debug('set: SFDX_DISABLE_PRETTIER=true');
14
- };
15
- //# sourceMappingURL=preretrieve.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preretrieve.js","sourceRoot":"","sources":["../../src/hooks/preretrieve.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAgBjD,MAAM,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC;AAEpC,4DAA4D;AAC5D,MAAM,CAAC,MAAM,WAAW,GAAiB,KAAK,WAAW,OAAO;IAC9D,KAAK,CAAC,mCAAmC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAC/D,IAAI,CAAC,QAAQ,EAAE;QACb,KAAK,CAAC,gBAAgB,CAAC,CAAC;QACxB,OAAO;KACR;IACD,GAAG,CAAC,UAAU,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IAC9C,KAAK,CAAC,iCAAiC,CAAC,CAAC;AAC3C,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- declare const _default: (path?: string) => any;
2
- export default _default;
@@ -1,45 +0,0 @@
1
- /*
2
- * Copyright (c) 2021, jayree
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- /* istanbul ignore file */
8
- import { join } from 'path';
9
- import fs from 'fs-extra';
10
- import { SfProject } from '@salesforce/core';
11
- const CONFIG_DEFAULTS = {
12
- ensureUserPermissions: [],
13
- ensureObjectPermissions: [],
14
- applySourceFixes: ['source:retrieve:full', 'source:retrieve:all'],
15
- runHooks: false,
16
- };
17
- const resolvedConfigs = {};
18
- export default (path = SfProject.resolveProjectPathSync()) => {
19
- if (path && resolvedConfigs[path]) {
20
- return resolvedConfigs[path];
21
- }
22
- const defaults = CONFIG_DEFAULTS;
23
- let configFromFile;
24
- try {
25
- configFromFile = fs.readJsonSync(join(path, '.sfdx-jayree.json'));
26
- }
27
- catch (error) {
28
- if (error.code === 'ENOENT') {
29
- configFromFile = {};
30
- }
31
- else {
32
- throw error;
33
- }
34
- }
35
- const config = {
36
- ...configFromFile,
37
- ensureUserPermissions: configFromFile.ensureUserPermissions || defaults.ensureUserPermissions,
38
- ensureObjectPermissions: configFromFile.ensureObjectPermissions || defaults.ensureObjectPermissions,
39
- applySourceFixes: configFromFile.applySourceFixes || defaults.applySourceFixes,
40
- runHooks: configFromFile.runHooks || defaults.runHooks,
41
- };
42
- resolvedConfigs[path] = config;
43
- return config;
44
- };
45
- //# sourceMappingURL=config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,0BAA0B;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,eAAe,GAAG;IACtB,qBAAqB,EAAE,EAAE;IACzB,uBAAuB,EAAE,EAAE;IAC3B,gBAAgB,EAAE,CAAC,sBAAsB,EAAE,qBAAqB,CAAC;IACjE,QAAQ,EAAE,KAAK;CAChB,CAAC;AAEF,MAAM,eAAe,GAAG,EAAE,CAAC;AAE3B,eAAe,CAAC,IAAI,GAAG,SAAS,CAAC,sBAAsB,EAAE,EAAE,EAAE;IAC3D,IAAI,IAAI,IAAI,eAAe,CAAC,IAAI,CAAC,EAAE;QACjC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;KAC9B;IAED,MAAM,QAAQ,GAAG,eAAe,CAAC;IACjC,IAAI,cAAc,CAAC;IACnB,IAAI;QACF,cAAc,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC;KACnE;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE;YAC3B,cAAc,GAAG,EAAE,CAAC;SACrB;aAAM;YACL,MAAM,KAAK,CAAC;SACb;KACF;IAED,MAAM,MAAM,GAAG;QACb,GAAG,cAAc;QACjB,qBAAqB,EAAE,cAAc,CAAC,qBAAqB,IAAI,QAAQ,CAAC,qBAAqB;QAC7F,uBAAuB,EAAE,cAAc,CAAC,uBAAuB,IAAI,QAAQ,CAAC,uBAAuB;QACnG,gBAAgB,EAAE,cAAc,CAAC,gBAAgB,IAAI,QAAQ,CAAC,gBAAgB;QAC9E,QAAQ,EAAE,cAAc,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ;KACvD,CAAC;IAEF,eAAe,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;IAC/B,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export declare const runHooks: boolean;
@@ -1,20 +0,0 @@
1
- /*
2
- * Copyright (c) 2021, jayree
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- /* istanbul ignore file */
8
- import { SfProject } from '@salesforce/core';
9
- import kit from '@salesforce/kit';
10
- import config from '../utils/config.js';
11
- export const runHooks = (() => {
12
- try {
13
- return (Boolean(config(SfProject.resolveProjectPathSync()).runHooks) &&
14
- !kit.env.getBoolean('SFDX_DISABLE_JAYREE_HOOKS', false));
15
- }
16
- catch (error) {
17
- return false;
18
- }
19
- })();
20
- //# sourceMappingURL=hookUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hookUtils.js","sourceRoot":"","sources":["../../src/utils/hookUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,0BAA0B;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,GAAG,MAAM,iBAAiB,CAAC;AAClC,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE;IAC5B,IAAI;QACF,OAAO,CACL,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,sBAAsB,EAAE,CAAC,CAAC,QAAQ,CAAC;YAC5D,CAAC,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,2BAA2B,EAAE,KAAK,CAAC,CACxD,CAAC;KACH;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,KAAK,CAAC;KACd;AACH,CAAC,CAAC,EAAE,CAAC"}
@@ -1,16 +0,0 @@
1
- import objectPath from 'object-path';
2
- interface QueryParameters {
3
- path: any;
4
- key?: any;
5
- value?: any;
6
- }
7
- declare class ObjectPathResolver {
8
- private path;
9
- private object;
10
- private returnPathBefore;
11
- constructor(object: any);
12
- value(): any[];
13
- resolve({ path, key, value }: QueryParameters): this;
14
- resolveString(string: any): this;
15
- }
16
- export { ObjectPathResolver, objectPath };
@@ -1,147 +0,0 @@
1
- /*
2
- * Copyright (c) 2021, jayree
3
- * All rights reserved.
4
- * Licensed under the BSD 3-Clause license.
5
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- /* istanbul ignore file */
8
- import objectPath from 'object-path';
9
- import kit from '@salesforce/kit';
10
- function arrayEquals(arr1, arr2) {
11
- return arr1.length === arr2.length && arr1.every((u, i) => u === arr2[i]);
12
- }
13
- function compareobj(obj1, obj2) {
14
- return arrayEquals(kit.ensureArray(obj1), kit.ensureArray(obj2));
15
- }
16
- class ObjectPathResolver {
17
- constructor(object) {
18
- this.path = [];
19
- this.object = object;
20
- }
21
- value() {
22
- if (this.returnPathBefore) {
23
- return this.path.map((x) => x.split(this.returnPathBefore)[0].slice(0, -1));
24
- }
25
- else {
26
- return this.path;
27
- }
28
- }
29
- // eslint-disable-next-line complexity
30
- resolve({ path, key, value }) {
31
- if (this.path.length > 0) {
32
- for (const [i, v] of this.path.entries()) {
33
- if (Array.isArray(objectPath.get(this.object, v))) {
34
- this.path[i] = v + '.' + i + '.' + path;
35
- }
36
- else {
37
- this.path[i] = v + '.' + path;
38
- }
39
- }
40
- }
41
- else {
42
- if (objectPath.get(this.object, path)) {
43
- this.path.push(path);
44
- }
45
- if (value === undefined) {
46
- return this;
47
- }
48
- }
49
- const matchingPath = [];
50
- for (const currenpath of this.path) {
51
- const currentvalue = objectPath.get(this.object, currenpath);
52
- if (currentvalue) {
53
- if (value === undefined) {
54
- if (Array.isArray(currentvalue)) {
55
- for (let i = 0; i < currentvalue.length; i++) {
56
- matchingPath.push(`${currenpath}.${i}`);
57
- }
58
- }
59
- else {
60
- matchingPath.push(currenpath);
61
- }
62
- }
63
- else if (key === undefined) {
64
- if (compareobj(currentvalue, value)) {
65
- matchingPath.push(`${currenpath}`);
66
- }
67
- else if (currentvalue.includes(value)) {
68
- matchingPath.push(`${currenpath}.${currentvalue.indexOf(value)}`);
69
- }
70
- }
71
- else if (Array.isArray(currentvalue) && currentvalue.length > 0) {
72
- for (let i = 0; i < currentvalue.length; i++) {
73
- let match = true;
74
- for (const [k, v] of key.entries()) {
75
- const obj2compare = objectPath.get(this.object, `${currenpath}.${i}.${v}`);
76
- if (obj2compare) {
77
- if (!compareobj(obj2compare, value[k])) {
78
- match = false;
79
- }
80
- }
81
- else if (value[k] !== 'undefined') {
82
- match = false;
83
- }
84
- }
85
- if (match) {
86
- matchingPath.push(`${currenpath}.${i}`);
87
- }
88
- }
89
- }
90
- else {
91
- let match = true;
92
- for (const [k, v] of key.entries()) {
93
- const obj2compare = objectPath.get(this.object, `${currenpath}.${v}`);
94
- if (obj2compare) {
95
- if (!compareobj(obj2compare, value[k])) {
96
- match = false;
97
- }
98
- }
99
- else if (value[k] !== 'undefined') {
100
- match = false;
101
- }
102
- }
103
- if (match) {
104
- matchingPath.push(currenpath);
105
- }
106
- }
107
- }
108
- }
109
- this.path = matchingPath;
110
- return this;
111
- }
112
- resolveString(string) {
113
- // eslint-disable-next-line no-useless-escape
114
- string.match(/(?:[^\.\']+|\'[^\']*\')+/g).forEach((element) => {
115
- const query = {};
116
- const e = element.split(/(\[.*\])/);
117
- if (e.length === 1) {
118
- query.path = e[0];
119
- }
120
- else {
121
- query.path = e[0];
122
- const params = JSON.parse(e[1].replace(/'/g, '"'));
123
- if (params.length >= 2) {
124
- if (Array.isArray(params[0])) {
125
- query.key = params.map((x) => x[0]);
126
- query.value = params.map((x) => x[1]);
127
- }
128
- else {
129
- query.key = [params[0]];
130
- query.value = [params[1]];
131
- }
132
- }
133
- if (params.length === 1) {
134
- query.value = params[0];
135
- }
136
- }
137
- if (query.path.charAt(0) === '?') {
138
- query.path = query.path.slice(1);
139
- this.returnPathBefore = query.path;
140
- }
141
- this.resolve(query);
142
- });
143
- return this;
144
- }
145
- }
146
- export { ObjectPathResolver, objectPath };
147
- //# sourceMappingURL=object-path.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object-path.js","sourceRoot":"","sources":["../../src/utils/object-path.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,0BAA0B;AAC1B,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,GAAG,MAAM,iBAAiB,CAAC;AAElC,SAAS,WAAW,CAAC,IAAI,EAAE,IAAI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AC,CAAC,CAAC;wBACxB,KAAK,CAAC,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;qBAC3B;iBACF;gBACD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;oBACvB,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;iBACzB;aACF;YACD,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;gBAChC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAEjC,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC,IAAI,CAAC;aACpC;YACD,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAED,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"}
@@ -1,22 +0,0 @@
1
- type argvConnection = {
2
- username: string;
3
- instanceUrl: string;
4
- };
5
- declare let argvConnection: argvConnection;
6
- export declare function getProjectPath(): Promise<string>;
7
- export declare function profileElementInjection(profiles: any, customObjectsFilter?: any[]): Promise<void>;
8
- export declare function logFixes(updatedfiles: any): Promise<void>;
9
- export declare function getConnectionFromArgv(): Promise<argvConnection>;
10
- export declare function applyFixes(tags: any, root?: any, filter?: any[]): Promise<aggregatedFixResults>;
11
- export declare function applySourceFixes(filter: string[]): Promise<aggregatedFixResults>;
12
- export type aggregatedFixResults = {
13
- [workaround: string]: fixResults;
14
- };
15
- type fixResults = fixResult[];
16
- type fixResult = {
17
- filePath: string;
18
- operation: string;
19
- message: string;
20
- };
21
- export declare function updateProfiles(profiles: any, customObjects: any, forceSourcePull: any): Promise<void>;
22
- export {};