You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@splitscript.js/core

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splitscript.js/core - npm Package Compare versions

Comparing version

to
2.3.5

8

CHANGELOG.md

@@ -0,1 +1,9 @@

# 2.3.5
Add more documentation comments
# 2.3.4
Add more documentation comments
# 2.3.3

@@ -2,0 +10,0 @@

2

package.json
{
"name": "@splitscript.js/core",
"version": "2.3.3",
"version": "2.3.5",
"description": "Core SplitScript.js library",

@@ -5,0 +5,0 @@ "types": "./dist/types/index.d.ts",

@@ -50,19 +50,2 @@ <a href="#">

## Catching Errors
You can use the `handleError` for catching all listeners that fail
```ts
import { handleError } from '@splitscript.js/core'
handleError((data, err) => {
console.log('Error: ', err)
})
// You can add multiple error handlers
handleError((data, err) => {
console.log('This also handles the same error: ', err)
})
```
⚠ Make sure you put `handleError()` before any other code so it can handle all errors
## Other packages

@@ -74,4 +57,4 @@

<sub><code>v2.3.3</code> | by [ultraviolet](https://github.com/ultravioletasdf)</sub>
<sub><code>v2.2.2</code> | by [ultraviolet](https://github.com/ultravioletasdf)</sub>
</div>