-
Notifications
You must be signed in to change notification settings - Fork 1
Node SDK intro updates - updates PLAT-1803 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
updates to the script and instructions to make them easier to run out of the box as is.
Co-authored-by: Nagarjun Palavalli <me@nagarjun.co>
Co-authored-by: Nagarjun Palavalli <me@nagarjun.co>
simplify script as per Nag's request
nagarjun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@egp415 LGTM, left some minor comments. Don't forget to bump up the version number in the package.json file before you merge. Are you familiar with our NPM release process?
| const nfClient = new Nightfall(); | ||
| To run this sample script you must compile it as TypesScript. Save it as a `.tsc` file and run `tsc <yourfilename>.ts -lib ES2015,DOM ` | ||
|
|
||
| You can this run the resulting JavaScript file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| You can this run the resulting JavaScript file: | |
| You can then run the resulting JavaScript file: |
| The results from the scan are delivered by webhook; for more information about setting up a webhook server, refer to | ||
| [the docs](https://docs.nightfall.ai/docs/creating-a-webhook-server). | ||
|
|
||
| This script assumes a webhook a the location `https://my-service.com/nightfall/listener`. Update this to your webhook server address. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| This script assumes a webhook a the location `https://my-service.com/nightfall/listener`. Update this to your webhook server address. | |
| This script assumes a webhook at the location `https://my-service.com/nightfall/listener`. Update this to your webhook server address. |
|
|
||
| To run this sample script you must compile it as TypesScript. Save it as a `.tsc` file and run `tsc <yourfilename>.ts -lib ES2015,DOM ` | ||
|
|
||
| You can this run the resulting JavaScript file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| You can this run the resulting JavaScript file: | |
| You can then run the resulting JavaScript file: |
Perhaps these changes seem unnecessary to the non TypeScript noob, but not having to deal with these syntax issues and run time nuances would have saved me time.