3.1.70799928 • Published 5 years ago

@gp-technical/stack-pack-util v3.1.70799928

Weekly downloads
39
License
UNLICENSED
Repository
github
Last release
5 years ago

stack-pack-util

yarn add @gp-technical/stack-pack-util

Utilities to be available across Stack apps. Currently only usable in the api since the logging was moved in here.

When handling errors in the API apps should usually wrap functionality within try/catch blocks. Errors should be caught and rethrown as:

import { error } from '@gp-technical/stack-pack-util'

try {
  do stuff that might throw
} catch (err) {
  throw error.create(err, 'Error when doing stuff')
}

The outer most block should log but this will usually be done within the Stack framework itself as most user code is invoked from either an initialiser or a processor and these are invoked from the framework.

3.1.70799928

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.1

5 years ago

2.0.0

6 years ago

2.0.0-beta.4

6 years ago

2.0.0-beta.3

6 years ago

2.0.0-beta.2

6 years ago

2.0.0-beta.1

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

0.1.1

7 years ago