cafe-utility 27.14.0 → 27.14.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/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -254,7 +254,8 @@ function runAndSetInterval(n, e) {
254
254
  return () => clearInterval(t)
255
255
  }
256
256
  function whereAmI() {
257
- return Object.prototype.hasOwnProperty.call(globalThis, 'process') ? 'node' : 'browser'
257
+ const n = globalThis.process
258
+ return n ? (n.browser === !0 ? 'browser' : 'node') : 'browser'
258
259
  }
259
260
  function asMegabytes(n) {
260
261
  return n / 1024 / 1024
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cafe-utility",
3
- "version": "27.14.0",
3
+ "version": "27.14.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "exports": {