0.1.12 • Published 7 years ago

assertion-soft v0.1.12

Weekly downloads
37
License
-
Repository
github
Last release
7 years ago

I assail my code with assertions and sometimes an assertion is wrong while the code itself is fine.

For these cases I don't want assert to stop execution in production.

Still, an exception is thrown in a setTimeout so that error logging can still be used.

In dev (window.location.hostname==='localhost' or process.env['NODE_ENV'] !== 'production') require('assertion-soft') behaves like expected and stops execution.

Check the source code for more information, it's only couples of lines.

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago