{"_id":"@bolomio/salesforce-authorizer","_rev":"7-e7a14958d06073a61876c170d8d9709b","time":{"created":"2023-06-01T13:44:55.495Z","0.0.1":"2023-06-01T12:02:11.265Z","modified":"2023-08-17T15:37:15.662Z","1.0.0":"2023-06-01T13:26:45.599Z","1.0.1":"2023-06-01T13:44:55.765Z","1.0.2":"2023-06-05T12:35:48.653Z","1.0.3":"2023-08-17T15:37:15.263Z"},"name":"@bolomio/salesforce-authorizer","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@bolomio/salesforce-authorizer","version":"1.0.1","description":"functions to authorize to a salesforce org","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest -w 1","build":"tsc -p tsconfig.dist.json","release":"npm run build && semantic-release","format":"bash -c 'prettier \"**/*.{ts,tsx,js,jsx,json,yml,yaml}\" --ignore-path <(cat .gitignore .prettierignore) --write'","lint":"eslint --ignore-path .eslintignore --ext .js,.ts ."},"keywords":[],"author":{"name":"bolomio"},"license":"ISC","publishConfig":{"access":"public"},"devDependencies":{"@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.1.0","@semantic-release/npm":"^9.0.1","@types/jest":"^29.5.2","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","eslint":"^8.41.0","eslint-config-prettier":"^8.8.0","eslint-import-resolver-typescript":"^3.5.5","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","nock":"^13.2.9","prettier":"^2.8.8","ts-jest":"^29.1.0","typescript":"^5.0.4","semantic-release":"^21.0.2"},"dependencies":{"got":"^11.8.6","tslib":"^2.5.2"},"gitHead":"a3b6d6f792356166cc46c475018e30c01945d0ba","_id":"@bolomio/salesforce-authorizer@1.0.1","_nodeVersion":"18.16.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1x9Le84bRBBF2lAmhpn23Dl/aXiuZ66Vu0agF0i/eq6aE0x7okAGax9nVEl6JUnO7eLx+P/UABp6CmlK2AH0ZQ==","shasum":"68c475af320395829b8e01b066287bdd73d18018","tarball":"https://registry.npmjs.org/@bolomio/salesforce-authorizer/-/salesforce-authorizer-1.0.1.tgz","fileCount":15,"unpackedSize":55104,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/jlKmpka6MFre4m1Nb9SnveYXEIQyzf+xQyHTmJ/uRQIhANE0YFQwR3etnsP9ApTn2TshQTf3u9BBxbSUPrU4PuRk"}]},"_npmUser":{"name":"marcusyami","email":"marcus.yavorskyy@gmail.com"},"directories":{},"maintainers":[{"name":"romulogmp","email":"romulogmp@gmail.com"},{"name":"marcusyami","email":"marcus.yavorskyy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/salesforce-authorizer_1.0.1_1685627095611_0.35074490560491434"},"_hasShrinkwrap":false},"1.0.2":{"name":"@bolomio/salesforce-authorizer","version":"1.0.2","description":"functions to authorize to a salesforce org","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest -w 1","build":"tsc -p tsconfig.dist.json","release":"npm run build && semantic-release","format":"bash -c 'prettier \"**/*.{ts,tsx,js,jsx,json,yml,yaml}\" --ignore-path <(cat .gitignore .prettierignore) --write'","lint":"eslint --ignore-path .eslintignore --ext .js,.ts ."},"keywords":[],"author":{"name":"bolomio"},"license":"ISC","publishConfig":{"access":"public"},"devDependencies":{"@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.1.0","@semantic-release/npm":"^9.0.1","@types/jest":"^29.5.2","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","eslint":"^8.41.0","eslint-config-prettier":"^8.8.0","eslint-import-resolver-typescript":"^3.5.5","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","nock":"^13.2.9","prettier":"^2.8.8","ts-jest":"^29.1.0","typescript":"^5.0.4","semantic-release":"^21.0.2"},"dependencies":{"got":"^11.8.6","tslib":"^2.5.2"},"gitHead":"9e959d6cc9cd6765474650ee471947727abd466d","_id":"@bolomio/salesforce-authorizer@1.0.2","_nodeVersion":"18.16.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-MiSGQjakLlLx8keK+jobhjV+PZrzAdt2++1CAmKAhZgDu3xWJy2dYSy5wQ/gtDmN+qmONLzXqwp01qWgqktD4g==","shasum":"0733429fee5e59f017f26accf0f1c5efa6b59f40","tarball":"https://registry.npmjs.org/@bolomio/salesforce-authorizer/-/salesforce-authorizer-1.0.2.tgz","fileCount":15,"unpackedSize":55236,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcVbwLi8hnMr6M0/JhN3pOTIsp1jijwtOeypxjqKFCsQIhAKRfr++QGsRZdVl4tVmzebRnQbN+5CpGQnThtrgmCusj"}]},"_npmUser":{"name":"marcusyami","email":"marcus.yavorskyy@gmail.com"},"directories":{},"maintainers":[{"name":"romulogmp","email":"romulogmp@gmail.com"},{"name":"marcusyami","email":"marcus.yavorskyy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/salesforce-authorizer_1.0.2_1685968548394_0.7302350870393537"},"_hasShrinkwrap":false},"1.0.3":{"name":"@bolomio/salesforce-authorizer","version":"1.0.3","description":"functions to authorize to a salesforce org","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest -w 1","build":"tsc -p tsconfig.dist.json","release":"npm run build && semantic-release","format":"bash -c 'prettier \"**/*.{ts,tsx,js,jsx,json,yml,yaml}\" --ignore-path <(cat .gitignore .prettierignore) --write'","lint":"eslint --ignore-path .eslintignore --ext .js,.ts ."},"keywords":[],"author":{"name":"bolomio"},"license":"ISC","publishConfig":{"access":"public"},"devDependencies":{"@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.1.0","@semantic-release/npm":"^10.0.4","@types/jest":"^29.5.2","@typescript-eslint/eslint-plugin":"^5.59.8","@typescript-eslint/parser":"^5.59.8","eslint":"^8.41.0","eslint-config-prettier":"^8.8.0","eslint-import-resolver-typescript":"^3.5.5","eslint-plugin-import":"^2.27.5","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","nock":"^13.2.9","prettier":"^2.8.8","semantic-release":"^21.0.2","ts-jest":"^29.1.0","typescript":"^5.0.4"},"dependencies":{"got":"^11.8.6","tslib":"^2.5.2"},"_id":"@bolomio/salesforce-authorizer@1.0.3","gitHead":"622b59c2f21c2a2feec25b5c3b81f6dbad6209a4","_nodeVersion":"18.17.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-FudZ/qWlNaXztFlrqHwRGD9VLIIi7vQjBmcw9T1+8aEGt2yB21mEdmKRIMMQFDoOQ4ms5shR81rAQhAZ7TggAw==","shasum":"07acd295a2591e2a654ac9fd983e025106721d7b","tarball":"https://registry.npmjs.org/@bolomio/salesforce-authorizer/-/salesforce-authorizer-1.0.3.tgz","fileCount":15,"unpackedSize":55237,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCsHUQrtPIZs3mUcebv+VopPhpqNbAnSDwbGZGOvPwBgIgBKLFFMHVkVXZRWh1DW/6v9jIcxsGZxgQNltxjtbQVvg="}]},"_npmUser":{"name":"marcusyami","email":"marcus.yavorskyy@gmail.com"},"directories":{},"maintainers":[{"name":"romulogmp","email":"romulogmp@gmail.com"},{"name":"marcusyami","email":"marcus.yavorskyy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/salesforce-authorizer_1.0.3_1692286635097_0.30778750416013456"},"_hasShrinkwrap":false}},"maintainers":[{"name":"romulogmp","email":"romulogmp@gmail.com"},{"name":"marcusyami","email":"marcus.yavorskyy@gmail.com"}],"description":"functions to authorize to a salesforce org","keywords":[],"author":{"name":"bolomio"},"license":"ISC","readme":"# [bolomio] Salesforce Authorizer\n\n[![GitHub Repo](https://img.shields.io/badge/GitHub-Repository-blue?logo=github)](https://github.com/bolomio/salesforce-authorizer)\n[![npm version](https://badge.fury.io/js/%40bolomio%2Fsalesforce-connector.svg)](https://www.npmjs.com/package/@bolomio/salesforce-authorizer)\n\nThe @bolomio/salesforce-authorizer package is an open-source npm package that provides functions for authenticating with Salesforce using different authentication flows. It allows you to easily authenticate Salesforce instances in your Node.js applications.\n\n## Features\n\n- Authenticate with Salesforce using the client credential flow\n- Authenticate with Salesforce using the password flow\n- Customize authentication options such as base URL, headers, timeouts, and retry settings\n- Promise-based API for easy integration with async/await or Promises\n\n## Installation\n\nYou can install the package using npm:\n\n```bash\nnpm install @bolomio/salesforce-authorizer\n```\n\n## Usage\n\n```javascript\nconst { makeSalesforceAuthorizer } = require('@bolomio/salesforce-authorizer');\nconst { HTTPError } = require('got');\n\n// Create an instance of the Salesforce authorizer with custom options\nconst authorizer = makeSalesforceAuthorizer({\n  baseUrl: \"https://{domain-name}.sandbox.my.salesforce.com/\",\n});\n\nasync function authenticate() {\n  try {\n    const resource = await authorizer.authenticateWithClientCredentialFlow({\n      clientId: 'YOUR_CLIENT_ID',\n      clientSecret: 'YOUR_CLIENT_SECRET',\n    });\n    console.log(resource);\n  } catch (e) {\n    if (e instanceof HTTPError) {\n      console.log(e.response.body);\n    }\n  }\n}\n\nauthenticate();\n```\n\n## Contributing\n\nContributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. Make sure to follow the [contribution guidelines](./CONTRIBUTING.md).\n\n## License\n\nThis project is licensed under the [GNU General Public License](LICENSE).\n","readmeFilename":"README.md"}