skapi-js 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skapi-js",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "skapi javascript library",
5
5
  "main": "./dist/skapi.js",
6
6
  "scripts": {
package/src/utils.ts CHANGED
@@ -298,8 +298,8 @@ function checkParams(
298
298
  val = _params;
299
299
  }
300
300
 
301
- if (val === undefined) {
302
- throw errToThrow || new SkapiError(`Type "undefined"${isInvalid}`, { code: 'INVALID_PARAMETER' });
301
+ if (val === undefined && errToThrow) {
302
+ throw errToThrow;
303
303
  }
304
304
 
305
305
  return val;