Skip to content

Conversation

@egp415
Copy link

@egp415 egp415 commented Jul 22, 2022

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.

updates to the script and instructions to make them easier to run out of the box as is.
egp415 and others added 3 commits July 26, 2022 10:49
Co-authored-by: Nagarjun Palavalli <me@nagarjun.co>
Co-authored-by: Nagarjun Palavalli <me@nagarjun.co>
simplify script as per Nag's request
@Dhertz Dhertz requested a review from nagarjun July 26, 2022 20:36
Copy link
Contributor

@nagarjun nagarjun left a 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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can this run the resulting JavaScript file:
You can then run the resulting JavaScript file:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants