@e-mc/request 0.4.0 → 0.4.1

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/util.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/request",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Request constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "license": "BSD 3-Clause",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/module": "0.4.0",
24
- "@e-mc/types": "0.4.0",
23
+ "@e-mc/module": "0.4.1",
24
+ "@e-mc/types": "0.4.1",
25
25
  "combined-stream": "^1.0.8",
26
26
  "js-yaml": "^4.1.0",
27
27
  "which": "^2.0.2"
package/util.js CHANGED
@@ -118,7 +118,7 @@ function asInt(value) {
118
118
  case 'string':
119
119
  return safeInt(parseInt(value));
120
120
  case 'number':
121
- return safeInt(Math.floor(value));
121
+ return safeInt(Math.trunc(value));
122
122
  default:
123
123
  return NaN;
124
124
  }