
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
apexlink-gulp
Advanced tools
Library for downloading Salesforce metdata suitable for use with apexlink
Salesforce metadata download library. Pulls metadata from an org in a format the can be used with apex-link to perform off-line semantics analysis of Apex code.
To start a download use update() from Gulp:
async update(
workspacePath: string, logger: Logger,
connection: JSConnection | null,
namespaces: string[],
partialLoad: boolean
): Promise<void>
The workspacePath must be the directory whete your sfdx-project.json file is located. The metadata is downloaded into a '.apexlink/gulp' directory relative to this.
If you have an open jsforce connection you can pass that, if you pass null a new connection will be created.
Metadata is download independently for each passed namespace. For orgs without a namespace you can use the pseudo namespace unmanaged. If partialLoad is false, existing downloaded metadata for namespaces not passed to update() will be removed automatically.
The library also supplies some helper functions that you may find useful.
To obtain the sfdx default username for the workspace use:
async getDefaultUsername(
workspacePath: string
): Promise<string | undefined>
To obtain the org's default namespace:
async getOrgNamespace(
workspacePath: string,
connection: JSConnection | null
): Promise<string | null | undefined> {
This will return string | null on success or undefined if the Organization table can not be queried.
To obtain the namespace & package description for packages with namespaces on the org:
public async getOrgPackageNamespaces(
workspacePath: string,
connection: JSConnection | null
): Promise<NamespaceInfo[]>
npm run build
1.3.0 - Remove illegal @WebService and @Invocable for bad quoting in descriptions
1.2.0 - Fixes for class downloading, concurrent requests & memory usage
1.1.1 - Fixes for SObject timeout and error on package without namespace
1.1.0 - Fix handling for org aliases
1.0.0 - Initial version
All the source code included uses a 3-clause BSD license, see LICENSE for details.
FAQs
Library for downloading Salesforce metdata suitable for use with apexlink
The npm package apexlink-gulp receives a total of 1 weekly downloads. As such, apexlink-gulp popularity was classified as not popular.
We found that apexlink-gulp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.