@solid-primitives/destructure
Advanced tools
+5
-2
@@ -6,4 +6,5 @@ 'use strict'; | ||
| // src/index.ts | ||
| var isReactiveObject = (value) => typeof value === "object" && value !== null; | ||
| var __defProp = Object.defineProperty; | ||
| var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
| var isReactiveObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null, "isReactiveObject"); | ||
| function createProxyCache(obj, get) { | ||
@@ -27,2 +28,3 @@ return new Proxy( | ||
| } | ||
| __name(createProxyCache, "createProxyCache"); | ||
| function destructure(source, options) { | ||
@@ -52,3 +54,4 @@ const config = options ?? {}; | ||
| } | ||
| __name(destructure, "destructure"); | ||
| exports.destructure = destructure; |
+2
-2
@@ -1,3 +0,3 @@ | ||
| import { Accessor } from 'solid-js'; | ||
| import { MemoOptions, Values, AnyFunction, MaybeAccessor, AnyObject } from '@solid-primitives/utils'; | ||
| import { MemoOptions, Accessor } from 'solid-js'; | ||
| import { Values, AnyFunction, MaybeAccessor, AnyObject } from '@solid-primitives/utils'; | ||
@@ -4,0 +4,0 @@ type ReactiveSource = [] | any[] | AnyObject; |
+6
-3
@@ -1,6 +0,7 @@ | ||
| import { getOwner, createMemo, runWithOwner } from 'solid-js'; | ||
| import { getOwner, runWithOwner, createMemo } from 'solid-js'; | ||
| import { access } from '@solid-primitives/utils'; | ||
| // src/index.ts | ||
| var isReactiveObject = (value) => typeof value === "object" && value !== null; | ||
| var __defProp = Object.defineProperty; | ||
| var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
| var isReactiveObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null, "isReactiveObject"); | ||
| function createProxyCache(obj, get) { | ||
@@ -24,2 +25,3 @@ return new Proxy( | ||
| } | ||
| __name(createProxyCache, "createProxyCache"); | ||
| function destructure(source, options) { | ||
@@ -49,3 +51,4 @@ const config = options ?? {}; | ||
| } | ||
| __name(destructure, "destructure"); | ||
| export { destructure }; |
+2
-2
| { | ||
| "name": "@solid-primitives/destructure", | ||
| "version": "0.1.6", | ||
| "version": "0.1.7", | ||
| "description": "Primitives for destructuring reactive objects – like props or stores – or signals of them into a separate accessors updated individually.", | ||
@@ -47,3 +47,3 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>", | ||
| "dependencies": { | ||
| "@solid-primitives/utils": "^5.0.0" | ||
| "@solid-primitives/utils": "^5.1.1" | ||
| }, | ||
@@ -50,0 +50,0 @@ "peerDependencies": { |
13864
3.57%144
4.35%