You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@solid-primitives/destructure

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solid-primitives/destructure - npm Package Compare versions

Comparing version
0.1.6
to
0.1.7
+5
-2
dist/index.cjs

@@ -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;

@@ -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;

@@ -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 };
{
"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": {