Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@heroku/salesforce-sdk

Package Overview
Dependencies
Maintainers
261
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heroku/salesforce-sdk

Salesforce Function SDK for Node.js

  • 0.0.1-develop.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by50%
Maintainers
261
Weekly downloads
 
Created
Source

CircleCI

Salesforce Function SDK for Node.js

Usage

import * as sdk from 'salesforce-sdk';

export default class HelloFunction {

    private readonly logger: sdk.Logger;

    constructor(private readonly event: any,
                private readonly context: sdk.Context) {
        this.logger = context.logger;
        this.logger.shout(`${this.getName()}.init()`);
    }

    public getName(): string {
        return this.constructor.name;
    }

    public async invoke(): Promise<any>  {
        this.logger.shout(`${this.getName()}.invoke()`);

        const results = await this.context.forceApi.query('SELECT Name FROM Account');
        this.logger.info(JSON.stringify(query));

        return results;
    }
}

Publish salesforce-sdk

salesforce-sdk is published to https://www.npmjs.com/package/@heroku/salesforce-sdk.

Note: Requires access to @heroku/salesforce-sdk.

To publish to @heroku/salesforce-sdk:

  1. Ensure you have latest source locally.
git pull
...
  1. Build & test.
npm run build
...

npm run test
...

Ensure that code coverage meets standards.

  1. Increment version in package.json.

If applicable, can use npm version.

TODO: Decide when to git-tag version.

  1. Publish to npmjs.com.
npm publish
...

May use np, eg:

np 0.0.18-develop.1 --no-release-draft --tag=develop.1 --any-branch
  1. Test and push to repo.
npm install
...

git commit -a -m "<updated-version>"
...

git push
...

TODO: Decide when to git-tag version.

FAQs

Package last updated on 23 Dec 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc