@solid-primitives/utils
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -1,3 +0,1 @@ | ||
"use strict"; | ||
// src/index.ts | ||
@@ -47,3 +45,5 @@ import { | ||
function forEachEntry(object, iterator) { | ||
Object.entries(object).forEach(([key, item], index, pairs) => iterator(key, item, index, pairs, object)); | ||
Object.entries(object).forEach( | ||
([key, item], index, pairs) => iterator(key, item, index, pairs, object) | ||
); | ||
} | ||
@@ -74,10 +74,13 @@ var entries = Object.entries; | ||
function createProxy(traps) { | ||
return new Proxy({}, { | ||
get: (_, k) => traps.get(k), | ||
set: (_, k, v) => { | ||
var _a; | ||
(_a = traps.set) == null ? void 0 : _a.call(traps, k, v); | ||
return false; | ||
return new Proxy( | ||
{}, | ||
{ | ||
get: (_, k) => traps.get(k), | ||
set: (_, k, v) => { | ||
var _a; | ||
(_a = traps.set) == null ? void 0 : _a.call(traps, k, v); | ||
return false; | ||
} | ||
} | ||
}); | ||
); | ||
} | ||
@@ -84,0 +87,0 @@ var createTrigger = isDev ? () => createSignal(void 0, { equals: false, name: "trigger" }) : () => createSignal(void 0, { equals: false }); |
{ | ||
"name": "@solid-primitives/utils", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A bunch of reactive utility types and functions, for building primitives with Solid.js", | ||
@@ -24,7 +24,2 @@ "author": "Damian Tarnawski @thetarnav <gthetarnav@gmail.com>", | ||
], | ||
"scripts": { | ||
"build": "tsup", | ||
"test": "uvu -r solid-register", | ||
"test:watch": "watchlist src test -- npm test" | ||
}, | ||
"keywords": [ | ||
@@ -39,5 +34,6 @@ "utilities", | ||
"prettier": "^2.7.1", | ||
"solid-js": "^1.5.1", | ||
"solid-register": "^0.2.5", | ||
"tslib": "^2.4.0", | ||
"tsup": "^6.2.1", | ||
"tsup": "^6.2.2", | ||
"uvu": "^0.5.6", | ||
@@ -48,3 +44,8 @@ "watchlist": "^0.3.1" | ||
"solid-js": "^1.4.1" | ||
}, | ||
"scripts": { | ||
"build": "tsup", | ||
"test": "uvu -r solid-register", | ||
"test:watch": "watchlist src test -- npm test" | ||
} | ||
} | ||
} |
@@ -0,0 +0,0 @@ <p> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26917
748
8