New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ayonli/jsext

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ayonli/jsext - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

object/index.js

@@ -12,3 +12,3 @@ "use strict";

for (const key of Reflect.ownKeys(source)) {
if (!Object.hasOwn(target, key) || target[key] === undefined) {
if (!hasOwn(target, key) || target[key] === undefined) {
target[key] = source[key];

@@ -34,3 +34,3 @@ }

const keptKeys = allKeys.filter(key => !keys.includes(key));
const result = Object.pick(obj, keptKeys);
const result = pick(obj, keptKeys);
// special treatment for Error types

@@ -41,3 +41,3 @@ if (obj instanceof Error) {

obj[key] !== undefined &&
!Object.hasOwn(result, key)) {
!hasOwn(result, key)) {
result[key] = obj[key];

@@ -44,0 +44,0 @@ }

@@ -18,3 +18,3 @@ export function hasOwn(obj: any, key: string | number | symbol): boolean {

for (const key of Reflect.ownKeys(source)) {
if (!Object.hasOwn(target, key) || target[key] === undefined) {
if (!hasOwn(target, key) || target[key] === undefined) {
target[key] = source[key];

@@ -52,3 +52,3 @@ }

const keptKeys = allKeys.filter(key => !keys.includes(key));
const result = Object.pick(obj, keptKeys);
const result = pick(obj, keptKeys);

@@ -60,3 +60,3 @@ // special treatment for Error types

(obj as any)[key] !== undefined &&
!Object.hasOwn(result, key)
!hasOwn(result, key)
) {

@@ -63,0 +63,0 @@ result[key] = (obj as any)[key];

{
"name": "@ayonli/jsext",
"version": "0.3.0",
"version": "0.3.1",
"description": "Additional functions for JavaScript builtin types that are frequently used in practice.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc