@solid-primitives/utils 5.5.0 → 5.5.2

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/dist/index.cjs CHANGED
@@ -8,7 +8,7 @@ exports.noop = () => void 0;
8
8
  exports.trueFn = () => true;
9
9
  exports.falseFn = () => false;
10
10
  exports.isClient = !web.isServer;
11
- exports.isDev = solidJs.DEV && exports.isClient;
11
+ exports.isDev = exports.isClient && !!solidJs.DEV;
12
12
  exports.isProd = !exports.isDev;
13
13
  exports.ofClass = (v, c) => v instanceof c || v && v.constructor === c;
14
14
  function isObject(value) {
package/dist/index.d.ts CHANGED
@@ -90,9 +90,7 @@ declare const trueFn: () => boolean;
90
90
  declare const falseFn: () => boolean;
91
91
 
92
92
  declare const isClient: boolean;
93
- /** development environment */
94
93
  declare const isDev: boolean;
95
- /** production environment */
96
94
  declare const isProd: boolean;
97
95
  /**
98
96
  * Check if the value is an instance of ___
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ var noop = () => void 0;
7
7
  var trueFn = () => true;
8
8
  var falseFn = () => false;
9
9
  var isClient = !isServer;
10
- var isDev = DEV && isClient;
10
+ var isDev = isClient && !!DEV;
11
11
  var isProd = !isDev;
12
12
  var ofClass = (v, c) => v instanceof c || v && v.constructor === c;
13
13
  function isObject(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solid-primitives/utils",
3
- "version": "5.5.0",
3
+ "version": "5.5.2",
4
4
  "description": "A bunch of reactive utility types and functions, for building primitives with Solid.js",
5
5
  "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>",
6
6
  "contributors": [
@@ -39,7 +39,7 @@
39
39
  "primitives"
40
40
  ],
41
41
  "peerDependencies": {
42
- "solid-js": "^1.6.0"
42
+ "solid-js": "^1.6.12"
43
43
  },
44
44
  "typesVersions": {},
45
45
  "scripts": {