Skip to content

Commit

Permalink
fix(deps): bump @salesforce/plugin-command-reference from 3.0.75 to 3…
Browse files Browse the repository at this point in the history
….0.76 (#591)

* chore(dev-deps): bump @salesforce/plugin-command-reference

Bumps [@salesforce/plugin-command-reference](https://github.com/salesforcecli/plugin-command-reference) from 3.0.75 to 3.0.76.
- [Release notes](https://github.com/salesforcecli/plugin-command-reference/releases)
- [Changelog](https://github.com/salesforcecli/plugin-command-reference/blob/main/CHANGELOG.md)
- [Commits](salesforcecli/plugin-command-reference@3.0.75...3.0.76)

---
updated-dependencies:
- dependency-name: "@salesforce/plugin-command-reference"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: import from jsforce-node

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Cristian Dominguez <cdominguez@salesforce.com>
  • Loading branch information
dependabot[bot] and cristiand391 authored Apr 17, 2024
1 parent e7960bb commit e607467
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 341 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@oclif/plugin-command-snapshot": "^5.1.5",
"@salesforce/cli-plugins-testkit": "^5.2.0",
"@salesforce/dev-scripts": "^9.0.0",
"@salesforce/plugin-command-reference": "^3.0.75",
"@salesforce/plugin-command-reference": "^3.0.76",
"@types/inquirer": "^8.2.0",
"eslint-plugin-sf-plugin": "^1.18.0",
"oclif": "^4.7.2",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/schema/generate/field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import confirm from '@inquirer/confirm';
import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
import { Messages } from '@salesforce/core';
import type { AnyJson } from '@salesforce/ts-types';
import type { CustomField } from 'jsforce/api/metadata';
import type { CustomField } from '@jsforce/jsforce-node/lib/api/metadata.js';
import { convertJsonToXml } from '../../../shared/convert.js';
import { picklistPrompts } from '../../../shared/prompts/picklist.js';
import { integerValidation } from '../../../shared/prompts/functions.js';
Expand Down
2 changes: 1 addition & 1 deletion src/commands/schema/generate/tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import path from 'node:path';

import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
import { Messages } from '@salesforce/core';
import type { CustomTab } from 'jsforce/api/metadata';
import type { CustomTab } from '@jsforce/jsforce-node/lib/api/metadata.js';
import { isTabsFolder } from '../../../shared/flags.js';
import { convertJsonToXml } from '../../../shared/convert.js';

Expand Down
4 changes: 2 additions & 2 deletions src/shared/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import * as jsToXml from 'js2xmlparser';
import { XMLParser } from 'fast-xml-parser';
import type { IOptions } from 'js2xmlparser/lib/options.js';
import type { CustomObject, CustomField } from 'jsforce/api/metadata';
import type { CustomObject, CustomField } from '@jsforce/jsforce-node/lib/api/metadata.js';
import type { JsonMap } from '@salesforce/ts-types';

const standardOptions: IOptions = {
Expand All @@ -25,7 +25,7 @@ type WriteJSONasXMLInputs = {
json: CustomField | CustomObject | JsonMap;
type: string;
options?: IOptions;
}
};

const convertJsonToXml = ({ json, type, options = standardOptions }: WriteJSONasXMLInputs): string =>
jsToXml.parse(type, fixExistingDollarSign(json), options);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import path from 'node:path';
import fs from 'node:fs';
import fg from 'fast-glob';
import type { CustomObject } from 'jsforce/api/metadata';
import type { CustomObject } from '@jsforce/jsforce-node/lib/api/metadata.js';
import { convertJsonToXml, parseXml } from './convert.js';
import { SaveableCustomObject, SaveablePlatformEvent } from './types.js';

Expand Down
2 changes: 1 addition & 1 deletion src/shared/prompts/picklist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import type { ValueSet, CustomValue } from 'jsforce/api/metadata';
import type { ValueSet, CustomValue } from '@jsforce/jsforce-node/lib/api/metadata.js';
import input from '@inquirer/input';
import { Messages } from '@salesforce/core';

Expand Down
2 changes: 1 addition & 1 deletion src/shared/prompts/relationshipField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import path from 'node:path';
import input from '@inquirer/input';
import confirm from '@inquirer/confirm';
import select from '@inquirer/select';
import type { CustomField } from 'jsforce/api/metadata';
import type { CustomField } from '@jsforce/jsforce-node/lib/api/metadata.js';
import { Messages, type NamedPackageDir } from '@salesforce/core';
import { getObjectXmlByFolderAsJson } from '../fs.js';
import { objectPrompt } from './object.js';
Expand Down
2 changes: 1 addition & 1 deletion src/shared/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/

import type { CustomObject, CustomField } from 'jsforce/api/metadata';
import type { CustomObject, CustomField } from '@jsforce/jsforce-node/lib/api/metadata.js';

/** Used by classical CustomObject */
export type NameField = Pick<CustomField, 'label' | 'type' | 'displayFormat'>;
Expand Down
2 changes: 1 addition & 1 deletion test/shared/convert.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { expect } from 'chai';
import type { CustomObject } from 'jsforce/api/metadata';
import type { CustomObject } from '@jsforce/jsforce-node/lib/api/metadata.js';
import { parseXml } from '../../src/shared/convert.js';

// tests configurations of the xml parser
Expand Down
Loading

0 comments on commit e607467

Please sign in to comment.