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

shallow-clone-shim

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shallow-clone-shim - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

4

index.js
'use strict'
const getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors || require('get-own-property-descriptors-polyfill')
module.exports = function clone (obj, orig, shim = {}) {
const descriptors = getOwnPropertyDescriptors(orig)
const descriptors = Object.getOwnPropertyDescriptors(orig)

@@ -8,0 +6,0 @@ for (const name of Object.keys(shim)) {

{
"name": "shallow-clone-shim",
"version": "1.1.0",
"version": "2.0.0",
"description": "Shallow clones an object while respecting the original property descriptors",
"main": "index.js",
"dependencies": {
"get-own-property-descriptors-polyfill": "^1.0.1"
},
"dependencies": {},
"devDependencies": {

@@ -49,5 +47,5 @@ "standard": "^14.3.1",

"coordinates": [
55.778258,
12.593204
55.778278,
12.592982
]
}
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