@solid-primitives/utils 2.0.1 → 2.0.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
@@ -53,7 +53,7 @@ __export(src_exports, {
53
53
  isDev: () => isDev,
54
54
  isObject: () => isObject,
55
55
  isProd: () => isProd,
56
- isServer: () => import_web.isServer,
56
+ isServer: () => isServer,
57
57
  keys: () => keys,
58
58
  noop: () => noop,
59
59
  ofClass: () => ofClass,
@@ -67,7 +67,8 @@ module.exports = __toCommonJS(src_exports);
67
67
  var import_solid_js = require("solid-js");
68
68
  var import_web = require("solid-js/web");
69
69
  var noop = () => void 0;
70
- var isClient = !import_web.isServer;
70
+ var isServer = import_web.isServer;
71
+ var isClient = !isServer;
71
72
  var isDev = import_solid_js.DEV && isClient;
72
73
  var isProd = !isDev;
73
74
  var warn = (...a) => isDev && console.warn(...a);
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { Accessor, Setter, onCleanup } from 'solid-js';
2
2
  import { BaseOptions } from 'solid-js/types/reactive/signal';
3
- export { isServer } from 'solid-js/web';
4
3
 
5
4
  /**
6
5
  * Can be single or in an array
@@ -92,8 +91,8 @@ declare type Position = {
92
91
 
93
92
  /** no operation */
94
93
  declare const noop: Noop;
94
+ declare const isServer: boolean;
95
95
  declare const isClient = true;
96
-
97
96
  /** development environment */
98
97
  declare const isDev = true;
99
98
  /** production environment */
@@ -256,4 +255,4 @@ declare type StaticStoreSetter<T extends Readonly<AnyStatic>> = {
256
255
  */
257
256
  declare function createStaticStore<T extends Readonly<AnyStatic>>(init: T): [access: T, write: StaticStoreSetter<T>];
258
257
 
259
- export { AccessReturnTypes, AnyClass, AnyFunction, AnyObject, AnyStatic, DeepPartialAny, Definite, Directive, ExtractIfPossible, Falsy, FalsyValue, ItemsOf, ItemsOfMany, Many, MaybeAccessor, MaybeAccessorValue, Modify, ModifyDeep, NonIterable, Noop, OnAccessEffectFunction, Position, PrimitiveValue, RequiredKeys, SetterValue, Simplify, StaticStoreSetter, Tail, Trigger, TriggerCache, Truthy, UnboxLazy, UnionToIntersection, Values, access, accessArray, accessWith, asAccessor, asArray, chain, clamp, compare, createCallbackStack, createMicrotask, createProxy, createStaticStore, createTrigger, createTriggerCache, entries, forEachEntry, isClient, isDev, isObject, isProd, keys, noop, ofClass, onRootCleanup, promiseTimeout, raceTimeout, warn, withAccess };
258
+ export { AccessReturnTypes, AnyClass, AnyFunction, AnyObject, AnyStatic, DeepPartialAny, Definite, Directive, ExtractIfPossible, Falsy, FalsyValue, ItemsOf, ItemsOfMany, Many, MaybeAccessor, MaybeAccessorValue, Modify, ModifyDeep, NonIterable, Noop, OnAccessEffectFunction, Position, PrimitiveValue, RequiredKeys, SetterValue, Simplify, StaticStoreSetter, Tail, Trigger, TriggerCache, Truthy, UnboxLazy, UnionToIntersection, Values, access, accessArray, accessWith, asAccessor, asArray, chain, clamp, compare, createCallbackStack, createMicrotask, createProxy, createStaticStore, createTrigger, createTriggerCache, entries, forEachEntry, isClient, isDev, isObject, isProd, isServer, keys, noop, ofClass, onRootCleanup, promiseTimeout, raceTimeout, warn, withAccess };
package/dist/index.js CHANGED
@@ -17,8 +17,9 @@ var __spreadValues = (a, b) => {
17
17
 
18
18
  // src/index.ts
19
19
  import { getOwner, onCleanup, createSignal, DEV, untrack, batch } from "solid-js";
20
- import { isServer } from "solid-js/web";
20
+ import { isServer as _isServer } from "solid-js/web";
21
21
  var noop = () => void 0;
22
+ var isServer = _isServer;
22
23
  var isClient = !isServer;
23
24
  var isDev = DEV && isClient;
24
25
  var isProd = !isDev;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solid-primitives/utils",
3
- "version": "2.0.1",
3
+ "version": "2.0.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
  "license": "MIT",